-
Notifications
You must be signed in to change notification settings - Fork 30
Description
Expected behavior: If "Editable area" or "Editable intensity range" masking settings are set, then, at least when the "Apply" button is pressed, only regions within the allowed editable area or ranges should be modified. It would be even better if these settings were also respected in the "Initialize" step, but I understand that may require access to the internals of the algorithm which are not feasible for a segment editor effect.
Actual behavior: Editable area and Editable intensity range settings are ignored. It appears that the "Modify other segments" masking setting is handled as expected.
To reproduce: Load SampleData CTACardio and create two non-overlapping segments via painting. Select one of them, and select the Fast Marching effect. Set Editable Area to "Outside all segments" and "Modify other segments" to "Overwrite all". Click "Initialize" button. Notice that the other segment is included in the preview region despite not being part of the editable area. Click the "Apply" button. Notice that any regions of the other segment which overlapped the preview region are now overwritten, despite not being included in the editable area.
The behavior that would make sense to me would be to allow Fast Marching to generate its preview volume without any masking settings, and then to apply the editable area and editable intensity range mask. If it is feasible to do this at every stage (e.g. including during initialization display and as the user adjusts the "Segment volume" slider) that would be great! If that is not feasible, then the masking settings should still definitely be applied when the Apply button is clicked, before modifying any other segments. The editable area mask is independent of any algorithm results, and should just be intersected with the changes coming out of the algorithm to limit them if needed.
I've reproduced this behavior on Slicer 5.6 and 5.8