<div dir="ltr">Here&#39;s one idea.<br><br>Make sure you call:<br>&nbsp;optimizer-&gt;MaximizeOn() for MutualInformationImageToImageMetric and <br>&nbsp;optimizer-&gt;MinimizeOn() for MattesMutualInformationImageToImageMetric<br><br>
- Aviv<br><br><br><br><div class="gmail_quote">On Thu, Oct 23, 2008 at 11:25 AM, Giorgos Pichis <span dir="ltr">&lt;<a href="mailto:gpichis@gmail.com">gpichis@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello all,<br>I am trying to implement an 3d registration algorithm using MutualInformationImageToImageMetric.<br>The problem is that it throws an exception:<br>&quot; All the sample point mapped to outside of the moving image &quot;<br>

<br>Details about my program:<br>1. I have done the same algorithm with MattesMutualInformation and works fine. The only changes , are about the metric, <br>and the preprocessing step for the images (Normalization and Smoothing)<br>

2. I am trying to do this algorithm with VectorRigid3D and Similarity3D Transforms. In both cases Mattes works fine, but ViolaWells implementation <br>throws the same error. (I am using VectorRigid3DTransformOptimizer and RegularStepGradientDescentOptimizer respectively)<br>

3. The images I am using are from the BrainWeb Image Repository, and are MR T1 and T2<br><br>Things I have tried but don&#39;t work:<br>1. Changing the initial maximum step length (values, 0.01, 0.1, 1, 2, 4...)<br>2. Changing Vector and Transform scales in the optimizer <br>

3. Changing Image&#39;s Pixel Type (unsigned char / short,&nbsp; or float)<br><br>Do you have any clue of what should I do?<br><br>Thank you for your time.<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></div>