Show / Hide Table of Contents

Enum ThresholdTypes

Thresholding type

Namespace: OpenCvSharp
Assembly: OpenCvSharp.dll
Syntax
public enum ThresholdTypes

Fields

Name Description
Binary

\f[\texttt{dst} (x,y) = \fork{\texttt{maxval}}{if (\texttt{src}(x,y) > \texttt{thresh})}{0}{otherwise}\f]

BinaryInv

\f[\texttt{dst} (x,y) = \fork{0}{if (\texttt{src}(x,y) > \texttt{thresh})}{\texttt{maxval}}{otherwise}\f]

Mask
Otsu

flag, use Otsu algorithm to choose the optimal threshold value

Tozero

\f[\texttt{dst} (x,y) = \fork{\texttt{src}(x,y)}{if (\texttt{src}(x,y) > \texttt{thresh})}{0}{otherwise}\f]

TozeroInv

\f[\texttt{dst} (x,y) = \fork{0}{if (\texttt{src}(x,y) > \texttt{thresh})}{\texttt{src}(x,y)}{otherwise}\f]

Triangle

flag, use Triangle algorithm to choose the optimal threshold value

Trunc

\f[\texttt{dst} (x,y) = \fork{\texttt{threshold}}{if (\texttt{src}(x,y) > \texttt{thresh})}{\texttt{src}(x,y)}{otherwise}\f]

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX