NiBabel

Access a cacophony of neuro-imaging file formats

Previous topic

nibabel.nicom.dicomwrappers.wrapper_from_data

Next topic

nibabel.nicom.dicomwrappers.MosaicWrapper

This Page

Reggie -- the one

nibabel.nicom.dicomwrappers.wrapper_from_file

nibabel.nicom.dicomwrappers.wrapper_from_file(file_like, *args, **kwargs)

Create DICOM wrapper from file_like object

Parameters :

file_like : object

filename string or file-like object, pointing to a valid DICOM file readable by pydicom

*args : positional

**kwargs : keyword

args to dicom.read_file command. force=True might be a likely keyword argument.

Returns :

dcm_w : dicomwrappers.Wrapper or subclass

DICOM wrapper corresponding to DICOM data type