cortex.polyutils.Surface.smooth¶
-
Surface.
smooth
(scalars, factor=1.0, iterations=1)[source]¶ Smooth vertex-wise function given by scalars across the surface using mean curvature flow method (see http://brickisland.net/cs177fa12/?p=302).
Amount of smoothing is controlled by factor.
- Parameters
- scalars1D ndarray, shape (total_verts,)
A scalar-valued function across the cortex, such as the curvature supplied by mean_curvature.
- factorfloat, optional
Amount of smoothing to perform, larger values smooth more.
- iterationsint, optional
Number of times to repeat smoothing, larger values smooths more.
- Returns
- smscalars1D ndarray, shape (total_verts,)
Smoothed scalar values.