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
pointsndarray

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

trianglesndarray

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

n_trianglesint

The desired number of triangles.

Returns
pointsndarray

The decimated points.

trianglesndarray

The decimated triangles.

Examples using mne.decimate_surface