3D Third Order Nonlinear Transformation
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+k05x2+k06xy+k07y2+k08xz+k09yz+k10z2+k11x3+k12x2y+k13xy2+k14y3+k15x2z+k16xyz+k17y2z+k18xz2+k19yz2+k20z3
y'=k21+k22x+k23y+k24z+k25x2+k26xy+k27y2+k28xz+k29yz+k30z2+k31x3+k32x2y+k33xy2+k34y3+k35x2z+k36xyz+k37y2z+k38xz2+k39yz2+k40z3
z'=k41+k42x+k43y+k44z+k45x2+k46xy+k47y2+k48xz+k49yz+k50z2+k51x3+k52x2y+k53xy2+k54y3+k55x2z+k56xyz+k57y2z+k58xz2+k59yz2+k60z3
where:
k01-k60 are independent
parameters.
Representation in initialization files
Initialization files consist of
k01-k60 in an ascii text file.
Default initialization
If no initialization file is
specified, the default initialization is:
- k01 =(rx_dim - sx_dim*(sx_size / rx_size)) / 2
- k02 =sx_size / rx_size
- k21 =(ry_dim - sy_dim*(sy_size / ry_size)) / 2
- k23 =sy_size / ry_size
- k41 =(rz_dim - sz_dim*(sz_size / rz_size)) / 2
- k44 =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)