上一页 1 ··· 48 49 50 51 52 53 54 55 56 ··· 156 下一页

2014年12月15日

【OpenCV学习】Kmean均值聚类对图片进行减色处理

摘要: #include #include #include #define MAX_CLUSTERS (8) using namespace std; int main( int argc, char **argv) { IplImage *imgA = cvLoadIm... 阅读全文

posted @ 2014-12-15 16:06 吴一达 阅读(138) 评论(0) 推荐(0)

OpenCV矩阵运算

摘要: 矩阵处理 1、矩阵的内存分配与释放 (1) 总体上: OpenCV 使用C语言来进行矩阵操作。不过实际上有很多C++语言的替代方案可以更高效地完成。 在OpenCV中向量被当做是有一个维数为1的N维矩阵. 矩阵按行-行方式存储,每行以4字节(32位)对齐. (2) 为新矩阵分配内存: C... 阅读全文

posted @ 2014-12-15 15:14 吴一达 阅读(200) 评论(0) 推荐(0)

OpenCV实现仿射变换

摘要: 什么是仿射变换?¶ 一个任意的仿射变换都能表示为 乘以一个矩阵 (线性变换) 接着再 加上一个向量 (平移). 综上所述, 我们能够用仿射变换来表示: 旋转 (线性变换)平移 (向量加)缩放操作 (线性变换) 你现在可以知道, 事实上, 仿射变换代表的是两幅图之间的 关系 . ... 阅读全文

posted @ 2014-12-15 15:05 吴一达 阅读(437) 评论(0) 推荐(0)

windows linux—unix 跨平台通信集成控制系统

摘要: 首先,我们可以用到这个开源的开发包: mdk(Micro-Development-Kit)微量级软件开发包,提供几个常用类,主要实现了一个高性能的并发服务器引擎 使用c++开发,是一个跨平台的开发包,支持linux32/linux64/win32/win64的类库 。 mdk服务器引... 阅读全文

posted @ 2014-12-15 09:58 吴一达 阅读(171) 评论(0) 推荐(0)

2014年12月13日

The type java.lang.Object cannot be resolved. It is indirectly referenced from required .class files

摘要: The type java.lang.Object cannot be resolved.It is indirectly referenced from required .class files 当你在Eclipse引用不同版本JDK工程时会发生该问题。由于你开发环境中应用了多个版本的JD... 阅读全文

posted @ 2014-12-13 16:50 吴一达 阅读(133) 评论(0) 推荐(0)

2014年12月11日

OpenCV 透视变换实例

摘要: 参考文献: http://www.cnblogs.com/self-control/archive/2013/01/18/2867022.html http://opencv-code.com/tutorials/automatic-perspective-correction-for-q... 阅读全文

posted @ 2014-12-11 17:21 吴一达 阅读(346) 评论(0) 推荐(0)

win32 线程通信初步

摘要: // 线程通信机制.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#define NUM_THREADS 10#include #include #include typedef struct{ int Id; HANDLE hTerminate;}... 阅读全文

posted @ 2014-12-11 16:32 吴一达 阅读(156) 评论(0) 推荐(0)

GDI+ 读取jpg图片每个像素的值

摘要: // 读取jpg图像像素rgb值.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include #include #include #pragma comment(lib, "gdiplus.lib")using ... 阅读全文

posted @ 2014-12-11 16:30 吴一达 阅读(247) 评论(0) 推荐(0)

OpenCV 闭合轮廓检测

摘要: 这个好像是骨头什么的,但是要求轮廓闭合,于是对图片进行一下膨胀操作,再次检测轮廓就好了。 // A closed contour.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" // FindRotation-angle.cpp : 定... 阅读全文

posted @ 2014-12-11 11:53 吴一达 阅读(1128) 评论(0) 推荐(0)

OpenCV 求外接矩形以及旋转角度

摘要: 程序没有写完整,大概功能就是实现了,希望大家分享学习,把他改对 // FindRotation-angle.cpp : 定义控制台应用程序的入口点。 // // findContours.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h"... 阅读全文

posted @ 2014-12-11 11:26 吴一达 阅读(1874) 评论(0) 推荐(0)

上一页 1 ··· 48 49 50 51 52 53 54 55 56 ··· 156 下一页

导航