1.二值化就是把RGB颜色值转化为01数据(黑白);
2.亮度计算公式:liangdu = red*0.3 + green*0.6 + blue*0.1;liangdu<200,置黑;
3.去干扰点:某个点与其周围的8个点颜色值不一样,即为干扰点;
参考:
1.http://www.s110.cn/Files/Faq111.htm
2.http://hi.baidu.com/ah__fu/item/6552fc979364cdbe82d2952c
3.http://tech.ddvip.com/2009-01/1232085272106035.html