Skip to content

Commit

Permalink
BUG: Fix itk::STAPLEImageFilter test argument order
Browse files Browse the repository at this point in the history
Fix `itk::STAPLEImageFilter` test argument order.

Set the `maximumIterations` and `confidenceWeight` arguments to the
wrong order in commit aa76dfb, which made it so that `maximumIterations`
was being set to 0, which in turn caused the code coverage to drop.
  • Loading branch information
jhlegarreta authored and dzenanz committed Sep 19, 2022
1 parent 833f29f commit 5b5d85e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/Filtering/ImageCompare/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ itk_add_test(NAME itkSTAPLEImageFilterTest
COMMAND ITKImageCompareTestDriver
--compare DATA{${ITK_DATA_ROOT}/Baseline/Algorithms/STAPLEImageFilterTest.mha}
${ITK_TEST_OUTPUT_DIR}/STAPLEImageFilterTest.mha
itkSTAPLEImageFilterTest 2 ${ITK_TEST_OUTPUT_DIR}/STAPLEImageFilterTest.mha 255 0.5 100 DATA{${ITK_DATA_ROOT}/Input/STAPLE1.png} DATA{${ITK_DATA_ROOT}/Input/STAPLE2.png} DATA{${ITK_DATA_ROOT}/Input/STAPLE3.png} DATA{${ITK_DATA_ROOT}/Input/STAPLE4.png})
itkSTAPLEImageFilterTest 2 ${ITK_TEST_OUTPUT_DIR}/STAPLEImageFilterTest.mha 255 100 0.5 DATA{${ITK_DATA_ROOT}/Input/STAPLE1.png} DATA{${ITK_DATA_ROOT}/Input/STAPLE2.png} DATA{${ITK_DATA_ROOT}/Input/STAPLE3.png} DATA{${ITK_DATA_ROOT}/Input/STAPLE4.png})
itk_add_test(NAME itkTestingComparisonImageFilterTest
COMMAND ITKImageCompareTestDriver
--compare DATA{Input/itkTestingComparisonImageFilterTest.png}
Expand Down

0 comments on commit 5b5d85e

Please sign in to comment.