opencv roi – 青春部落,流年似水 http://www.youthtribe.com 青春是一场远行,总记不起来时的路。 Fri, 07 Jun 2013 14:35:25 +0000 zh-CN hourly 1 https://wordpress.org/?v=6.1.7 opencv roi – 青春部落,流年似水 http://www.youthtribe.com/archives/895 http://www.youthtribe.com/archives/895#respond Fri, 07 Jun 2013 14:35:00 +0000 http://www.youthtribe.com/?p=895 以后争取每天实验一个opencv代码吧,这样以后就可以直接复制这些代码了

opencv之roi示例

IplImage * test;
test = cvLoadImage(“2.jpg”);
cvNamedWindow(“哈哈”,CV_WINDOW_AUTOSIZE );
cvShowImage(“哈哈”,test);
//设置一下感兴趣区域,并且显示出来roi
cvSetImageROI(test,(cvRect)(1,1,200,200));
cvNamedWindow(“ROI”,CV_WINDOW_AUTOSIZE );
cvShowImage(“ROI”,test);
//设置一下感兴趣通道,并且显示出来coi
cvResetImageROI(test);
cvSetImageCOI(test,0);
cvNamedWindow(“COI”,CV_WINDOW_AUTOSIZE );
cvGetImageCOI(test);
cvShowImage(“COI”,test);

]]>
http://www.youthtribe.com/archives/895/feed 0