Skip to content

Commit 8eb077a

Browse files
committed
ENH: Add test for reading DICOM secondary capture spatial metadata
This is using a Visible Male RGB slice secondary capture DICOM created by David Clunie as an input, described in Issue #4109.
1 parent f545dd8 commit 8eb077a

6 files changed

Lines changed: 29 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
bafybeiai2acs4g7k6aeneziwgi3tw2i33idmnzclpyh4mt4dqvgktca7gu

Modules/IO/DCMTK/test/CMakeLists.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,18 @@ itk_add_test(
182182
DATA{${ITK_DATA_ROOT}/Input/RGBDicomTest.dcm}
183183
${ITK_TEST_OUTPUT_DIR}/itkDCMTKColorImage.png)
184184

185+
itk_add_test(
186+
NAME
187+
itkDCMTKRGBImageIOColorImageSpatialMetadataTest
188+
COMMAND
189+
ITKIODCMTKTestDriver
190+
--compare
191+
DATA{Baseline/itkDCMTKColorImageSpatialMetadata.nrrd}
192+
${ITK_TEST_OUTPUT_DIR}/itkDCMTKColorImageSpatialMetadata.nrrd
193+
itkDCMTKRGBImageIOTest
194+
DATA{Input/visible-male-rgb-slice.dcm}
195+
${ITK_TEST_OUTPUT_DIR}/itkDCMTKColorImageSpatialMetadata.nrrd)
196+
185197
itk_add_test(
186198
NAME
187199
ITKDCMTKLoggerTest
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
bafybeiadtxwvshbmde3aywkzlzcudcoxypafxrshabby6gmdmtawapjzre
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
bafybeib67xvtf44xwu4rxapchxqjflfutheq3wja47qvniz4gdwrqkqujy

Modules/IO/GDCM/test/CMakeLists.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,19 @@ itk_add_test(
278278
${ITK_TEST_OUTPUT_DIR}/itkGDCMImageReadWriteTest_RGB.mha
279279
rgb)
280280

281+
itk_add_test(
282+
NAME
283+
itkGDCMImageReadWriteTest_SC_RGB
284+
COMMAND
285+
ITKIOGDCMTestDriver
286+
--compare
287+
DATA{Baseline/itkGDCMImageReadWriteTest_SC_RGB.nrrd}
288+
${ITK_TEST_OUTPUT_DIR}/itkGDCMImageReadWriteTest_SC_RGB.nrrd
289+
itkGDCMImageReadWriteTest
290+
DATA{Input/visible-male-rgb-slice.dcm}
291+
${ITK_TEST_OUTPUT_DIR}/itkGDCMImageReadWriteTest_SC_RGB.nrrd
292+
rgb)
293+
281294
itk_add_test(
282295
NAME
283296
itkGDCM_ComplianceTestRGB_JPEG2000ICT
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
bafybeiadtxwvshbmde3aywkzlzcudcoxypafxrshabby6gmdmtawapjzre

0 commit comments

Comments
 (0)