<font size="2"><font face="verdana,sans-serif">If you give extension .mha the header and raw data are in the same file. I never used the custom meta-data abilities of .mha and .nrrd formats so I cannot help you there.<br></font></font><br>

<div class="gmail_quote">On Tue, Aug 23, 2011 at 18:32, Peymon <span dir="ltr">&lt;<a href="mailto:peymon.gazi@yahoo.com">peymon.gazi@yahoo.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Thanks guys for your responses. a Raw file without header information is<br>
basically meaningless, since it carries no information about the image size,<br>
pixel type, ..., and that&#39;s why I&#39;m trying to put the image&#39;s header info at<br>
the beginning of the each raw file.<br>
Bill, I used the code snippet you sent, it has two problems:<br>
1. It produces the header information in a separate file.<br>
2. It lacks some data that I&#39;d like to see in the header file for my<br>
application.<br>
Peymon<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://itk-insight-users.2283740.n2.nabble.com/How-to-write-header-information-to-Raw-images-tp6713579p6716881.html" target="_blank">http://itk-insight-users.2283740.n2.nabble.com/How-to-write-header-information-to-Raw-images-tp6713579p6716881.html</a><br>


</font><div><div></div><div class="h5">Sent from the ITK Insight Users mailing list archive at Nabble.com.<br>
_____________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.html" target="_blank">http://www.kitware.com/products/protraining.html</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
</div></div></blockquote></div><br>