Commit 7c83be16 authored by Gary Bradski's avatar Gary Bradski

added help function

parent e4e6da3e
...@@ -2,9 +2,16 @@ ...@@ -2,9 +2,16 @@
#include <opencv2/highgui/highgui.hpp> #include <opencv2/highgui/highgui.hpp>
#include <stdio.h> #include <stdio.h>
void help()
/* the script demostrates iterative construction of {
delaunay triangulation and voronoi tesselation */ 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, CvSubdiv2D* init_delaunay( CvMemStorage* storage,
CvRect rect ) CvRect rect )
...@@ -226,6 +233,7 @@ int main( int argc, char** argv ) ...@@ -226,6 +233,7 @@ int main( int argc, char** argv )
#ifdef _MSC_VER #ifdef _MSC_VER
argc, argv; argc, argv;
#endif #endif
help();
run(); run();
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment