//Yannick Verdie 2010\r
\r
-//--- Please read me: ---\r
-\r
-//1). This demo is mainly based on work from Javier Barandiaran Martirena\r
-//See this page http://opencv.willowgarage.com/wiki/Posit.\r
-//2). This is a demo to illustrate how to use **OpenGL Callback**.\r
-//3). You need Qt binding to compile this sample with OpenGL support enabled.\r
-//4). The features' detection is very basic and could highly be improved (basic thresholding tuned for the specific video) but 2).\r
-\r
+//--- Please read help() below: ---\r
\r
#include <iostream>\r
#include <vector>\r
#include <gl/GL.h>\r
#include <opencv/cxcore.h>\r
#include <opencv/cv.h>\r
-\r
+using namespace std;\r
+using namespace cv;\r
+void help()\r
+{\r
+ cout << "\nThis demo demonstrates the use of the Qt enhanced version of the highgui GUI interface\n"\r
+ " and dang if it doesn't throw in the use of of the POSIT 3D tracking algorithm too\n"\r
+ "It works off of the video: cube4.avi\n"\r
+ "Using OpenCV version %s\n" << CV_VERSION << "\n\n"\r
+" 1). This demo is mainly based on work from Javier Barandiaran Martirena\n"\r
+" See this page http://opencv.willowgarage.com/wiki/Posit.\n"\r
+" 2). This is a demo to illustrate how to use **OpenGL Callback**.\n"\r
+" 3). You need Qt binding to compile this sample with OpenGL support enabled.\n"\r
+" 4). The features' detection is very basic and could highly be improved \n"\r
+" (basic thresholding tuned for the specific video) but 2).\n"\r
+" 5) THANKS TO Google Summer of Code 2010 for supporting this work!\n" << endl;\r
+}\r
\r
#define FOCAL_LENGTH 600\r
#define CUBE_SIZE 10\r
\r
-using namespace std;\r
-using namespace cv;\r
-\r
void renderCube(float size)\r
{\r
glBegin(GL_QUADS);\r
cvReleasePOSITObject(&positObject);\r
\r
return 0;\r
-}
\ No newline at end of file
+}\r