Page MenuHomePhabricator

Unhide label presets
Closed, ResolvedPublic

Description

@groehl noticed that there is a cool label preset functionailty in MITK but it is very well hidden with a generic name in the Data Manager context menu. He suggested that this could be part of the actual plugin/view.

Capture.JPG (436×549 px, 32 KB)

Revisions and Commits

Related Objects

Event Timeline

kislinsk created this task.
kislinsk updated the task description. (Show Details)

The functionality is already in a separate class LabelSetIOHelper so it is not restricted to DataManager actions per se. The code in these actions is of pretty bad quality, though. The first step will be to clean up these actions. I will also rename the actions in the context menu to Load LabelSet Preset and Save LabelSet Preset to make them more distinguishable. Then I will look into the view to see if the functionality is already there somewhere or if we must add it. I also already noticed that while the preset files contain information about layers as well, only the labels of the first layer are loaded.

kislinsk added a revision: Restricted Differential Revision.Oct 15 2020, 6:53 PM
  • I renamed the context menu entries to Load/Save LabelSet Preset
  • I made these actions also available as tool buttons in the Multilabel Segmentation View
  • I fixed quite a few bugs in the loading mechanism
    • Existing label properties are now overridden by a preset
    • Layers/labels in other layers work now
    • The state of the Multilabel Segmentation View is now updated after a preset was loaded

Deleted branch bugfix/T27851-FixLabelSetPresetsAndMakeThemMoreAccessible.