Hi All :<br><br>I met an error message when using Mattes MI and Affine Transform.<br>This message is notifying me "Too many samples map outside moving image buffer"<br><br>I guess this maybe caused by TransformPoint in
itkMattesMutualInformationImageToImageMetric.txx<br><br> this->TransformPoint( nFixedImageSamples, parameters, mappedPoint, <br> sampleOk, movingImageValue );<br><br>but I don't know how to solve this problem.
<br><br>My test data are two different modality images with the size 512*512.<br><br>The Metric setting :<br> unsigned int numberOfBins = 50;<br> unsigned int numberOfSamples = 10000;<br><br>The Transform setting :<br> initialParameters[0] =
0.0; // Initial offset in mm along X<br> initialParameters[1] = 0.0; // Initial offset in mm along Y<br> registration->SetInitialTransformParameters( initialParameters );<br><br>The optimizer setting :<br> optimizer->MinimizeOn();
<br> optimizer->SetMaximumStepLength( 5.00 );<br> optimizer->SetMinimumStepLength( 0.001 );<br> optimizer->SetNumberOfIterations( 200 );<br> optimizer->SetRelaxationFactor( 0.8 );<br><br>Can anybody help me to solve this problem?
<br><br>Regards.<br>