HomePhabricator
Diffusion MITK 451083e41ab8

Fix ImageToContourFilterTest

Description

Fix ImageToContourFilterTest

Summary:
The filter was changed in D672 to accept custom pixel values for
determining the contour. However, this value wasn't initialized
and the calculation for the contour extraction filter was slightly
changed for no obvious reason.

The filter is now fixed to match its previous behaviour when
no custom pixel value is specified.

Ref T29473

Test Plan:

  • Run MitkSegmentationTestDriver mitkImageToContourFilterTest
  • Use the 3D segmentation interpolation on different labels to check if the preview contours match their source pixels

Reviewers: s434n, O1 MITK Reviewer Group I

Reviewed By: s434n, O1 MITK Reviewer Group I

Maniphest Tasks: T29473

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