[Insight-users] Help on using itk::MetaImageIO to write a *.mhd file
Luis Ibanez
luis.ibanez at kitware.com
Mon May 24 13:40:13 EDT 2010
Hi Jinzhong,
You could manipulate the image information:
* Spacing
* Origin
* Orientation
with the filter:
http://public.kitware.com/Insight/Doxygen/html/classitk_1_1ChangeInformationImageFilter.html
before you send the image to the writer.
This is something that you should do very carefully
if you are dealing with real patient data.
Regards,
Luis
----------------------------------------------------------------------------------------
On Tue, May 18, 2010 at 12:04 AM, Yang, Jinzhong <jinzhong76 at gmail.com> wrote:
> Hi Xiaodong,
>
>
>
> Thank you very much for your message. I know that the data orientation
> information will be discarded – but I intentionally to do so. I have some
> available data without direction information. I simply like to be consistent
> with the available data since I need to run a third party software to
> compare the available data with the data I generate. Do you know any ways to
> control the fields that are written out in the Meta Header file?
>
>
>
> Thank you!
>
> -Jinzhong
>
>
>
> From: Xiaodong Tao [mailto:taox at ge.com]
> Sent: Monday, May 17, 2010 6:52 PM
> To: Yang, Jinzhong
> Cc: insight-users at itk.org
> Subject: Re: [Insight-users] Help on using itk::MetaImageIO to write a *.mhd
> file
>
>
>
> Hello Jinzhong,
>
>
>
> If you do not write out the image information in its entirety, you may not
> load them back (process them and visualize them) correctly unless you
> remember all the information you discard.
>
>
>
> Xiaodong
>
>
>
>
>
> On May 17, 2010, at 7:16 PM, Yang, Jinzhong wrote:
>
> Hi All,
>
> I would like to write out an itk::image to meta image format with header
> information stored in a *.mhd file. The default writer (I use the
> itk::ImageFileWriter to choose the itk::MetaImageIO automatically according
> to the output file extension) will write all information, such as
> TransformMatrix, CenterOfRotation, AnatomicalOrientation, etc. I just wonder
> if there is a way to choose the elements that I would like to output and get
> rid of those elements I don’t like. For some reason, I don’t want the data
> orientation listed in the output header file.
>
> Thanks,
>
> Jinzhong
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
>
More information about the Insight-users
mailing list