3D First Order Nonlinear Transformation
A first order nonlinear transformation is actually the same as an
affine linear transformation, but the model is implemented
differently to make the parameters consistent with the parameters
used by the nonlinear transformations.
Transformation
Given a coordinate (x,y,z) in the standard file, the coordinates
of the corresponding voxel in the reslice file (x',y',z') are given
by the equations:
x'=k01+k02x+k03y+k04z
x'=k05+k06x+k07y+k08z
x'=k09+k10x+k11y+k12z
where:
k01-k12 are independent
parameters.
Representation in initialization files
Initialization files for the 3D
first order nonlinear model consist of k01-k12
in an ascii text file.
Default initialization
If no initialization file is
specified, the default initialization for the 3D first order
nonlinear model is:
- k01 =(rx_dim - sx_dim*(sx_size / rx_size)) / 2
- k02 =sx_size / rx_size
- k05 =(ry_dim - sy_dim*(sy_size / ry_size)) / 2
- k07 =sy_size / ry_size
- k09 =(rz_dim - sz_dim*(sz_size / rz_size)) / 2
- k12 =sz_size / rz_size
- All other parameters=0
where:
- sx_size is the voxel x size of the standard file
- sy_size is the voxel y size of the standard file
- sz_size is the voxel z size of the standard file
- rx_size is the voxel x size of the reslice file
- ry_size is the voxel y size of the reslice file
- rz_size is the voxel z size of the reslice file
- sx_dim is the x dimension of the standard file
- sy_dim is the y dimension of the standard file
- sz_dim is the z dimension of the standard file
- rx_dim is the x dimension of the reslice file
- ry_dim is the y dimension of the reslice file
- rz_dim is the z dimension of the reslice file
This results in the exact centers of the two files being aligned
to one another.
Modified: June 3, 1998
© 1995-98 Roger P. Woods,
M.D.(rwoods@ucla.edu)