上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 36 下一页
摘要: 代码为转载,出处找不到了,不贴了工具条进度条:// ConvertColor.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include #pragma comment(lib,"opencv_core2410d.lib")... 阅读全文
posted @ 2014-12-19 22:22 wangyaning 阅读(805) 评论(0) 推荐(0) 编辑
摘要: 图像边缘检测--OpenCV之cvCanny函数 分类: C/C++ void cvCanny( const CvArr* image, CvArr* edges, double threshold1, double threshold2, int aperture_size=3 ); image单通道输入图像.edges单通道存储边缘的输出图像threshold1第一个阈值threshol... 阅读全文
posted @ 2014-12-19 20:32 wangyaning 阅读(602) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #define MAX_CLUSTERS (8)using namespace std;int main( int argc, char **argv){IplImage *imgA = cvLoadImage( "1.jpg", CV_LOAD... 阅读全文
posted @ 2014-12-15 16:06 wangyaning 阅读(173) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #define MAX_CLUSTERS (8)using namespace std;int main( int argc, char **argv){IplImage *imgA = cvLoadImage( "1.jpg", CV_LOAD... 阅读全文
posted @ 2014-12-15 15:58 wangyaning 阅读(488) 评论(0) 推荐(0) 编辑
摘要: 矩阵处理1、矩阵的内存分配与释放(1)总体上:OpenCV 使用C语言来进行矩阵操作。不过实际上有很多C++语言的替代方案可以更高效地完成。在OpenCV中向量被当做是有一个维数为1的N维矩阵.矩阵按行-行方式存储,每行以4字节(32位)对齐.(2)为新矩阵分配内存:CvMat* cvCreateM... 阅读全文
posted @ 2014-12-15 15:14 wangyaning 阅读(408) 评论(0) 推荐(0) 编辑
摘要: 什么是仿射变换?¶一个任意的仿射变换都能表示为乘以一个矩阵(线性变换) 接着再加上一个向量(平移).综上所述, 我们能够用仿射变换来表示:旋转 (线性变换)平移 (向量加)缩放操作 (线性变换)你现在可以知道, 事实上, 仿射变换代表的是两幅图之间的关系.#include "opencv2/high... 阅读全文
posted @ 2014-12-15 15:05 wangyaning 阅读(1504) 评论(0) 推荐(0) 编辑
摘要: 首先,我们可以用到这个开源的开发包:mdk(Micro-Development-Kit)微量级软件开发包,提供几个常用类,主要实现了一个高性能的并发服务器引擎 使用c++开发,是一个跨平台的开发包,支持linux32/linux64/win32/win64的类库 。 mdk服务器引擎,提出面向业务的... 阅读全文
posted @ 2014-12-15 09:58 wangyaning 阅读(336) 评论(0) 推荐(0) 编辑
摘要: 参考文献:http://www.cnblogs.com/self-control/archive/2013/01/18/2867022.htmlhttp://opencv-code.com/tutorials/automatic-perspective-correction-for-quadrila... 阅读全文
posted @ 2014-12-11 17:21 wangyaning 阅读(736) 评论(0) 推荐(0) 编辑
摘要: // 线程通信机制.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#define NUM_THREADS 10#include #include #include typedef struct{ int Id; HANDLE hTerminate;}Thread... 阅读全文
posted @ 2014-12-11 16:32 wangyaning 阅读(204) 评论(0) 推荐(0) 编辑
摘要: // 读取jpg图像像素rgb值.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include #include #include #pragma comment(lib, "gdiplus.lib")using namesp... 阅读全文
posted @ 2014-12-11 16:30 wangyaning 阅读(530) 评论(0) 推荐(0) 编辑
上一页 1 ··· 20 21 22 23 24 25 26 27 28 ··· 36 下一页