From: Gary Bradski Date: Sat, 4 Dec 2010 08:34:47 +0000 (+0000) Subject: revamped too X-Git-Tag: accepted/2.0/20130307.220821~3894 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a458d5725750234b349773d4df1ea232b2391b37;p=profile%2Fivi%2Fopencv.git revamped too --- 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(;;)