Skip to content

Commit

Permalink
ENH: Increase itk::MultiLabelSTAPLEImageFilter coverage
Browse files Browse the repository at this point in the history
Increase `itk::MultiLabelSTAPLEImageFilter` coverage: call the
`UnsetMaximumNumberOfIterations` method. The filter's convergence will
now rely on the `m_TerminationUpdateThreshold` instance variable value.

The test's behavior and confusion matrix values remain unchanged.
  • Loading branch information
jhlegarreta authored and hjmjohnson committed Sep 19, 2022
1 parent b64bc4f commit fcfa0c6
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,9 @@ itkMultiLabelSTAPLEImageFilterTest(int, char *[])

ITK_TEST_EXPECT_TRUE(!filter->GetHasLabelForUndecidedPixels());

typename myFilterType::WeightsType terminationUpdateThreshold = 1e-5;
filter->UnsetMaximumNumberOfIterations();

typename FilterType::WeightsType terminationUpdateThreshold = 1e-5;
filter->SetTerminationUpdateThreshold(terminationUpdateThreshold);
ITK_TEST_SET_GET_VALUE(terminationUpdateThreshold, filter->GetTerminationUpdateThreshold());

Expand Down

0 comments on commit fcfa0c6

Please sign in to comment.