一. 实验描述
用OpenCV的滑动条和像素操作对图像的对比度和亮度进行调节。
二. 实验代码
#include <iostream>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
using namespace std;
using namespace cv;
const string WINDOW_NAME = "对比度&亮度";
Mat src_img;
Mat dst_img;
int contrast_value;
int bright_value;
void on_change(int,