标签:UNC style bin int src ble output 值类型 run
对输入单通道矩阵逐像素进行固定阈值分割。典型应用是从灰度图像获取二值图像,或消除灰度值过大或过小的噪声。有5种阈值分割类型,由参数thresholdType决定。
double threshold(InputArray src, OutputArray dst,double thresh, double maxVal, int thresholdType)
src - 输入矩阵对矩阵src中的每个元素应用固定阈值分割
dst - 输出矩阵
thresh - 阈值
maxVal - 设置的最大值
thresholdType - 阈值类型
THRESH_BINARY:过门限的值设置为maxVal,其它值置零
THRESH_BINARY_INV:过门限的值置零,其它值设置为maxVal
THRESH_TRUNC:过门限的值设置为门限值,其它值置不变
THRESH_TOZERO:过门限的值不变,其它值置零
THRESH_TOZERO_INV:过门限的值置零,其它值不变
标签:UNC style bin int src ble output 值类型 run
原文地址:https://www.cnblogs.com/ybqjymy/p/12822039.html