
opencv3
齐天大圣~~
这个作者很懒,什么都没留下…
展开
-
Background subtraction (BS): opecv3 demo
方法的任务就是核心函数Read data from videos by using cv::VideoCapture or image sequences by using cv::imread ;Create and update the background model by using cv::BackgroundSubtractor class;Get and show the foreg...原创 2018-06-26 22:19:51 · 395 阅读 · 0 评论 -
利用OpenCV求取图像多轮廓质心,并在输出图像上显示质心坐标
#include "stdafx.h"#include <iostream>#include <opencv2/core/core.hpp>#include <opencv/cv.hpp>#include <opencv2/highgui/highgui.hpp> using namespace cv; using namespace ...转载 2018-09-28 20:08:37 · 2662 阅读 · 1 评论 -
Opencv 创建图像时,CV_8UC1,CV_32FC3等参数的含义
转载链接:http://blog.youkuaiyun.com/maweifei/article/details/51221259 CV_<bit_depth>(S|U|F)C<number_of_channels> 1--bit_depth---比特数---代表8bite,16bites,32bites,64bites---举个例子吧--比如说,如 如果你...转载 2018-09-20 22:52:42 · 2281 阅读 · 0 评论 -
opencv3的 Tracking 模块demo
VS2015+opencv3.1 目标追踪, 采用"KCF"算法#include "stdafx.h"#include <opencv2/core/utility.hpp>#include <opencv2/tracking.hpp>#include <opencv2/videoio.hpp>#include <opencv2/highgui....原创 2018-09-19 23:23:28 · 1325 阅读 · 2 评论 -
opencv 函数triangulatePoints():Reconstructs points by triangulation.
C++: void triangulatePoints(InputArray projMatr1, InputArray projMatr2, InputArray projPoints1, InputArray projPoints2, OutputArray points4D)Python: cv2.triangulatePoints(projMatr1, projMatr2, projP...原创 2018-09-16 19:18:43 · 16119 阅读 · 5 评论 -
七)立体标定与立体校正 【计算机视觉学习笔记--双目视觉几何框架系列】
七、立体标定与立体校正 这篇博文中,让玉米和大家一起了解一下,张氏标定是怎样过渡到立体标定的?在这里主要以双目立体视觉进行分析。对于双目立体视觉,我们有两个摄像头。它们就像人的一双眼睛一样,从不同的方向看世界。两只眼睛中的图像的视差,让我们对世界有了三维的认识。 那么,想要知道视差,首先应该知道双目视觉系统中两个摄像头之间的相对位置关系。我们可以通过同时对...转载 2018-09-02 00:42:15 · 1426 阅读 · 0 评论 -
OpenCV相机标定calibrateCamera坐标系详解
在OpenCV中,可以使用calibrateCamera函数,通过多个视角的2D/3D对应,求解出该相机的内参数和每一个视角的外参数。 使用C++接口时的输入参数如下: objectPoints - 每一个视角中,关键点的世界坐标系。可以使用vector < vector <Point3f> >类型,第一层vector表示每一个视角,第二层vector表示每...转载 2018-08-24 16:50:02 · 3456 阅读 · 1 评论 -
Real Time pose estimation of a textured object (solvePnP)
Real Time pose estimation of a textured objectNowadays, augmented reality is one of the top research topic in computer vision and robotics fields. The most elemental problem in augmented reality is ...原创 2018-08-24 16:01:26 · 1070 阅读 · 0 评论 -
Camera calibration with square chessboard
The goal of this tutorial is to learn how to calibrate a camera given a set of chessboard images.Test data: use images in your data/chess folder.Compile opencv with samples by setting BUILD_EXAMPL...原创 2018-08-24 14:22:39 · 462 阅读 · 0 评论 -
Camera calibration With OpenCV
Camera calibration With OpenCVCameras have been around for a long-long time. However, with the introduction of the cheap pinhole cameras in the late 20th century, they became a common occurrence in ...原创 2018-08-24 14:26:30 · 1185 阅读 · 0 评论 -
opencv3的 putText()用法 在棋盘格上标记出角点的序号
函数实现void cvText(cv::Mat* img, int text, cv::Point2f cvPoint){ std::string str = std::to_string(text); int font_face = cv::FONT_HERSHEY_COMPLEX; double font_scale = 2; int thickness ...原创 2018-08-28 21:50:23 · 1142 阅读 · 0 评论 -
opencv:stereoCalibrate()
double stereoCalibrate(InputArrayOfArrays objectPoints, InputArrayOfArrays imagePoints1, InputArrayOfArrays imagePoints2, InputOutputArray cameraMatrix1, InputOutputArray distCoeffs1, InputOutputArray...原创 2018-08-28 09:00:13 · 7350 阅读 · 0 评论 -
opencv Rodrigues互转
Mat_<float> invec = (Mat_<float>(3, 1) << 0.04345, -0.05236, -0.01810); Mat outMat; Rodrigues(invec, outMat); cout << outMat << endl; Mat outv...原创 2018-08-28 00:15:20 · 3906 阅读 · 0 评论 -
PnP 单目相机位姿估计(二):solvePnP利用二维码求解相机世界坐标
https://blog.youkuaiyun.com/cocoaqin/article/details/77848588IDE:visual studio 2013 使用库:Eigen opencv2.4.9 文档版本:1.11.前言 很多时候,当我们利用单目相机获取图像时,往往只能获取图像中特征物体的像素坐标。而在空间三维点计算时,我们也第一时间会想到深度相机(Kinect、Realse...转载 2018-08-30 23:46:55 · 3964 阅读 · 4 评论 -
数学上解释为什么solvePnP至少需要3组点
这几天在做跟踪恢复的时候需要用给定的2D点和R,T计算3D点,于是重新手算了一边图像2D点和空间3D点的关系。过程中搞懂了为什么PnP计算rotation和translation的时候需要至少3组2D/3D点。首先来看图像2D点和空间3D点的关系:对于R和T展开并且对矩阵相乘展开我们得到:把(3)式带入(1)式和(2)式,整理得:Xw * ( fx * R11 + u0 *...转载 2018-08-30 23:35:01 · 2385 阅读 · 1 评论 -
opencv图像二合一并排显示
#include <iostream> #include <fstream> #include "opencv2/highgui/highgui.hpp" #include "opencv2/stitching/stitcher.hpp" using namespace std;using namespace cv; void main(){ ...原创 2018-08-27 22:05:27 · 1948 阅读 · 2 评论 -
图像锐化函数
46 void sharpenImage(const cv::Mat &image, cv::Mat &result)47 {48 //创建并初始化滤波模板49 cv::Mat kernel(3,3,CV_32F,cv::Scalar(0));50 kernel.at<float>(1,1) = 5.0;51 kernel.at...原创 2018-06-28 09:30:03 · 1318 阅读 · 0 评论 -
PCA-SIFT
PCA-SIFT是对传统SIFT算法的改进,由Yan Ke等人在《PCA-SIFT: A More Distinctive Representation for Local Image Descriptors》中提出,论文中采用PCA(Principal Component Analysis)把SIFT特征描述子从128维降到了20维,优化了描述子占用的内存,同时提高了匹配的准确性。复习SIFT原...转载 2018-07-10 09:20:35 · 2477 阅读 · 0 评论 -
利用相机参数 矫正图像中的特征点像素坐标 (单目,双目都可用)
利用函数 undistortPoints()Computes the ideal point coordinates from the observed point coordinates.C++: void undistortPoints(InputArray src, OutputArray dst, InputArray cameraMatrix, InputArray distCo...原创 2018-10-10 11:14:12 · 1773 阅读 · 0 评论