自适应阈值opencv

时间:2012-04-02 09:43:50

标签: c++ opencv

大家好我使用cvAdaptiveThreshold有人可以解释一下这个函数是如何工作的,如何确定block_size和param1?

IplImage *imgPicThres = cvCreateImage(cvSize(img_roi->width, img_roi->height), IPL_DEPTH_8U, 1);

cvAdaptiveThreshold(img_roi, imgPicThres,255,CV_ADAPTIVE_THRESH_MEAN_C, CV_THRESH_BINARY_INV,blocks_size,param1);

1 个答案:

答案 0 :(得分:2)