hull

(method of grain2d)

replace grains by its convex hull

Syntax

grains = hull(grains)