pyvista.DICOMReader#

class DICOMReader(*args, **kwargs)[source]#

DICOM Reader for reading .dcm files.

This reader reads a single file or a path containing a several .dcm files (DICOM stack).

Parameters:
pathstr

Path to the single DICOM (.dcm) file to be opened or the directory containing a stack of DICOM files.

Examples

Read a DICOM stack.

>>> import pyvista
>>> from pyvista import examples
>>> path = examples.download_dicom_stack(load=False)
>>> reader = pyvista.DICOMReader(path)
>>> dataset = reader.read()
>>> dataset.plot(volume=True, zoom=3, show_scalar_bar=False)
../../../_images/pyvista-DICOMReader-1_00_00.png

Methods

Attributes