Skip to content

Commit 34aae2d

Browse files
authored
Merge pull request #495 from QIICR/merge-beyond-nrrd
allow saving merged segments to all formats
2 parents d865fca + c0bef7a commit 34aae2d

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

.github/workflows/cmake-macos.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
fetch-tags: true
2525
- uses: actions/setup-python@v4
2626
with:
27-
python-version: '3.7.14'
27+
python-version: '3.10.11'
2828

2929
# Install build tools (cmake and ninja) as well as jsondiff
3030
- name: "Install jsondiff"
@@ -119,4 +119,4 @@ jobs:
119119
--prerelease-packages ${{ github.workspace }}/dcmqi-build/dcmqi-build/dcmqi-*-mac-*.tar.gz \
120120
--prerelease-packages-clear-pattern "dcmqi-*-mac-*" \
121121
--prerelease-packages-keep-pattern "*<COMMIT_DATE>-<COMMIT_SHORT_SHA>*" \
122-
--exit-success-if-missing-token --token ${{ secrets.GA_TOKEN }}
122+
--exit-success-if-missing-token --token ${{ secrets.GA_TOKEN }}

apps/seg/segimage2itkimage.cxx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@ int main(int argc, char *argv[])
2525
dcmtk::log4cplus::BasicConfigurator::doConfigure();
2626
}
2727

28-
if (mergeSegments && outputType != "nrrd") {
29-
std::cerr << "ERROR: mergeSegments option is only supported when output format is NRRD!" << std::endl;
30-
return EXIT_FAILURE;
31-
}
32-
3328
if(helper::isUndefinedOrPathDoesNotExist(inputSEGFileName, "Input DICOM file")
3429
|| helper::isUndefinedOrPathDoesNotExist(outputDirName, "Output directory"))
3530
return EXIT_FAILURE;

apps/seg/segimage2itkimage.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
<channel>input</channel>
7373
<longflag>mergeSegments</longflag>
7474
<default>false</default>
75-
<description>Save all segments into a single file. When segments are non-overlapping, output is a single 3D file. If overlapping, single 4D following conventions of 3D Slicer segmentations format. Only supported when the output is NRRD for now.</description>
75+
<description>Save all segments into a single file. When segments are non-overlapping, output is a single 3D file. If overlapping segments are identified, multiple 3D files will be created each containing non-overlapping segments. Metadata JSON files will be created for each such 3D file.</description>
7676
</boolean>
7777

7878
</parameters>

0 commit comments

Comments
 (0)