added help function
authorGary Bradski <no@email>
Wed, 1 Dec 2010 08:43:16 +0000 (08:43 +0000)
committerGary Bradski <no@email>
Wed, 1 Dec 2010 08:43:16 +0000 (08:43 +0000)
samples/c/delaunay.c

index 1749932..0d8f3e2 100644 (file)
@@ -2,9 +2,16 @@
 #include <opencv2/highgui/highgui.hpp>
 
 #include <stdio.h>
-
-/* the script demostrates iterative construction of
-   delaunay triangulation and voronoi tesselation */
+void help()
+{
+       printf("\nThis program demostrates iterative construction of\n"
+                       "delaunay triangulation and voronoi tesselation.\n"
+                       "It draws a random set of points in an image and then delaunay triangulates them.\n"
+                       "Call:\n"
+                       "./delaunay\n"
+                       "\nThis program builds the traingulation interactively, you may stop this process by\n"
+                       "hitting any key.\n");
+}
 
 CvSubdiv2D* init_delaunay( CvMemStorage* storage,
                            CvRect rect )
@@ -226,6 +233,7 @@ int main( int argc, char** argv )
 #ifdef _MSC_VER
     argc, argv;
 #endif
+    help();
     run();
     return 0;
 }