摘要:
#include "stdafx.h"#include <opencv/cv.h>#include <opencv/highgui.h>void main(){IplImage *img;IplImage *convert;img = cvLoadImage("C:\\lena.jpg",CV_LOAD_IMAGE_ANYCOLOR);convert=cvCreateImage( cvGetSize( img ), IPL_DEPTH_8U, 1);cvConvertImage(img,convert,CV_CVTIMG_FLIP 阅读全文
摘要:
本人自己做的:#include "stdafx.h"#include<opencv/cv.h>#include<opencv/highgui.h>int main(){ //a.1从视频中趣图并显示。 CvCapture* capture = cvCreateFileCapture("C:\\test.avi"); IplImage* frame= cvQueryFrame( capture ); if( !frame ) return -1; cvNamedWindow("imagefromviedo", C 阅读全文