<DIV>It is OK, Thank you everymuch! Alex.</DIV>
<DIV>&nbsp;</DIV>
<DIV>regards,</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; mexiao<BR><BR></DIV>
<DIV></DIV><BR><PRE>在2009-06-02&nbsp;22:58:23,"Oleksandr&nbsp;Dzyubak"&nbsp;&lt;adzyubak@gmail.com&gt;&nbsp;写道:
&gt;
&gt;You&nbsp;have&nbsp;16&nbsp;bit&nbsp;pixel&nbsp;width&nbsp;that&nbsp;corresponds&nbsp;to&nbsp;the&nbsp;integral&nbsp;type&nbsp;"short".
&gt;Thus&nbsp;as&nbsp;ElementType&nbsp;you&nbsp;have&nbsp;to&nbsp;use&nbsp;a&nbsp;type&nbsp;short&nbsp;(or&nbsp;unsigned&nbsp;short).
&gt;
&gt;Good&nbsp;luck,
&gt;
&gt;Alex
&gt;
&gt;
&gt;x0_y0_0&nbsp;wrote:
&gt;&gt;
&gt;&gt;&nbsp;hi,everyone,
&gt;&gt;&nbsp;I&nbsp;have&nbsp;a&nbsp;RAW&nbsp;data&nbsp;of&nbsp;MR&nbsp;image,and&nbsp;its&nbsp;format&nbsp;is&nbsp;256*256*256,&nbsp;with&nbsp;
&gt;&gt;&nbsp;16bits&nbsp;stored&nbsp;and&nbsp;12bits&nbsp;effective.&nbsp;I&nbsp;want&nbsp;to&nbsp;write&nbsp;a&nbsp;mhd/mha&nbsp;file&nbsp;for&nbsp;
&gt;&gt;&nbsp;it&nbsp;.I&nbsp;tried&nbsp;to&nbsp;write&nbsp;it&nbsp;,but&nbsp;it&nbsp;was&nbsp;wrong.
&gt;&gt;&nbsp;NDims&nbsp;=&nbsp;3
&gt;&gt;&nbsp;ElementByteOrderMSB&nbsp;=&nbsp;False
&gt;&gt;&nbsp;ElementSpacing&nbsp;=&nbsp;0.36&nbsp;0.36&nbsp;0.5
&gt;&gt;&nbsp;DimSize&nbsp;=&nbsp;256&nbsp;256&nbsp;256
&gt;&gt;&nbsp;ElementType&nbsp;=&nbsp;MET_UCHAR
&gt;&gt;&nbsp;Offset&nbsp;=&nbsp;0&nbsp;0&nbsp;0
&gt;&gt;&nbsp;ElementDataFile&nbsp;=&nbsp;patient.raw
&gt;&gt;&nbsp;could&nbsp;you&nbsp;tell&nbsp;me&nbsp;to&nbsp;I&nbsp;write?
&gt;&gt;&nbsp;regards,
&gt;&gt;&nbsp;mexiao
&gt;&gt;
&gt;&gt;
&gt;&gt;&nbsp;------------------------------------------------------------------------
&gt;&gt;&nbsp;业务订单流失怎么办?&nbsp;&lt;http://qiye.163.com/?ft=1&gt;
&gt;&gt;&nbsp;------------------------------------------------------------------------
&gt;&gt;
&gt;&gt;&nbsp;_____________________________________
&gt;&gt;&nbsp;Powered&nbsp;by&nbsp;www.kitware.com
&gt;&gt;
&gt;&gt;&nbsp;Visit&nbsp;other&nbsp;Kitware&nbsp;open-source&nbsp;projects&nbsp;at
&gt;&gt;&nbsp;http://www.kitware.com/opensource/opensource.html
&gt;&gt;
&gt;&gt;&nbsp;Please&nbsp;keep&nbsp;messages&nbsp;on-topic&nbsp;and&nbsp;check&nbsp;the&nbsp;ITK&nbsp;FAQ&nbsp;at:&nbsp;http://www.itk.org/Wiki/ITK_FAQ
&gt;&gt;
&gt;&gt;&nbsp;Follow&nbsp;this&nbsp;link&nbsp;to&nbsp;subscribe/unsubscribe:
&gt;&gt;&nbsp;http://www.itk.org/mailman/listinfo/insight-users
&gt;&gt;&nbsp;&nbsp;&nbsp;
&gt;
</PRE><br><!-- footer --><br><span title="neteasefooter"/><hr/>
<a href="http://qiye.163.com/?ft=1">业务订单流失怎么办?</a>
</span>