Gabriele,<br><br>itkAnalyzeImageIO does not set the origin. I&#39;m not sure if Analyze stores this information. Perhaps Hans Johnson can comment.<br><br>Bill<br><br><div class="gmail_quote">On Dec 14, 2007 10:38 AM, gabri &lt;
<a href="mailto:tartuz@gmail.com">tartuz@gmail.com</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi all,<br>I&#39;ve noticed something strange with the GetOrigin.
<br>My Images are of Analyze type (hdr+img) files and i can read then<br>correctly but after the registration process stops I need to write down<br>the result images so, using the resampleImageFilter I apply the<br>transform, setted via resampler-&gt;SetTranform() .
<br>I need also that the spacing and origin informations have to be<br>conserved so i thought that using &nbsp;resampler-&gt;SetOutputOrigin() and<br>SetOutputSpacing() this will be done succesfully but this is not real<br>infact if I open the input images , using MRICRO, spacing is conserved
<br>but origin is setted in the OutputImages to [0,0,0]that is not correct.<br><br>the problem seems to be also in the ImageFileReader infact if I print<br>out the result of fixedImageReader-&gt;GetOutput()-&gt;GetOrigin() the values
<br>are still wrongly setted to all zeros .<br><br>This happens for all images that I have .<br><br>Any suggestions?<br><br>Sincerly,<br>Gabriele<br><br><br>_______________________________________________<br>Insight-users mailing list
<br><a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br><a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br><br></blockquote>
</div><br>