calcMeanDirection

(method of grainBoundary)

compute a smoothed direction that ignores staircasing

Syntax

dir = calcMeanDirection(gB,n)