[ITK-users] MutualInformationAffine example broken

Yanling Liu vrnova at gmail.com
Wed Jun 1 08:27:31 EDT 2016


Hello,

I downloaded the MutualInformationAffine example from
https://itk.org/Wiki/ITK/Examples/Registration/MutualInformationAffine,
compiled it using ITK 4.9.1 and it reported follow error message:

ExceptionObject caught !

itk::ExceptionObject (0x2030010)
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> >]"
File:
/home/yliu/Imaging/Libraries/ITK/InsightToolkit-4.9.1/install/include/ITK-4.9/itkMutualInformationImageToImageMetric.hxx
Line: 196
Description: itk::ERROR: MutualInformationImageToImageMetric(0x202fd10):
All the sampled point mapped to outside of the moving image

Anyone may help to fix this example? I did not change the source code of
the example at all.

Thanks,

Yanling
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20160601/fdfe58c7/attachment.html>


More information about the Insight-users mailing list