Skip to content

Commit

Permalink
Merge pull request #495 from QIICR/merge-beyond-nrrd
Browse files Browse the repository at this point in the history
allow saving merged segments to all formats
  • Loading branch information
fedorov authored Apr 23, 2024
2 parents d865fca + c0bef7a commit 34aae2d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cmake-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
fetch-tags: true
- uses: actions/setup-python@v4
with:
python-version: '3.7.14'
python-version: '3.10.11'

# Install build tools (cmake and ninja) as well as jsondiff
- name: "Install jsondiff"
Expand Down Expand Up @@ -119,4 +119,4 @@ jobs:
--prerelease-packages ${{ github.workspace }}/dcmqi-build/dcmqi-build/dcmqi-*-mac-*.tar.gz \
--prerelease-packages-clear-pattern "dcmqi-*-mac-*" \
--prerelease-packages-keep-pattern "*<COMMIT_DATE>-<COMMIT_SHORT_SHA>*" \
--exit-success-if-missing-token --token ${{ secrets.GA_TOKEN }}
--exit-success-if-missing-token --token ${{ secrets.GA_TOKEN }}
5 changes: 0 additions & 5 deletions apps/seg/segimage2itkimage.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@ int main(int argc, char *argv[])
dcmtk::log4cplus::BasicConfigurator::doConfigure();
}

if (mergeSegments && outputType != "nrrd") {
std::cerr << "ERROR: mergeSegments option is only supported when output format is NRRD!" << std::endl;
return EXIT_FAILURE;
}

if(helper::isUndefinedOrPathDoesNotExist(inputSEGFileName, "Input DICOM file")
|| helper::isUndefinedOrPathDoesNotExist(outputDirName, "Output directory"))
return EXIT_FAILURE;
Expand Down
2 changes: 1 addition & 1 deletion apps/seg/segimage2itkimage.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
<channel>input</channel>
<longflag>mergeSegments</longflag>
<default>false</default>
<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>
<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>
</boolean>

</parameters>
Expand Down

0 comments on commit 34aae2d

Please sign in to comment.