# Threshold range in Segment Editor includes values outside of range

**URL:** https://discourse.slicer.org/t/threshold-range-in-segment-editor-includes-values-outside-of-range/20869
**Category:** Support
**Tags:** segmentation, threshold
**Created:** [December 1, 2021, 6:41pm UTC](https://discourse.slicer.org/t/threshold-range-in-segment-editor-includes-values-outside-of-range/20869 "2021-12-01T18:41:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![koeglfryderyk](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/koeglfryderyk/32/14638_2.png) [@koeglfryderyk](https://discourse.slicer.org/u/koeglfryderyk)
#### Post date: [December 1, 2021, 6:41pm UTC](https://discourse.slicer.org/t/threshold-range-in-segment-editor-includes-values-outside-of-range/20869/1 "2021-12-01T18:41:04Z")

</div>

I’m using Slicer 4.11.20210226 on Windows 11.

I want to create a segmentation of all values greater than zero.

When I set the lower threshold to e.g. 0.2 it still includes pixels with values equal to zero (you can see in the screenshot that I was hovering over a value that is 0 and the entire screen is in green). Only when I set the threshold \>= 1 the 0 values disappear.

Is it maybe related to the fact that that the data array of the image is in uint8, so a float threshold doesn’t work?

(why I’m doing this - I want to create a segmentation of the entire volume and this seemed to be the easiest way)

 ![threshold](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/e/8/e8e05228ab25d0d0f0e40ed45b615016ac7f168d.png)
