Revisions and Commits
Revisions and Commits
rMITK MITK | |||
Restricted Differential Revision | rMITK3bc0b8d26171 Add ContourModelSetToImage command-line app | ||
Restricted Differential Revision | rMITKb4402515969c Add options for label pixel type and painting pixel value | ||
Restricted Differential Revision | rMITKa68787e50b06 Improve function names | ||
Restricted Differential Revision | rMITK2811bc9d2476 Improve ContoursToImage command-line app | ||
Restricted Differential Revision | rMITK574e1c240c78 Reduce unnecessary image copies | ||
Restricted Differential Revision | rMITK9809a154d92d Handle unknown output format | ||
Restricted Differential Revision | rMITK0b48e640e3b3 Add segmentation app(s) to WorkbenchRelease config |
Related Objects
Related Objects
Event Timeline
Comment Actions
The app is now called MitkContoursToImage. By default it outputs classic binary images for each contour set in the input. Use the --format/-f flag (defaults to binary) to change the output format to label or multilabel. The former outputs single-label segmentations for each contour set in the input and the latter outputs a single multi-label segmentation with labels for each contour set. Note that each label will be in its own layer/group to allow for overlapping labels.
Comment Actions
Example 1
MitkContoursToImage.bat --reference image.dcm --input rtstruct_contours.dcm --output output.nrrd Example output (unsigned char): output_lung.nrrd output_heart.nrrd output_spleen.nrrd
Example 2
MitkContoursToImage.bat --reference image.dcm --input rtstruct_contours.dcm --format label --output output.nrrd Example output (unsigned short, MITK segmentation meta data in header): output_lung.nrrd output_heart.nrrd output_spleen.nrrd
Example 3
MitkContoursToImage.bat --reference image.dcm --input rtstruct_contours.dcm --format multilabel --output output.nrrd Example output (unsigned short, MITK segmentation meta data in header, each label in own group/layer): output.nrrd