Table of Contents

Method Threshold

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Threshold(InputArray, OutputArray, double, ThresholdTypes)

Applies a fixed-level threshold to each array element.

public static void Threshold(InputArray src, OutputArray rlDest, double thresh, ThresholdTypes type)

Parameters

src InputArray

input array (single-channel).

rlDest OutputArray

resulting run length encoded image.

thresh double

threshold value.

type ThresholdTypes

thresholding type (only cv::THRESH_BINARY and cv::THRESH_BINARY_INV are supported)