(method of grain2d)
number of boundary segment
peri = grains.boundarySize
grain2d
number of boundary segments