[Insight-users] mistake in the example code?
Luis Ibanez
luis.ibanez at kitware.com
Thu Dec 8 15:00:38 EST 2005
Hi Grace,
Please read the ITK Software Guide
http://www.itk.org/ItkSoftwareGuide.pdf
In particular Section 8.3,
"Features of the Registration Framework",
pdf-page 356-361.
You must pay particular attention to section
that discusses the *direction* of the transform.
This section will explain you why the direction
of the translation is from the center of the Fixed
image to the center of the Moving image.
Regards,
Luis
----------------
Grace Chen wrote:
> Hi there,
>
> In the itk example codes, ImageRegistration5.cxx, the translation was
> set like this:
>
> transform->SetTranslation( centerMoving - centerFixed );
>
> where centerMoving is the center of the moving image and centerFixed is
> the center of the fixed image. Since translation maps moving image to
> the fixed image, shouldn't the translation of the transform
> be "centerFixed - centerMoving"?
>
> Thanx!
>
> Grace
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
More information about the Insight-users
mailing list