ThresholdTypes
import { ThresholdTypes } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
ARGUMENTSConstructor or factory
CLASSThresholdTypes
RETURN TYPEOwned native handle
Native object: release it with using or delete(). Factories can return null; check before calling methods.
type of the threshold operation

Constructors and members
static THRESH_BINARY
\texttt{dst} (x,y) = \fork{\texttt{maxval}}{if \(\texttt{src}(x,y) > \texttt{thresh}\)}{0}{otherwise}
THRESH_BINARY: ThresholdTypesValue<0>,static THRESH_BINARY_INV
\texttt{dst} (x,y) = \fork{0}{if \(\texttt{src}(x,y) > \texttt{thresh}\)}{\texttt{maxval}}{otherwise}
THRESH_BINARY_INV: ThresholdTypesValue<1>,static THRESH_TRUNC
\texttt{dst} (x,y) = \fork{\texttt{threshold}}{if \(\texttt{src}(x,y) > \texttt{thresh}\)}{\texttt{src}(x,y)}{otherwise}
THRESH_TRUNC: ThresholdTypesValue<2>,static THRESH_TOZERO
\texttt{dst} (x,y) = \fork{\texttt{src}(x,y)}{if \(\texttt{src}(x,y) > \texttt{thresh}\)}{0}{otherwise}
THRESH_TOZERO: ThresholdTypesValue<3>,static THRESH_TOZERO_INV
\texttt{dst} (x,y) = \fork{0}{if \(\texttt{src}(x,y) > \texttt{thresh}\)}{\texttt{src}(x,y)}{otherwise}
THRESH_TOZERO_INV: ThresholdTypesValue<4>,static THRESH_MASK
\texttt{dst} (x,y) = \fork{0}{if \(\texttt{src}(x,y) > \texttt{thresh}\)}{\texttt{src}(x,y)}{otherwise}
THRESH_MASK: ThresholdTypesValue<7>,static THRESH_OTSU
flag, use Otsu algorithm to choose the optimal threshold value
THRESH_OTSU: ThresholdTypesValue<8>,static THRESH_TRIANGLE
flag, use Triangle algorithm to choose the optimal threshold value
THRESH_TRIANGLE: ThresholdTypesValue<16>,static THRESH_DRYRUN
flag, compute threshold only (useful for OTSU/TRIANGLE) but does not actually run thresholding
THRESH_DRYRUN: ThresholdTypesValue<128>These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.