[Dcmlib] dciodvfy

Mathieu Malaterre mathieu.malaterre at kitware.com
Mon Oct 24 23:55:28 CEST 2005


Yo,

	I ran multiple times dciodvfy to get sort of a better output. The 
biggest mistake was maybe:

File Meta Information Version (0002,0001) shall contain a two byte OB 
value consisting of a 0x00 byte, followed by 0x01 byte, and not the 
value 0x0001 encoded as a little endian 16 bit short value, which would 
be the other way around.
(http://61.62.116.208/webhd/adams/Reminder.html)

So I changed the value in gdcmUtil.cxx to be reversed (comment anyone ?)


Other than that I ran:
./bin/ReWrite filein=../gdcmData/test.acr fileout=/tmp/test.dcm

At first I had:
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>
Error - Missing attribute Type 2 Required Element=<SeriesNumber> 
Module=<GeneralSeries>
Error - Missing attribute Type 1 Required Element=<ConversionType> 
Module=<SCImageEquipment>
Error - Missing attribute Type 2 Required Element=<InstanceNumber> 
Module=<GeneralImage>
Error - Missing attribute Type 2C Conditional 
Element=<PatientOrientation> Module=<GeneralImage>
Error - Missing attribute Type 1 Required Element=<SamplesPerPixel> 
Module=<ImagePixel>


(a few type 1 !)
Now I only have:
$ dciodvfy /tmp/test.dcm
Warning - Bad group length - Group 0x8 specified as 0x26 actually 0x118
Warning - Bad group length - Group 0x28 specified as 0x64 actually 0x74
SCImage


Could some double check the group lenght calculation. Also I set the 
Conversion Type to be 'SYN' == Synthetic, anyone comment on that ?

Mathieu
Ps: Samples per Pixel was missing ... grrrr



More information about the Dcmlib mailing list