added help function

This commit is contained in:
Gary Bradski 2010-12-01 08:43:16 +00:00
parent e4e6da3e38
commit 7c83be161f

View File

@ -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 )
#ifdef _MSC_VER #ifdef _MSC_VER
argc, argv; argc, argv;
#endif #endif
help();
run(); run();
return 0; return 0;
} }