From a458d5725750234b349773d4df1ea232b2391b37 Mon Sep 17 00:00:00 2001 From: Gary Bradski Date: Sat, 4 Dec 2010 08:34:47 +0000 Subject: [PATCH] revamped too --- samples/c/example_cmake/minarea.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/samples/c/example_cmake/minarea.c b/samples/c/example_cmake/minarea.c index c03da82..e37ffdf 100755 --- a/samples/c/example_cmake/minarea.c +++ b/samples/c/example_cmake/minarea.c @@ -5,18 +5,28 @@ #ifndef _EiC #include "cv.h" #include "highgui.h" +#include #include #endif #define ARRAY 1 +void help() +{ + printf("\nThis program demonstrates finding the minimum enclosing box or circle of a set\n" + "of points using functions: minAreaRect() minEnclosingCircle().\n" + "Random points are generated and then enclosed.\n" + "Call:\n" + "./minarea\n"); +} + int main( int argc, char** argv ) { IplImage* img = cvCreateImage( cvSize( 500, 500 ), 8, 3 ); #if !ARRAY CvMemStorage* storage = cvCreateMemStorage(0); #endif - + help(); cvNamedWindow( "rect & circle", 1 ); for(;;) -- 2.7.4