How to merge multiple segments at once

slicer1


as the images showed, I have mutiple segements. I can add them one by one through the “logic operators” functions. However, I like to merge or “add” them together at once. Are there any method to achieve this goal?

I find that the easiest to merge many segments is:

  • show all the segments that you want to add (hide those segments you don’t want to add)
  • select “Logical operators” effect
  • select “Operation” → “Fill”
  • uncheck “Bypass masking”
  • select “Masking” / “Editable area” → “Inside all visible segments”
  • click “Apply”
4 Likes

It’s work! thank you very much!

1 Like

As this is such an important feature it would be nice to have a special entry or preset in the “Operation” dropdown like “Merge visible segments” which automates that recipe

2 Likes

Would it be enough if the “Logical operators” effect allowed selection of multiple input segments?

Probably yes, maybe also “Fill/Merge”?

Could you please clarify.
I want to merge 4 segments.

Make the four segments visible.

  • select “Logical operators” effect
  • select “Operation” → “Fill”
  • uncheck “Bypass masking”
  • select “Masking” / “Editable area” → “Inside all visible segments”

%%%$$$ Now which segment should be selected before applying?

A new empty segment? Any one of the four segments…

No matter what I do, I end up with the whole volume segmented (A big box)


lassoan
Andras Lasso

Jul 8

I find that the easiest to merge many segments is:

  • show all the segments that you want to add (hide those segments you don’t want to add)
  • select “Logical operators” effect
  • select “Operation” → “Fill”
  • uncheck “Bypass masking”
  • select “Masking” / “Editable area” → “Inside all visible segments”
  • click “Apply”

You should create a new segment → “combined”. Here is a short video showing the process:

Good luck.

1 Like

[quote=“Deep_Learning, post:7, topic:30449”]

Thank you, I was missing the “allow overlap”.

Slicer 5.1:

  • show all the segments that you want to add (hide those segments you don’t want to add)
  • select “Logical operators” effect
  • select “Operation” → “Fill”
  • create a new Segment and select it
  • uncheck “Bypass masking”
  • select “Masking” / “Editable area” → “Inside all visible segments”
  • select “Modify other Segments”→ “Allow Overlap"
  • click “Apply”

Sorry lassoan, got a silly question, what happen with the overlapped volume/area between the two merged segments? would they be calculated twice Thanks!

No, the merged segment will have no knowledge about where the different regions came from. Any statistic about the merged segment will be strictly about the contained voxel data in the segment.

Thank you! this is very helpful!