Skip to content

Commit

Permalink
COMP: Add tolerance for patch-based denoising tests on Apple M1
Browse files Browse the repository at this point in the history
Account for numerical differences on the arm64 Apple Silicon M1 processor.
  • Loading branch information
thewtex committed Mar 31, 2021
1 parent ffcdd5b commit 84b59dc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Modules/Filtering/Denoising/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ itk_add_test(NAME itkPatchBasedDenoisingImageFilterDefaultTest
2)
itk_add_test(NAME itkPatchBasedDenoisingImageFilterTest0
COMMAND ITKDenoisingTestDriver
--compareRadiusTolerance 2
--compareIntensityTolerance 15
--compare DATA{Baseline/PatchBasedDenoisingImageFilterTest0.mha}
${ITK_TEST_OUTPUT_DIR}/PatchBasedDenoisingImageFilterTest0.mha
itkPatchBasedDenoisingImageFilterTest
Expand All @@ -24,6 +26,8 @@ itk_add_test(NAME itkPatchBasedDenoisingImageFilterTest0
2 1 14.093142951003070 2 2 200)
itk_add_test(NAME itkPatchBasedDenoisingImageFilterTestGaussian
COMMAND ITKDenoisingTestDriver
--compareRadiusTolerance 2
--compareIntensityTolerance 15
--compare DATA{Baseline/PatchBasedDenoisingImageFilterTestGaussian.mha}
${ITK_TEST_OUTPUT_DIR}/PatchBasedDenoisingImageFilterTestGaussian.mha
itkPatchBasedDenoisingImageFilterTest
Expand All @@ -32,6 +36,8 @@ itk_add_test(NAME itkPatchBasedDenoisingImageFilterTestGaussian
2 1 14.418708309529121 2 2 200 0 1 GAUSSIAN 0.1)
itk_add_test(NAME itkPatchBasedDenoisingImageFilterTestRician
COMMAND ITKDenoisingTestDriver
--compareRadiusTolerance 2
--compareIntensityTolerance 15
--compare DATA{Baseline/PatchBasedDenoisingImageFilterTestRician.mha}
${ITK_TEST_OUTPUT_DIR}/PatchBasedDenoisingImageFilterTestRician.mha
itkPatchBasedDenoisingImageFilterTest
Expand All @@ -40,6 +46,8 @@ itk_add_test(NAME itkPatchBasedDenoisingImageFilterTestRician
2 1 12.283962106667094 2 2 200 0 1 RICIAN 0.1)
itk_add_test(NAME itkPatchBasedDenoisingImageFilterTestPoisson
COMMAND ITKDenoisingTestDriver
--compareRadiusTolerance 3
--compareIntensityTolerance 8
--compare DATA{Baseline/PatchBasedDenoisingImageFilterTestPoisson.mha}
${ITK_TEST_OUTPUT_DIR}/PatchBasedDenoisingImageFilterTestPoisson.mha
itkPatchBasedDenoisingImageFilterTest
Expand Down

0 comments on commit 84b59dc

Please sign in to comment.