ETcVnThresholdType

Offers threshold types.

Syntax

Definition:

enum ETcVnThresholdType : LONG
{
    TT_BINARY              = 0,
    TT_BINARY_INV          = 1,
    TT_TRUNC               = 2,
    TT_TOZERO              = 3,
    TT_TOZERO_INV          = 4,
    TT_OTSU_BINARY         = 8,
    TT_OTSU_BINARY_INV     = 9,
    TT_OTSU_TRUNC          = 10,
    TT_OTSU_TOZERO         = 11,
    TT_OTSU_TOZERO_INV     = 12,
    TT_TRIANGLE_BINARY     = 16,
    TT_TRIANGLE_BINARY_INV = 17,
    TT_TRIANGLE_TRUNC      = 18,
    TT_TRIANGLE_TOZERO     = 19,
    TT_TRIANGLE_TOZERO_INV = 20
};

Values

Name

Description

TT_BINARY

Binary threshold

TT_BINARY_INV

Inverted binary threshold

TT_TRUNC

Truncated threshold (pixels > thresh are set to thresh, others keep their value)

TT_TOZERO

To zero threshold (pixels < thresh are set to zero, others keep their value)

TT_TOZERO_INV

Inverted to zero threshold (pixels > thresh are set to zero, others keep their value)

TT_OTSU_BINARY

Binary threshold with the threshold value selected according to the Otsu algorithm

TT_OTSU_BINARY_INV

Inverted binary threshold with the threshold value selected according to the Otsu algorithm

TT_OTSU_TRUNC

Truncated threshold with the threshold value selected according to the Otsu algorithm

TT_OTSU_TOZERO

To zero threshold with the threshold value selected according to the Otsu algorithm

TT_OTSU_TOZERO_INV

Inverted to zero threshold with the threshold value selected according to the Otsu algorithm

TT_TRIANGLE_BINARY

Binary threshold with the threshold value selected according to the Triangle algorithm

TT_TRIANGLE_BINARY_INV

Inverted binary threshold with the threshold value selected according to the Triangle algorithm

TT_TRIANGLE_TRUNC

Truncated threshold with the threshold value selected according to the Triangle algorithm

TT_TRIANGLE_TOZERO

To zero threshold with the threshold value selected according to the Triangle algorithm

TT_TRIANGLE_TOZERO_INV

Inverted to zero threshold with the threshold value selected according to the Triangle algorithm