opencv
4月16!
平时记录用,不喜忽喷
展开
-
opencv grab cut
//GrabCut程序#include <iostream>#include <opencv2/opencv.hpp>#include <opencv2/highgui/highgui.hpp>#include <opencv2/imgproc/imgproc.hpp>using namespace cv;using namespace std;void onMouse(int event, int x, int y, int flags, .转载 2021-04-21 17:05:45 · 121 阅读 · 0 评论 -
opencv 4.3 旋转矩阵与旋转向量转化
std::vector<double> r_vec = { -2.100418,-2.167796,0.273330 }; cv::Mat R_matrix(3, 3, CV_8UC1); cv::Rodrigues(r_vec, R_matrix);cout<<R_matrix;原创 2020-09-11 17:38:26 · 1529 阅读 · 0 评论 -
Opencv 鼠标得到坐标点的位置
https://blog.csdn.net/yanglong890124/article/details/29186951这个博客可以实现我的功能要求。https://blog.csdn.net/bit452/article/details/44930073这个博客很详细...原创 2019-03-27 16:59:32 · 3004 阅读 · 0 评论 -
Opencv4 Mat 与 IplImage*互转的记录
Mat转IplImage* :好多博客都写到了这样一句,我看了觉得没毛病啊Mat dst;IplImage *qImg = &(IplImage)dst出现报错:Taking the address of a temporary object of type 'IplImage' (aka '_IplImage')原因:&(IplImage)dst1操作取了临...原创 2019-04-03 11:27:26 · 3585 阅读 · 4 评论 -
Xcode mac 命令安装软件
首先安装Homebrewruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"然后比如要安装opencvbrew install opencv原创 2019-05-30 16:47:10 · 1639 阅读 · 0 评论 -
opencv 求质心理论指导
https://www.cnblogs.com/muffled/p/3344500.html原图转化为二值图像再求质心:#include "stdio.h"#include "stdlib.h"#include <iostream>#include <opencv2/opencv.hpp>#include <opencv2/highgui/high...原创 2019-08-22 09:41:45 · 900 阅读 · 0 评论