Improved tool's handling of label transfer
Summary:
BREAKING mitkOtsuSegmentationFilter generates classes starting with the pixel value 1. Why: itk filter starts with 0; but in MITK Segmentation 0 is defined as unlabeled pixels. Otsu always labels all pixels, thus the MITK filter now adds +1 to the itk result. How to adapt: Check your code using mitkOtsuSegmentationFilter, if it assumes 0 as the starting/valid value. Adpat it to 1.
+ Fixed T29500
BREAKING mitkGrowCutFilter output pixel changed to unsigned short. Why: Changed to pixel type of LabelSetImage class to inorder to directly import the results of the filter into a segmentation instance.
Allow CreateNewLabel(...) to define the used name template.
BREAKING enum class LabelTransferMode was renamed to LabelTransferScope Why: better semantics. Also LabelTransferMode was now introduced to indicate if labels of the preview should be mapped into the result segmentation or if the should be added...
...to the active group.
+ Fixed T29451
+ Migrated GrowCut, Otsu and TotalSegmentator to new options
Test Plan:
code review, application test
- otsu should now work and add is labels with "otsu ..."
- growcut should use existing labels and just alter them.
- totalsegmentator should use its own label names and just add them.
Reviewers: O1 MITK Reviewer Group I, kislinsk
Reviewed By: O1 MITK Reviewer Group I, kislinsk
Subscribers: kislinsk
Maniphest Tasks: T29500, T29451
Differential Revision: https://phabricator.mitk.org/D816