[Insight-users] Need some advise with DICOM

Markus Weigert m.weigert at fz-juelich.de
Sun Mar 25 07:11:51 EST 2007


Hi all,

I need some advise with writing a dicom serie.
When doing this without explicitly changing any information in the 
MetaDataDictionary, the information there is changed neverthless.
This seems to cause problems in the later processing steps of the output.
My problem is that the tag "Bits Allocated / Stored / High Bit" which is "16 / 
12 / 11" in the original images is changed to "16 / 16 / 15" and also the tag
"Offset to Pixeldata" changes from 6738 to 2228.
For me, this may be crucial since I do some manipulation to the imagedata and
want to transfer it back to the acquisition scanner, where I perform some 
image reconstruction steps on the new data which has the dicom information of 
the original slices (what is wrong since the data representation has 
changed). The question is now: Why does the gdcm output change the bit 
representation of the original slices and how to avoid this?
The internal representation of the images is float but for DICOM output I cast 
it to short and apply rescale slope and rescale intercept values.
By the way: Does anybody know about a kind of Dicom-Dump tool which can be 
used to make one to one copies of a dicom series but changing pixeldata for 
example?

Best Regards,
Markus Weigert



More information about the Insight-users mailing list