Skip to content

Commit

Permalink
ENH: Add more tests for DICOM Secondary Capture Spacing
Browse files Browse the repository at this point in the history
This updates the Lily.mha baseline to including spacing data and adds a
new DICOM Secondary Capture input and check for an output spacing for 0.5, 0.5 instead
of 1.0, 1.0 per the discussion in
InsightSoftwareConsortium#4521.

Co-authored-by: Sean McBride <sean@rogue-research.com>
  • Loading branch information
thewtex and seanm committed Apr 11, 2024
1 parent 877acba commit 5c93098
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/IO/GDCM/test/Baseline/Lily.mha.cid
@@ -1 +1 @@
bafkreidhatfhe2gdne5k5pyw2rfvnuu3qmedytq7mrdjckmw6zrc5x3srq
bafkreih4irpsshtdat5dvqmkdmgzguaol6qmz5mrskxtxmvjvrawuy32bq
@@ -0,0 +1 @@
bafkreibzdrcgqyc3xtkxqh7rfpxf5oji35b2g5yujsaiwxltp3kwmxbixe
14 changes: 14 additions & 0 deletions Modules/IO/GDCM/test/CMakeLists.txt
Expand Up @@ -86,6 +86,20 @@ itk_add_test(
${ITK_TEST_OUTPUT_DIR}/itkGDCMImageIOTest4.mha
${ITK_TEST_OUTPUT_DIR}/itkGDCMImageIOTest4Rescaled.dcm
${ITK_TEST_OUTPUT_DIR}/itkGDCMImageIOTest4Rescaled.mha)
itk_add_test(
NAME
itkGDCMImageIOSecondaryCaptureSpacingTest
COMMAND
ITKIOGDCMTestDriver
--compare
DATA{Baseline/itkGDCMImageIOSecondaryCaptureSpacingTestBaseline.mha}
${ITK_TEST_OUTPUT_DIR}/itkGDCMImageIOSecondaryCaptureSpacingTest.mha
itkGDCMImageIOTest
DATA{Input/image_slice0.dcm}
${ITK_TEST_OUTPUT_DIR}/itkGDCMImageIOSecondaryCaptureSpacingTest.dcm
${ITK_TEST_OUTPUT_DIR}/itkGDCMImageIOSecondaryCaptureSpacingTest.mha
${ITK_TEST_OUTPUT_DIR}/itkGDCMImageIOSecondaryCaptureSpacingTestRescaled.dcm
${ITK_TEST_OUTPUT_DIR}/itkGDCMImageIOSecondaryCaptureSpacingTestRescaled.mha)
itk_add_test(
NAME
itkGDCMImageIOTest5
Expand Down
1 change: 1 addition & 0 deletions Modules/IO/GDCM/test/Input/image_slice0.dcm.cid
@@ -0,0 +1 @@
bafkreigjtwunwnt7ilfegmhub73amtuyzdueyzj6ykftp7usibs57b2aya

0 comments on commit 5c93098

Please sign in to comment.