利用该方法对图形进行二值化处理,能够很好的除去光线对图片的影响
#include<iostream>
#include<opencv2\opencv.hpp>
using namespace cv;
using namespace std;
void thresholdIntegral2(Mat inputMat, Mat outputMat)
{
int nRows = inputMat.rows;
int nCols = inputMat.cols;
// create the integral image
Mat sumMat;
integral(inputMat, sumMat);
int S = MAX(nRows, nCols) / 8;
double T = 0.15;
// pe

本文介绍了如何利用OpenCV对图像进行二值化处理,以消除光线影响,提高图像处理效果。
2148

被折叠的 条评论
为什么被折叠?



