3D Polynomial 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:

First order polynomial (4 coefficients per coordinate)
Second order polynomial (10 coefficients per coordinate)
Third order polynomial (20 coefficients per coordinate)
Fourth order polynomial (35 coefficients per coordinate)
Fifth order polynomial (56 coefficients per coordinate)
Sixth order polynomial (84 coefficients per coordinate)
Seventh order polynomial (120 coefficients per coordinate)
Eighth order polynomial (165 coefficients per coordinate)
Ninth order polynomial (220 coefficients per coordinate)
Tenth order polynomial (286 coefficients per coordinate)
Eleventh order polynomial (364 coefficients per coordinate)
Twelfth order polynomial (455 coefficients per coordinate)
Ordered List of Polynomial Terms
  1. 1
  2. x
  3. y
  4. z (end of 1st order)
  5. x2
  6. xy
  7. y2
  8. xz
  9. yz
  10. z2 (end of 2nd order)
  11. x3
  12. x2y
  13. xy2
  14. y3
  15. x2z
  16. xyz
  17. y2z
  18. xz2
  19. yz2
  20. z3 (end of 3rd order)
  21. x4
  22. x3y
  23. x2y2
  24. xy3
  25. y4
  26. x3z
  27. x2yz
  28. xy2z
  29. y3z
  30. x2z2
  31. xyz2
  32. y2z2
  33. xz3
  34. yz3
  35. z4 (end of 4th order)
  36. x5
  37. x4y
  38. x3y2
  39. x2y3
  40. xy4
  41. y5
  42. x4z
  43. x3yz
  44. x2y2z
  45. xy3z
  46. y4z
  47. x3z2
  48. x2yz2
  49. xy2z2
  50. y3z2
  51. x2z3
  52. xyz3
  53. y2z3
  54. xz4
  55. yz4
  56. z5 (end of 5th order)
  57. x6
  58. x5y
  59. x4y2
  60. x3y3
  61. x2y4
  62. xy5
  63. y6
  64. x5z
  65. x4yz
  66. x3y2z
  67. x2y3z
  68. xy4z
  69. y5z
  70. x4z2
  71. x3yz2
  72. x2y2z2
  73. xy3z2
  74. y4z2
  75. x3z3
  76. x2yz3
  77. xy2z3
  78. y3z3
  79. x2z4
  80. xyz4
  81. y2z4
  82. xz5
  83. yz5
  84. z6 (end of 6th order)
  85. x7
  86. x6y
  87. x5y2
  88. x4y3
  89. x3y4
  90. x2y5
  91. xy6
  92. y7
  93. x6z
  94. x5yz
  95. x4y2z
  96. x3y3z
  97. x2y4z
  98. xy5z
  99. y6z
  100. x5z2
  101. x4yz2
  102. x3y2z2
  103. x2y3z2
  104. xy4z2
  105. y5z2
  106. x4z3
  107. x3yz3
  108. x2y2z3
  109. xy3z3
  110. y4z3
  111. x3z4
  112. x2yz4
  113. xy2z4
  114. y3z4
  115. x2z5
  116. xyz5
  117. y2z5
  118. xz6
  119. yz6
  120. z7 (end of 7th order)
  121. x8
  122. x7y
  123. x6y2
  124. x5y3
  125. x4y4
  126. x3y5
  127. x2y6
  128. xy7
  129. y8
  130. x7z
  131. x6yz
  132. x5y2z
  133. x4y3z
  134. x3y4z
  135. x2y5z
  136. xy6z
  137. y7z
  138. x6z2
  139. x5yz2
  140. x4y2z2
  141. x3y3z2
  142. x2y4z2
  143. xy5z2
  144. y6z2
  145. x5z3
  146. x4yz3
  147. x3y2z3
  148. x2y3z3
  149. xy4z3
  150. y5z3
  151. x4z4
  152. x3yz4
  153. x2y2z4
  154. xy3z4
  155. y4z4
  156. x3z5
  157. x2yz5
  158. xy2z5
  159. y3z5
  160. x2z6
  161. xyz6
  162. y2z6
  163. xz7
  164. yz7
  165. z8 (end of 8th order)
  166. x9
  167. x8y
  168. x7y2
  169. x6y3
  170. x5y4
  171. x4y5
  172. x3y6
  173. x2y7
  174. xy8
  175. y9
  176. x8z
  177. x7yz
  178. x6y2z
  179. x5y3z
  180. x4y4z
  181. x3y5z
  182. x2y6z
  183. xy7z
  184. y8z
  185. x7z2
  186. x6yz2
  187. x5y2z2
  188. x4y3z2
  189. x3y4z2
  190. x2y5z2
  191. xy6z2
  192. y7z2
  193. x6z3
  194. x5yz3
  195. x4y2z3
  196. x3y3z3
  197. x2y4z3
  198. xy5z3
  199. y6z3
  200. x5z4
  201. x4yz4
  202. x3y2z4
  203. x2y3z4
  204. xy4z4
  205. y5z4
  206. x4z5
  207. x3yz5
  208. x2y2z5
  209. xy3z5
  210. y4z5
  211. x3z6
  212. x2yz6
  213. xy2z6
  214. y3z6
  215. x2z7
  216. xyz7
  217. y2z7
  218. xz8
  219. yz8
  220. z9 (end of 9th order)
  221. x10
  222. x9y
  223. x8y2
  224. x7y3
  225. x6y4
  226. x5y5
  227. x4y6
  228. x3y7
  229. x2y8
  230. xy9
  231. y10
  232. x9z
  233. x8yz
  234. x7y2z
  235. x6y3z
  236. x5y4z
  237. x4y5z
  238. x3y6z
  239. x2y7z
  240. xy8z
  241. y9z
  242. x8z2
  243. x7yz2
  244. x6y2z2
  245. x5y3z2
  246. x4y4z2
  247. x3y5z2
  248. x2y6z2
  249. xy7z2
  250. y8z2
  251. x7z3
  252. x6yz3
  253. x5y2z3
  254. x4y3z3
  255. x3y4z3
  256. x2y5z3
  257. xy6z3
  258. y7z3
  259. x6z4
  260. x5yz4
  261. x4y2z4
  262. x3y3z4
  263. x2y4z4
  264. xy5z4
  265. y6z4
  266. x5z5
  267. x4yz5
  268. x3y2z5
  269. x2y3z5
  270. xy4z5
  271. y5z5
  272. x4z6
  273. x3yz6
  274. x2y2z6
  275. xy3z6
  276. y4z6
  277. x3z7
  278. x2yz7
  279. xy2z7
  280. y3z7
  281. x2z8
  282. xyz8
  283. y2z8
  284. xz9
  285. yz9
  286. z10 (end of 10th order)
  287. x11
  288. x10y
  289. x9y2
  290. x8y3
  291. x7y4
  292. x6y5
  293. x5y6
  294. x4y7
  295. x3y8
  296. x2y9
  297. xy10
  298. y11
  299. x10z
  300. x9yz
  301. x8y2z
  302. x7y3z
  303. x6y4z
  304. x5y5z
  305. x4y6z
  306. x3y7z
  307. x2y8z
  308. xy9z
  309. y10z
  310. x9z2
  311. x8yz2
  312. x7y2z2
  313. x6y3z2
  314. x5y4z2
  315. x4y5z2
  316. x3y6z2
  317. x2y7z2
  318. xy8z2
  319. y9z2
  320. x8z3
  321. x7yz3
  322. x6y2z3
  323. x5y3z3
  324. x4y4z3
  325. x3y5z3
  326. x2y6z3
  327. xy7z3
  328. y8z3
  329. x7z4
  330. x6yz4
  331. x5y2z4
  332. x4y3z4
  333. x3y4z4
  334. x2y5z4
  335. xy6z4
  336. y7z4
  337. x6z5
  338. x5yz5
  339. x4y2z5
  340. x3y3z5
  341. x2y4z5
  342. xy5z5
  343. y6z5
  344. x5z6
  345. x4yz6
  346. x3y2z6
  347. x2y3z6
  348. xy4z6
  349. y5z6
  350. x4z7
  351. x3yz7
  352. x2y2z7
  353. xy3z7
  354. y4z7
  355. x3z8
  356. x2yz8
  357. xy2z8
  358. y3z8
  359. x2z9
  360. xyz9
  361. y2z9
  362. xz10
  363. yz10
  364. z11 (end of 11th order)
  365. x12
  366. x11y
  367. x10y2
  368. x9y3
  369. x8y4
  370. x7y5
  371. x6y6
  372. x5y7
  373. x4y8
  374. x3y9
  375. x2y10
  376. xy11
  377. y12
  378. x11z
  379. x10yz
  380. x9y2z
  381. x8y3z
  382. x7y4z
  383. x6y5z
  384. x5y6z
  385. x4y7z
  386. x3y8z
  387. x2y9z
  388. xy10z
  389. y11z
  390. x10z2
  391. x9yz2
  392. x8y2z2
  393. x7y3z2
  394. x6y4z2
  395. x5y5z2
  396. x4y6z2
  397. x3y7z2
  398. x2y8z2
  399. xy9z2
  400. y10z2
  401. x9z3
  402. x8yz3
  403. x7y2z3
  404. x6y3z3
  405. x5y4z3
  406. x4y5z3
  407. x3y6z3
  408. x2y7z3
  409. xy8z3
  410. y9z3
  411. x8z4
  412. x7yz4
  413. x6y2z4
  414. x5y3z4
  415. x4y4z4
  416. x3y5z4
  417. x2y6z4
  418. xy7z4
  419. y8z4
  420. x7z5
  421. x6yz5
  422. x5y2z5
  423. x4y3z5
  424. x3y4z5
  425. x2y5z5
  426. xy6z5
  427. y7z5
  428. x6z6
  429. x5yz6
  430. x4y2z6
  431. x3y3z6
  432. x2y4z6
  433. xy5z6
  434. y6z6
  435. x5z7
  436. x4yz7
  437. x3y2z7
  438. x2y3z7
  439. xy4z7
  440. y5z7
  441. x4z8
  442. x3yz8
  443. x2y2z8
  444. xy3z8
  445. y4z8
  446. x3z9
  447. x2yz9
  448. xy2z9
  449. y3z9
  450. x2z10
  451. xyz10
  452. y2z10
  453. xz11
  454. yz11
  455. z12 (end of 12th order)

Representation in initialization files AIR 5.0

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 AIR 5.1

If no initialization .warp file is specified, the default initialization is:

where:

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)