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?