dicom / ruby-dicom

Library for reading, editing and writing DICOM files, as well as handling DICOM network communication. Written in the Ruby language.
http://dicom.rubyforge.org/
GNU General Public License v3.0
178 stars 68 forks source link

Reading data after pixel data. #68

Open Maturin opened 7 years ago

Maturin commented 7 years ago

Ruby DICOM fails reading files, which have more data after a pixel data sequence. As far as I know storing additional tags after the pixel data is not recommend by the DICOM standard but not prohibited. In fact GE cardiac ultrasound systems does it for private data.

@dicom : I am working on getting you some example data. I have to clarify, if I can share it. Anyway, it is too big to simple put it into the repository.

I have a fix already 95e4c11. On the one hand can you have a look at my change on the other hand can you point me to where I can add a test for the change?

dicom commented 7 years ago

Hello Maturin! Sorry about the late reply. I understand that you may not be able to share the sample DICOM file due to privacy issues, but perhaps you could be able to share a screenshot of the last part of the DICOM file loaded in a DICOM dump type of program?! (the part which ruby-dicom misinterpretes)

Use for example this tool: https://rawgit.com/chafey/dicomParser/master/examples/dumpWithDataDictionary/index.html