How to write a recursive script to crop volumes with ROI?


(Jenaflex) #1
  1. How to write recursive script to run ‘crop volume’ (like attached screenshot) on all 3D volumes (3D volumes extracted from 4D nifti)? I have ‘UtBox.acsv’ ROI file already.

  2. (Am I supposed to, OR, ) how to make function call ‘slicer.modules.cropvolume’ in built-in Python console to crop 3D volumes with ROI (instead of using GUI).
    The documentation seems to be very limited.

Thanks!