1. 首页
  2. 数据库
  3. 其它
  4. OpenCV使用鼠标响应裁剪图像

OpenCV使用鼠标响应裁剪图像

上传者: 2021-01-03 15:19:15上传 PDF文件 86.6KB 热度 20次
给定一幅图像,将其中的某一部分兴趣区域裁剪出来,这在PS中很好实现,但是使用openCV如何实现呢?因此本文主要介绍openCV使用鼠标响应来裁剪图像: 一、代码部分: #include stdafx.h #include cv.h #include #include IplImage* org = 0; IplImage* img = 0; IplImage* tmp = 0; IplImage* dst = 0; //The mouse cuts the image accordingly void on_mouse( int eve
下载地址
用户评论