From 4d5ba160839f2144ba134369b64d590512b9aa42 Mon Sep 17 00:00:00 2001 From: Andrey Fedorov Date: Wed, 19 Jun 2024 15:24:55 -0400 Subject: [PATCH 1/2] bug: switch to integer for the skip flag re #498 It appears that defaults are ignored for boolean SEM parameters. Even though the parameter was set to true in https://github.com/QIICR/dcmqi/blob/2990dbd01d1fa61c16777950732ff19dc87318e3/apps/seg/itkimage2segimage.xml#L58-L65, the default reported by the executable was 0. Local tests show that integer parameters do not have this problem. Also switch to the most recent has for SlicerExecutionModel. --- CMakeExternals/SlicerExecutionModel.cmake | 2 +- apps/seg/itkimage2segimage.xml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeExternals/SlicerExecutionModel.cmake b/CMakeExternals/SlicerExecutionModel.cmake index 83362e53..6bda276f 100644 --- a/CMakeExternals/SlicerExecutionModel.cmake +++ b/CMakeExternals/SlicerExecutionModel.cmake @@ -34,7 +34,7 @@ if(NOT DEFINED SlicerExecutionModel_DIR AND NOT ${CMAKE_PROJECT_NAME}_USE_SYSTEM ExternalProject_SetIfNotDefined( ${proj}_REVISION_TAG - "62d0121dbb0fb057ebbd7c9ab84520accacec8bc" + "4325526343f582dd2080d0ffd93a63c8817dfb95" QUIET ) diff --git a/apps/seg/itkimage2segimage.xml b/apps/seg/itkimage2segimage.xml index c481052f..8fafec31 100644 --- a/apps/seg/itkimage2segimage.xml +++ b/apps/seg/itkimage2segimage.xml @@ -55,14 +55,14 @@ - + skipEmptySlices input skip - true + 1 Skip empty slices while encoding segmentation image. By default, empty slices will not be encoded, resulting in a smaller output file size. - + useLabelIDAsSegmentNumber From bc19b0d38081a9e1f4f7b6ee6d060eb95d448f97 Mon Sep 17 00:00:00 2001 From: Andrey Fedorov Date: Wed, 19 Jun 2024 15:33:15 -0400 Subject: [PATCH 2/2] test: update test to account for changed behavior of the parameter --- apps/seg/Testing/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/seg/Testing/CMakeLists.txt b/apps/seg/Testing/CMakeLists.txt index 008bc468..91b5bfa0 100644 --- a/apps/seg/Testing/CMakeLists.txt +++ b/apps/seg/Testing/CMakeLists.txt @@ -293,6 +293,7 @@ foreach(seg_size ${TEST_SEG_SIZES}) --inputImageList ${BASELINE}/${seg_size}/nrrd/label.nrrd --inputDICOMDirectory ${BASELINE}/${seg_size}/image --outputDICOM ${MODULE_TEMP_DIR}/${seg_size}_seg.dcm + --skip 0 ) dcmqi_add_test(