[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://www.itk.org/pipermail/insight-users/attachments/20140408/db5dfa9d/attachment.html>


More information about the Insight-users mailing list