segimage2itkimage
This tool can be used to convert DICOM Segmentation into volumetric segmentations stored as labeled pixels using research format, such as NRRD or NIfTI, and meta information stored in the JSON file format.
If you are looking for publicly available examples of segmentation objects, or other DICOM images, you should check out NCI Imaging Data Commons (IDC) (see documentation here).
Here are some representative examples of DICOM Segmentations:
Segmentation of a lung nodule from the DICOM-LIDC-IDRI-Nodules collection
TotalSegmentator segmentation results from the TotalSegmentator-CT-Segmentations collection
To download the files for the studies listed above:
install idc-index
package with pip install --upgrade idc-index
download the study by specifying StudyInstanceUID
(listed in the URLs above after the '=' sign) with idc download 1.2.840.113654.2.55.256011367872217445472654886973509892961