Skip to content

Commit

Permalink
ENH: Add tests and baseline outputs for new computation modes
Browse files Browse the repository at this point in the history
  • Loading branch information
dzenanz committed Apr 8, 2022
1 parent f2818b0 commit 9e20e7c
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
33fc90275b95f48c5d7d1c7950bb2f68361104201481b2153960b1e7f422c81345a6db7cdce5d888a689ee3e98c40ad1f0c357b8326e0201147f5653d412add7
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
cf85743acfa2a2eafa9a84fba1321a4bf8726872887809a4433e1eec2b52e9d60bd885b6a83d7d73b8d1f87208f8b65200bbd7e993e7aa46d20ec065721827f5
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fbbf3c74f18ef385e6413ab1db1a3e2121f5d4b8d583cc573f8682e562ea097e1b43e408b893e2671121876a3e808a53d6d28ef53b3b453f8144ac68ae4b2e7e
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
f548617593d803108186679ffce4e35023c9b99f4b41937d3444ec1a4b1424484a8918bf9c1e1f1e2ac783f7dec69d41abdbf6696d3893b3d797e9edad46087a
38 changes: 38 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,44 @@ itk_add_test(NAME itkAttenuationImageFilterFixedEstimationDistanceTest
0 # computation mode
0.173493 # median attenuation
)
itk_add_test(NAME itkAttenuationImageFilterFixedDistanceModeTest
COMMAND UltrasoundTestDriver
--compare
DATA{Baseline/itkAttenuationImageFilterFixedDistanceModeTestOutput.mha}
${ITK_TEST_OUTPUT_DIR}/itkAttenuationImageFilterFixedDistanceModeTestOutput.mha
--compare
DATA{Baseline/itkAttenuationImageFilterFixedDistanceModeTestMask.mha}
${ITK_TEST_OUTPUT_DIR}/itkAttenuationImageFilterFixedDistanceModeTestMask.mha
itkAttenuationImageFilterTest
DATA{Input/UnfusedRF-a0-spectra-cropped.mhd,UnfusedRF-a0-spectra-cropped.raw}
DATA{Input/UnfusedRF-a0-spectra-label_1-cropped.mhd,UnfusedRF-a0-spectra-label_1-cropped.raw}
${ITK_TEST_OUTPUT_DIR}/itkAttenuationImageFilterFixedDistanceModeTestOutput.mha
${ITK_TEST_OUTPUT_DIR}/itkAttenuationImageFilterFixedDistanceModeTestMask.mha
600 # work units
5.0 # Distance between pixels sampled for attenuation estimation
1 # consider negative attenuations
2 # computation mode
-3.72332 # median attenuation
)
itk_add_test(NAME itkAttenuationImageFilterPairModeTest
COMMAND UltrasoundTestDriver
--compare
DATA{Baseline/itkAttenuationImageFilterPairModeTestOutput.mha}
${ITK_TEST_OUTPUT_DIR}/itkAttenuationImageFilterPairModeTestOutput.mha
--compare
DATA{Baseline/itkAttenuationImageFilterPairModeTestMask.mha}
${ITK_TEST_OUTPUT_DIR}/itkAttenuationImageFilterPairModeTestMask.mha
itkAttenuationImageFilterTest
DATA{Input/UnfusedRF-a0-spectra-cropped.mhd,UnfusedRF-a0-spectra-cropped.raw}
DATA{Input/UnfusedRF-a0-spectra-label_1-cropped.mhd,UnfusedRF-a0-spectra-label_1-cropped.raw}
${ITK_TEST_OUTPUT_DIR}/itkAttenuationImageFilterPairModeTestOutput.mha
${ITK_TEST_OUTPUT_DIR}/itkAttenuationImageFilterPairModeTestMask.mha
100 # work units
0.0 # Distance between pixels sampled for attenuation estimation
1 # consider negative attenuations
1 # computation mode
0.0693445 # median attenuation
)
itk_add_test(NAME itkBModeImageFilterTestTiming
COMMAND UltrasoundTestDriver
--compare
Expand Down

0 comments on commit 9e20e7c

Please sign in to comment.