Page 1 of 1

Dicom images problem

Posted: 2018-06-04T09:05:08-07:00
by AlexRozen
Our equipment is producing DCM-files wich are not compatible with common software.
Irfan viewer with plugin can show only the first image, Image Magick 7.0.7-28 says "improper image header `Test.DCM' @ error/dcm.c/ReadDCMImage/3154"

I've uploaded the sample to Google Drive https://drive.google.com/file/d/119_GRi ... sp=sharing

Re: Dicom images problem

Posted: 2018-06-04T10:10:57-07:00
by fmw42
I think you should discuss this with the producer of the equipment that makes the DCM files. If neither Irfan viewer nor ImageMagick can read it, then something is wrong with the file.

Re: Dicom images problem

Posted: 2018-06-05T04:57:55-07:00
by magick
The image appears to be OK which suggests a deficiency in the ImageMagick DCM reader. We'll investigate and see if we can read the image,

Re: Dicom images problem

Posted: 2018-06-05T08:24:05-07:00
by fmw42
Photoshop won't open it either. It says it is missing a DICOM attribute.

Re: Dicom images problem

Posted: 2018-06-05T10:25:01-07:00
by AlexRozen
but inside by a naked eye it seems to have DICOM-like parts. And the "GE Medical Systems/DICOM Part 10 file" label in header :(
Another file, which I've seen before, doesn't contain such label, because of some postprocessing, I suppose.

Re: Dicom images problem

Posted: 2018-06-05T16:26:37-07:00
by magick
Thanks for the problem report. We can reproduce it and will have a patch to fix it in GIT master branch @ https://github.com/ImageMagick/ImageMagick within a day or two. The patch will be available in the beta releases of ImageMagick @ https://www.imagemagick.org/download/beta/ within a day or two.

Re: Dicom images problem

Posted: 2018-06-08T03:53:55-07:00
by AlexRozen
Awesome work! Downloaded the fresh build and it works like a magick :)

But there is one more issue: the original test file contains 6 images, but ImageMagick identifies, converts or viewes only the first one.