[ITK-users] Applying transform with a rotation, translation, and offset to points

Matt McCormick matt.mccormick at kitware.com
Wed Mar 22 17:00:44 EDT 2017


Hello Andrew,

To apply the transformation, typically the methods,

  itk::Image::TransformIndexToPhysicalPoint
  itk::Transform::TransformPoint

would be used.


Nonetheless, a matrix representation from VersorRigid3DTransform can
be obtained from its base class methods
itk::MatrixOffsetTransformBase::GetMatrix and
itk::MatrixOffsetTransformBase::GetOffset.

HTH,
Matt

On Wed, Mar 22, 2017 at 3:15 PM, Andrew Harris <aharr8 at uwo.ca> wrote:
> Hello,
> I would like to be able to duplicate the applicaiton of a
> VersorRigid3DTransform that incorporates a rotation, translation, and offset
> to points selected to calculate TRE between a fixed and transformed moving
> image.  I’m confused about how the 3x3 matrix, 3x1 transform, and 3x1 offset
> are applied within a ResampleFilter.  If I could get them composed into a
> 4x4 transform matrix I could apply that to the points selected in the moving
> image and calculate the distance between the transformed points and the
> corresponding points in the fixed image.  Any help would be appreciated.
>
> --
>
> AH
>
>
> -----------------------------------------------------------------------------------------------
>
> This email and any attachments thereto may contain private, confidential,
> and privileged materials for the sole use of the intended recipient. Any
> reviewing, copying, or distribution of this email (or any attachments
> thereto) by other than the intended recipient is strictly prohibited. If you
> are not the intended recipient, please contact the sender immediately and
> permanently destroy this email and any attachments thereto.
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/insight-users
>


More information about the Insight-users mailing list