# Way to calculate division between two images

**URL:** <https://discourse.slicer.org/t/way-to-calculate-division-between-two-images/11576>\
**Category:** Support\
**Tags:** dicom\
**Created:** [May 16, 2020, 3:10pm UTC](https://discourse.slicer.org/t/way-to-calculate-division-between-two-images/11576 "2020-05-16T15:10:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![GMA](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/gma/32/4221_2.png) [@GMA](https://discourse.slicer.org/u/GMA)\
**Post date:** [May 16, 2020, 3:10pm UTC](https://discourse.slicer.org/t/way-to-calculate-division-between-two-images/11576/1 "2020-05-16T15:10:55Z")

</div>

it is possible in Slicer to calculate a division between two images? what is the best way? I’d like to divide two parametric maps one by another

---

<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:** [May 16, 2020, 3:26pm UTC](https://discourse.slicer.org/t/way-to-calculate-division-between-two-images/11576/2 "2020-05-16T15:26:24Z")

</div>

Probably the easiest is to access the volumes as numpy arrays and divide them. Be sure the two volumes are resampled to the same grid.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [May 16, 2020, 6:11pm UTC](https://discourse.slicer.org/t/way-to-calculate-division-between-two-images/11576/3 "2020-05-16T18:11:17Z")

</div>

For reference, here is a complete example: [https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Combine\_multiple\_volumes\_into\_one](https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Combine_multiple_volumes_into_one)
