pyvista.examples.downloads.download_headsq#

download_headsq(load=True)[source]#

Download the headsq dataset.

The headsq dataset is a 3D MRI scan of a human head.

Added in version 0.44.0.

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

>>> from pyvista import examples
>>> mesh = examples.download_headsq()
>>> mesh.plot(cpos="xy")
../../../_images/pyvista-examples-downloads-download_headsq-1_00_00.png

See also

Headsq Dataset

See this dataset in the Dataset Gallery for more info.