ETcVnEdgeDetectionAlgorithm

Offers edge detection algorithms.

Syntax

Definition:

TYPE ETcVnEdgeDetectionAlgorithm :
(
    TCVN_EDA_INTERPOLATION   := 0,
    TCVN_EDA_APPROX_ERF      := 1,
    TCVN_EDA_APPROX_GAUSSIAN := 2
)DINT;
END_TYPE

Values

Name

Description

TCVN_EDA_INTERPOLATION

Interpolates pixels (bilinear) and then finds the maximum gradient. This approach is fast and stable, but usually less precise than the function approximation methods.

TCVN_EDA_APPROX_ERF

Approximates the edge with an erf function. This approach is slower than the interpolation method, but usually more precise. However, it can be inaccurate if the edge does not suit the erf model.

TCVN_EDA_APPROX_GAUSSIAN

Approximates the edge with a gaussian function. This method is intended to find the center of relatively thin lines, so it is likely to be inaccurate for other edges.

Related functions