/*
*查找轮廓, 绘制轮廓.
*1)cvFindConturs 的输入必须是8bit单通道二值化图像.
*2)当block值足够大时,cvAdaptThreshold能够很好的阈值化.block_size必须为奇数!
*3)开闭运算不需要临时图像
*4)cvFindContours会涂改输入图像
*
*Date: 2012/4/3
*Author: Rocky Chen
*/
#include "stdio.h"
#include "stdafx.h"
#include "highgui.h"
#include <cv.h>
#include <cxcore.h>
#include "iostream"
#include "math.h"
#include <ctype.h>
using namespace std;
using namespace cv;
int main(int argc, char** argv)
{
//窗口,图像文件初始化
const char* file = "D:\\C++ Projects\\OpenCV_project\\test_img\\right14.jpg";
// const char* file = "D:\\C++
*查找轮廓, 绘制轮廓.
*1)cvFindConturs 的输入必须是8bit单通道二值化图像.
*2)当block值足够大时,cvAdaptThreshold能够很好的阈值化.block_size必须为奇数!
*3)开闭运算不需要临时图像
*4)cvFindContours会涂改输入图像
*
*Date: 2012/4/3
*Author: Rocky Chen
*/
#include "stdio.h"
#include "stdafx.h"
#include "highgui.h"
#include <cv.h>
#include <cxcore.h>
#include "iostream"
#include "math.h"
#include <ctype.h>
using namespace std;
using namespace cv;
int main(int argc, char** argv)
{
//窗口,图像文件初始化
const char* file = "D:\\C++ Projects\\OpenCV_project\\test_img\\right14.jpg";
// const char* file = "D:\\C++