diameter

(method of grain2d)

diameter of a grain (longest distance between any two vertices of a grain boundary)

Syntax

[d] = diameter(grains)