函数原型 double threshold(InputArry src,OutputArray dst,double thresh,double maxval,int type);
输入参数 src:源图像,可以为8位灰度图像,也可以为32位彩色图像
输出参数dst: 输出图像 thresh:阈值, maxval:dst中的最大值,type:阈值类型 ,具体可以参考下图
函数原型 double threshold(InputArry src,OutputArray dst,double thresh,double maxval,int type);
输入参数 src:源图像,可以为8位灰度图像,也可以为32位彩色图像
输出参数dst: 输出图像 thresh:阈值, maxval:dst中的最大值,type:阈值类型 ,具体可以参考下图