double
threshold(InputArray
src, OutputArray
dst, double
thresh, double
maxval, int
type)
-
src – input array (single-channel, 8-bit or 32-bit floating point).
-
dst – output array of the same size and type as src.
-
thresh – threshold value.
-
maxval – maximum value to use with the THRESH_BINARY and THRESH_BINARY_INV thresholding types.
-
type – thresholding type (see the details below).
-
THRESH_BINARY
-
THRESH_BINARY_INV
-
THRESH_TRUNC
-
THRESH_TOZERO
-
THRESH_TOZERO_INV
THRESH_OTSU:函数会用OTSU得到自动动阀值,参数threshold不再起作用。
void adaptiveThreshold(InputArray src, OutputArray dst, double maxValue, int adaptiveMethod, int thresholdType, int blockSize, double C) ?
阅读(2489) | 评论(0) | 转发(0) |