This documentation is for development version 0.18.dev0.

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 'decimation' algorithm used results in the next even number of triangles. For example a reduction request to 30001 triangles may 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.

Examples using mne.decimate_surface