New Segment Editor effect: Local threshold

Thank you, that’s very kind but there’s no need for it. I already tried insalling it on a different pc and managed to get the missing tools. However, they were unable to successfully segment the brainvessels of my scans. Thus I had to do it manually :confused:

Thanks again for all of your effort to help fix my problem!

Slicer offers lots of others tools and techniques for brain vessel segmentation. If you are not happy with manual segmentation then let us know and we can help.

Thank you for this great new segment editor tool.

I think I might have found a small bug - the ctrl + click didn’t seem to work when using a transform-applied image. If this could be addressed in future versions, I think it would be really helpful (or if this actually isn’t supposed to happen, I would appreciate any pointer on how to fix this behavior). Thanks again!

1 Like

SegmentEditorExtraEffects extension serves as an incubator of new effects. They are not fully developed, but they are made available so that users can try it. If they turn out to be useful then they get hardened and polished and moved to the Slicer core.

Local Threshold effect has been proven to be quote useful, so it will likely be moved to Slicer core. Please file a bug report to GitHub - lassoan/SlicerSegmentEditorExtraEffects: Many additional segmentation tools for 3D Slicer's Segment Editor repository to make sure we fix this issue before finalizing this effect.

A post was split to a new topic: Classify voxels via a predefined threshold

For Local threshold, once the region has been established with the yellow demarcating line, how do we fill the segmentation? ‘ctrl click’ is not working no matter what combination of segmentation algorithm I choose

The whole area of the segmented should be filled with the color of the segment you want to create. Adjust the sliders.
Make sure that you do not have “editable intensity range” checked by accident and that the “minimum diameter” is adequate. Try “Growcut”. Use the latest Slicer version.

2 Likes

Does the yellow line limit the segment to the interior of the circle? Or does the segment extend past it? Even with these changes I don’t seem to be able to make segments

The range of values in the voxels inside yellow line are used to set the upper and lower range of the threshold.

If you open the “Local histogram” section of the widget you can see a histogram of the voxels and the scalar range contained inside the yellow region.

so is there any way to just demarcate the region I want to segment? For example, if I want to segment just one organ, could I draw a circle around the organ ROI and fill it with a growing region seed?

You can add a Markups ROI around the organ you want to segment and select it in the ROI field, to force the local threshold to not add any areas outside the box.

Depending on the organ and the “minimum diameter” value, you may not need to specify a ROI.

Once I’ve made the ROI and selected it for the ROI of the local threshold, then how do I get the segment to grow?

You should be able to ctrl+click (cmd+click on Mac) on one of the regions with the pulsing color.
See video here: Segment Editor: New "Local threshold" effect - YouTube.

And once I ctrl click, should there be a change in color to suggest that a segment was made? I don’t see any appreciable change besides the yellow circle staying in place

It should be filled with the same color as the segment.

What kind of structure are you trying to segment?

I am using a scalar image and trying to segment anatomical regions. I first compressed the image using the Vector to scalar module, then drew an ROI, then began using the local threshold. I am able to create the ROI and draw the threshold, but I am unable to create a segment. Using the growing region module or segment draw modules both work so I believe I should be able to create segments using this file type

I dont see yellow lines :slight_smile:
Change the sliders until the structure you want to segment is solidly filled and the surrounding is not, then
CTRL+ left-click

Maybe this helps:

For some reason I just can’t get the segment to be created, everything else on my screen looks like the video. I am using the latest Slicer version

Try it like this:

Use the CT chest sample dataset

use this nodule
image

Set the minimum diameter to 1 mm
set the sliders to the positions:
image

set everything else to

image

then CTRL+left click (both same time) into the filled nodule, it will turn green

image

Thank you very much, that did work. Is there any surefire way to make this work for 2D images?