[Insight-users] Read/Write AcquisitionDate

Jian, Bing (MED US) bing.jian at siemens.com
Sun Mar 16 01:59:01 EDT 2008


Hi Luis,
   Thanks a lot for the information. I already reported this issue 
to the MANTIS system.
   http://public.kitware.com/Bug/view.php?id=6617

Thanks,
Bing

-----Original Message-----
From: Luis Ibanez [mailto:luis.ibanez at kitware.com] 
Sent: Friday, March 14, 2008 8:58 AM
To: Jian, Bing (MED US)
Cc: insight-users at itk.org
Subject: Re: [Insight-users] Read/Write AcquisitionDate


Hi Jian,

Thanks for pointing this out.

This seems to be a bug in the MetaImage library,

The file

    Insight/Utilities/MetaImage/metaObject.cxx

in line 1130, takes care of reading this field:

   MET_InitReadField(mF, "AcquisitionDate", MET_STRING, false);

as part of the method: M_SetupReadFields(void)


but is misses to write it as part of the method:

      M_SetupWriteFields(void)



It seems that we are missing a line like:


mF = new MET_FieldRecordType;
MET_InitWriteField(mF, "AcquisitionDate", MET_STRING, 
strlen(m_ObjectTypeName),   m_ObjectTypeName);

around lines 1272.


   Could you please log a bug report in the
   MANTIS bug tracker ?

   http://public.kitware.com/Bug/my_view_page.php



   Thanks


      Luis


----------------------------
Jian, Bing (MED US) wrote:
> Hi,
> 
> I am looking for some easy getter/setter type methods to read/write
the 
> 'AcquisitionDate' tag from/to a meta image.
> 
> I did see "AcquisitionDate" in itkMetaImageIO.cxx
> 
> _http://www.melaneum.com/OTB/doxygen/itkMetaImageIO_8cxx-source.html_
> 
> 00154 if( strcmp(key,"AcquisitionDate") == 0 )
> 
> 00155 {
> 
> 00156 inputStream.close();
> 
> 00157 return true;
> 
> 00158 }
> 
> but have no idea on how to read/write it just through the interface of
> 
> ImageFileReader/Writer.
> 
> Please help if I missed something simple.
> 
> Thanks,
> 
> Bing
> 
>
------------------------------------------------------------------------
----
> This message and any included attachments are from Siemens Medical 
> Solutions
> and are intended only for the addressee(s).
> The information contained herein may include trade secrets or
privileged or
> otherwise confidential information. Unauthorized review, forwarding, 
> printing,
> copying, distributing, or using such information is strictly
prohibited 
> and may
> be unlawful. If you received this message in error, or have reason to 
> believe
> you are not authorized to receive it, please promptly delete this 
> message and
> notify the sender by e-mail with a copy to 
> Central.SecurityOffice at siemens.com
> 
> Thank you
> 
> 
>
------------------------------------------------------------------------
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users

----------------------------------------------------------------------------
This message and any included attachments are from Siemens Medical Solutions 
and are intended only for the addressee(s). 
The information contained herein may include trade secrets or privileged or 
otherwise confidential information. Unauthorized review, forwarding, printing, 
copying, distributing, or using such information is strictly prohibited and may 
be unlawful. If you received this message in error, or have reason to believe 
you are not authorized to receive it, please promptly delete this message and 
notify the sender by e-mail with a copy to Central.SecurityOffice at siemens.com 

Thank you


More information about the Insight-users mailing list