# Cut scalars from volume and model intersected interval

**URL:** <https://discourse.slicer.org/t/cut-scalars-from-volume-and-model-intersected-interval/22752>\
**Category:** Support\
**Created:** [March 29, 2022, 5:29pm UTC](https://discourse.slicer.org/t/cut-scalars-from-volume-and-model-intersected-interval/22752 "2022-03-29T17:29:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![keri](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/keri/32/11618_2.png) [@keri](https://discourse.slicer.org/u/keri)\
**Post date:** [March 29, 2022, 5:29pm UTC](https://discourse.slicer.org/t/cut-scalars-from-volume-and-model-intersected-interval/22752/1 "2022-03-29T17:29:58Z")

</div>

Hi,

I have a volume and surface that intersets that volume. Is it possible to slice/calculate amplitudes (scalars) from volume along that instersected interval?

To clarify a little:  
There is a `vtkMRMLScalarVolume` node with scalars and `vtkMRMLModelNode`. They have intersected interval. The are two possible tasks:

1. get the nearest/interpolated scalars from volume and set them as scalars for model;
2. set a window and at each model point and calculate some **mean** (median, standard deviation) value in that window. As a result I the calculated values should be displayed as model’s scalars

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [March 29, 2022, 9:05pm UTC](https://discourse.slicer.org/t/cut-scalars-from-volume-and-model-intersected-interval/22752/2 "2022-03-29T21:05:33Z")

</div>

Have a look at the Probe Volume With Model module. It does your option 1, not sure about option 2.

---

<div class="post-metadata">

**Author:** ![keri](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/keri/32/11618_2.png) [@keri](https://discourse.slicer.org/u/keri)\
**Post date:** [March 29, 2022, 9:20pm UTC](https://discourse.slicer.org/t/cut-scalars-from-volume-and-model-intersected-interval/22752/3 "2022-03-29T21:20:53Z")

</div>

Great! that works, thank you

I think the second option is reacheable through `Simple Filters` module:  
I should be able to calculate filtered volume and after that cut amplitudes from that filtered volume.

The only thing is that `Simple Filters` doesn’t work yet with Scalar Volume derived nodes but I hope the [PR](https://github.com/SimpleITK/SlicerSimpleFilters/pull/24) will be accepted in the future and this will greatly expand my opportunities.
