OpenCV二值化cvThreshold和自适应二值化cvAdaptiveThreshold及Otsu
阈值化函数:doublecvThreshold(constCvArr*src,CvArr*dst,doublethreshold,doublemax_value,intthreshold_type)参数:src–原始数组(单通道,8-bitof32-bit浮点数)。dst–输出数组,必须与src的类型一致,或者为8-bit。thresh–阈值。max_value–使用CV_THRESH_BINAR