[ITK-users] [ITK] Finding Correspondence between Images using itkTransform

Matt McCormick matt.mccormick at kitware.com
Tue Apr 15 23:27:42 EDT 2014


Hi Vikash,

The transform should be applied to the Fixed Image point instead of
the Moving Image point.

Hope this helps,
Matt

On Mon, Apr 7, 2014 at 6:08 PM, Vikash Gupta <vikash.gupta at inria.fr> wrote:
> Hi everyone,
> I have two images one fixed image and one moving image a I registered them
> and I have the transformation matrix in the ITK Transform format.
>
> I think, now if I take the index [0 0 0] and calculate the physical point
> associated with the index [0 0 0],i.e., the origin using
> moving_image->TransformIndexToPhysicalPoint( index, P0 ).
>
> My assumption is that if to this physical point P0, I apply the calculated
> transform using
> P1= transform->TransformPoint(P0)
>
> and then calculate the index associated with the transformed point P1, in
> the fixed image like,
> fixed_image->TransformPhysicalPointToIndex(P0, new_index)
>
> The new_index should be the origin for the fixed image,i.e., P0 should be
> the origin of the new image.
> But I am not getting the same results.
>
> Am I doing something wrong ?
>
> Thanks for any help
> Vikash
>
>
> _____________________________________
> 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://www.itk.org/mailman/listinfo/insight-users
>
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/cgi-bin/mailman/listinfo/community
>


More information about the Insight-users mailing list