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

Get the number of neighbors up to a certain depth.

Parameters:

n_vertices : int

the number of vertices of an icosahedron.

Returns:

order : int

the order of the icosahedron.

See also

min_order_to_get_n_neighbors

Examples

>>> from surfify.utils import number_of_neighbors
>>> for depth in range(4):
>>>     n_neighs = number_of_neighbors(depth)
>>>     print(n_neighs)

Follow us

© 2025, nidl developers