[Insight-users] Too many samples map outside moving image buffer

Goo gtshowtime at gmail.com
Tue Mar 13 12:44:10 EST 2007


Hi All :

I met an error message when using Mattes MI and Affine Transform.
This message is notifying me "Too many samples map outside moving image
buffer"

I guess this maybe caused by TransformPoint in
itkMattesMutualInformationImageToImageMetric.txx

   this->TransformPoint( nFixedImageSamples, parameters, mappedPoint,
                          sampleOk, movingImageValue );

but I don't know how to solve this problem.

My test data are two different modality images with the size 512*512.

The Metric setting :
  unsigned int numberOfBins = 50;
  unsigned int numberOfSamples = 10000;

The Transform setting :
  initialParameters[0] = 0.0;  // Initial offset in mm along X
  initialParameters[1] = 0.0;  // Initial offset in mm along Y
  registration->SetInitialTransformParameters( initialParameters );

The optimizer setting :
  optimizer->MinimizeOn();
  optimizer->SetMaximumStepLength( 5.00 );
  optimizer->SetMinimumStepLength( 0.001 );
  optimizer->SetNumberOfIterations( 200 );
  optimizer->SetRelaxationFactor( 0.8 );

Can anybody help me to solve this problem?

Regards.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/insight-users/attachments/20070314/d51b3ce9/attachment.html


More information about the Insight-users mailing list