NiBabel

Access a cacophony of neuro-imaging file formats

Previous topic

nibabel.nicom.dicomwrappers.none_or_close

Next topic

nibabel.nicom.dicomwrappers.wrapper_from_file

This Page

Reggie -- the one

nibabel.nicom.dicomwrappers.wrapper_from_data

nibabel.nicom.dicomwrappers.wrapper_from_data(dcm_data)

Create DICOM wrapper from DICOM data object

Parameters :

dcm_data : dicom.dataset.Dataset instance or similar

Object allowing attribute access, with DICOM attributes. Probably a dataset as read by pydicom.

Returns :

dcm_w : dicomwrappers.Wrapper or subclass

DICOM wrapper corresponding to DICOM data type