![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
opencv
文章平均质量分 59
此人小白一枚
1111
展开
-
matchTemplate opencv3.0
OpenCV模板匹配函数matchTemplate. 6种方法:method=CV_TM_SQDIFFmethod=CV_TM_SQDIFF_NORMEDmethod=CV_TM_CCORRmethod=CV_TM_CCORR_NORMEDmethod=CV_TM_CCOEFFwhere原创 2017-07-17 09:10:51 · 352 阅读 · 0 评论 -
特征点提取与匹配
兴趣点(interest points),或称作关键点(keypoints)、特征点(feature points) 被大量用于解决物体识别,图像识别、图像匹配、视觉跟踪、三维重建等一系列的问题。不再观察整幅图,而是选择某些特殊的点,然后对他们进行局部有的放矢的分析。如果能检测到足够多的这种点,同时他们的区分度很高,并且可以精确定位稳定的特征,那么这个方法就有使用价值。特征点检测H转载 2017-10-29 14:51:03 · 6445 阅读 · 0 评论 -
在图像点鼠标将坐标储存opencv
#include #include #include #include #include #include #include using namespace std;using namespace cv;Mat org;int n = 0;vector capturePoint;void on_mouse(int event, int x原创 2017-08-30 16:08:31 · 1651 阅读 · 0 评论 -
boundingRect 输入点返回最小矩形
1、boundingRect函数函数作用:计算轮廓的垂直边界最小矩形,矩形是与图像上下边界平行的2、boundingRect函数调用形式C++: Rect boundingRect(InputArray points)points二维点集,点的序列或向量 (Mat)原创 2017-07-19 08:59:59 · 2980 阅读 · 0 评论 -
霍夫检测直线HoughLines和HoughLinesP
标准霍夫变换HoughLines调用:void HoughLines( InputArray image, OutputArray lines, double rho, double theta, int threshold, double srn = 0, double翻译 2017-07-22 11:46:02 · 8933 阅读 · 0 评论 -
opencv filter2D函数实现图像卷积
filter2D是opencv中对图像进行卷积的函数。调用方式如下:CV_EXPORTS_Wvoid filter2D( InputArray src, OutputArray dst, int ddepth, InputArray kernel, Point anchor=Point(-1,-1), double delta=0,int border原创 2017-07-21 17:30:47 · 2222 阅读 · 0 评论 -
画出轮廓drawContours
1、drawContours函数的作用主要用于画出图像的轮廓2、函数的调用形式void drawContours(InputOutputArray image, InputArrayOfArrays contours, int contourIdx, const Scalar& color, int thickness=1, int lineType=8, In原创 2017-07-21 14:37:03 · 5390 阅读 · 0 评论 -
寻找轮廓findContours
void findContours(InputOutputArray image, OutputArrayOfArrays contours, OutputArray hierarchy, int mode, int method, Point offset=Point())参数说明输入图像image必须为一个2值单通道图像contours参数为检测的轮廓数组,每一转载 2017-07-21 11:33:34 · 439 阅读 · 0 评论 -
灰度共生矩阵四个方向得到一组特征值
#include#include#include#include#includeusing namespace std;using namespace cv;const int gray_level = 16;void getglcm_horison(Mat& input, Mat& dst)//0度灰度共生矩阵{Mat src = inpu转载 2017-07-18 09:40:50 · 1867 阅读 · 0 评论 -
opencv形态学操作函数morphologyEx
void morphologyEx(InputArray src, OutputArray dst, int op, InputArray kernel, Point anchor=Point(-1,-1), intiterations=1, int borderType=BORDER_CONSTANT, const Scalar& borderValue=morphologyDe原创 2017-07-20 18:19:45 · 10447 阅读 · 0 评论 -
模板匹配
#include #include "opencv2/core/core.hpp"#include "highgui.h"#include "opencv2/imgproc/imgproc.hpp"#include "opencv2/features2d/features2d.hpp"#include "opencv2/imgproc/imgproc.hpp" #incl原创 2017-07-17 11:03:13 · 228 阅读 · 0 评论 -
rectangle等绘图函数
基本绘图目的本节你将学到:如何用 Point 在图像中定义 2D 点如何以及为何使用 Scalar用OpenCV的函数 line 绘 直线用OpenCV的函数 ellipse 绘 椭圆用OpenCV的函数 rectangle 绘 矩形用OpenCV的函数 circle 绘 圆用OpenCV的函数 fillPoly 绘 填充的多边形OpenCV 原转载 2017-07-17 10:50:21 · 6530 阅读 · 0 评论 -
minMaxLoc opencv
转自:http://www.cnblogs.com/xiangwengao/archive/2012/03/27/2419831.html 函数原型:void minMaxLoc( const Mat& src, double* minVal, double* maxVal=0, Point* minLoc=0, Point* maxLoc=0, const Mat& mask=转载 2017-07-17 09:23:45 · 796 阅读 · 0 评论 -
MFC中使用FindContours()函数使用时导致的程序崩溃问题的解决方案
遇见这个问题头疼了半天,尝试了N中方案,然后把网上所提供的方案整理下,看看哪一种合适你的错误。方案一: 如果使用vector > contours;作为findContours的参数,在运行时会得到 Assertion failed (mtype == type0 || (CV_MAT_CN(mtype) == CV_MAT_CN(type0) && ((1 原因是标准库里有std原创 2018-01-07 21:56:46 · 2416 阅读 · 0 评论