principalComponents edit page

principal axes of a list of grains ignoring holes

Syntax

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

Input

grains grain3d

Output

a,b,c principle axes vector3d

Options

volume scale a,b,c such that the corresponding ellipsoid 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