opencv22-直方图均衡化
#include<opencv2\highgui\highgui.hpp>
#include<opencv2\opencv.hpp>
#include<iostream>
#include<math.h>
using namespace std;
using namespace cv;
char *output_title = "output Image";
Mat src, dst;
//霍夫圆检测前先进行中值滤波
int main()
{
src = imread("E:\\vs2015\\opencvstudy\\1.jpg", 1);
if (src.empty())
{
cout << "could not load the src image!" << endl;
return -1;
}
char *input_title = "input Image";
imshow(input_title, src);
cvtColor(src, src, CV_BGR2GRAY);
equalizeHist(src, dst);
imshow(output_title, dst);
waitKey(0);
return 0;
}