principalComponents

(method of grain2d)

returns the principalcomponents of grain polygon, without Holes

Syntax

[ev,ew]= principalComponents(grains,'param1',val1,'param2',val2)

Input

grains

grain2d

Output

cmp

angle of components as complex

v

length of axis

See also

polygon/hullprincipalcomponents, grain/plotEllipse