[ITK-users] ERROR: MeanSquaresImageToImageMetric: Too many samples map outside moving image buffer

Bradley Lowekamp blowekamp at mail.nih.gov
Wed Jul 23 07:47:51 EDT 2014


What is the error you are getting?

Brad
On Jul 23, 2014, at 6:20 AM, elena bresciani <elena.bresciani87 at gmail.com> wrote:

> Hello folks,
> 
> I have a registration problem for you. I'm using the code in the example ImageRegistration5.cxx in order to align image of drugs blisters to assess if they are the same or not.
> 
> The code works well even though for certain images couples I get the error in this message object.
> I thought the problem could be the relative difference in images size and tried to pad the smallest one to have the same size as the biggest: same error. 
> After reading comments on the same topic I tried to add to the code the line 
> 
> registration -> SetFixedImageRegion (fixedImage -> GetBufferedRegion());
> 
> again not solving my problem.
> Attached you can find example images: while I can register image "1" on image "0", if I try to register "2" on "1" I get the ERROR.
> 
> Any guess?
> 
> Cheers,
> Elena
> 
> 
> 
> <0.jpg><1.jpg><2.jpg>
> 
> _____________________________________
> 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



More information about the Insight-users mailing list