<p dir="ltr">Hi Yanling,</p>
<p dir="ltr">The usual reason for this is that the images do not overlap in image space, either with the initial transformation or due to divergence of the registration. If you run it in debug mode, you will have more information.</p>
<p dir="ltr">Regards,<br>
Dženan </p>
<div class="gmail_quote">On Jun 1, 2016 14:27, "Yanling Liu" <<a href="mailto:vrnova@gmail.com">vrnova@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hello,<br><br></div>I downloaded the MutualInformationAffine example from <a href="https://itk.org/Wiki/ITK/Examples/Registration/MutualInformationAffine" target="_blank">https://itk.org/Wiki/ITK/Examples/Registration/MutualInformationAffine</a>, compiled it using ITK 4.9.1 and it reported follow error message:<br><br>ExceptionObject caught !<br><br>itk::ExceptionObject (0x2030010)<br>Location: "void itk::MutualInformationImageToImageMetric<TFixedImage, TMovingImage>::SampleFixedImageDomain(itk::MutualInformationImageToImageMetric<TFixedImage, TMovingImage>::SpatialSampleContainer&) const [with TFixedImage = itk::Image<float, 2u>; TMovingImage = itk::Image<float, 2u>; itk::MutualInformationImageToImageMetric<TFixedImage, TMovingImage>::SpatialSampleContainer = std::vector<itk::MutualInformationImageToImageMetric<itk::Image<float, 2u>, itk::Image<float, 2u> >::SpatialSample, std::allocator<itk::MutualInformationImageToImageMetric<itk::Image<float, 2u>, itk::Image<float, 2u> >::SpatialSample> >]" <br>File: /home/yliu/Imaging/Libraries/ITK/InsightToolkit-4.9.1/install/include/ITK-4.9/itkMutualInformationImageToImageMetric.hxx<br>Line: 196<br>Description: itk::ERROR: MutualInformationImageToImageMetric(0x202fd10): All the sampled point mapped to outside of the moving image<br><br></div>Anyone may help to fix this example? I did not change the source code of the example at all.<br><br></div>Thanks,<br><br></div>Yanling<br></div>
<br>_____________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" rel="noreferrer" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
<br></blockquote></div>