# How to determine how many regions a segmentation intersects with in a brain segmentation

**URL:** <https://discourse.slicer.org/t/how-to-determine-how-many-regions-a-segmentation-intersects-with-in-a-brain-segmentation/39743>\
**Category:** Support\
**Created:** [October 17, 2024, 9:52am UTC](https://discourse.slicer.org/t/how-to-determine-how-many-regions-a-segmentation-intersects-with-in-a-brain-segmentation/39743 "2024-10-17T09:52:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jay1987](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jay1987/32/16183_2.png) [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Post date:** [October 17, 2024, 9:52am UTC](https://discourse.slicer.org/t/how-to-determine-how-many-regions-a-segmentation-intersects-with-in-a-brain-segmentation/39743/1 "2024-10-17T09:52:01Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/6/26662cd485877a1ab791de88275fb1f5d599a96f.jpeg)

using extension BrainParcellation can segment brain into 100 more segment , if i segment a new red segment like the picture before , how to write code to get the brain segments the intersects with this red segment
