<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 08.01.0390.000">
<TITLE>Help on using itk::MetaImageIO to write a *.mhd file</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">Hi All,</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">I would like to write out an itk::</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">image to meta image format with header</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">information</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"></FONT> <FONT FACE="Calibri">stored in</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"> a</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"></FONT> <FONT FACE="Calibri">*.mhd</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"> file</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">. The default writer</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">(I use</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">the</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">itk::ImageFileWriter</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"> to choose the itk::MetaImageIO</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">automatically</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">according to the output file extension</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">)</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">will write all information,</FONT><FONT FACE="Calibri"> such as</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">TransformMatrix</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">,</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">CenterOfRotation</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">,</FONT></SPAN><SPAN LANG="en-us"> <FONT FACE="Calibri">AnatomicalOrientation</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">, etc. I just wonder if there is a way to choose the elements</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"> that</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"> I would like to output and get rid of those elements I don</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">’</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">t like</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">. For some reason, I</FONT> <FONT FACE="Calibri">don</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">’</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri">t want the data orientation</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"> listed in the</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"> output header</FONT></SPAN><SPAN LANG="en-us"><FONT FACE="Calibri"> file.</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">Thanks,</FONT></SPAN></P>
<P DIR=LTR><SPAN LANG="en-us"><FONT FACE="Calibri">Jinzhong</FONT></SPAN><SPAN LANG="en-us"></SPAN></P>
</BODY>
</HTML>