centroid

(method of grain2d)

calculates the barycenters of the grain polygons

Syntax

[x,y] = centroid(grains)