Skip to content

Commit

Permalink
ENH: Add test for reading DICOM secondary capture spatial metadata
Browse files Browse the repository at this point in the history
This is using a Visible Male RGB slice secondary capture DICOM created by David Clunie as an input,
described in Issue #4109.
  • Loading branch information
thewtex committed Mar 25, 2024
1 parent f545dd8 commit 8eb077a
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bafybeiai2acs4g7k6aeneziwgi3tw2i33idmnzclpyh4mt4dqvgktca7gu
12 changes: 12 additions & 0 deletions Modules/IO/DCMTK/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,18 @@ itk_add_test(
DATA{${ITK_DATA_ROOT}/Input/RGBDicomTest.dcm}
${ITK_TEST_OUTPUT_DIR}/itkDCMTKColorImage.png)

itk_add_test(
NAME
itkDCMTKRGBImageIOColorImageSpatialMetadataTest
COMMAND
ITKIODCMTKTestDriver
--compare
DATA{Baseline/itkDCMTKColorImageSpatialMetadata.nrrd}
${ITK_TEST_OUTPUT_DIR}/itkDCMTKColorImageSpatialMetadata.nrrd
itkDCMTKRGBImageIOTest
DATA{Input/visible-male-rgb-slice.dcm}
${ITK_TEST_OUTPUT_DIR}/itkDCMTKColorImageSpatialMetadata.nrrd)

itk_add_test(
NAME
ITKDCMTKLoggerTest
Expand Down
1 change: 1 addition & 0 deletions Modules/IO/DCMTK/test/Input/visible-male-rgb-slice.dcm.cid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bafybeiadtxwvshbmde3aywkzlzcudcoxypafxrshabby6gmdmtawapjzre
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bafybeib67xvtf44xwu4rxapchxqjflfutheq3wja47qvniz4gdwrqkqujy
13 changes: 13 additions & 0 deletions Modules/IO/GDCM/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,19 @@ itk_add_test(
${ITK_TEST_OUTPUT_DIR}/itkGDCMImageReadWriteTest_RGB.mha
rgb)

itk_add_test(
NAME
itkGDCMImageReadWriteTest_SC_RGB
COMMAND
ITKIOGDCMTestDriver
--compare
DATA{Baseline/itkGDCMImageReadWriteTest_SC_RGB.nrrd}
${ITK_TEST_OUTPUT_DIR}/itkGDCMImageReadWriteTest_SC_RGB.nrrd
itkGDCMImageReadWriteTest
DATA{Input/visible-male-rgb-slice.dcm}
${ITK_TEST_OUTPUT_DIR}/itkGDCMImageReadWriteTest_SC_RGB.nrrd
rgb)

itk_add_test(
NAME
itkGDCM_ComplianceTestRGB_JPEG2000ICT
Expand Down
1 change: 1 addition & 0 deletions Modules/IO/GDCM/test/Input/visible-male-rgb-slice.dcm.cid
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bafybeiadtxwvshbmde3aywkzlzcudcoxypafxrshabby6gmdmtawapjzre

0 comments on commit 8eb077a

Please sign in to comment.