returns the Ids of neighboring grains
Syntax
% neighbouring relationships within grains
pairs = neighbors(grains)
pairs = neighbors(grains1,grains2)
% all neighbouring relationships
pairs = neighbors(grains,'full')
Input
grains | grain2d |
Output
pairs | index list of size N x 2 |