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.
digraph inheritancea2124cbac3 { rankdir=LR; ratio=compress; fontsize=14; size="6.0, 8.0"; "SiemensWrapper" [shape=ellipse,URL="nibabel.nicom.dicomwrappers.SiemensWrapper.html#nibabel.nicom.dicomwrappers.SiemensWrapper",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,fontsize=14,color=dodgerblue1,style=filled,height=0.75]; "Wrapper" -> "SiemensWrapper" [arrowsize=0.5,style="setlinewidth(0.5)"]; "Wrapper" [shape=ellipse,URL="nibabel.nicom.dicomwrappers.Wrapper.html#nibabel.nicom.dicomwrappers.Wrapper",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,fontsize=14,color=dodgerblue1,style=filled,height=0.75]; "MosaicWrapper" [shape=ellipse,URL="nibabel.nicom.dicomwrappers.MosaicWrapper.html#nibabel.nicom.dicomwrappers.MosaicWrapper",fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,fontsize=14,color=dodgerblue1,style=filled,height=0.75]; "SiemensWrapper" -> "MosaicWrapper" [arrowsize=0.5,style="setlinewidth(0.5)"]; "WrapperError" [shape=ellipse,fontname=Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans,fontsize=14,color=dodgerblue1,style=filled,height=0.75]; }
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 |