@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.
Description
Description
Revisions and Commits
Revisions and Commits
rMITK MITK | |||
Restricted Differential Revision | rMITK499751fb1eca Fix loading and saving of LabelSet presets and make it more accessible |
Related Objects
Related Objects
- Mentioned In
- T27910: 2020 Week 43 (Late October)
Event Timeline
Comment Actions
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.
Comment Actions
- 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