用鼠标取图片中的像素值
#include<opencv2\opencv.hpp>
#include<iostream>
using namespace cv;
using namespace std;
bool flag = false;
int xvalue = 0;
int yvalue = 0;
Mat image,image1,image2;
void mousecallback(int event, int x, int y, int flags, void* userdata);
用鼠标取图片中的像素值
#include<opencv2\opencv.hpp>
#include<iostream>
using namespace cv;
using namespace std;
bool flag = false;
int xvalue = 0;
int yvalue = 0;
Mat image,image1,image2;
void mousecallback(int event, int x, int y, int flags, void* userdata);