Registration scripts
Important notes, If your fixed image has a smaller field of view than your moving image, your moving image will be cropped. (This is what happens when the brain stem gets cropped out. However, when the fixed image is bigger than the moving image, we get the following error: Too many samples map outside moving image buffer. The moving image needs to be properly initialized.
In other words, only the part your moving image that overlap with the fixed image is included in your result image. To warp the whole image, you can edit the size of the domain in the transform parameter map to match your moving image, and pass your moving image and the transform parameter map to sitk.Transformix(). 10um allen is 1320x800 25um allen is 528x320 aligned volume @ 32 is 2047x1109 - unreg size matches allen10um aligned volume @ 64 is 1024x555 - unreg size matches allen25um aligned volume @ 128 is 512x278 aligned volume @50 is 1310x710 full aligned is 65500x35500 Need to scale a moving image as close as possible to the fixed image COM info: allen SC: (368, 62, 227) pred SC: 369, 64, 219 TODO, transform polygons in DB using the transformation below