calculates the perimeter of a grain with or without inclusions
grains.perimeter perimter(grains) perimter(grains,'withInclusions')
grain2d.equivalentPerimeter