opencv鼠标绘制直线 C++版
因为需要在图片上标记直线,所以从网上找了相应的参考资料。但大多都是c风格的,于是自己就写了一个c++风格的。
opencv2.4.11,win8.1,vs2013
#include <cv.h>
#include <highgui.h>
#include <string>cv::Mat src;
cv::Mat dst;void on_mouse(int event, int x, i
原创
2015-07-16 15:31:52 ·
1081 阅读 ·
1 评论