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

Vikash Gupta vikash.gupta at inria.fr
Mon Apr 7 18:08:14 EDT 2014


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 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20140408/db5dfa9d/attachment.html>
-------------- next part --------------
_____________________________________
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


More information about the Community mailing list