<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Garamond;
        panose-1:2 2 4 4 3 3 1 1 8 3;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Garamond","serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple style='word-wrap: break-word;
-webkit-nbsp-mode: space;-webkit-line-break: after-white-space'>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Garamond","serif";
color:#1F497D'>Hi Xiaodong,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Garamond","serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Garamond","serif";
color:#1F497D'>Thank you very much for your message. I know that the data orientation
information will be discarded &#8211; 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?<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Garamond","serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Garamond","serif";
color:#1F497D'>Thank you!<o:p></o:p></span></p>

<div>

<div>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Garamond","serif";
color:#1F497D'>-Jinzhong<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Garamond","serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Xiaodong Tao
[mailto:taox@ge.com] <br>
<b>Sent:</b> Monday, May 17, 2010 6:52 PM<br>
<b>To:</b> Yang, Jinzhong<br>
<b>Cc:</b> insight-users@itk.org<br>
<b>Subject:</b> Re: [Insight-users] Help on using itk::MetaImageIO to write a
*.mhd file<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<p class=MsoNormal>Hello Jinzhong,<o:p></o:p></p>

<div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

<div>

<p class=MsoNormal>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.&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

<div>

<p class=MsoNormal>Xiaodong<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

<div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<div>

<div>

<p class=MsoNormal>On May 17, 2010, at 7:16 PM, Yang, Jinzhong wrote:<o:p></o:p></p>

</div>

<p class=MsoNormal><br>
<br>
<o:p></o:p></p>

<div>

<p><span style='font-family:"Calibri","sans-serif"'>Hi All,</span><o:p></o:p></p>

<p><span style='font-family:"Calibri","sans-serif"'>I would like to write out
an itk::image to meta image format with header</span> <span style='font-family:
"Calibri","sans-serif"'>information</span> <span style='font-family:"Calibri","sans-serif"'>stored
in a</span> <span style='font-family:"Calibri","sans-serif"'>*.mhd file. The
default writer</span> <span style='font-family:"Calibri","sans-serif"'>(I use</span>
<span style='font-family:"Calibri","sans-serif"'>the</span> <span
style='font-family:"Calibri","sans-serif"'>itk::ImageFileWriter to choose the
itk::MetaImageIO</span> <span style='font-family:"Calibri","sans-serif"'>automatically</span>
<span style='font-family:"Calibri","sans-serif"'>according to the output file
extension)</span> <span style='font-family:"Calibri","sans-serif"'>will write
all information, such as</span> <span style='font-family:"Calibri","sans-serif"'>TransformMatrix,</span>
<span style='font-family:"Calibri","sans-serif"'>CenterOfRotation,</span> <span
style='font-family:"Calibri","sans-serif"'>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&#8217;t like. For some reason, I</span> <span
style='font-family:"Calibri","sans-serif"'>don&#8217;t want the data
orientation listed in the output header file.</span><o:p></o:p></p>

<p><span style='font-family:"Calibri","sans-serif"'>Thanks,</span><o:p></o:p></p>

<p><span style='font-family:"Calibri","sans-serif"'>Jinzhong</span><o:p></o:p></p>

</div>

<p class=MsoNormal>_____________________________________<br>
Powered by <a href="http://www.kitware.com">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
http://www.kitware.com/products/protraining.html<br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
http://www.itk.org/Wiki/ITK_FAQ<br>
<br>
Follow this link to subscribe/unsubscribe:<br>
http://www.itk.org/mailman/listinfo/insight-users<o:p></o:p></p>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

</div>

</body>

</html>