# DICOM, rt structure, uniform extensive of PTV, obtaining overlap volume between PTV and the organ

**URL:** https://discourse.slicer.org/t/dicom-rt-structure-uniform-extensive-of-ptv-obtaining-overlap-volume-between-ptv-and-the-organ/21373
**Category:** Support
**Created:** [January 10, 2022, 2:32am UTC](https://discourse.slicer.org/t/dicom-rt-structure-uniform-extensive-of-ptv-obtaining-overlap-volume-between-ptv-and-the-organ/21373 "2022-01-10T02:32:51Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Arash\_Ebrahimi](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/arash_ebrahimi/32/13762_2.png) [@Arash\_Ebrahimi](https://discourse.slicer.org/u/Arash_Ebrahimi)
#### Post date: [January 10, 2022, 2:32am UTC](https://discourse.slicer.org/t/dicom-rt-structure-uniform-extensive-of-ptv-obtaining-overlap-volume-between-ptv-and-the-organ/21373/1 "2022-01-10T02:32:51Z")

</div>

Hi to all,  
I am a medical researcher and my current project is about IMRT and machine learning.  
To get prepared the input data for Neural network model, I need to enlarge or shorten the PTV volume and calculate overlap volume between the PTV and one of the organ at risks.  
Is it possible to do it with Slicer? Or should I follow python coding?

---

<div class="post-metadata">

### Author: ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)
#### Post date: [January 10, 2022, 10:41am UTC](https://discourse.slicer.org/t/dicom-rt-structure-uniform-extensive-of-ptv-obtaining-overlap-volume-between-ptv-and-the-organ/21373/2 "2022-01-10T10:41:36Z")

</div>

You can add or remove margin using the `Margin` tool of the [Segment Editor](https://slicer.readthedocs.io/en/latest/user_guide/modules/segmenteditor.html) module.

Calculating overlap can be done using the `Logical operators` tool of the same module, after which you can calculate the volume of the intersection segment in the [Segment Statistics](https://slicer.readthedocs.io/en/latest/user_guide/modules/segmentstatistics.html) module.

Please note you’ll need to install SlicerRT in the Extension manager in order to be able to load DICOM-RT data.

---

<div class="post-metadata">

### Author: ![Arash\_Ebrahimi](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/arash_ebrahimi/32/13762_2.png) [@Arash\_Ebrahimi](https://discourse.slicer.org/u/Arash_Ebrahimi)
#### Post date: [January 10, 2022, 12:45pm UTC](https://discourse.slicer.org/t/dicom-rt-structure-uniform-extensive-of-ptv-obtaining-overlap-volume-between-ptv-and-the-organ/21373/3 "2022-01-10T12:45:18Z")

</div>

Thank u for your help.  
I found also two other modules named segment morphology and contour morphology.  
How can I use them?

---

<div class="post-metadata">

### Author: ![Arash\_Ebrahimi](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/arash_ebrahimi/32/13762_2.png) [@Arash\_Ebrahimi](https://discourse.slicer.org/u/Arash_Ebrahimi)
#### Post date: [January 10, 2022, 12:59pm UTC](https://discourse.slicer.org/t/dicom-rt-structure-uniform-extensive-of-ptv-obtaining-overlap-volume-between-ptv-and-the-organ/21373/4 "2022-01-10T12:59:42Z")

</div>

Can not find contour morphology to install it.

---

<div class="post-metadata">

### Author: ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)
#### Post date: [January 10, 2022, 1:01pm UTC](https://discourse.slicer.org/t/dicom-rt-structure-uniform-extensive-of-ptv-obtaining-overlap-volume-between-ptv-and-the-organ/21373/5 "2022-01-10T13:01:07Z")

</div>

Contour morphology is deprecated, it was replaced by Segment morphology. Most of the functionality in Segment morphology has been integrated into Segment Editor (see Logical operators effect), but it should be still functional.
