<HTML>
<HEAD>
<TITLE>Similarity3DTransform Troubles</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hello ITK Users,<BR>
<BR>
I am having difficulty in getting the Similarity3DTransform set properly.<BR>
<BR>
I want to apply a rotation and translation to an image so that a known location in the image ends up at a new location.<BR>
<BR>
I have the following:<BR>
<BR>
R — a rotation matrix that aligns the object with the voxel lattice (confirmed that this works)<BR>
KnownLandmark - a location in the image that has been identified by hand<BR>
DesiredLandmarkLocation – The location where the landmark should be after resampling.<BR>
<BR>
<BR>
RigidTransformType::Pointer AlignMSPTransform=RigidTransformType::New();<BR>
AlignMSPTransform->SetCenter(DesiredLandmarkLocation);<BR>
AlignMSPTransform->SetMatrix(R);<BR>
AlignMSPTransform->Translate(DesiredLandmarkLocation-KnownLandmark);<BR>
<BR>
After applying this transform, the orientation of the data is correct (i.e. The rotation seems to have worked), but the Landmark location is not correct.<BR>
<BR>
Any help would be greatly appreciated.<BR>
<BR>
Thanks,<BR>
Hans<BR>
</SPAN></FONT>
</BODY>
</HTML>