Margin Tool does not change anything

Hi!

I want the brown segmentation shrink a little, and the yellow segmentation grow a little, only on the edges of both segmentations. So I selected “inside all visible segments.” But nothing changes after clicking “Apply.” Even if I make the margin size very large, nothing changes. What should I change to fix the problem?

Try setting the editable region to “Inside critical structures” (the segment you want to shrink), and then select the segment you want to grow and grow it by your desired margin. I suspect that while your masking settings seem OK to me, there is either a bug or a complication in applying them, and this is an alternative approach that should achieve the same thing.

I agree that it should work like this. Especially as you say that you tried larger margins… The only thing I can think of is maybe the invisible segments are interfering somehow. If you delete them (just for the sake of debugging) and try the same thing does it work?

What Slicer version do you use? Is it possible for you to share this scene?

Thank you. I agree it could generally achieve the similar purpose, but I thought in theory the two approaches are different.
When selecting “Inside all visibal segments,” shrink of critical structures should only change the segmentation in-between it and dental material, but both segments as a whole will not shrink(so the edge between critical structure and box will not change).
When selecting “"Inside critical structures” only, the entire critical structure segments will shrink, and that will include the edge inbetween critical structure and box.

I was using 5.11.0 I believe. Sorry I might lose the track of this file. If I can, how would I share the scene?

But I have a similar problem in another file. Here’s a video recording for it. Video Recording: Bug for Segmentation - Editable Area

I want to change the pink edge into dental material. At first when I select Editable Area as “Inside critical structures,” I can’t paint anything. But when I select “everything,” you can see that the painter tool is working.

Even if I try to select “Inside visible segmentation” and only let dental material and critical structures as visible, I still cannot paint anything.

I’m using Slicer 5.11.0-2026-01-21.

Save the scene into an MRB file (see in documentation if unsure) then share the file via the same drive you shared the video with.

I watched the video and I think the first painting attempt should work. Now the only thing that occurs to me is that the geometry of the segmentation and the underlying image might be different. If you use “inside critical structures” but with “Sphere brush” checked, does it make a difference?

Thanks!