Loading multiple volumes

Hi slicer-devel,

Does anyone know a Python call in the Slicer API for loading multiple volumes at once? I have been trying different parameters with slicer.util.loadVolume() without success. I am trying to avoid for-looping across filenames with this call, since it shows a progress dialog for each individual volume.

Thank you,

Jonathan Perdomo

You can use VTK file readers to read into vtkImageData and create volume nodes and set the image data in them.

1 Like

I will try, thank you.