计算机视觉
文章平均质量分 63
kingeasternsun
向linus致敬!
展开
-
OpenCV使用之-----BruteForceMatcher无法使用
最近Opencv升级比较快,从2.4.0到2.4.1到2.4.2,使得我这个还在使用2.3.1的人很不好意思,而且听说新版本里添加了tbb并行功能,急着想用这些功能的我赶紧下了2.4.2。按部就班的解压、设置c++目录(我使用的是vs2008)、设置环境变量......一系列的完成之后,想用一下surf算法,就尝试着把pdf文档里的代码复制到了vs里,运行一下,发现不行,报错。。。瞬间有点转载 2012-12-07 10:48:30 · 2725 阅读 · 0 评论 -
OpenCV 形状拟合函数总结
EllipseComments from the Wikivoid cvEllipse(CvArr* img, CvPoint center, CvSize axes, double angle, double start_angle, doubleend_angle, CvScalar color, int thickness=1, int lineType=8, i原创 2015-03-24 23:33:16 · 4419 阅读 · 0 评论 -
【转】如何在MATLAB中使用窗函数
一、在 MATLAB 中的窗函数,十分简单:(1)矩形窗(Rectangle Window) 调用格式:w=boxcar(n),根据长度 n 产生一个矩形窗 w。(2)三角窗(Triangular Window) 调用格式:w=triang(n),根据长度 n 产生一个三角窗 w。(3)汉宁窗(Hanning Window) 调用格式:w=ha转载 2013-01-08 16:12:11 · 5631 阅读 · 0 评论 -
OpenCV Threshold的用法
研究下对图像二值化的理解 Threshold对数组元素进行固定阈值操作void cvThreshold( const CvArr* src, CvArr* dst, double threshold, double max_value, int threshold_type );src 原始数组 (单通道 , 8-bit of 32-bit 浮点转载 2012-12-12 09:56:04 · 2889 阅读 · 0 评论 -
opencv函数之RNG
用OpenCV做算法的朋友们肯定为随机数烦恼过,新版本一直支持随机数产生器啦,而且还继续支持之前版本的c格式的函数,不过与时俱进,我这里介绍C++的RNG类。它可以压缩一个64位的i整数并可以得到scalar和array的随机数。目前的版本支持均匀分布随机数和Gaussian分布随机数。随机数的产生采用的是Multiply-With-Carry算法和Ziggurat算法。其构造函数的初始化转载 2012-12-12 11:08:14 · 1635 阅读 · 3 评论 -
OpenCV中ORB代码的参数
OpenCV中ORB的类定义class ORB{public: /** The patch sizes that can be used (only one right now) */ struct CommonParams { enum { DEFAULT_N_LEVELS = 3, DEFAULT_FIRST_LEVEL = 0};原创 2012-12-11 14:12:25 · 4317 阅读 · 3 评论 -
利用特征点(Brief,ORB,SIFT)进行图像匹配,模板匹配
头文件在VS2010+OpenCV2.3.1 #include "StdAfx.h"#include "opencv2/core/core.hpp"#include "opencv2/calib3d/calib3d.hpp"#include "opencv2/features2d/features2d.hpp"#include "opencv2/imgproc/imgproc.原创 2012-12-10 21:27:48 · 7858 阅读 · 1 评论 -
VS2010导入IDE主题并修改
1.在以下网址下载自己喜欢的IDE样式http://www.hanselman.com/blog/VisualStudioProgrammerThemesGallery.aspxhttp://studiostyl.es/下载时选择对应的VS版本2.打开VS2010 工具-》导入导出设置 导入选定的环境设置原创 2012-12-11 10:24:44 · 2939 阅读 · 0 评论 -
OpenCV - undefined reference: SurfFeatureDetector and BruteForceMatcher
If you're using opencv 2.4, SURF and SIFT interfaces are changed to nonfree folder. You can use it by including this line#include For BruteForceMatcher, please#include原创 2012-12-07 12:17:30 · 2096 阅读 · 0 评论 -
OpenCV 边缘提取及绘制
FindContoursComments from the Wikiint cvFindContours(CvArr* image, CvMemStorage* storage, CvSeq** first_contour, intheader_size=sizeof(CvContour), int mode=CV_RETR_LIST, int method=CV_CHAI翻译 2015-03-24 23:33:15 · 3531 阅读 · 0 评论