Menu

Deep learning for NeuroImaging in Python.

Note

This page is a reference documentation. It only explains the class signature, and not how to use it. Please refer to the gallery for the big picture.

class surfify.augmentation.base.SurfRotation(vertices, triangles, phi=5, theta=0, psi=0, interpolation='barycentric', cachedir=None)[source]

The SurfRotation rotate the cortical measures.

Init class.

Parameters:

vertices : array (N, 3)

icosahedron’s vertices.

triangles : array (M, 3)

icosahdron’s triangles.

phi : float, default 5

the rotation phi angle in degrees: Euler representation.

theta : float, default 0

the rotation theta angle in degrees: Euler representation.

psi : float, default 0

the rotation psi angle in degrees: Euler representation.

interpolation : str, default ‘barycentric’

type of interpolation to use by the rotate_data function, see rotate_data.

cachedir : str, default None

set this folder to use smart caching speedup.

run(data)[source]

Rotates the provided vertices and projects the input data accordingly.

Parameters:

data : array (N, )

input data/texture.

Returns:

data : arr (N, )

rotated input data.

Follow us

© 2025, nidl developers