ETcVnOrientationMethod

Offers methods to calculate the orientation of a set of points.

Syntax

Definition:

enum ETcVnOrientationMethod : LONG
{
    OM_PCA           = 0,
    OM_FITELLIPSE    = 1,
    OM_MOMENTS       = 2,
    OM_ENCLOSINGRECT = 3
};

Values

Name

Description

OM_PCA

Apply the PCA on the points and calculate the mean point as the center point and the rotation angle of the main principal axis

OM_FITELLIPSE

Fit an ellipse around the points and calculate the center point and the rotation angle of the main axis

OM_MOMENTS

Calculate the moments of the points and estimate the center and the rotation angle

OM_ENCLOSINGRECT

Calculate a minimum area rectangle enclosing the points and calculate the center point and the rotation angle of the rectangle