Using Python for image registration

python

#1

Operating system: Linux
Slicer version: 4.8.1

I am new to Slicer and I have a task to register MRI and CT volumes using Rigid registration. I have a large data and do not want to repeat the process many times for different patients, as I currently do. I was wondering if it is possible to streamline this process, where I just use the file locations of MRI and CT volumes and Slicer does registration and saves a new file. I use Python for analyzing the images so was hoping if there was a way that I can use Python for this.
Thanks!


(Steve Pieper) #2

Yes, writing a script to run registration on your data should be straightforward.

This would be a good place to start learning about how:

https://www.slicer.org/wiki/Documentation/Nightly/Developers/Modules#Scripted_Modules

Also you should look at the CaseIterator as a start point for looping through collections of data.