From 50a0aac391e552bf28f8a7f36aaa5efab29d2ad4 Mon Sep 17 00:00:00 2001 From: Gary Bradski Date: Sat, 4 Dec 2010 08:29:10 +0000 Subject: [PATCH] revamped --- samples/cpp/Qt_sample/main.cpp | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/samples/cpp/Qt_sample/main.cpp b/samples/cpp/Qt_sample/main.cpp index 03780d02b..57c330922 100644 --- a/samples/cpp/Qt_sample/main.cpp +++ b/samples/cpp/Qt_sample/main.cpp @@ -1,13 +1,6 @@ //Yannick Verdie 2010 -//--- Please read me: --- - -//1). This demo is mainly based on work from Javier Barandiaran Martirena -//See this page http://opencv.willowgarage.com/wiki/Posit. -//2). This is a demo to illustrate how to use **OpenGL Callback**. -//3). You need Qt binding to compile this sample with OpenGL support enabled. -//4). The features' detection is very basic and could highly be improved (basic thresholding tuned for the specific video) but 2). - +//--- Please read help() below: --- #include #include @@ -16,14 +9,26 @@ #include #include #include - +using namespace std; +using namespace cv; +void help() +{ + cout << "\nThis demo demonstrates the use of the Qt enhanced version of the highgui GUI interface\n" + " and dang if it doesn't throw in the use of of the POSIT 3D tracking algorithm too\n" + "It works off of the video: cube4.avi\n" + "Using OpenCV version %s\n" << CV_VERSION << "\n\n" +" 1). This demo is mainly based on work from Javier Barandiaran Martirena\n" +" See this page http://opencv.willowgarage.com/wiki/Posit.\n" +" 2). This is a demo to illustrate how to use **OpenGL Callback**.\n" +" 3). You need Qt binding to compile this sample with OpenGL support enabled.\n" +" 4). The features' detection is very basic and could highly be improved \n" +" (basic thresholding tuned for the specific video) but 2).\n" +" 5) THANKS TO Google Summer of Code 2010 for supporting this work!\n" << endl; +} #define FOCAL_LENGTH 600 #define CUBE_SIZE 10 -using namespace std; -using namespace cv; - void renderCube(float size) { glBegin(GL_QUADS); @@ -253,4 +258,4 @@ int main(int argc, char *argv[]) cvReleasePOSITObject(&positObject); return 0; -} \ No newline at end of file +}