principal axes of a list of grains ignoring holes
Syntax
[a,b] = principalComponents(grains,varargin)Input
| grains | grain2d | 
Output
| a | largest axis vector3d | 
| b | smallest axis vector3d | 
Options
| area | scale a,b such that the corresponding ellipse has the same area as the grain (default) | 
| boundary | scale a,b such that the corresponding ellipse has the boundary length as the grain |