pyvista.examples.downloads.download_head_2

pyvista.examples.downloads.download_head_2#

download_head_2(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_2()
>>> pl = pv.Plotter()
>>> _ = pl.add_volume(dataset, cmap="cool", opacity="sigmoid_6")
>>> pl.show()
../../../_images/pyvista-examples-downloads-download_head_2-1_00_00.png

See also

Head 2 Dataset

See this dataset in the Dataset Gallery for more info.

Head Dataset

Medical Datasets

Browse other medical datasets.