ETcVnContoursMatchComparisonMethod

Offers comparison methods for contour matching.

Syntax

Definition:

TYPE ETcVnContoursMatchComparisonMethod :
(
    TCVN_CMCM_CONTOURS_MATCH_I1 := 1,
    TCVN_CMCM_CONTOURS_MATCH_I2 := 2,
    TCVN_CMCM_CONTOURS_MATCH_I3 := 3
)DINT;
END_TYPE

Values

Name

Description

TCVN_CMCM_CONTOURS_MATCH_I1

Contours are compared using the sum over the differences between the reciprocal individual characteristics.

TCVN_CMCM_CONTOURS_MATCH_I2

Contours are compared using the sum over the differences between the individual characteristics.

TCVN_CMCM_CONTOURS_MATCH_I3

Contours are compared using only the maximum difference between the individual characteristics.

Further information

The available methods are based on Hu invariants. The following algorithms are used, with A representing the first contour and B the second contour.

ETcVnContoursMatchComparisonMethod 1:
ETcVnContoursMatchComparisonMethod 2:
ETcVnContoursMatchComparisonMethod 3:
ETcVnContoursMatchComparisonMethod 4:
ETcVnContoursMatchComparisonMethod 5:

ETcVnContoursMatchComparisonMethod 6: and ETcVnContoursMatchComparisonMethod 7: with i in [1, 7] are each Hu moments of A and B.

Related functions