随笔分类 -  轮廓检测

摘要:参考文献: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 阅读(754) 评论(0) 推荐(0)
摘要:这个好像是骨头什么的,但是要求轮廓闭合,于是对图片进行一下膨胀操作,再次检测轮廓就好了。// A closed contour.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"// FindRotation-angle.cpp : 定义控制台应用程序的入口点。///... 阅读全文
posted @ 2014-12-11 11:53 wangyaning 阅读(4710) 评论(0) 推荐(0)
摘要:程序没有写完整,大概功能就是实现了,希望大家分享学习,把他改对// FindRotation-angle.cpp : 定义控制台应用程序的入口点。//// findContours.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include ... 阅读全文
posted @ 2014-12-11 11:26 wangyaning 阅读(1508) 评论(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 阅读(6163) 评论(0) 推荐(0)
摘要:读入彩色3通道图像,转换成灰度图像,再转换成二值图像,完后检测轮廓。// cvtcolor.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include #include #pragma comment(lib, "openc... 阅读全文
posted @ 2014-12-11 10:49 wangyaning 阅读(1401) 评论(0) 推荐(0)