上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 36 下一页
摘要: 这个好像是骨头什么的,但是要求轮廓闭合,于是对图片进行一下膨胀操作,再次检测轮廓就好了。// 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) 编辑
摘要: // image_pyramid.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include using namespace std;#include "opencv2/imgproc/imgproc.hpp"#include "opencv... 阅读全文
posted @ 2014-12-10 17:31 wangyaning 阅读(282) 评论(0) 推荐(0) 编辑
摘要: /*------------------------------------------------------------------------------------------*\ This file contains material supporting chapter 7 of t... 阅读全文
posted @ 2014-12-10 17:22 wangyaning 阅读(1987) 评论(0) 推荐(0) 编辑
摘要: 另外一篇文章地址:这个比较详细,但是程序略显简单,现在这个程序是比较复杂的http://blog.csdn.net/wangyaninglm/article/details/17091901整个项目下载地址:http://download.csdn.net/detail/wangyaninglm/8... 阅读全文
posted @ 2014-12-10 16:43 wangyaning 阅读(333) 评论(0) 推荐(0) 编辑
摘要: 代码出处,opencv2 cookbook:/*------------------------------------------------------------------------------------------*\ This file contains material sup... 阅读全文
posted @ 2014-12-10 16:19 wangyaning 阅读(296) 评论(0) 推荐(0) 编辑
摘要: 代码:出处忘了//// Example 13-1. Using K-means/////* *************** License:************************** Oct. 3, 2008 Right to use this code in any way yo... 阅读全文
posted @ 2014-12-10 16:00 wangyaning 阅读(284) 评论(0) 推荐(0) 编辑
上一页 1 ··· 21 22 23 24 25 26 27 28 29 ··· 36 下一页