摘要: 参考文献: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) 编辑
摘要: 这个好像是骨头什么的,但是要求轮廓闭合,于是对图片进行一下膨胀操作,再次检测轮廓就好了。// A closed contour.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"// FindRotation-angle.cpp : 定义控制台应用程序的入口点。///... 阅读全文
posted @ 2014-12-11 11:53 wangyaning 阅读(4641) 评论(0) 推荐(0) 编辑
摘要: 程序没有写完整,大概功能就是实现了,希望大家分享学习,把他改对// FindRotation-angle.cpp : 定义控制台应用程序的入口点。//// findContours.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include ... 阅读全文
posted @ 2014-12-11 11:26 wangyaning 阅读(1498) 评论(0) 推荐(0) 编辑
摘要: 种子点的标记没有太搞懂,这个算法的速度还是很快的// watershed_test20140801.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"//// ch9_watershed image// This is an exact copy of the w... 阅读全文
posted @ 2014-12-11 11:11 wangyaning 阅读(492) 评论(0) 推荐(0) 编辑
摘要: #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 阅读(6125) 评论(0) 推荐(0) 编辑
摘要: 读入彩色3通道图像,转换成灰度图像,再转换成二值图像,完后检测轮廓。// cvtcolor.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include #include #pragma comment(lib, "openc... 阅读全文
posted @ 2014-12-11 10:49 wangyaning 阅读(1390) 评论(0) 推荐(0) 编辑