![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
opencv
burke_____
这个作者很懒,什么都没留下…
展开
-
opencv 常用
opencv 常用 Mat getHistogram(Mat in) { const int VERTICAL = 0; const int HORIZONTAL = 1; // Histogram features Mat vhist = ProjectedHistogram(in, VERTICAL); Mat hhist = ProjectedHistogra转载 2018-01-18 16:19:31 · 328 阅读 · 0 评论 -
HObject cv::Mat 互相转换
void Mat2HObject(const Mat &image, HObject &outObj){ HObject Hobj = HObject(); int hgt = image.rows; int wid = image.cols; int i; // CV_8UC3 if (image.type() == CV_8U...原创 2018-05-02 18:57:50 · 1351 阅读 · 0 评论 -
图像处理经典算法及OpenCV程序
基于opencv的use摄像头视频采集程序... 1基于opencv的两个摄像头数据采集... 3能激发你用代码做视频的冲动程序... 6图像反转(就是把黑的变白,白的变黑)... 11图像格式的转换... 12从摄像头或者AVI文件中得到视频流,对视频流进行边缘检测... 13采用Canny算子进行边缘检测... 15角点检测... 18图像的旋转加缩放(效果很拽...原创 2018-10-15 15:16:39 · 5676 阅读 · 0 评论 -
opencv 图像编码
#include "utils/FileOps.h"#include "opencv2/opencv.hpp"using namespace std;int main(){ cv::Mat src = cv::imread("00BB.JPG"); printf("src.cols=%d rows=%d\n", src.cols, src.rows); std::string i...原创 2019-04-29 20:34:19 · 1251 阅读 · 0 评论 -
opencv 透视变换
cv::Point2f src_pts[4]; src_pts[0] = coners[0]; src_pts[1] = coners[1]; src_pts[2] = coners[2]; src_pts[3] = coners[3]; cv::Mat _dst(60, 180, CV_8UC1);...原创 2019-04-25 16:23:36 · 172 阅读 · 0 评论