opencv
DXT00
这个作者很懒,什么都没留下…
展开
-
OpenCV检测图像中的长方形画布或纸张并提取图像内容
转自:知乎,利用OpenCV检测图像中的长方形画布或纸张并提取图像内容 MyCode:#include<iostream>#include<opencv2\highgui\highgui.hpp>#include<math.h>#include<vector>#include<algorithm>#include<opencv2\imgproc\imgproc.hpp>#include转载 2018-05-10 09:03:09 · 6064 阅读 · 2 评论 -
Mat 像素读取方式---at()和ptr()
转自:http://monkeycoding.com/?p=538at()可用來讀取和修改某個像素值,通常用來對隨機位置的像素進行讀寫,就效率考量,並不適合用在循序查訪影像所有像素,以下用at()來讀取img的所有像素,並讓所有像素值加20:int widthLimit = img.channels() * img.cols;for(int height=0; height<im...转载 2018-07-31 14:30:33 · 2367 阅读 · 0 评论 -
Virtual Function in C++
// ---------https://www.geeksforgeeks.org/virtual-function-cpp/#include <iostream>#include <vector>#include <algorithm>using namespace std;class base{public: virtual void...转载 2018-07-27 15:14:03 · 422 阅读 · 0 评论 -
InputArray OutputArray InputOutputArray in openCV
转自:https://stackoverflow.com/questions/29594048/the-meaning-of-inputoutputarray-in-cvstereocalibrate-declarationThe InputOutputArray is "placeholder" type. Parameters of this type are modified in pl...转载 2018-07-30 10:13:06 · 1041 阅读 · 0 评论 -
calcOpticalFlowPyrLK()光流法找特征点
#include<opencv2\highgui\highgui.hpp>#include<opencv2\imgproc\imgproc.hpp>#include<iostream>#include<string>#include<opencv.hpp>using namespace cv;using namespace ...原创 2018-07-11 21:30:57 · 3721 阅读 · 0 评论 -
opencv Mat 的深拷贝与浅拷贝
深拷贝:操作系统为B开辟了新的内存空间,所以A改变不会导致B改变Mat A,B;A = imread("1.jpg");B = A.clone();浅拷贝:B之拷贝了A的地址,所以A改变的话会导致B改变。Mat A,B;A = imread("1.jpg");B = A;...原创 2018-07-11 21:28:06 · 4376 阅读 · 0 评论 -
win10 +opencv3.4.1-Contrib+Cuda Cmake编译
opencv源码与opencv_contrib版本号一定要一样!!(在这卡了好久 = =) opencv3.4.1与opencv_contrib3.4.1下载链接: https://github.com/opencv/opencv/tree/3.4 https://github.com/opencv/opencv_contrib/tree/3.4CMake : 【注意】...转载 2018-07-04 14:22:07 · 1731 阅读 · 0 评论 -
Opencv KeyPoint类
转自:https://blog.csdn.net/u010821666/article/details/52883580KeyPoint定义:inlineKeyPoint::KeyPoint(Point2f _pt, float _size, float _angle, float _response, int _octave, int _class_id) : pt(_pt), siz...转载 2018-07-10 20:00:27 · 3284 阅读 · 0 评论 -
getPerspectiveTransform()与findHomography()与 HomographyBasedEstimator()
转自:https://blog.csdn.net/dellme99/article/details/50033295etPerspectiveTransform()和findHomography()都用于计算单应性矩阵,即解一个线性方程组。由于单应矩阵有8个未知数(3*3,其中第9个数为1),所以至少需要4个点(每个点-x,y,提供2个约束方程)。getPerspectiveTransfo...转载 2018-06-14 16:52:27 · 4290 阅读 · 2 评论 -
opencv resize()函数
void resize(InputArray src, OutputArray dst, Size dsize, double fx=0, double fy=0, int interpolation=INTER_LINEAR) 参数说明:src - 原图dst - 目标图像。当参数dsize不为0时,dst的大小为size;否则,它的大小需要根据src的大小,参数fx和fy决定。d...转载 2018-06-14 10:25:58 · 17612 阅读 · 0 评论 -
DMatch 结构体
struct CV_EXPORTS_W_SIMPLE DMatch{ CV_WRAP DMatch() : queryIdx(-1), trainIdx(-1), imgIdx(-1), distance(FLT_MAX) {} CV_WRAP DMatch( int _queryIdx, int _trainIdx, float _distance ) : ...原创 2018-05-04 09:37:29 · 1748 阅读 · 0 评论 -
What does CV_8UC3 and the other types stand for in OpenCV?
转自:https://stackoverflow.com/questions/27183946/what-does-cv-8uc3-and-the-other-types-stand-for-in-opencv#define CV_8UC1 CV_MAKETYPE(CV_8U,1)#define CV_8UC2 CV_MAKETYPE(CV_8U,2)#define CV_8UC3 C...转载 2018-07-31 17:45:09 · 186 阅读 · 0 评论