Thanks for your answer, There is answer you need to help me.<div class="im"><br><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><br></div><div>1) Are you using the CenteredTransformInitializer ?</div></blockquote></div><div><br>Yes, I' m using this transform.<br></div><div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><br></div><div>2) What are the sizes (in pixels along each dimension) of </div><div> your Fixed and Moving images ?</div></blockquote></div><div><br>I'm
working on 1000*1000 pixel images ( for both moving and fixed Image (I
had some problems due to Mates MutualInformation when my moving image
was bigger than my fixed image (in pixel number)<br>
</div><div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><br></div><div>3) What are the pixel spacings of your two images ?</div></blockquote></div><div> <br>The pixel spacing of my images is 10m / pixel<br></div><div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><br></div><div>4) What are the origins of your two images ?<br></div></blockquote></div><div><br>If you are asking about physical parameters of Images, my origins are [0 ; 0]<br></div><div class="im"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><br></div><div>5) What exact values are you using in the optimizer scales array ?</div>
</blockquote></div><div><br>There is my Optimizer Scale array :<br></div><br> const double translationScale = 1.0 / 10.0;<br><br> optimizerScales[0] = 1.0;<br> optimizerScales[1] = 1.0;<br> optimizerScales[2] = 1.0;<br>
optimizerScales[3] = 1.0;<br> optimizerScales[4] = translationScale;<br> optimizerScales[5] = translationScale;<br><br><br>I
tried as I explained with a Translation Scale proportional to the
diagonal length of the image (much much lower) without success. <br>_<br><br>An other Question is : what's the difference between <br><br>transform->GetOffset (at the end of the program )<br><br>and<br> <br>registration->GetLastTransformParameters();<br>
const double finalTranslationX = finalParameters[4];<br>const double finalTranslationY = finalParameters[5];<br><br>I supposed it should be the same no ? (<i>"itk::AffineTransform is stored as a matrix and a vector (offset). The vector is the translation component." [<a href="http://www.cmake.org/pipermail/insight-users/2005-April/012875.html">http://www.cmake.org/pipermail/insight-users/2005-April/012875.html</a>]</i> )<br>
<br><br>Thanks a lot for your help and your expertise !<br>yoann<br>