[Dcmlib] gimp vs Dicom images

Mathieu Malaterre mathieu.malaterre at kitware.com
Thu Oct 20 15:34:29 CEST 2005


Jean-Pierre Roux wrote:
> Hi, eveybody!
> 
> The recent version of gimp (at least the one I have : version 2.2.8) are 
> able to display 'simple' dicom images.
> (simple : no oddity in the header, uncompressed, no 'Palette Color', etc).
> 
> If we gdcmRead()/gdcmWrite() - use Example/ReWrite executable- any of 
> these gimp compatible image, we get a 'gimp breaker' image.
> Unpleasant, isn't it ?
> (I can't find out what gimp disagrees on :-( )
> 
> -> Good news : XMedCon opens this (gdcm rewritten) images without 
> trouble , so does ImageJ (from NIH)

Actually did you try dciodvfy from D. Clunie dicom3tools it completely 
die on the gdcm images:

$ wget http://www.creatis.insa-lyon.fr/~malaterre/gdcm/DermaColorLossy.dcm

$ 
/home/mathieu/Software/dicom3tools_1.00.snapshot.20050804.helgray/appsrc/dcfile/dciodvfy 
DermaColorLossy.dcm
Warning - Bad File Meta Information Version Attribute - wrong VR, length 
or not 0x00,0x01
Error - Specification of value length for other byte/word element is 
illegal in encapsulated transfer syntax
Error - Dicom dataset read failed
SCImage
Error - Missing attribute Type 2 Required Element=<PatientID> 
Module=<Patient>
Error - Missing attribute Type 2 Required Element=<StudyDate> 
Module=<GeneralStudy>
Error - Missing attribute Type 2 Required Element=<StudyTime> 
Module=<GeneralStudy>
Error - Missing attribute Type 2 Required Element=<StudyID> 
Module=<GeneralStudy>
Error - Missing attribute Type 2 Required Element=<AccessionNumber> 
Module=<GeneralStudy>
Warning - Unrecognized defined term <OT> for attribute <Modality>
Error - Missing attribute Type 2 Required Element=<SeriesNumber> 
Module=<GeneralSeries>
Error - Missing attribute Type 1 Required Element=<ConversionType> 
Module=<SCImageEquipment>
Error - Unrecognized enumerated value <OT> for attribute <Modality>
Error - Missing attribute Type 2 Required Element=<InstanceNumber> 
Module=<GeneralImage>
Error - Missing attribute Type 2C Conditional 
Element=<PatientOrientation> Module=<GeneralImage>
Warning - Unrecognized defined term <RGB> for attribute <Photometric 
Interpretation>
Error - Unrecognized enumerated value <RGB> for attribute <Photometric 
Interpretation>
Error - Missing attribute Type 1 Required Element=<PixelData> 
Module=<ImagePixel>


I noticed that 'Dicom Eye' also could not read this image.

Mathieu



More information about the Dcmlib mailing list