Mix scripting with interaction

segmentation

(Kurt Sansom) #1

I am working on a script that can load matching images and segmentation from levelset. I want to programmatically load each pair, .e.g. case 1, case 2, etc. and then perform edits to the segmentation and then after the manual edits are complete continue the script to do additional processsing/saving and move to the next data pair.

is there a way to combine scripting with interactive input?


(Andras Lasso) #2

Case iterator extension is developed for this purpose. It is a simple scripted module, so it should be easy to customize or enhance it as needed. Pull requests with fixes and improvements are welcome.


(Kurt Sansom) #3

this seems overly complicated at the moment. is there a simpler example out there?

I tried the extension but it fails to load. I filed a bug about it. https://github.com/JoostJM/SlicerCaseIterator/issues


(Andras Lasso) #4

Thanks for testing this. The issue is now fixed. You can fix it locally on your computer by removing the first line (the Python shebang) of SlicerCaseIterator.py.

It should be easy to use this module - see documentation here. If you have any questions feel free to post them here.

@JoostJM