[Insight-users] Similarity3DTransform Troubles
Johnson, Hans
hans-johnson at uiowa.edu
Mon Aug 25 23:50:48 EDT 2008
Hello ITK Users,
I am having difficulty in getting the Similarity3DTransform set properly.
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.
I have the following:
R a rotation matrix that aligns the object with the voxel lattice
(confirmed that this works)
KnownLandmark - a location in the image that has been identified by hand
DesiredLandmarkLocation The location where the landmark should be after
resampling.
RigidTransformType::Pointer AlignMSPTransform=RigidTransformType::New();
AlignMSPTransform->SetCenter(DesiredLandmarkLocation);
AlignMSPTransform->SetMatrix(R);
AlignMSPTransform->Translate(DesiredLandmarkLocation-KnownLandmark);
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.
Any help would be greatly appreciated.
Thanks,
Hans
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20080825/acd928e3/attachment.htm>
More information about the Insight-users
mailing list