[Dcmlib] dciodvfy

Jean-Pierre Roux Jean-Pierre.Roux at creatis.insa-lyon.fr
Tue Oct 25 08:50:07 CEST 2005


Mathieu Malaterre wrote:

> Yo,
>
> I ran multiple times dciodvfy to get sort of a better output. 


Great !
That's what I wanted to do, but I still cannot insatll gdcm3Tools (must 
be a curse on my linux box :-(

> 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

?!?
I was 100% sure I added it, some day
(We received dicom images without Samples per Pixel, that hang e-film, I 
wrote a little .exe program for the doctors.
And I probabely forgot to propagate the modif in gdcm
:-(

JP

> _______________________________________________
> Dcmlib mailing list
> Dcmlib at creatis.insa-lyon.fr
> http://www.creatis.insa-lyon.fr/mailman/listinfo/dcmlib
>




More information about the Dcmlib mailing list