MetaImageReader#
- class MetaImageReader(*args, **kwargs)[source]#
Meta Image Reader for .mha and .mhd files.
Wraps vtkMetaImageReader.
Examples#
Download Python source code | Download Jupyter notebook
>>> import pyvista as pv
>>> from pyvista import examples
>>> from pathlib import Path
>>> filename = examples.download_chest(load=False)
>>> Path(filename).name
'ChestCT-SHORT.mha'
>>> reader = pv.get_reader(filename)
>>> mesh = reader.read()
>>> mesh.plot()