<P>
Hi all,<BR>
&nbsp; &nbsp; &nbsp; &nbsp;  We are facing a problem in writing files in MetaImage format. We are using Demons algorithm for registering images. The output deformation field is written in MetaImage format(.mhd file). The problem is that the resolution of the deformation field generated by our algorithm is 1.01625&nbsp; which requires 6 digits of precision but while writing it to MertaImage format the spacing gets truncated to 1.0162, the software probably is defaulted to 5 digits of precision, thus causing a mis-alignment. We need the spacing in the deformation field to be set to 1.01625 for warping the images correctly.<BR>
We have edited the .mhd file and set the &quot;Element spacing&quot; field to 1.01625 and it seems to work, but could someone please tell me if there are any possible changes that can be made to the code to automatically generate the element spacing to 6 digit precision?<BR>
<BR>
Thanks<BR>
Vamsi<BR>

</P>
<br><br>
<a href="http://adworks.rediff.com/cgi-bin/AdWorks/sigclick.cgi/www.rediff.com/signature-home.htm/1507191490@Middle5?PARTNER=3"><IMG SRC="http://adworks.rediff.com/cgi-bin/AdWorks/sigimpress.cgi/www.rediff.com/signature-home.htm/1963059423@Middle5?OAS_query=null&PARTNER=3" BORDER=0 VSPACE=0 HSPACE=0></a>