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>