HomePhabricator
Diffusion MITK 12e08c059a9b

Improved tool's handling of label transfer

Description

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

  1. otsu should now work and add is labels with "otsu ..."
  2. growcut should use existing labels and just alter them.
  3. 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

Details

Provenance
flocaAuthored on May 3 2023, 11:39 AM
kislinskCommitted on May 3 2023, 11:40 AM
kislinskPushed on May 3 2023, 11:40 AM
Reviewer
O1: MITK Reviewer Group I
Differential Revision
Restricted Differential Revision
Parents
rMITKa00d6609f9b5: Improved tool's handling of label transfer
rMITKb0ecf2e828ed: Fix QmitkMultiLabelTreeModelTest
Branches
Unknown
Tags
Unknown
Tasks
T29500: [SEG] SegWithPreview tools with multiple labels are broken (if the produce a 0 label)
T29451: [SEG] Response labels all not displayed on Workbench