摘要: 华 为 的 冬 天 这是一篇在IT业界流传的文章,许多公司的老总都向下属推荐阅读,联想集团总裁杨元庆就是该文的积极推荐者。有人认为这是任正非为IT业敲响的警钟,也有人说任正非是“作秀”,还有人猜测是华为在为人事变动制造舆论。由于华为的老总任正非很少和媒体打交道,因此我们无从知晓这篇文章的真实背景,但是,在华为2000财年销售额达220亿元,利润以29亿元人民币位居全国电子百强首位... 阅读全文
posted @ 2012-11-09 10:57 行远_ 阅读(225) 评论(0) 推荐(1) 编辑
摘要: CamShift的原理还是比较简单的,跟踪直方图特征搜索出目标进行跟踪,相对于meanShift,解决的尺度问题。代码如下:#include "opencv2/video/tracking.hpp"#include "opencv2/imgproc/imgproc.hpp"#include "opencv2/highgui/highgui.hpp"#include <iostream>#include <ctype.h>using namespace cv;using namespace std;Mat ima 阅读全文
posted @ 2012-11-02 21:02 行远_ 阅读(1742) 评论(0) 推荐(0) 编辑
摘要: opencv实现批量读图像序列,以函数的形式实现如下:void readImageSequenceFiles(char* imgFilePath,vector <string> &imgNames)//用vector <string>做存贮文件名的容器{ imgNames.clear(); int i=0; char tmpDirSpec[MAX_PATH+1]; char tmpDirPath[40]; sprintf (tmpDirSpec, "%s/*", imgFilePath);//*任意文件名 正则表达式 WIN32_FIND_D 阅读全文
posted @ 2012-10-19 21:30 行远_ 阅读(2842) 评论(0) 推荐(0) 编辑
摘要: #include <iostream>#include <vector>#include <opencv2/core/core.hpp>#include <opencv2/imgproc/imgproc.hpp>#include <opencv2/highgui/highgui.hpp>using namespace std;using namespace cv;int main(){ // Read input binary image Mat image= imread("./binaryGroup.bmp", 阅读全文
posted @ 2012-10-15 22:49 行远_ 阅读(41126) 评论(1) 推荐(2) 编辑
摘要: 原文地址http://mikecr.it/ramblings/coding-skill-vs-employee-skillYou can get far without being a great coderOn September 5, 2012 - 5:41pmAt the extremely basic level, there are basically two good qualities that each programmer should strive for: programming skill and employee skill.Programming skill is 阅读全文
posted @ 2012-10-12 17:00 行远_ 阅读(350) 评论(0) 推荐(0) 编辑
摘要: 单例模式,也叫单子模式,是一种常用的软件设计模式。在应用这个模式时,单例对象的类必须保证只有一个实例存在。许多时候整个系统只需要拥有一个的全局对象,这样有利于我们协调系统整体的行为(系统的全局控制器)。比如在某个服务器程序中,该服务器的配置信息存放在一个文件中,这些配置数据由一个单例对象统一读取,然后服务进程中的其他对象再通过这个单例对象获取这些配置信息。这种方式简化了在复杂环境下的配置管理。 实现单例模式的思路是:一个类能返回对象一个引用(永远是同一个)和一个获得该实例的方法(必须是静态方法,通常使用getInstance这个名称);当我们调用这个方法时,如果类持有的引用不为空就返回这个.. 阅读全文
posted @ 2012-10-11 11:55 行远_ 阅读(3201) 评论(0) 推荐(0) 编辑
摘要: //策略模式实例代码//策略模式作为一种软件设计模式,指对象有某个行为,但在不同的场景中,//该行为有的实现算法。#include <iostream>using namespace std;class StrategyInterface //虚基类{public: virtual void execute() = 0;//纯虚函数};class ConcreteStrategyA: public StrategyInterface{public: virtual void execute() { cout << "Called ConcreteS... 阅读全文
posted @ 2012-10-10 16:27 行远_ 阅读(191) 评论(0) 推荐(0) 编辑
摘要: //本代码为在视频帧中标记帧数,在第一帧鼠标取框的功能性测试程序#include <opencv2/core/core.hpp>#include <opencv2/highgui/highgui.hpp>#include <iostream>#include <stdio.h>#include <string.h>using namespace cv;using namespace std;Rect box; bool drawing_box = false;bool gotBB = false; void mouseHandler( 阅读全文
posted @ 2012-10-08 21:57 行远_ 阅读(1878) 评论(0) 推荐(0) 编辑
摘要: #include <opencv2/core/core.hpp>#include <opencv2/highgui/highgui.hpp>#include <iostream>#include <stdio.h>#include <string.h>using namespace cv;using namespace std;int main(){void draw_framecount(Mat Frame,int framecount);namedWindow("text");for (int count=1; 阅读全文
posted @ 2012-10-08 21:04 行远_ 阅读(6667) 评论(0) 推荐(0) 编辑
摘要: 2012.10.02 偶尔感觉很疲惫,记下这句鼓励自己:真的猛士,敢于直面惨淡的人生,敢于正视淋漓的鲜血。 阅读全文
posted @ 2012-10-02 21:37 行远_ 阅读(175) 评论(0) 推荐(0) 编辑