Add some additional remark:<br>The intact error message is :<br><br>ExceptionObject caught !<br>itk::ExceptionObject (012AFB24)<br>Location: "unknown"<br>File: E:\ITK\InsightToolkit-3.0.1\Code\Algorithms\itkMattesMutualInformationImageToImageMetric.txx
<br>Line: 1016<br>Description: itk::ERROR: MattesMutualInformationImageToImageMetric(01808DD0):<br> Too many samples map outside moving image buffer: 0 / 52428<br><br><br><div><span class="gmail_quote">2007/3/14, Goo <
<a href="mailto:gtshowtime@gmail.com">gtshowtime@gmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">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>
</blockquote></div><br>