grain2d.smooth edit page

constraint laplacian smoothing of grain boundaries

Deprecated. Renamed to grain2d/smoothBoundary. Note that EBSD/smooth means something else entirely - it denoises orientations, not geometry.

smoothBoundary does more than smooth ever did: it removes the pixel staircase with simplifyBoundary and resamples with refineBoundary before smoothing at all. Those two steps change the number of boundary segments and move the grain areas, so a script written against smooth would silently get different numbers out. It is therefore forwarded with both of them switched off, which is exactly what smooth used to compute.

Call smoothBoundary directly to get the full three steps, and to choose the smoothing algorithm.

Syntax

grains = smooth(grains,varargin)

See also

grain2d.smoothBoundary grain2d.simplifyBoundary grain2d.refineBoundary