<div>The gradient problem is being corrected for itkOrientedImage. See:</div>
<div><a href="http://public.kitware.com/Bug/view.php?id=5081">http://public.kitware.com/Bug/view.php?id=5081</a></div>
<div>&nbsp;</div>
<div>If you need to take into account orientation, you should use itkOrientedImage. Another option is to use itkImage and reorient the series with itkOrientImageFilter so that both series have the same orientation.</div>

<div>&nbsp;</div>
<div>Bill<br></div>
<div class="gmail_quote">On Fri, Feb 1, 2008 at 4:18 AM, Stefan Klein &lt;<a href="mailto:stefan@isi.uu.nl">stefan@isi.uu.nl</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi,<br><br>Jeroen: the Origin IS taken into account. The Direction indeed not. I agree<br>with it that this should be emphasised somewhere in the documentation. It&#39;s<br>
very easy to make a mistake with that.<br><br>Kind regards,<br>Stefan.<br>
<div class="Ih2E3d"><br><br><br>At 10:02 1-2-2008, <a href="mailto:J.S.Wijnhout@lumc.nl">J.S.Wijnhout@lumc.nl</a> wrote:<br><br>&gt;Hi,<br>&gt;<br>&gt;<br>&gt;<br>&gt;I have faced (or am facing actually) the same problem. I found it<br>
&gt;espacially confusing that the itk::Image has a GetDirection and GetOrigin<br>&gt;method, however these are apparently not used in the<br>&gt;TransformContinuousIndexToPhysicalPoint method. If you want that, you<br>&gt;should use the itk::OrientedImage. But be warned, in the calculation of<br>
&gt;the metric the orientation is ignored while computing the gradient. I<br>&gt;concluded that it is best to resample your image such that both images,<br>&gt;fixed and moving, have the same orientation. It is a bit cumbersome, but<br>
&gt;it works and the results should not be too different from the results you<br>&gt;would get if the registration would properly using the image orientation.<br>&gt;Still I would like that orientation and origin are consistently used<br>
&gt;within ITK (at the very least this behavior should &nbsp;be properly documented!).<br>&gt;<br>&gt;<br>&gt;<br>&gt;best,<br>&gt;<br>&gt;Jeroen<br>&gt;<br>&gt;<br>&gt;<br>&gt;From: insight-users-bounces+j.s.wijnhout=<a href="mailto:lumc.nl@itk.org">lumc.nl@itk.org</a><br>
&gt;[mailto:<a href="mailto:insight-users-bounces+j.s.wijnhout=lumc.nl@itk.org">insight-users-bounces+j.s.wijnhout=lumc.nl@itk.org</a>] On Behalf Of<br>&gt;Thees, Sebastian<br>&gt;Sent: Friday, February 01, 2008 9:50 AM<br>
&gt;To: <a href="mailto:insight-users@itk.org">insight-users@itk.org</a><br>&gt;Subject: [Insight-users] image orientation and registration, current status ?<br>&gt;<br>&gt;<br>&gt;<br></div>
<div>
<div></div>
<div class="Wj3C7c">&gt;Dear itk developer,<br>&gt;<br>&gt;<br>&gt;<br>&gt;I am a new user of itk - so first at all, thanks for this fantastic<br>&gt;library and for providing it open source ! I was really surprised to found<br>
&gt;such a comprehensive tool for image registration (and segmentation of<br>&gt;course) on the web.<br>&gt;<br>&gt;<br>&gt;<br>&gt;However, from the medical-image-analysis point of view, there is one thing<br>&gt;I could absolutely not understood. Why do you ignore image orientation in<br>
&gt;image registration ?!?!? It so extremely limits the easy use of the<br>&gt;toolkit. Even an option to use the orientation cosines should be present.<br>&gt;<br>&gt;<br>&gt;<br>&gt;My question: Is there an example implementation of &nbsp;the solution outlined<br>
&gt;in <a href="http://public.kitware.com/Bug/view.php?id=5081" target="_blank">http://public.kitware.com/Bug/view.php?id=5081</a> by Luis Ibanez, so that<br>&gt;I can continue with that for other metrics ? Or does a patch exsists ?<br>
&gt;Hints, code snippets (i am not too much familiar with itk and template<br>&gt;techniques), etc are welcome ...<br>&gt;<br>&gt;<br>&gt;<br>&gt;best regards,<br>&gt;<br>&gt;Sebastian<br>&gt;<br>&gt;<br></div></div>&gt;_______________________________________________<br>
&gt;Insight-users mailing list<br>&gt;<a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br>&gt;<a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><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>
</blockquote></div><br>