2D Polynomial Transformations
Transformation
Given a coordinate (x,y) in the standard file, the coordinates
of the corresponding voxel in the reslice file (x',y') are given
by the equations:
First order polynomial (3 coefficients per coordinate)
- x'=kx1+kx2x+kx3y
- y'=ky1+ky2x+ky3y
Second order polynomial (6 coefficients per coordinate)
- x'=kx1+kx2x+kx3y
+kx4x2+kx5xy+kx6y2
- y'=ky1+ky2x+ky3y
+ky4x2+ky5xy+ky6y2
Third order polynomial (10 coefficients per coordinate)
Fourth order polynomial (15 coefficients per coordinate)
Fifth order polynomial (21 coefficients per coordinate)
Sixth order polynomial (28 coefficients per coordinate)
Seventh order polynomial (36 coefficients per coordinate)
Eighth order polynomial (45 coefficients per coordinate)
Ninth order polynomial (55 coefficients per coordinate)
Tenth order polynomial (66 coefficients per coordinate)
Eleventh order polynomial (78 coefficients per coordinate)
Twelfth order polynomial (91 coefficients per coordinate)
Ordered List of Polynomial Terms
- 1
- x
- y (end of 1st order)
- x2
- xy
- y2 (end of 2nd order)
- x3
- x2y
- xy2
- y3 (end of 3rd order)
- x4
- x3y
- x2y2
- xy3
- y4 (end of 4th order)
- x5
- x4y
- x3y2
- x2y3
- xy4
- y5 (end of 5th order)
- x6
- x5y
- x4y2
- x3y3
- x2y4
- xy5
- y6 (end of 6th order)
- x7
- x6y
- x5y2
- x4y3
- x3y4
- x2y5
- xy6
- y7 (end of 7th order)
- x8
- x7y
- x6y2
- x5y3
- x4y4
- x3y5
- x2y6
- xy7
- y8 (end of 8th order)
- x9
- x8y
- x7y2
- x6y3
- x5y4
- x4y5
- x3y6
- x2y7
- xy8
- y9 (end of 9th order)
- x10
- x9y
- x8y2
- x7y3
- x6y4
- x5y5
- x4y6
- x3y7
- x2y8
- xy9
- y10 (end of 10th order)
- x11
- x10y
- x9y2
- x8y3
- x7y4
- x6y5
- x5y6
- x4y7
- x3y8
- x2y9
- xy10
- y11 (end of 11th order)
- x12
- x11y
- x10y2
- x9y3
- x8y4
- x7y5
- x6y6
- x5y7
- x4y8
- x3y9
- x2y10
- xy11
- y12 (end of 12th order)
Representation in initialization files
AIR no longer uses ASCII files to initialize polynomial warps. Instead,
a .warp file can be used to initialize polynomials having
an order one greater than the order of the .warp file
Default initialization
The default initialization for this model was modified in AIR 5.1 to make it
identical to the default for alignlinear even when voxel sizes in the two files
are different
If no initialization .warp file is specified, the default initialization is:
- kx1 =((rx_dim-1) - (sx_dim-1)*(sx_size / rx_size)) / 2
- kx2 =sx_size / rx_size
- ky1 =((ry_dim-1) - (sy_dim-1)*(sy_size / ry_size)) / 2
- ky2 =sy_size / ry_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
- rx_size is the voxel x size of the reslice file
- ry_size is the voxel y 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
- rx_dim is the x dimension of the reslice file
- ry_dim is the y dimension of the reslice file
This results in the exact centers of the two files being aligned
to one another.
Modified: July 21, 2002
© 2001-2002 Roger P. Woods,
M.D.(rwoods@ucla.edu)