<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">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>