NiBabel

Access a cacophony of neuro-imaging file formats

Previous topic

nibabel.nicom.dicomreaders.slices_to_series

Next topic

nibabel.nicom.dicomwrappers.none_or_close

This Page

Reggie -- the one

nibabel.nicom.dicomwrappersΒΆ

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.

Inheritance diagram of nibabel.nicom.dicomwrappers

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