摘要:
这个好像是骨头什么的,但是要求轮廓闭合,于是对图片进行一下膨胀操作,再次检测轮廓就好了。// A closed contour.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"// FindRotation-angle.cpp : 定义控制台应用程序的入口点。///... 阅读全文
摘要:
程序没有写完整,大概功能就是实现了,希望大家分享学习,把他改对// FindRotation-angle.cpp : 定义控制台应用程序的入口点。//// findContours.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include ... 阅读全文
摘要:
种子点的标记没有太搞懂,这个算法的速度还是很快的// watershed_test20140801.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"//// ch9_watershed image// This is an exact copy of the w... 阅读全文
摘要:
#include "cv.h"#include #include #include #include #include #include #pragma comment(lib,"opencv_core2410d.lib") #pragma comment(lib,"opencv_highg... 阅读全文
摘要:
读入彩色3通道图像,转换成灰度图像,再转换成二值图像,完后检测轮廓。// cvtcolor.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include #include #include #include #pragma comment(lib, "openc... 阅读全文