<DIV id=RTEContent>Hi All,</DIV>  <DIV>&nbsp;</DIV>  <DIV>I am trying to do volume registration between two sets of images. One set consists of 9 slices of CT abdominal images and other set is affine transformed version of the first set. Following are components of my registration framework.</DIV>  <DIV>&nbsp;</DIV>  <DIV>Metric: MutualInformationImageToImageMetric</DIV>  <DIV>Interpolator: LinearInterpolateImageFunction</DIV>  <DIV>Optimizer: RegularStepGradientDescentOptimizer</DIV>  <DIV>Transform: AffineTransform (with&nbsp;CenteredTransformInitializer)&nbsp;</DIV>  <DIV>&nbsp;</DIV>  <DIV>I have added an observer that prints out transformation parameter at every iteration.</DIV>  <DIV>&nbsp;</DIV>  <DIV>When I run the code, it reads in both set of volumes but&nbsp;gives out an error message while initiating registration. I get the following error message before&nbsp;I see any iteration parameters.</DIV>  <DIV>&nbsp;</DIV>  <DIV>Description: itk::ERROR:
 MutualInformationImageToImageMetric(014CDF90): All the sampled point mapped to outside of the moving image.</DIV>  <DIV>&nbsp;</DIV>  <DIV>I found this post <A href="http://public.kitware.com/pipermail/insight-users/2002-October/001231.html">http://public.kitware.com/pipermail/insight-users/2002-October/001231.html</A>&nbsp;and tried all the combinations suggested..&nbsp;(i.e. translationScale, steplength, maxNumberOfIterations) But no luck so far..</DIV>  <DIV>&nbsp;</DIV>  <DIV>If metric is changed to MeanSquaresImageToImageMetric and all other components are kept same, the code runs fine.</DIV>  <DIV>&nbsp;</DIV>  <DIV>Any help is appreciated !!</DIV><p>
                <hr size=1> <a href="http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=36035/*http://music.yahoo.com/unlimited/">Yahoo! Music Unlimited - Access over 1 million songs. Try it free.</a>