How to use ProbeFilter command?

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?


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, None, parameters, wait_for_completion=True)
1 Like