Menu

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.min_depth_to_get_n_neighbors(n_neighs)[source]ΒΆ

Get the minimal depth of neighborhood to get a desired number of neighbors.

Parameters:

n_vertices : int

the number of vertices of an icosahedron.

Returns:

order : int

the order of the icosahedron.

Examples

>>> from surfify.utils import min_depth_to_get_n_neighbors, icosahedron
>>> ico3_verts, ico3_tris = icosahedron(order=3)
>>> depth = min_depth_to_get_n_neighbors(len(ico3_verts) / 2)
>>> print(depth)

Follow us

© 2025, nidl developers