摘要: 1 #include "stdafx.h" 2 #include "highgui.h" 3 int g_slider_position = 0; 4 CvCapture* g_capture = NULL; 5 void onTrackbarSlide(int pos) 6 { 7 cvSetCaptureProperty(g_capture, CV_CAP_PROP_POS_FRAMES,pos); 8 } 9 10 int main()11 {12 cvNamedWindow("Test Vedio Slide",CV_WIND 阅读全文
posted @ 2012-05-29 19:25 Epirus 阅读(210) 评论(0) 推荐(0)
摘要: 1 #include "stdafx.h" 2 #include "highgui.h" 3 int main() 4 { 5 cvNamedWindow("example",CV_WINDOW_AUTOSIZE); 6 CvCapture* capture=cvCreateFileCapture("test.avi");//load avi file 7 IplImage* frame; 8 while(1){ 9 frame=cvQueryFrame(capture);//read the frame10 if 阅读全文
posted @ 2012-05-29 14:26 Epirus 阅读(165) 评论(0) 推荐(0)
摘要: #include "stdafx.h"#include "highgui.h"int main(){ IplImage* img=cvLoadImage("test.jpg"); cvNamedWindow("Example1",CV_WINDOW_AUTOSIZE); cvShowImage("Example1",img); cvWaitKey(0); //press any key to be continued cvReleaseImage(&img); cvDestroyWind 阅读全文
posted @ 2012-05-29 13:59 Epirus 阅读(150) 评论(0) 推荐(0)
摘要: View Code 1 #include <iostream> 2 #include <string> 3 #include <math.h> 4 using namespace std; 5 const double Threshold = 1e-6; 6 const int CardsNumber = 4; 7 const int ResultValue = 24; 8 double number[CardsNumber]; 9 string result[CardsNumber]; 10 bool PointGame(int n) 11 { 12 if 阅读全文
posted @ 2012-05-29 13:57 Epirus 阅读(545) 评论(0) 推荐(0)