07 2011 档案
opencv2.2版本中访问像素点的效率问题
摘要:摘自opencv2 codebook1. at方式,如image.at<uchar>(i,j) =255或image.at<Vec3b>(i,j)[0] =255此方式的效率比较低,建议只在随机读取时使用,在图片或矩阵轮询时不要使用。2. 指针方式如 uchar* data= image.ptr<uchar>(j),data[i] =elem;指针操作的效率最高,尤其是经过优化后的,一个优化的方法就是用短的循环代替长的循环,一个循环内多做些操作3. 迭代器的方式如cv::Mat_<cv::Vec3b>::iterator it= image.be
阅读全文
利用OPENCV写的对文件夹下所有图片大小归一化的小工具
摘要:/****************************************************************************************************************************************//遍历文件夹下所有图片文件,并水平翻转复制,和大小归一化.//lian 2011-7-13*********************************************************************************************************************
阅读全文
利用OPENCV写的从视频中提取图片样本的小程序
摘要:做机器学习的,经常要提取样本图片,所有写了这个小工具/********************************************************************************************************************************************//从视频中提取样本图片的工具小程序//lian 2011.7.12***************************************************************************************************
阅读全文
OPENCV2.2源文件的结构
摘要:Since version 2.2, the OpenCV library is divided into several modules. These modules are built in library fles located in the lib directory. They are:1 The opencv_core module that contains the core functionalities of the library, in particular, the basic data structures and arithmetic functions.2 Th
阅读全文