码迷,mamicode.com
首页 > 其他好文 > 详细

opencv缩小两次寻找边界

时间:2014-08-14 20:59:29      阅读:396      评论:0      收藏:0      [点我收藏+]

标签:opencv cvpyrdown cvcanny

核心函数:cvPyrDown,cvCanny

bubuko.com,布布扣

程序:

#include "cv.h"
#include "cxcore.h"
#include "highgui.h"
#include <iostream>
#include "function.h"
int FindBorder_Canny(int argc,char** argv)
{
IplImage* src=cvLoadImage("e:\\picture\\11.jpg",0);
cvNamedWindow("src");
cvShowImage("src",src);
IplImage* HalfSizeDst=HalfSize(src);
HalfSizeDst=HalfSize(HalfSizeDst);
IplImage* CannyDst=cvCreateImage(cvGetSize(HalfSizeDst),HalfSizeDst->depth,HalfSizeDst->nChannels);
cvCanny(HalfSizeDst,CannyDst,50,150,3);
cvNamedWindow("CannyDst");
cvShowImage("CannyDst",CannyDst);
cvWaitKey(0);
cvDestroyWindow("src");
cvDestroyWindow("CannyDst");
cvReleaseImage(&src);
cvReleaseImage(&CannyDst);
return 0;
}


本文出自 “flyclc” 博客,请务必保留此出处http://flyclc.blog.51cto.com/1385758/1540034

opencv缩小两次寻找边界,布布扣,bubuko.com

opencv缩小两次寻找边界

标签:opencv cvpyrdown cvcanny

原文地址:http://flyclc.blog.51cto.com/1385758/1540034

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!