|
|
|
@ -1275,8 +1275,8 @@ GAPI_EXPORTS std::tuple<GMat, GMat> integral(const GMat& src, int sdepth = -1, i |
|
|
|
|
The function applies fixed-level thresholding to a single- or multiple-channel matrix. |
|
|
|
|
The function is typically used to get a bi-level (binary) image out of a grayscale image ( cmp functions could be also used for |
|
|
|
|
this purpose) or for removing a noise, that is, filtering out pixels with too small or too large |
|
|
|
|
values. There are several depths of thresholding supported by the function. They are determined by |
|
|
|
|
depth parameter. |
|
|
|
|
values. There are several types of thresholding supported by the function. They are determined by |
|
|
|
|
type parameter. |
|
|
|
|
|
|
|
|
|
Also, the special values cv::THRESH_OTSU or cv::THRESH_TRIANGLE may be combined with one of the |
|
|
|
|
above values. In these cases, the function determines the optimal threshold value using the Otsu's |
|
|
|
@ -1292,17 +1292,17 @@ Output matrix must be of the same size and depth as src. |
|
|
|
|
@param src input matrix (@ref CV_8UC1, @ref CV_8UC3, or @ref CV_32FC1). |
|
|
|
|
@param thresh threshold value. |
|
|
|
|
@param maxval maximum value to use with the cv::THRESH_BINARY and cv::THRESH_BINARY_INV thresholding |
|
|
|
|
depths. |
|
|
|
|
@param depth thresholding depth (see the cv::ThresholdTypes). |
|
|
|
|
types. |
|
|
|
|
@param type thresholding type (see the cv::ThresholdTypes). |
|
|
|
|
|
|
|
|
|
@sa min, max, cmpGT, cmpLE, cmpGE, cmpLS |
|
|
|
|
*/ |
|
|
|
|
GAPI_EXPORTS GMat threshold(const GMat& src, const GScalar& thresh, const GScalar& maxval, int depth); |
|
|
|
|
GAPI_EXPORTS GMat threshold(const GMat& src, const GScalar& thresh, const GScalar& maxval, int type); |
|
|
|
|
/** @overload
|
|
|
|
|
This function applicable for all threshold depths except CV_THRESH_OTSU and CV_THRESH_TRIANGLE |
|
|
|
|
This function applicable for all threshold types except CV_THRESH_OTSU and CV_THRESH_TRIANGLE |
|
|
|
|
@note Function textual ID is "org.opencv.core.matrixop.thresholdOT" |
|
|
|
|
*/ |
|
|
|
|
GAPI_EXPORTS std::tuple<GMat, GScalar> threshold(const GMat& src, const GScalar& maxval, int depth); |
|
|
|
|
GAPI_EXPORTS std::tuple<GMat, GScalar> threshold(const GMat& src, const GScalar& maxval, int type); |
|
|
|
|
|
|
|
|
|
/** @brief Applies a range-level threshold to each matrix element.
|
|
|
|
|
|
|
|
|
|