HomePhabricator
Diffusion MITK 1d634abd525d

Fix crash in binary threshold tools

Description

Fix crash in binary threshold tools

Summary:
Fix crash in binary threshold tools by adapting label set to label mapping.

I don't know if it is preferred but the fix will also show the preview in target label color
instead of default green as before.

This reveals a few minor update issues, e.g., the tools do not react on label color changes or selected label changes,
which would be necessary to always show the preview in the correct color.

Fixes T29575.

Test Plan:

  • Create segmentation
  • Open "Threshold" or "UL Threshold" tool
  • Add another label
  • Press "Confirm segmentation"

The tools shouldn't crash anymore and the preview is applied to the selected label.

Reviewers: floca, O1 MITK Reviewer Group I!

Maniphest Tasks: T29575

Differential Revision: https://phabricator.mitk.org/D827

Details

Provenance
kislinskAuthored on May 10 2023, 4:29 PM
flocaCommitted on May 10 2023, 4:29 PM
flocaPushed on May 11 2023, 4:36 PM
Differential Revision
Restricted Differential Revision
Parents
rMITKf70df965d5a2: Merge branch 'bugfix/T29589-FixQtIncompatibility' into develop
Branches
Unknown
Tags
Unknown
Tasks
T29575: [Segmentation] Threshold tool crashes when new label is created during preview