#include "stdafx.h"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
using namespace cv;
using namespace std;
//using namespace cv::xfeatures2d;
//using namespace cv::ml;
Mat src;
bool down = false;
Poi
利用opencv通过点击鼠标获取一张图片上点的像素点坐标
于 2021-03-04 15:32:56 首次发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)