12 2014 档案
摘要:简单说一下popen()函数函数定义#include FILE * popen(const char *command , const char *type );int pclose(FILE *stream);函数说明 popen()函数通过创建一个管道,调用fork()产生一个子进程,执行一个...
阅读全文
摘要:图像边缘检测--OpenCV之cvCanny函数分类: C/C++void cvCanny( const CvArr* image, CvArr* edges, double threshold1, double threshold2, int aperture_size=3 ); image单通道...
阅读全文
摘要:代码为转载,出处找不到了,不贴了工具条进度条:// ConvertColor.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include #pragma comment(lib,"opencv_core2410d.lib")...
阅读全文
摘要:图像边缘检测--OpenCV之cvCanny函数 分类: C/C++ void cvCanny( const CvArr* image, CvArr* edges, double threshold1, double threshold2, int aperture_size=3 ); image单通道输入图像.edges单通道存储边缘的输出图像threshold1第一个阈值threshol...
阅读全文
摘要:#include #include #include #define MAX_CLUSTERS (8)using namespace std;int main( int argc, char **argv){IplImage *imgA = cvLoadImage( "1.jpg", CV_LOAD...
阅读全文
摘要:#include #include #include #define MAX_CLUSTERS (8)using namespace std;int main( int argc, char **argv){IplImage *imgA = cvLoadImage( "1.jpg", CV_LOAD...
阅读全文
摘要:矩阵处理1、矩阵的内存分配与释放(1)总体上:OpenCV 使用C语言来进行矩阵操作。不过实际上有很多C++语言的替代方案可以更高效地完成。在OpenCV中向量被当做是有一个维数为1的N维矩阵.矩阵按行-行方式存储,每行以4字节(32位)对齐.(2)为新矩阵分配内存:CvMat* cvCreateM...
阅读全文
摘要:什么是仿射变换?¶一个任意的仿射变换都能表示为乘以一个矩阵(线性变换) 接着再加上一个向量(平移).综上所述, 我们能够用仿射变换来表示:旋转 (线性变换)平移 (向量加)缩放操作 (线性变换)你现在可以知道, 事实上, 仿射变换代表的是两幅图之间的关系.#include "opencv2/high...
阅读全文
摘要:首先,我们可以用到这个开源的开发包:mdk(Micro-Development-Kit)微量级软件开发包,提供几个常用类,主要实现了一个高性能的并发服务器引擎 使用c++开发,是一个跨平台的开发包,支持linux32/linux64/win32/win64的类库 。 mdk服务器引擎,提出面向业务的...
阅读全文
摘要:参考文献:http://www.cnblogs.com/self-control/archive/2013/01/18/2867022.htmlhttp://opencv-code.com/tutorials/automatic-perspective-correction-for-quadrila...
阅读全文
摘要:// 线程通信机制.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#define NUM_THREADS 10#include #include #include typedef struct{ int Id; HANDLE hTerminate;}Thread...
阅读全文
摘要:// 读取jpg图像像素rgb值.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include #include #include #pragma comment(lib, "gdiplus.lib")using namesp...
阅读全文
摘要:这个好像是骨头什么的,但是要求轮廓闭合,于是对图片进行一下膨胀操作,再次检测轮廓就好了。// A closed contour.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"// FindRotation-angle.cpp : 定义控制台应用程序的入口点。///...
阅读全文
摘要:程序没有写完整,大概功能就是实现了,希望大家分享学习,把他改对// FindRotation-angle.cpp : 定义控制台应用程序的入口点。//// findContours.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include ...
阅读全文
摘要:种子点的标记没有太搞懂,这个算法的速度还是很快的// watershed_test20140801.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"//// ch9_watershed image// This is an exact copy of the w...
阅读全文
摘要:#include "cv.h"#include #include #include #include #include #include #pragma comment(lib,"opencv_core2410d.lib") #pragma comment(lib,"opencv_highg...
阅读全文
摘要:读入彩色3通道图像,转换成灰度图像,再转换成二值图像,完后检测轮廓。// cvtcolor.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include #include #pragma comment(lib, "openc...
阅读全文
摘要:// image_pyramid.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include using namespace std;#include "opencv2/imgproc/imgproc.hpp"#include "opencv...
阅读全文
摘要:/*------------------------------------------------------------------------------------------*\ This file contains material supporting chapter 7 of t...
阅读全文
摘要:另外一篇文章地址:这个比较详细,但是程序略显简单,现在这个程序是比较复杂的http://blog.csdn.net/wangyaninglm/article/details/17091901整个项目下载地址:http://download.csdn.net/detail/wangyaninglm/8...
阅读全文
摘要:代码出处,opencv2 cookbook:/*------------------------------------------------------------------------------------------*\ This file contains material sup...
阅读全文
摘要:代码:出处忘了//// Example 13-1. Using K-means/////* *************** License:************************** Oct. 3, 2008 Right to use this code in any way yo...
阅读全文
摘要:参考:这个帖子的主要代码有错误,根据回帖改了一些http://www.cnblogs.com/tornadomeet/archive/2012/06/06/2538695.html// meanshift.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"// mea...
阅读全文
摘要:文献链接:http://www.cnblogs.com/tornadomeet/archive/2012/12/26/2834336.html下面这个高手,写了个小程序我还没有调试,回头 调试看看http://blog.csdn.net/u013097499/article/details/3001...
阅读全文
浙公网安备 33010602011771号