ETcVnOrientationMethod

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

Syntax

Definition:

TYPE ETcVnOrientationMethod :
(
    TCVN_OM_PCA           := 0,
    TCVN_OM_FITELLIPSE    := 1,
    TCVN_OM_MOMENTS       := 2,
    TCVN_OM_ENCLOSINGRECT := 3
)DINT;
END_TYPE

Values

Name

Description

TCVN_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

TCVN_OM_FITELLIPSE

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

TCVN_OM_MOMENTS

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

TCVN_OM_ENCLOSINGRECT

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