pyvista.DICOMReader

Contents

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 as pv
>>> from pyvista import examples
>>> path = examples.download_dicom_stack(load=False)
>>> reader = pv.DICOMReader(path)
>>> dataset = reader.read()
>>> dataset.plot(volume=True, zoom=3, show_scalar_bar=False)
../../../_images/pyvista-DICOMReader-1_00_00.png

Methods

Attributes