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;
}