DICOM¶
DICOM files, and collections of them. A collection can be referenced either as the
directory that contains it (DicomDir) or as the set of files themselves
(DicomSeries). DicomImage derives from fileformats.application.Dicom in the
main package, so its metadata is read with pydicom by fileformats-extras.
- class fileformats.medimage.DicomImage(*fspaths: Iterable[str | Path] | str | Path | fileformats.core.FileSet, metadata: Dict[str, Any] | None = None, **load_kwargs: Any)[source]¶
Bases:
MedicalImage,DicomA DICOM file that contains image data. Derives from the generic Dicom class in the application namespace as well as medical image base class
- class fileformats.medimage.DicomCollection(*fspaths: Iterable[str | Path] | str | Path | fileformats.core.FileSet, metadata: Dict[str, Any] | None = None, **load_kwargs: Any)[source]¶
Bases:
MedicalImage,TypedCollectionBase class for collections of DICOM files, which can either be stored within a directory (DicomDir) or presented as a flat list (DicomSeries)