阈值化

1 固定阈值操作:Threshold()函数
函数是对灰度图像进行阈值操作得到二值图像,或者是去掉噪声
double treshold(InputArray src,OutputArray dst,double thresh,double maxval,int type)


2 自适应阈值操作:adaptiveThreshold函数
void adaptiveThreshold(InputArray src,OutputArray dst,double maxValue,int adaptiveMethod,int thresholdType,int blockSize,double C)

原文地址:https://www.cnblogs.com/shuguomeifuguo/p/11991398.html