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:
- path
str
Path to the single DICOM (
.dcm
) file to be opened or the directory containing a stack of DICOM files.
- path
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)
Methods
Attributes