<br><div>I've got a couple of images that clearly need nearly 180 degree rotation for registration, see:</div><div><br></div><div><a href="ftp://anonymous">ftp://anonymous</a>@<a href="http://ftp.buckinstitute.org/dweber/section0004_w1.tif">ftp.buckinstitute.org/dweber/section0004_w1.tif</a></div>
<div><a href="ftp://anonymous">ftp://anonymous</a>@<a href="http://ftp.buckinstitute.org/dweber/section0005_w1.tif">ftp.buckinstitute.org/dweber/section0005_w1.tif</a></div><div><br></div><div>The registration fails to rotate the images into alignment. I'm using:</div>
<div><br></div><div><div><font class="Apple-style-span" face="'courier new', monospace"><span class="Apple-style-span" style="font-size: large; ">// Registration components</span></font></div><div><font class="Apple-style-span" face="'courier new', monospace"><span class="Apple-style-span" style="font-size: large;">#include "itkImageRegistrationMethod.h"</span></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"><span class="Apple-style-span" style="font-size: large;">#include "itkMeanSquaresImageToImageMetric.h"</span></font></div><div><font class="Apple-style-span" face="'courier new', monospace"><span class="Apple-style-span" style="font-size: large;">#include "itkLinearInterpolateImageFunction.h"</span></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"><span class="Apple-style-span" style="font-size: large;">#include "itkRegularStepGradientDescentOptimizer.h"</span></font></div><div><font class="Apple-style-span" face="'courier new', monospace"><span class="Apple-style-span" style="font-size: large;">// Transforms</span></font></div>
<div><font class="Apple-style-span" face="'courier new', monospace"><span class="Apple-style-span" style="font-size: large;">#include "itkCenteredRigid2DTransform.h"</span></font></div><div><font class="Apple-style-span" face="'courier new', monospace"><span class="Apple-style-span" style="font-size: large;">#include "itkCenteredTransformInitializer.h"</span></font></div>
<div><br></div></div><div><br></div><div>What can I do about it? Have I selected the wrong transform for rotations?</div><div><br></div><div>I've prepared a package of my test program and data for download here:</div>
<div><a href="ftp://anonymous">ftp://anonymous</a>@<a href="http://ftp.buckinstitute.org/dweber/itkRegistrationTest.tar.gz">ftp.buckinstitute.org/dweber/itkRegistrationTest.tar.gz</a></div><div><br></div><div>The program is built against ITK 3.16 (and it uses Boost).</div>
<div><br></div><div>TIA,</div><div>Darren</div><div><br></div>