Classes to wrap DICOM objects and files
The wrappers encapsulate the capabilities of the different DICOM formats.
They also allow dictionary-like access to named fields.
For calculated attributes, we return None where needed data is missing. It seemed strange to raise an error during attribute processing, other than an AttributeError - breaking the ‘properties manifesto’. So, any processing that needs to raise an error, should be in a method, rather than in a property, or property-like thing.
Functions
| none_or_close(val1, val2[, rtol, atol]) | Match if val1 and val2 are both None, or are close |
| wrapper_from_data(dcm_data) | Create DICOM wrapper from DICOM data object |
| wrapper_from_file(file_like, *args, **kwargs) | Create DICOM wrapper from file_like object |
Classes
| MosaicWrapper([dcm_data, csa_header, n_mosaic]) | Class for Siemens mosaic format data |
| SiemensWrapper([dcm_data, csa_header]) | Wrapper for Siemens format DICOMs |
| Wrapper([dcm_data]) | Class to wrap general DICOM files |
Exceptions
| MosaicWrapper([dcm_data, csa_header, n_mosaic]) | Class for Siemens mosaic format data |
| SiemensWrapper([dcm_data, csa_header]) | Wrapper for Siemens format DICOMs |
| Wrapper([dcm_data]) | Class to wrap general DICOM files |