Operating system: win10
Slicer version: 4.10.2
I have two folders containing .IMA files. I want to load them automatically into slicer using the folder paths and then perform registration between them.
So, I need to do first
# Load Volume
[ success,movingVolumeNode ] = slicer.util.loadVolume(Movinfilename,returnNode=True)
[ success, fixedVolumeNode] = slicer.util.loadVolume(Fixedfilename,returnNode=True)
logic = SomeRegistrationLogic()
logic.registerVolumes(fixedVolumeNode, movingVolumeNode, outputVolumeNode)
But slicer.util.loadVolume takes a file not a directory. So my question is how can I import each of these directories using a python script and get them as volume node ?