[ITK-users] MutualInformationAffine example broken
Dženan Zukić
dzenanz at gmail.com
Wed Jun 8 02:50:08 EDT 2016
Hi Yanling,
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.
Regards,
Dženan
On Jun 1, 2016 14:27, "Yanling Liu" <vrnova at gmail.com> wrote:
> 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
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20160608/a8af5067/attachment.html>
More information about the Insight-users
mailing list