SegmentEditor consuming tons of memory & 3d slicer crashes

@lassoan Thank you for the advice. I have three questions with respect to this:

  1. I am a bit uncertain as to how do you combine segments while they are in a labelmap volumes, like you mentioned. I have my ROIs as STL files which I load segmentations in 3d slicer and then export them to binary label map. And now when I have these label maps of different segmentations, how to get them together?

Right, so on experimenting I found two modules that go by the name - “Add scalar volume” and “Image Label Combine”. The first one is, from what I understand for scalar volumes whereas the second one is specifically for combining labelmap volumes of same sizes. Am I correct here or is there some other piece of functionality in 3D slicer that exists and that I am missing here? The problem I get with this is - I combined labelmap volumes using the Image Label Combine module, however, in the final combined label map volume, the segmentations lose their color and they become all of one color which is not what is desired. This is surprising because in the segmentations module and in their own individual label map volumes, they still retain their color.

  1. This one I just thought of as I remembered that my original ROIs are in STL format. So I exported them to models and then using the “Merge Models” module, combined them and then exported to segmentation node. It worked - what I would be glad to know that if I automate this then i hope this is not a complex operation like with segment editor where manually it worked fine but on automating, it blew up

  2. After researching, I am not able to find much documentation code related to the two modules above - is it possible to do the above through Python (merge models and image label combine modules)?

P.S - @lassoan Could you please guide as to how this complex procedure could be avoided and done without segment editor. I found an old post where you mentioned that segmenteditor is the way to go ahead (Merging two models) but as can be seen, it might not be the best way - so if you could expand a bit on your previous suggestion - i would really appreciate it.

Thank you.