ETcVnThresholdType
Offers threshold types.
Syntax
Definition:
TYPE ETcVnThresholdType :
(
TCVN_TT_BINARY := 0,
TCVN_TT_BINARY_INV := 1,
TCVN_TT_TRUNC := 2,
TCVN_TT_TOZERO := 3,
TCVN_TT_TOZERO_INV := 4,
TCVN_TT_OTSU_BINARY := 8,
TCVN_TT_OTSU_BINARY_INV := 9,
TCVN_TT_OTSU_TRUNC := 10,
TCVN_TT_OTSU_TOZERO := 11,
TCVN_TT_OTSU_TOZERO_INV := 12,
TCVN_TT_TRIANGLE_BINARY := 16,
TCVN_TT_TRIANGLE_BINARY_INV := 17,
TCVN_TT_TRIANGLE_TRUNC := 18,
TCVN_TT_TRIANGLE_TOZERO := 19,
TCVN_TT_TRIANGLE_TOZERO_INV := 20
)DINT;
END_TYPE
Values
Name |
Description |
---|---|
TCVN_TT_BINARY |
Binary threshold |
TCVN_TT_BINARY_INV |
Inverted binary threshold |
TCVN_TT_TRUNC |
Truncated threshold (pixels > thresh are set to thresh, others keep their value) |
TCVN_TT_TOZERO |
To zero threshold (pixels < thresh are set to zero, others keep their value) |
TCVN_TT_TOZERO_INV |
Inverted to zero threshold (pixels > thresh are set to zero, others keep their value) |
TCVN_TT_OTSU_BINARY |
Binary threshold with the threshold value selected according to the Otsu algorithm |
TCVN_TT_OTSU_BINARY_INV |
Inverted binary threshold with the threshold value selected according to the Otsu algorithm |
TCVN_TT_OTSU_TRUNC |
Truncated threshold with the threshold value selected according to the Otsu algorithm |
TCVN_TT_OTSU_TOZERO |
To zero threshold with the threshold value selected according to the Otsu algorithm |
TCVN_TT_OTSU_TOZERO_INV |
Inverted to zero threshold with the threshold value selected according to the Otsu algorithm |
TCVN_TT_TRIANGLE_BINARY |
Binary threshold with the threshold value selected according to the Triangle algorithm |
TCVN_TT_TRIANGLE_BINARY_INV |
Inverted binary threshold with the threshold value selected according to the Triangle algorithm |
TCVN_TT_TRIANGLE_TRUNC |
Truncated threshold with the threshold value selected according to the Triangle algorithm |
TCVN_TT_TRIANGLE_TOZERO |
To zero threshold with the threshold value selected according to the Triangle algorithm |
TCVN_TT_TRIANGLE_TOZERO_INV |
Inverted to zero threshold with the threshold value selected according to the Triangle algorithm |
Further information
The Enum ETcVnThresholdType
offers a choice of the methods implemented to calculate the threshold value. It is also used in the structure TcVnParamsBlobDetection.