[Insight-users] Writing new DICOM files.

Mathieu Malaterre mathieu.malaterre at gmail.com
Tue Nov 11 18:32:09 EST 2008


On Tue, Nov 11, 2008 at 6:33 PM, Todd Jensen <todd.jensen at ieee.org> wrote:
> I am using the itk::GDCMImageIO to create DICOM files, but the underlying gdcm::FileHelper class seems to force values on certain elements in CheckMandatoryElements():
>
> Media Storage SOP Instance UID (0002,0003) is set to a newly generated UID
> Image Type is set to DERIVED\PRIMARY

I think what you are looking for is: itk::GDCMImageIO::KeepOriginalUID( true )

> And since the 0002,0003 element is set to a new unique UID, it never matches the SOP Instance UID which is an error.

what ? 0002,0003 should match the value from the dataset. If you found
an issue, please report, a simple way to reproduce it. Thank you.


HTH
-- 
Mathieu


More information about the Insight-users mailing list