[Insight-developers] BUG: m_FrameOfReferenceInstanceUID is generated but not saved in Code/IO/itkGDCMImageIO.cxx
Mengda Wu
wumengda at gmail.com
Mon Feb 21 01:21:49 EST 2011
Hi all,
It looks like that the variable m_FrameOfReferenceInstanceUID is
generated but not saved into DICOM file in Code/IO/itkGDCMImageIO.cxx. It
there a reason?
This field is useful if some other DICOM files need to refer to the
generated image file. Please consider save this field and a few codes around
the line 950 as follows will suffice:
const char *frameofreferenceuid =
m_FrameOfReferenceInstanceUID.c_str();
{
gdcm::DataElement de( gdcm::Tag(0x0020, 0x0052) ); // Frame of
Reference
de.SetByteValue( frameofreferenceuid, strlen(frameofreferenceuid) );
de.SetVR( gdcm::Attribute< 0x0020, 0x0052 >::GetVR() );
header.Insert(de);
}
Thanks,
Mengda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20110220/69a4f84f/attachment.htm>
More information about the Insight-developers
mailing list