I have Volume and Model data.
I can use ProbeVolumeWithModel and produce an OutputModel using Slicer.
But I have to do this in code (Python) using Notebook.
If there is an example usage of ProbeVolume, can you guide me?
Thanks…
1 Like
I found the answer to my question. As follows:
#Parameters for ProbeVolumeWithModel
parameters = {}
parameters["InputVolume"] = InputVolumeNode.GetID()
parameters["InputModel"] = InputModelNode.GetID()
parameters["OutputModel"] = OutputModelNode.GetID()
probe = slicer.modules.probevolumewithmodel
slicer.cli.run(probe, None, parameters, wait_for_completion=True)
1 Like