#include <opencv2/opencv.hpp>
#include<opencv2/core/core.hpp>
#include"opencv2/highgui/highgui.hpp"
#include<opencv2/imgproc/imgproc.hpp>
#include<iostream>
#include<time.h>
#include<vector>
using namespace std;
using namespace cv;
int main()
{
Mat srcImage = imread("C:/Users/离子键/source/repos/Project8/1.jpg",1);
Mat dstImage;
cvtColor(srcImage,srcImage,COLOR_BGR2BGRA);
imshow("原始图", srcImage);
equalizeHist(srcImage, dstImage);
imshow("【程序窗口】", dstImage);
waitKey(0);
return 0;
}
运行结果如图:
原版介绍: