2013年4月28日
摘要: View Code 1 int main( int argc, char** argv ) { 2 cvNamedWindow( "Example2_9", CV_WINDOW_AUTOSIZE ); 3 CvCapture* capture; 4 if (argc==1) { 5 capture = cvCreateCameraCapture( 0 ); 6 } else { 7 capture = cvCreateFileCapture( argv[1] ); 8 } 9 assert( capture !=... 阅读全文
posted @ 2013-04-28 11:37 wf110 阅读(154) 评论(0) 推荐(0) 编辑
摘要: View Code 1 IplImage* img = cvLoadImage( argv[1] );2 cvNamedWindow("Example1", CV_WINDOW_AUTOSIZE );3 cvShowImage("Example1", img );4 cvWaitKey(0);5 cvReleaseImage( &img );6 cvDestroyWindow("Example1");View Code 1 #pragma comment(lib, "opencv_highgui244d.lib&qu 阅读全文
posted @ 2013-04-28 10:21 wf110 阅读(191) 评论(0) 推荐(0) 编辑