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)

OpenCV 实现分水岭算法

摘要: 种子点的标记没有太搞懂,这个算法的速度还是很快的 // watershed_test20140801.cpp : 定义控制台应用程序的入口点。 // #include "stdafx.h" // // ch9_watershed image // This is an exac... 阅读全文

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

OpenCV 矩形轮廓检测

摘要: 转载请注明出处:http://blog.csdn.net/wangyaninglm/article/details/44151213, 来自:shiter编写程序的艺术 基础介绍 OpenCV里提取目标轮廓的函数是findContours,它的输入图像是一幅二值图像,输出的是每一个... 阅读全文

posted @ 2014-12-11 11:01 吴一达 阅读(2834) 评论(0) 推荐(1)

OpenCV 轮廓检测

摘要: 读入彩色3通道图像,转换成灰度图像,再转换成二值图像,完后检测轮廓。 // cvtcolor.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include #include #pragma comment(lib, "... 阅读全文

posted @ 2014-12-11 10:49 吴一达 阅读(327) 评论(0) 推荐(0)

导航