上一页 1 2 3 4 5 6 7 ··· 10 下一页
摘要: MFC调用CFileDialog之后目录居然会改变,调试了好久终于发现是这个问题,上网搜了下,发现也有人和我出现相同的问题。他的博客如下:http://www.programlife.net/current-directory-changed-after-using-cfiledialog.html MFC调用CFileDialog之后目录改变2011年5月28日 代码疯子 发表评论 阅读评论 今天在写MFC程序时发现调用CFileDialog之后,再来用相对路径打开程序目录下的文件就不对了,打不开了。后来一调试,发现是程序的路径变成了CFileDialog所选择的路径。解决方法:在调用CFi 阅读全文
posted @ 2011-12-30 18:02 物联互通 阅读(540) 评论(0) 推荐(0) 编辑
摘要: 1.北京文安2.上海弘视3.浙江海康威视,大华 阅读全文
posted @ 2011-12-21 08:40 物联互通 阅读(320) 评论(0) 推荐(0) 编辑
摘要: 1 全面整理的C++面试题 http://blog.csdn.net/ljzcome/article/details/574158 阅读全文
posted @ 2011-09-24 19:18 物联互通 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 1. 配置文件读写器 configure fileConfigFile is a C++ class for reading configuration files(可用于程序的参数配置)http://www-personal.umich.edu/~wagnerr/ConfigFile.html 阅读全文
posted @ 2011-08-04 10:24 物联互通 阅读(211) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2011-08-03 10:54 物联互通 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 看到opencv的书上说,新版本的opencv2.2中mat类实现了引用计数,所以在赋值时任然是浅拷贝,但可作为函数返回值,以及类的成员函数返回值如Matfun(){Matresult(3,4,CV_8U);returnreslut;}Matimg=fun();img.at<char>(1,2);如果没有引用计数,最后一句话在运行时,会出现内存错误。但有了引用计数,局部变量relult分配的内存,在函数fun退出时就不会释放掉,而要等到所有的引用对象退出作用域时,内存才会释放。关于引用计数的概念,摘自大漠落日的博客(http://www.cppblog.com/smagle/arc 阅读全文
posted @ 2011-08-01 17:07 物联互通 阅读(449) 评论(0) 推荐(0) 编辑
摘要: 摘自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 阅读全文
posted @ 2011-07-28 18:59 物联互通 阅读(522) 评论(0) 推荐(0) 编辑
摘要: /****************************************************************************************************************************************//遍历文件夹下所有图片文件,并水平翻转复制,和大小归一化.//lian 2011-7-13********************************************************************************************************************* 阅读全文
posted @ 2011-07-18 13:58 物联互通 阅读(2891) 评论(8) 推荐(0) 编辑
摘要: 做机器学习的,经常要提取样本图片,所有写了这个小工具/********************************************************************************************************************************************//从视频中提取样本图片的工具小程序//lian 2011.7.12*************************************************************************************************** 阅读全文
posted @ 2011-07-16 17:33 物联互通 阅读(2311) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2011-07-04 20:52 物联互通 阅读(913) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 10 下一页