
OpenCV
ColorPaper
游侠
展开
-
OpenCV中Mat与IplImage和CvMat类型之间的相互转换
Mat类型较CvMat和IplImage有更强的矩阵运算能力,支持常见的矩阵运算(参照Matlab中的各种矩阵运算),所以将IplImage类型和CvMat类型转换为Mat类型更易于数据处理。 Mat类型可用于直接存储图像信息,通过函数imread、imwrite、imshow等实现(与Matlab中的函数相似),似乎在某种程度上可以取代IplImage类型。 (1)将IplImage类型转换转载 2011-12-19 11:58:29 · 562 阅读 · 0 评论 -
UIImage和IplImage之间的相互转换
Converting images between UIImage and IplImage This content is copied from Yoshimasa's blog. Converting images between UIImage and IplImage OpenCV is using IplImage structure转载 2012-05-28 16:04:04 · 995 阅读 · 0 评论 -
iOS中如何将图片文件转为OpenCV中的cv::Mat
/** * 提取图像元数据 * * @param filepath 图片路径,目前只支持jpg格式的图片 * @param convertToGray 是否转化为灰度图片 * * @return cv::Mat */ cv::Mat ae_imageMatFromFile(constchar *filepath, bool convertToGray转载 2012-05-28 10:59:54 · 1604 阅读 · 0 评论 -
使用opencv 2.2静态库时: undefined reference to `clock_gettime' 链接错误问题解决
当你编译程序时, 碰到下面的链接错误, timeval.c:(.text+0x6f): undefined reference to `clock_gettime' 则你只需要在你的Makefile文件里面添加 -lrt ,重新编译即可。转载 2012-04-21 12:37:34 · 1188 阅读 · 0 评论 -
OpenCV中CvMat或Mat的类型
/****************************************************************************************\ * Matrix type (CvMat) * \***************转载 2012-02-21 17:27:45 · 1142 阅读 · 0 评论 -
Comparison of the OpenCV's feature detection algorithms-II
Introduction Here is an update of half year-old post about differences between existing feature detection algorithms. Original article can be found here: Comparison of the OpenCV's feature detecti转载 2012-02-28 16:18:52 · 980 阅读 · 0 评论 -
CentOs6下CMake OpenCV2.3.1错误
CMake OpenCV2.3.1时放生这样的错误: CMake Error at CMakeLists.txt:44 (set_property): set_property given invalid scope CACHE. Valid scopes are GLOBAL, 问题所在 Check your CMake version. Support转载 2012-02-27 16:23:54 · 926 阅读 · 0 评论 -
如何在CentOS6.0上安装OpenCV-2.3.2+FFmpeg0.8.2
刚开始接触Linux,很多东西不懂,真所谓丈二的和尚摸不着头脑,嘿嘿。。。迅速地翻了一遍《鸟哥的私房菜--Linux基础学习》第三版,便有跃跃欲试的冲动了。因为导师给定的课题和图像视频处理有关,于是乎,想在Linux上装个OpenCV和FFmpeg,使用google的goagent代理下载到了OpenCV-2.3.1和FFmpeg0.8.2的源代码,google了大量关于在Linux上如何安装Op转载 2012-02-27 10:33:36 · 826 阅读 · 0 评论 -
Mat::create
Mat::create Allocates new array data if needed. C++: void Mat::create(int rows, int cols, int type) C++: void Mat::create(Size size, int type) C++: void Mat::create(int ndims, cons转载 2012-02-21 17:52:00 · 1024 阅读 · 0 评论 -
从iplImage转换为UIImage
You should use cvSaveImage for that. cvSave saves image in XML/YAML format. Or as an option you can take raw image data and get PNG/JPEG representation usingUIImagePNGRepresentation()/UIImageJPEGR转载 2012-01-06 10:55:59 · 796 阅读 · 0 评论 -
iOS中使用opencv碰到这样的编译错误:non-const static data member must be initialized out of line
The issue seems to be an interference with the default MIN(a,b) macro in one of the iOS frameworks. Got it working by modifying the following files: OpenCV-2.2.0/modules/core/include/opencv2/core/c转载 2012-02-07 21:19:02 · 4476 阅读 · 2 评论 -
在CentOS系统上编译、安装、配置OpenCV
假设CentOS系统下的CodeBlocks已经安装完成,下面我们要在CentOS平台下编译OpenCV,并在CodeBlocks下进行开发测试。 (1)下载OpenCV源码,并编译安装 当前最新的版本是OpenCV-2.2,可以从http://sourceforge.net/projects/opencvlibrary/上下载。 OpenCV的编译方式有两种,一种是传统的./conf转载 2012-02-07 16:52:52 · 696 阅读 · 0 评论 -
将cv::Mat转为IplImage
回答1: It does provide a conversion to IplImage, creating a header without copying the data. So IplImage* img = new IplImage(mat); should work. 回答2: Actually, you can do this: IplImage i转载 2012-01-06 11:10:43 · 1172 阅读 · 0 评论 -
SIFT算法的一些基本概念
SIFT算法的一些基本概念 2009-12-18 19:55 基本概念: 降采样: 对于一幅图像而言的降采样就是每隔几行、几列得到取一点,组成一个新的图像。以比例因子为2(fact of 2)的降采样来说:就是対一幅图像每隔一行一列取一点。对于n×n的图像就变为n/2×n/2的图像了。比例因子为2的降采样是SFIT要用到的! 升采样: 其实一种插值,就是在一幅图像里利用相关的插值运算得转载 2011-12-24 23:29:10 · 824 阅读 · 0 评论 -
Opencv中一些基本概念
(1)ROI和COI ROI在投资领域是Return on investment的意思,也就是投资回率的意思. 在网上一搜大部分是这个意思。 而COI的意思就更是多中多样了。这都是只取首字母的缩写词惹的祸。 实际上ROI在opencv中是指Region of interest,感兴趣的区域的意思。 COI是Channel of interest的意思。在计算机表示图像的时候,是按RG转载 2011-12-23 09:43:29 · 977 阅读 · 0 评论 -
随机抽样一致性算法(RANSAC)
作者:王先荣 本文翻译自维基百科,英文原文地址是:http://en.wikipedia.org/wiki/ransac,如果您英语不错,建议您直接查看原文。 RANSAC是“RANdom SAmple Consensus(随机抽样一致)”的缩写。它可以从一组包含“局外点”的观测数据集中,通过迭代方式估计数学模型的参数。它是一种不确定的算法——它有一定的概率得出一个合理的结果;转载 2011-12-21 00:47:26 · 1015 阅读 · 0 评论 -
编译android版本的opencv 2.4.2
想编译android版本的opencv 2.4.2,首先想到的是按照官方教材去做: http://code.opencv.org/projects/opencv/wiki/Building_OpenCV4Android_from_trunk 在mac os x lion下,按照这个教材,笔者进行了以下操作 1、下载opencv 2.4.2源码包 http:/转载 2012-08-22 15:56:03 · 5036 阅读 · 0 评论