摘要: #include #include #include #include #include #include using namespace std;using namespace cv;void tracking(Mat &frame, Mat &output);bool addNewPoints();bool acceptTrackedPoint(int i);string window_name = "optical flow tracking";Mat gray; // 当前图片Mat gray_prev; // 预测图片vector points[2 阅读全文
posted @ 2013-11-04 17:05 April1314 阅读(929) 评论(0) 推荐(0) 编辑
摘要: 转自:Opencv Chinahttp://wiki.opencv.org.cn/index.php/VC_2010下安装OpenCV2.4.4说明:安装平台:32位XP,VS2010;OpenCV 2.4.4不支持VC 6.0;网上有很多用CMake编译OpenCV的安装教程,这里建议先不要自己编译,如果使用预编译好的库有问题,再尝试自己编译。希望大家好好看看每一部分的注意事项,看懂了再去配置,不然错了,还不知道错在哪里。尤其要注意自己的操作系统的位数,还有相应的路径。目录[隐藏]1一、下载OpenCV2二、设置环境变量2.1用户变量设置2.1.1设置PATH2.1.2新建OpenCV变量2 阅读全文
posted @ 2013-11-04 17:00 April1314 阅读(363) 评论(0) 推荐(0) 编辑
摘要: 转自:Tiger & Pihttp://blog.163.com/my_645/blog/static/369785222013310619742/Watershed就是传说中的分水岭算法, 它将一幅图像看成是一块有湖泊和山川组成的地形。 图像灰度值大的像素对应海拔高的山地, 灰度值低的像素对应于海拔低的盆地。Watershed分割是模拟湖水上涨并在湖泊相遇处筑坝的过程。一般水是从湖泊的最低处灌进去,最低点对应于图像的局部最低点。 但确定局部最低点的自动话算法得到的结果往往不尽如人意, 所以常常要手动指定marker点。函数原型void cvWatershed(Iplimage *sr 阅读全文
posted @ 2013-11-04 16:58 April1314 阅读(1449) 评论(0) 推荐(0) 编辑
摘要: Verilog HDL 程序举例一,基本组合逻辑功能:双向管脚(clocked bidirectional pin)Verilog HDL: Bidirectional PinThis example implements a clocked bidirectional pin in Verilog HDL.The value of OE determines whether bidir is an input, feeding in inp, or a tri-state, driving out the value b.bidir.vmodule bidirec (oe, clk, inp 阅读全文
posted @ 2013-11-04 14:30 April1314 阅读(936) 评论(0) 推荐(0) 编辑