[Insight-users] SetUseAllPixels() in
MattesMutualInformationImageToImageMetric,
Parameters depening on Image Size
Luis Ibanez
luis.ibanez at kitware.com
Mon Apr 18 17:57:19 EDT 2005
Hi Jan,
Yes, the ratio between the number of samples mapped and the
m_NumberOfSpatialSamples is still relevant.
The fact that you "use" all the samples from the fixed image
region, doesn't mean that all of them are going to be mapped
inside the moving image. If your transform is off, you can
still end up having an empty or a too small overlap between
the two images.
The exception is telling you that the overlap between the
two images is not enough for driving the registration. You
must revisit your choices for initializing the transform
and the parameter settings for the Optimizer.
Regards,
Luis
----------------------
Jan Schreiber wrote:
> Dear Insight-Users,
>
> currently, I am working on a project, where I want to register a
> relatively small section of a moving image onto a fixed image (2d
> x-ray). The section is defined by an image mask for the moving image.
> I am using the SetUseAllPixels(true) option new in the cvs version of
> MattesMutualInformationImageToImageMetric. Unfortunately the exception
> "Too many samples map outside moving image buffer: " is often thrown.
> Are the m_NumberOfSpatialSamples of any relevance if all Pixels of the
> region are used?
>
> Best regards,
> Jan
>
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>
>
More information about the Insight-users
mailing list