pyvista.examples.downloads.download_head

Contents

pyvista.examples.downloads.download_head#

download_head(load=True)[source]#

Download head dataset.

Parameters:
loadbool, default: True

Load the dataset after downloading it when True. Set this to False and only the filename will be returned.

Returns:
pyvista.ImageData | str

DataSet or filename depending on load.

Examples

>>> import pyvista as pv
>>> from pyvista import examples
>>> dataset = examples.download_head()
>>> pl = pv.Plotter()
>>> _ = pl.add_volume(dataset, cmap="cool", opacity="sigmoid_6")
>>> pl.camera_position = [
...     (-228.0, -418.0, -158.0),
...     (94.0, 122.0, 82.0),
...     (-0.2, -0.3, 0.9),
... ]
>>> pl.show()
../../../_images/pyvista-examples-downloads-download_head-1_00_00.png

See also

Head Dataset

See this dataset in the Dataset Gallery for more info.

Head 2 Dataset

Medical Datasets

Browse other medical datasets.

Volume Rendering

Example using this dataset.