I tried adapting the example ImageRegistration2.cxx to use an affine transform instead of a translation transform:<br><br><a href="http://www.itk.org/Wiki/ITK/Examples/Registration/MutualInformationAffine" target="_blank">http://www.itk.org/Wiki/ITK/Examples/Registration/MutualInformationAffine</a><br>
<br>I create synthetic images (a centered circle for the fixed image and an uncentered ellipse as the moving image) instead of reading images.<br><br>The problem is that the resulting "output.png" (the moving image transformed by the final transform) is very wrong. Using the translation transform, the ellipse moves nicely over to the sphere as I would expect. Using the affine transform, the cylinder image is wildly warped or in a very wrong position. I tried various LearningRate's and numberOfSamples - the only parameters I really saw to play with.<div>
<br></div><div>I have attached an image of the the fixed and moving images and the output from the translation only registration.</div><div><br></div><div>Any thoughts on how to get it to work with the affine transform? I am kind of expecting the ellipse to warp into a circle, but I'd at least expect it to do as well as the translation only.</div>
<div><br></div><div>Thanks,</div><div><br>David</div>