HomePhabricator
Diffusion MITK 08700ad1179b

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: O1 MITK Reviewer Group I, kislinsk

Reviewed By: O1 MITK Reviewer Group I, kislinsk

Maniphest Tasks: T29575

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

Details

Provenance
flocaAuthored on May 11 2023, 11:58 AM
flocaPushed on May 11 2023, 4:36 PM
Reviewer
O1: MITK Reviewer Group I
Differential Revision
Restricted Differential Revision
Parents
rMITK0f7115b0d645: Also fixed picking tool which has the same problem.
rMITK52aa94dd36f3: Merge branch 'bugfix/T29599-DisableVigraRandomForestTestOnMacOS' into develop
Branches
Loading...
Tags
Loading...
Tasks
T29575: [Segmentation] Threshold tool crashes when new label is created during preview