ETcVnEdgeDetectionAlgorithm

Offers edge detection algorithms.

Syntax

Definition:

enum ETcVnEdgeDetectionAlgorithm : LONG
{
    EDA_INTERPOLATION   = 0,
    EDA_APPROX_ERF      = 1,
    EDA_APPROX_GAUSSIAN = 2
};

Values

Name

Description

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.

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.

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.