Commit a458d572 authored by Gary Bradski's avatar Gary Bradski

revamped too

parent 4f7986ec
...@@ -5,18 +5,28 @@ ...@@ -5,18 +5,28 @@
#ifndef _EiC #ifndef _EiC
#include "cv.h" #include "cv.h"
#include "highgui.h" #include "highgui.h"
#include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#endif #endif
#define ARRAY 1 #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 ) int main( int argc, char** argv )
{ {
IplImage* img = cvCreateImage( cvSize( 500, 500 ), 8, 3 ); IplImage* img = cvCreateImage( cvSize( 500, 500 ), 8, 3 );
#if !ARRAY #if !ARRAY
CvMemStorage* storage = cvCreateMemStorage(0); CvMemStorage* storage = cvCreateMemStorage(0);
#endif #endif
help();
cvNamedWindow( "rect & circle", 1 ); cvNamedWindow( "rect & circle", 1 );
for(;;) for(;;)
......
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