[Insight-users] Applying a transformation to an image

Julien Lamy lamy at unistra.fr
Tue Feb 14 11:01:06 EST 2012


Le 14/02/2012 14:23, Vikash Gupta a écrit :
> Hello everyone, 
> I was wondering, if it is possible to shift the physical coordinates of
> an image to a different coordinate system, by multiplying it with a
> transformation matrix, 
> 
> Example Transformation matrix 
> 
> #Insight Transform File V1.0
> # Transform 0
> Transform: AffineTransform_float_3_3
> Parameters: 0.999995 0.00285315 -0.00152394 -0.00285449 0.999995
> -0.000878949 0.00152142 0.000883289 0.999999 0.10128 0.327176 -0.158155
> FixedParameters: 0 0 0
> 
> If so, is there an available filter, which will get the job done?

Hi Vikash,
The itk::ResampleImageFilter does exactly what you want. There are usage
examples in the Registration section.

-- 
Julien


More information about the Insight-users mailing list