| ThresholdTypes Enumeration |
Thresholding type
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax [FlagsAttribute]
public enum ThresholdTypes
<FlagsAttribute>
Public Enumeration ThresholdTypes
[FlagsAttribute]
public enum class ThresholdTypes
[<FlagsAttribute>]
type ThresholdTypes
Members
| Member name | Value | Description |
---|
| 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]
|
| Trunc | 2 |
\f[\texttt{dst} (x,y) = \fork{\texttt{threshold}}{if \(\texttt{src}(x,y) > \texttt{thresh}\)}{\texttt{src}(x,y)}{otherwise}\f]
|
| Tozero | 3 |
\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]
|
| Mask | 7 | |
| Otsu | 8 |
flag, use Otsu algorithm to choose the optimal threshold value
|
| Triangle | 16 |
flag, use Triangle algorithm to choose the optimal threshold value
|
See Also