Page MenuHomePhabricator

Fill tool uses wrong label value
Closed, ResolvedPublic

Description

  • Open Pic3D.nrrd
  • Create a segmentation
  • Add another layer so you are now at layer 1
  • Add two labels (so on layer 1 you now have "Label 2" and "Label 3")
  • Paint a circle in Label 3
  • Fill the circle Fills the circle with the value of Label 2

Revisions and Commits

rMITK MITK
Restricted Differential Revision
Restricted Differential Revision

Related Objects

Event Timeline

kislinsk triaged this task as Unbreak Now! priority.Oct 20 2022, 10:53 AM
kislinsk created this task.
kislinsk moved this task from Backlog to Segmentation on the MITK (v2022.10) board.
kislinsk added a subscriber: floca.

The fix is trivial. The source fill label value was always sourced from layer 0 instead of the active layer.

Before
m_FillLabelValue = labelSetImage->GetActiveLabel()->GetValue();
After
m_FillLabelValue = labelSetImage->GetActiveLabel(labelSetImage->GetActiveLayer())->GetValue();
kislinsk added a revision: Restricted Differential Revision.Oct 24 2022, 5:31 AM

Deleted branch from rMITK MITK: bugfix/T29368-SourceFillValueFromActiveLayer.