centroid

(method of grain2d)

calculates the barycenters of the grain boundary

Syntax

[x,y] = centroid(grains)