[Insight-users] Unable to write dicom tag using GDCMImageIO

suicheng gu gusuch at yahoo.com
Sat Oct 6 05:21:36 EDT 2012


Hi,
 
I was trying to chage the image orientation tag using
itk::EncapsulateMetaData<std::string>(dict1,"0020|0037", "1\\0\\0\\0\\0\\1"); 
But the image orientation was still 1\0\0\0\1\0
 
 
 
I also tested the provided exmaple: 
InsightToolkit-4.1.0\Examples\IO\DicomImageReadChangeHeaderWrite.cxx
 
It works for some tags, such as the instance number:  DicomImageReadChangeHeaderWrite $infile$ $outfile$ 0020|0013 10
 
But it failed on the image orientation: DicomImageReadChangeHeaderWrite $infile$ $outfile$  0020|0037 1\0\0\0\0\1 
 
 
 
Anyone can help?
Thanks in advance.
Suicheng
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20121006/73a4ad53/attachment.htm>


More information about the Insight-users mailing list