# How to use ProbeFilter command?

**URL:** <https://discourse.slicer.org/t/how-to-use-probefilter-command/22467>\
**Category:** Support\
**Tags:** python\
**Created:** [March 12, 2022, 3:37pm UTC](https://discourse.slicer.org/t/how-to-use-probefilter-command/22467 "2022-03-12T15:37:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Muhammed\_Fatih\_Talu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muhammed_fatih_talu/32/14646_2.png) [@Muhammed\_Fatih\_Talu](https://discourse.slicer.org/u/Muhammed_Fatih_Talu)\
**Post date:** [March 12, 2022, 3:37pm UTC](https://discourse.slicer.org/t/how-to-use-probefilter-command/22467/1 "2022-03-12T15:37:33Z")

</div>

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…

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/5/a/5af89b775d464176e8d734081ebe43ed5e02d74e.png)

---

<div class="post-metadata">

**Author:** ![Muhammed\_Fatih\_Talu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muhammed_fatih_talu/32/14646_2.png) [@Muhammed\_Fatih\_Talu](https://discourse.slicer.org/u/Muhammed_Fatih_Talu)\
**Post date:** [March 12, 2022, 7:56pm UTC](https://discourse.slicer.org/t/how-to-use-probefilter-command/22467/4 "2022-03-12T19:56:40Z")

</div>

I found the answer to my question. As follows:

```auto
#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)

```
