[ITK] Inserting new DICOM tags in MetaDataDictionary

Markus Gramer markus.gramer at kuleuven.be
Mon Mar 6 11:55:12 EST 2017


Hi everyone,

I was wondering if there is a way to add non-existing DICOM tags to a MetaDataDictionary?

I would like to export an image in Nifti format (pixel data type: float) to a DICOM image series. To do so, I read a reference DICOM image series, modify several tags in the MetaDataDictionaryArray and assign the Nifti image, rescaled to the range of unsigned short, together with the modified meta data to an image series writer.
My idea was to modify the rescale intercept and slope tags (i.e. 0028|1052 and 0028|1053) accordingly so I could approximate the float values of the Nifti input image.
However, some DICOM images don't seem to have the rescale intercept and slope tags, so I cannot modify them with itk::EncapsulateMetaData().

Thanks in advance for any input,

Markus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20170306/413a1c83/attachment.html>


More information about the Community mailing list