![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
OpenCV
Sun.R@in
这个作者很懒,什么都没留下…
展开
-
4:在图像上通过鼠标交互,画三条线段并显示出来。
// DrawLine.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" #include "cv.h" #include "cvaux.h" #include "highgui.h" IplImage* srcImg; CvPoint startPoint, endPoint; bool flag = false; void on_mouse(int ev原创 2014-07-11 15:04:26 · 822 阅读 · 0 评论 -
读取图片,并通过鼠标交互,在图片上选择一块矩形区域,然后把这个矩形区域的子图像显示出来
// ROI.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include "cv.h"#include "cvaux.h"#include "highgui.h"IplImage* srcImg;CvRect ROI_rect;bool flag = false;//true表示鼠标按下状态CvScalar color = CV_RGB(255, 0, 0)原创 2014-07-11 11:18:59 · 1918 阅读 · 0 评论