HomePhabricator
Diffusion MITK 71841b57eb56

Add tests for labelsetimage

Description

Add tests for labelsetimage

Summary:
Fix wrong error output; reset labelsetimage

The labelsetimage needed to be reset in "TestRemoveLabels()" in order to
be correctly initialized. The test might have been correct but writing the image
to disk stored an incorrect labelsetimage (with the removed labels still present)

Add function to test label mask creation

In oder to test "LabelSetImage::CreateLabelMask",
a new test-function was added to the test suite.

Add function to test label erasure

In oder to test "LabelSetImage::EraseLabel" and
"LabelSetImage::EraseLabels" a new test-function was added to
the test suite.

Add and test function for single label removal

Modify function to test label merging

Modify existing function to test simultaneous merging of multiple labels.

Test Plan: start and perform the labelsetimage test

Reviewers: kislinsk, floca, O1 MITK Reviewer Group I

Reviewed By: floca, O1 MITK Reviewer Group I

Subscribers: kalali, floca, kislinsk

Maniphest Tasks: T28138

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

Details

Provenance
kalaliAuthored on May 5 2022, 6:13 PM
kalaliPushed on May 13 2022, 11:15 AM
Reviewer
O1: MITK Reviewer Group I
Differential Revision
Restricted Differential Revision
Parents
rMITKa77d9ee456f2: Modify function to test label merging
rMITK916208605b13: T29169 Extract TransferLabelContent from Tool
Branches
Unknown
Tags
Unknown
Tasks
T28138: [MultiLabel Segmentation] Add tests for the LabelSetImage