随笔分类 -  OpenCV

摘要:#include "cv.h"#include #include #include #include #include #include #pragma comment(lib,"opencv_core2410d.lib") #pragma comment(lib,"opencv_highg... 阅读全文
posted @ 2014-12-11 11:01 wangyaning 阅读(6167) 评论(0) 推荐(0)
摘要:读入彩色3通道图像,转换成灰度图像,再转换成二值图像,完后检测轮廓。// cvtcolor.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include #include #pragma comment(lib, "openc... 阅读全文
posted @ 2014-12-11 10:49 wangyaning 阅读(1407) 评论(0) 推荐(0)
摘要:// image_pyramid.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include using namespace std;#include "opencv2/imgproc/imgproc.hpp"#include "opencv... 阅读全文
posted @ 2014-12-10 17:31 wangyaning 阅读(286) 评论(0) 推荐(0)
摘要:/*------------------------------------------------------------------------------------------*\ This file contains material supporting chapter 7 of t... 阅读全文
posted @ 2014-12-10 17:22 wangyaning 阅读(2001) 评论(0) 推荐(0)
摘要:另外一篇文章地址:这个比较详细,但是程序略显简单,现在这个程序是比较复杂的http://blog.csdn.net/wangyaninglm/article/details/17091901整个项目下载地址:http://download.csdn.net/detail/wangyaninglm/8... 阅读全文
posted @ 2014-12-10 16:43 wangyaning 阅读(338) 评论(0) 推荐(0)
摘要:代码出处,opencv2 cookbook:/*------------------------------------------------------------------------------------------*\ This file contains material sup... 阅读全文
posted @ 2014-12-10 16:19 wangyaning 阅读(303) 评论(0) 推荐(0)
摘要:代码:出处忘了//// Example 13-1. Using K-means/////* *************** License:************************** Oct. 3, 2008 Right to use this code in any way yo... 阅读全文
posted @ 2014-12-10 16:00 wangyaning 阅读(293) 评论(0) 推荐(0)
摘要:参考:这个帖子的主要代码有错误,根据回帖改了一些http://www.cnblogs.com/tornadomeet/archive/2012/06/06/2538695.html// meanshift.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"// mea... 阅读全文
posted @ 2014-12-10 10:55 wangyaning 阅读(2765) 评论(0) 推荐(0)
摘要:文献链接:http://www.cnblogs.com/tornadomeet/archive/2012/12/26/2834336.html下面这个高手,写了个小程序我还没有调试,回头 调试看看http://blog.csdn.net/u013097499/article/details/3001... 阅读全文
posted @ 2014-12-02 22:12 wangyaning 阅读(702) 评论(0) 推荐(0)
摘要:代码如下:// disparity_to_3d_reconstruction.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"//Huang,Haiqiao coded on Dec.2009代码出处://http://www.opencv.org.cn/forum... 阅读全文
posted @ 2014-11-23 15:19 wangyaning 阅读(2314) 评论(0) 推荐(0)
摘要:之前在网上也没有现成的代码,现在把库中的sample拿出来,分享下结合大牛的博客,好好学习下:http://blog.csdn.net/chenyusiyuan/article/details/5967291/* * stereo_match.cpp * calibration * * Cre... 阅读全文
posted @ 2014-11-16 22:47 wangyaning 阅读(2046) 评论(0) 推荐(0)
摘要:代码有参考跟整合:没有一一列出出处// split_rgb.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include "opencv2/core/core.hpp"#include "opencv2/highgui/hig... 阅读全文
posted @ 2014-11-15 22:44 wangyaning 阅读(407) 评论(0) 推荐(0)
摘要:原文链接:http://www.opencv.org.cn/opencvdoc/2.3.2/html/doc/tutorials/gpu/gpu-basics-similarity/gpu-basics-similarity.html代码中有错误,关于GpuMat OpenCV代码中没有对其进行操作... 阅读全文
posted @ 2014-10-23 17:06 wangyaning 阅读(490) 评论(0) 推荐(0)
摘要:编译的办法参见:http://blog.csdn.net/wangyaninglm/article/details/39997113以下是程序代码,网上搜的例子:注意事项:32位工程添加64位的支持,配置好cuda的项目路径include,添加//swap.cu#include "cuda_runt... 阅读全文
posted @ 2014-10-23 11:47 wangyaning 阅读(1417) 评论(0) 推荐(0)
摘要:之前配置cuda跟opencv 的混合编程,发现只要使用的东西多半还要用opencv的代码编译一次,加上cuda的编译太浪费时间了,我看了几个博客,觉的opencl这个可能会比较好整,就把opencv里面的opencl代码的部分编译了一下,这个比较少,用的时候也能直接检测出来i7 自带的集成显卡:D... 阅读全文
posted @ 2014-10-20 19:31 wangyaning 阅读(657) 评论(0) 推荐(0)
摘要:首先说明的是,这个帖子是成功的编译了dll,但是这个dll使用的时候还是很容易出现各种问题的。发现错误可能是由于系统安装了太多版本的opencv,环境变量的设置混乱,造成dll版本加载不对的问题。更新:下面这篇文章里面有加速编译的设置办法:但是编译器采用了vs2012,我根据他的所有软件版本换了编... 阅读全文
posted @ 2014-10-11 17:18 wangyaning 阅读(337) 评论(0) 推荐(0)