pyanno4rt.patient.import_functions._generate_segmentation_from_dcm
DICOM folder-based segmentation dictionary generation.
Overview
|
Generate the segmentation dictionary from a folder with DICOM (.dcm) files. |
Functions
- pyanno4rt.patient.import_functions._generate_segmentation_from_dcm.generate_segmentation_from_dcm(data, ct_slices, computed_tomography)[source]
Generate the segmentation dictionary from a folder with DICOM (.dcm) files.
- Parameters:
data (object of class
pydicom.dataset.FileDataset) – Thepydicom.dataset.FileDatasetobject with information on the segmented structures.slices (tuple) – Tuple of
pydicom.dataset.FileDatasetobjects with information on the CT slices.computed_tomography (dict) – Dictionary with information on the CT images.
- Returns:
segmentation – Dictionary with information on the segmented structures.
- Return type:
dict
- Raises:
ValueError – If the contour sequence for a segment includes out-of-slice points.