# Threshold fail for Segment Editor

**URL:** https://discourse.slicer.org/t/threshold-fail-for-segment-editor/4809
**Category:** Development
**Created:** [November 20, 2018, 4:33am UTC](https://discourse.slicer.org/t/threshold-fail-for-segment-editor/4809 "2018-11-20T04:33:30Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![cyufu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cyufu/32/1779_2.png) [@cyufu](https://discourse.slicer.org/u/cyufu)
#### Post date: [November 20, 2018, 4:33am UTC](https://discourse.slicer.org/t/threshold-fail-for-segment-editor/4809/1 "2018-11-20T04:33:30Z")

</div>

Operating system: windows 10 64  
Slicer version:4.11.0 2018-11-17

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/5/65e0aa009508cf016a897cea1352d21aa58b0c02.png)

Apply fail

Use for masking→Paint or Scissors（fill inside）fail

 ![GIF](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/c/7/c76879494ecee548f043ea895ee845b2182f26c4.gif)

Thanks  
Cyufu

---

<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: [November 20, 2018, 1:39pm UTC](https://discourse.slicer.org/t/threshold-fail-for-segment-editor/4809/2 "2018-11-20T13:39:14Z")

</div>

It is hard to know exactly what happens without more information such as the voxel values in the image, but here’s what I think:

- Threshold limits seem to be off, because even before you press apply, we don’t see anything in the preview. There should be a pink “pulsing” in the “in” area of the threshold
- Scissors don’t work for the same reason, because you apply the threshold as mask, and as threshold excludes everything, scissors do not fill anything

What are the scalar values in your image? Is there anything in the log that may help? (About / Report a problem)

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [November 20, 2018, 3:45pm UTC](https://discourse.slicer.org/t/threshold-fail-for-segment-editor/4809/3 "2018-11-20T15:45:54Z")

</div>

Also, could you go to Volumes module, select the master volume is selected as “Active volume” and take a screenshot of _Volume information_ section and _Histogram_ section?

---

<div class="post-metadata">

### Author: ![cyufu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cyufu/32/1779_2.png) [@cyufu](https://discourse.slicer.org/u/cyufu)
#### Post date: [November 20, 2018, 11:44pm UTC](https://discourse.slicer.org/t/threshold-fail-for-segment-editor/4809/4 "2018-11-20T23:44:04Z")

</div>

> [@lassoan](#):
>
> go to Volumes module, select the master volume is selected as “Active volume” and take a screenshot of _Volume information_ section and _Histogram_ section?

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/a/6a31c49507e5964ba0310614f1807e5540df3ac3.png)

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/7/2774719a8285cd1f742949a3a7dd758467b98f99.png)

Thanks

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [November 20, 2018, 11:52pm UTC](https://discourse.slicer.org/t/threshold-fail-for-segment-editor/4809/6 "2018-11-20T23:52:49Z")

</div>

There are two unusual properties of this volume:

1. It is very large. Try resample by a spacing factor of 4 in Crop volume module and see if you still have issues.
2. This is a binary volume, i.e., it is already segmented. Instead of segmenting it again, load the volume as a labelmap volume and then import it into segmentation (using Segmentations module Import/Export section).

---

<div class="post-metadata">

### Author: ![cyufu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cyufu/32/1779_2.png) [@cyufu](https://discourse.slicer.org/u/cyufu)
#### Post date: [November 21, 2018, 1:40am UTC](https://discourse.slicer.org/t/threshold-fail-for-segment-editor/4809/7 "2018-11-21T01:40:06Z")

</div>

> [@lassoan](#):
>
> by a spacing factor of 4 in Crop volume module

by a spacing factor of 1 in Crop volume module,success.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/0/20fffd4bd0b710cfd4e0ecaede015176f55e840a.jpeg)

thanks

---

<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: [November 21, 2018, 2:21pm UTC](https://discourse.slicer.org/t/threshold-fail-for-segment-editor/4809/8 "2018-11-21T14:21:03Z")

</div>

> [@lassoan](#):
>
> This is a binary volume, i.e., it is already segmented. Instead of segmenting it again, load the volume as a labelmap volume and then import it into segmentation (using Segmentations module Import/Export section)

@cyufu Have you tried this? I think it’s unnecessary extra work re-segmenting a segmentation. It’s much easier if you load it according to its data type to begin with.

---

<div class="post-metadata">

### Author: ![cyufu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cyufu/32/1779_2.png) [@cyufu](https://discourse.slicer.org/u/cyufu)
#### Post date: [November 21, 2018, 11:43pm UTC](https://discourse.slicer.org/t/threshold-fail-for-segment-editor/4809/9 "2018-11-21T23:43:29Z")

</div>

> [@cpinter](#):
>
> load the volume as a labelmap volume

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/2/7/27b1cba5c0d7c57de58feb542e1744f7c6b2a61c.png)

But it isn’t outline.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/5/7/57e855b43dc03ad519ae5ecb5e85479901a0cab3.png)

thanks

---

<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: [November 22, 2018, 12:17am UTC](https://discourse.slicer.org/t/threshold-fail-for-segment-editor/4809/10 "2018-11-22T00:17:01Z")

</div>

> [@cyufu](#):
>
> But it isn’t outline

Because you loaded it as regular volume. If you open the options after drag&drop in the Add data dialog, you can check a checkbox so that it’s loaded as labelmap. You can also convert it in the Volumes module to labelmap type.

Most data types can be displayed in many ways, so the way something is displayed is not a good indicator of what it is exactly. The Data module for example is a much better way to find these things out.

---

<div class="post-metadata">

### Author: ![cyufu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cyufu/32/1779_2.png) [@cyufu](https://discourse.slicer.org/u/cyufu)
#### Post date: [November 22, 2018, 12:55am UTC](https://discourse.slicer.org/t/threshold-fail-for-segment-editor/4809/11 "2018-11-22T00:55:39Z")

</div>

I have opened it correctly.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/3/6/36876ad26bdf1ac0e4f0231e97d1db7750ee2d16.png)

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/6/a62005d8f37a2dc733508134673f5cbfede94202.png)

thanks.

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [February 18, 2022, 1:18am UTC](https://discourse.slicer.org/t/threshold-fail-for-segment-editor/4809/12 "2022-02-18T01:18:31Z")

</div>

3 posts were split to a new topic: [Segment Editor Threshold effect creates large blocks](https://discourse.slicer.org/t/segment-editor-threshold-effect-creates-large-blocks/22034)
