principalComponents edit page

returns the principalcomponents of grain polygon, without Holes

Syntax

[omega,a,b]= principalComponents(grains,varargin)

Input

grains grain2d

Output

omega angle of the ellipse
a length largest axis
b length smallest axis

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

See also

plotEllipse