# Subtraction of intersect area

**URL:** <https://discourse.slicer.org/t/subtraction-of-intersect-area/37923>\
**Category:** Support\
**Tags:** segmentation\
**Created:** [August 17, 2024, 5:01am UTC](https://discourse.slicer.org/t/subtraction-of-intersect-area/37923 "2024-08-17T05:01:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![khajta](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/khajta/32/76581_2.png) [@khajta](https://discourse.slicer.org/u/khajta)\
**Post date:** [August 17, 2024, 5:01am UTC](https://discourse.slicer.org/t/subtraction-of-intersect-area/37923/1 "2024-08-17T05:01:21Z")

</div>

Dear Experts,

I have 2 segment dataset, organ and lesion. Some of these lesions are overlap or in the organ, such as liver. How can I erase organ area which overlap with tumor area (other than manual editing)?

Sincerely,  
Khajonsak

---

<div class="post-metadata">

**Author:** ![philippepellerin](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/philippepellerin/32/16062_2.png) [@philippepellerin](https://discourse.slicer.org/u/philippepellerin)\
**Post date:** [August 18, 2024, 8:29am UTC](https://discourse.slicer.org/t/subtraction-of-intersect-area/37923/2 "2024-08-18T08:29:49Z")

</div>

It is easily done using the logical operator tool in the segment editor module

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/7/9/795fd2b5892f10925a371163e10bce30963a664b.png)

---

<div class="post-metadata">

**Author:** ![khajta](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/khajta/32/76581_2.png) [@khajta](https://discourse.slicer.org/u/khajta)\
**Post date:** [August 19, 2024, 3:18am UTC](https://discourse.slicer.org/t/subtraction-of-intersect-area/37923/3 "2024-08-19T03:18:31Z")

</div>

Thank you very much.
