# Local Threshold --\> restrict threshold operation to user-defined 3D region --\> how to?

**URL:** <https://discourse.slicer.org/t/local-threshold-restrict-threshold-operation-to-user-defined-3d-region-how-to/27413>\
**Category:** Support\
**Tags:** segmentation, threshold\
**Created:** [January 23, 2023, 7:22am UTC](https://discourse.slicer.org/t/local-threshold-restrict-threshold-operation-to-user-defined-3d-region-how-to/27413 "2023-01-23T07:22:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MrMarkus](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@MrMarkus](https://discourse.slicer.org/u/MrMarkus)\
**Post date:** [January 23, 2023, 7:22am UTC](https://discourse.slicer.org/t/local-threshold-restrict-threshold-operation-to-user-defined-3d-region-how-to/27413/1 "2023-01-23T07:22:12Z")

</div>

Operating system: Win10  
Slicer version: 5.2.1 r31317 / 77da381

Hi,

maybe you could help me out here:

I am using “Local Threshold” and the region which should be segmented is further defined by the  
option “ROI” → Volume rendering ROI.

The “volume rendering roi” (actived in: ‘volume rendering’) can be adjusted in 3D with the help of the colored buttons.

My question:

- is there a way to define a differently shaped ROI instead of rectangular “volume rendering roi”? The best would be some kind of 3D ellipse that can be adjusted to the area to be segmented. In this way, the threshold operation would be performed only in a well-defined area.

Any help is greatly appreciated!

Thanks!

Best,  
Markus

---

<div class="post-metadata">

**Author:** ![chir.set](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/chir.set/32/66982_2.png) [@chir.set](https://discourse.slicer.org/u/chir.set)\
**Post date:** [January 23, 2023, 9:26am UTC](https://discourse.slicer.org/t/local-threshold-restrict-threshold-operation-to-user-defined-3d-region-how-to/27413/2 "2023-01-23T09:26:23Z")

</div>

> [@MrMarkus](#):
>
> define a differently shaped ROI

You may draw a first extent blocker segment using the Paint tool for example, with the sphere brush. Then create another segment for Local Threshold, while restraining the Editable Area in the masking options to the previous segment.
