I am trying to do use the islands effect to separate individual bones. While, it finishes correctly, it still retains the new created islands/segments in the original segment. I thought the behavior was to move them to the newly created segments. See screen captures. This is with r28340 on windows 10.
I don’t recall the functionality being like this. If this change was intentional, I find this behavior tedious. It requires me doing additional logical operations to remove them from the original segment.
I am not sure if it is relevant, but there is this error in the log file
[WARNING][Qt] 14.08.2019 13:29:35 (unknown:0) - ctkSliderWidget::setSingleStep() 0 is out of bounds. 0 100 1
You can choose the behavior using Masking / Modify other segments option. “Overwrite all” replaces content in the original segments, “Allow overlap” preserves the original segments.
@lassoan
Thanks, I have to give it a more careful try with the preview version. Dataset is on my home computer.
The issue is, after the island effect segmentation is not fully done. I still have to operate on Segment_1 (e.g., isolate pelvis, the skull, left forelimb, vertebral column etc), yet Segment_1 is unmodified. It is ok for it to remain unmodified, but at the end of the operation I would like to have a segment that I can carry on the remaining segmentation tasks without having to do additional logical operations. If I delete the segment_1, I don’t have anything else to carry those operations.
For example, if I want to segment the thorax, I would like to use the fact that both forelimbs and scapula are already segmented.
I haven’t been using the segment editor as much as the old editor personally, so may be am missing something here. What I described was the behavior in the old island effect.
We are having the same problem with islands module, split island to segments option with the “overwrite all” selected. See screenshot. This is different than the behavior in stable version, which actually “splits” the segment into new segments. This behavior requires an additional operation to “subtract” the newly created island (or islands) from the original.
See screenshot.
"Split islands to segments” option does not modify the original segment. Do you find that the behavior is different in latest stable vs latest preview version?
You can delete the original segment if you no longer need it by a single click. Is the problem that you need to do this extra click?
If you look at the image on the @hjhedgar post above, if you delete the segment_1 (green), which is the original, you will no longer have any segment that contains the hand on the left side as a single structure. This was not the behavior in the stable version.
Currently the solution we found is to subtract every other segment from the original, and that gets tedious as the number your islands increase.
I think keeping the original segment is a good idea, except the result of split islands to segment should output two additional segments, a left foot only, a right foot only, and then the original.
What we have instead is the original (untouched segment) and only the right hand. That’s our issue with the current behavior.
I could reproduce and fixed the issue. The problem was that due to some recent changes, current node selection was lost when the new segments were added. Thanks @muratmaga and @hjhedgar for reporting the issue and providing all the details.
@Sunderlandkyl You’ve recently investigated and fixed a similar problem of losing current segment selection. Could you have a look at this, too - why current selected segment ID is cleared when running slicer.vtkSlicerSegmentationsModuleLogic.ImportLabelmapToSegmentationNode? Thank you!
Split islands has a minimum island size option. If your individual islands are less than this value (which has a default of 1000 voxels), they will be removed. Try reducing this number and see if the islands are retained.