Menu

PyTorch toolbox to work with spherical surfaces.

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.mixup.HemiMixUp(prob, n_vertices)[source]

Randomly permutes a subject’s measurements at specific vertices across hemispheres, assuming a vertex-to-vertex correspondence between hemispheres.

__init__(prob, n_vertices)[source]

Init class.

Parameters

prob : float

the probability of curuption.

n_vertices : int (N, )

the size of the cortical measures.

run(data, controlateral_data)[source]

Applies the hemispheric permutations.

Parameters

data : array (N, )

input data/texture.

controlateral_data : array (N, )

input controlateral data/texture.

Returns

data : arr (N, )

permuted input data.

Follow us

© 2023, surfify developers