numNeighbors edit page

returns the number of neighboring grains

Syntax

counts = numNeighbors(grains)

Input

grains grain2d

Output

counts number of neighbors per grain