![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
OpenCV
文章平均质量分 60
WalterChenn
这个作者很懒,什么都没留下…
展开
-
cv::getOptimalNewCameraMatrix()函数
函数参数说明:@param cameraMatrix Input camera matrix.@param distCoeffs Input vector of distortion coefficients\f$(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \tau_x, \tau_y]]]])\f$ of4, 5, 8, 12 or 14 elements. If the vector is NULL/e原创 2021-08-04 15:34:08 · 1776 阅读 · 0 评论 -
[OpenCV] 关于drawLineMatches时碰到的问题
最近进行线特征提取匹配时,用到了暴力匹配的方法,相关的函数如下:BFMatcher bfm(NORM_HAMMING, false);bfm.knnMatch(ldesc_1, ldesc_2, line_matches, 2);bfm.match(ldesc_1, ldesc_2, lmatch);这里knnMatch所需要的line_matches和match所需要的lmatch数据类型不同:vector<vector<DMatch>> line_matche原创 2020-08-04 21:03:07 · 1079 阅读 · 0 评论 -
ubuntu18.04 ROS Melodic OpenCV相关的问题
问题描述:运行编译通过,运行时报错:1.一种是报错matrix.cppOpenCV Error: Assertion failed (s >= 0) in setSize, file /build/opencv-L2vuMj/opencv-3.2.0+dfsg/modules/core/src/matrix.cpp, line 307terminate called after throwing an instance of 'cv::Exception' what(): /bu...原创 2020-07-25 15:09:02 · 3458 阅读 · 1 评论 -
OpenCV图像转换相关(cvtColor函数)
The conventional ranges for R, G, and B channel values are:0 to 255 for CV_8U images 0 to 65535 for CV_16U images 0 to 1 for CV_32F images所以当CV_8UC1转换为CV_32F时需要乘1/255;反之乘255;当CV_8UC1转换为CV_8UC3时...转载 2018-09-11 09:41:12 · 842 阅读 · 0 评论 -
[ROS]将视频转换成ROSBAG
最近需要将.avi格式的视频转换成rosbag,方便跑包。参考链接:参考链接1,参考链接2,参考链接3#include <iostream>#include <ros/ros.h>#include <rosbag/bag.h>#include <opencv2/highgui/highgui.hpp>#include"cv_brid...原创 2019-03-19 08:48:08 · 2527 阅读 · 0 评论