itkimage2segimagetool can be used to save the volumetric segmentation(s) stored as labeled pixels using any of the formats supported by ITK, such as NRRD or NIFTI, as a DICOM Segmentation Object (further referred to as SEG).
labelIDdefines the value of the segment in the segmentation file that will be assigned attributes listed.
labelIDis not stored in the output DICOM! The sole purpose of this attribute is to establish the connection between the labels encoded in the input ITK files and the metadata describing those labels (segments). The output DICOM files will have segments numbered consecutively starting from 1, and
labelIDshould not be used to encode the type of structure being segmented. What the segment actually represents is indicated by a set of "codes":
SegmentedPropertyTypeModifierCodeSequence(optionally), as discussed below.
SegmentLabelcan be anything that fits within a 64 character string.
SegmentDescriptionis a short free-text description of the segment.
SegmentAlgorithmTypecan be assigned to
AUTOMATIC. If the value of this attribute is not
SegmentAlgorithmNameattribute is required to be initialized!
RecommendedDisplayCIELabValueattribute can be used to specify the color in CIELab color space.
SegmentedPropertyCategoryCodeSequenceare attributes that should be assigned code tuples to describe the meaning of what is being segmented.
CodingSchemeDesignatordefines the "authority", or source of the code. Each
CodeValueshould be unique for a given
CodeMeaningis a human-readable meaning of the code. DICOM defines several coding schemes recognized by the standard listed in PS3.16 Section 8.
SegmentedPropertyTypeCodeSequenceare predicated on the value of the
SegmentedPropertyCategoryCodeSequence. It is also possible to define
SegmentedPropertyTypeModifierCodeSequencethat can be used , for example, to define the laterality. In some situations, it is appropriate or required to also specify anatomical location of the segmentation (e.g., organ a tumor was segmented). The latter can be achieved using