mne.decimate_surface

mne.decimate_surface(points, triangles, n_triangles)[source]

Decimate surface data.

Note. Requires TVTK to be installed for this to function.

Note. If an if an odd target number was requested, the quadric decimation algorithm used results in the next even number of triangles. For example a reduction request to 30001 triangles will result in 30000 triangles.

Parameters:

points : ndarray

The surface to be decimated, a 3 x number of points array.

triangles : ndarray

The surface to be decimated, a 3 x number of triangles array.

n_triangles : int

The desired number of triangles.

Returns:

points : ndarray

The decimated points.

triangles : ndarray

The decimated triangles.