Medical Imaging Interaction Toolkit
2025.08.99-f7084adb
Medical Imaging Interaction Toolkit
|
This guide describes how to use the MitkFileConverter to export and import multilabel segmentations using the MITK segmentation stack format.
Ensure you have:
.nrrd
or DICOM (.dcm
) format.Convert a MultiLabelSegmentation
(e.g., input.nrrd
) into:
.mitklabel.json
file describing the stack.For Bash / Linux / macOS / WSL (Unix-like shells) / PowerShell:
For Windows Command Prompt (cmd.exe):
Option | Value | Description |
---|---|---|
Save strategy | instance | Save one image per label |
Instance value | original | Use the label’s value in the image (not binary masks) |
You can also use:
Instance value
= binary
to export binary masks (value = 1)Convert a segmentation stack described by a .mitklabel.json
file into a single .nrrd
file storing the entire MultiLabelSegmentation
.
.json
metadata..nrrd
..nii.gz
, .nrrd
, or other ITK-supported formats.See the MITK MultiLabel Segmentation Stack Format README for more information about JSON structure, label properties, and file mappings.