Table of Contents

Enum ThresholdType

Namespace
Emgu.CV.CvEnum
Assembly
Emgu.CV.dll

Types of thresholding

public enum ThresholdType

Fields

Binary = 0

value = value > threshold ? max_value : 0

BinaryInv = 1

value = value > threshold ? 0 : max_value

Mask = 7

Mask

Otsu = 8

use Otsu algorithm to choose the optimal threshold value; combine the flag with one of the above CV_THRESH_* values

ToZero = 3

value = value > threshold ? value : 0

ToZeroInv = 4

value = value > threshold ? 0 : value

Triangle = 16

Use Triangle algorithm to choose the optimal threshold value

Trunc = 2

value = value > threshold ? threshold : value