Enum ThresholdTypes
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
Thresholding type
[Flags]
public enum ThresholdTypes
Fields
Binary = 0\f[\texttt{dst} (x,y) = \fork{\texttt{maxval}}{if (\texttt{src}(x,y) > \texttt{thresh})}{0}{otherwise}\f]
BinaryInv = 1\f[\texttt{dst} (x,y) = \fork{0}{if (\texttt{src}(x,y) > \texttt{thresh})}{\texttt{maxval}}{otherwise}\f]
Mask = Tozero | TozeroInvOtsu = 8flag, use Otsu algorithm to choose the optimal threshold value
Tozero = BinaryInv | Trunc\f[\texttt{dst} (x,y) = \fork{\texttt{src}(x,y)}{if (\texttt{src}(x,y) > \texttt{thresh})}{0}{otherwise}\f]
TozeroInv = 4\f[\texttt{dst} (x,y) = \fork{0}{if (\texttt{src}(x,y) > \texttt{thresh})}{\texttt{src}(x,y)}{otherwise}\f]
Triangle = 16flag, use Triangle algorithm to choose the optimal threshold value
Trunc = 2\f[\texttt{dst} (x,y) = \fork{\texttt{threshold}}{if (\texttt{src}(x,y) > \texttt{thresh})}{\texttt{src}(x,y)}{otherwise}\f]