Deep learning for NeuroImaging in Python.
Note
This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the gallery for the big picture.
- surfify.utils.sampling.icosahedron(order=3, standard_ico=False)[source]ΒΆ
Define an icosahedron mesh of any order.
- Parameters:
order : int, default 3
the icosahedron order.
standard_ico : bool, default False
optionally uses a standard icosahedron tessalation.
- Returns:
vertices : array (N, 3)
the icosahedron vertices.
triangles : array (M, 3)
the icosahedron triangles.
Examples
>>> from surfify.utils import icosahedron >>> import matplotlib.pyplot as plt >>> from surfify.plotting import plot_trisurf >>> ico3_verts, ico3_tris = icosahedron(order=3) >>> print(ico3_verts.shape, ico3_tris.shape) >>> fig, ax = plt.subplots(1, 1, subplot_kw={ "projection": "3d", "aspect": "auto"}, figsize=(10, 10)) >>> plot_trisurf(ico3_verts, triangles=ico3_tris, colorbar=False, fig=fig, ax=ax) >>> plt.show()
Follow us