2020
10-08
10-08
OpenCV实现最小外接正矩形
本文实例为大家分享了OpenCV实现最小外接正矩形的具体代码,供大家参考,具体内容如下#include"stdafx.h"#include"cv.h"#include"highgui.h"#include"cxcore.h"#include"math.h"#include<iostream.h>intmain(intargc,char*argv[]){IplImage*src;IplImage*dst;IplImage*ROI;CvMemStorage*storage=cvCreateMemStorage(0);CvSeq*contour=0;src=cvLoadImage("I:\\test.jpg",0);cvNamedWindow("image0"...
继续阅读 >