Update to 2.0.0 tree from current Fremantle build
[opencv] / apps / Hawk / demos / Primitives.c
diff --git a/apps/Hawk/demos/Primitives.c b/apps/Hawk/demos/Primitives.c
deleted file mode 100644 (file)
index ed69369..0000000
+++ /dev/null
@@ -1,168 +0,0 @@
-#define NUMBER 50\r
-char wndname[] = "Primitives";\r
-int i;\r
-\r
-// Load the source image\r
-IPLIMAGE image = load_iplimage("headband.bmp");\r
-\r
-\r
-// Create a window\r
-named_window(wndname, 0);\r
-show_iplimage(wndname,image);\r
-\r
-srand(11111);\r
-CvPoint pt1,pt2;\r
-\r
-for (i = 0; i< NUMBER; i++)\r
-{\r
-pt1.x=rand()/80;\r
-pt1.y=rand()/80;\r
-pt2.x=rand()/80;\r
-pt2.y=rand()/80;\r
-\r
-cvLine( image,pt1, pt2,\r
-CV_RGB(rand()/100,rand()/100,rand()/100), rand()/3000, 8 );\r
-show_iplimage(wndname,image);\r
-}\r
-\r
-for (i = 0; i< NUMBER; i++)\r
-{\r
-pt1.x=rand()/80;\r
-pt1.y=rand()/80;\r
-pt2.x=rand()/80;\r
-pt2.y=rand()/80;\r
-\r
-cvRectangle( image,pt1, pt2, \r
-CV_RGB(rand()/100,rand()/100,rand()/100),\r
-rand()/3000 );\r
-show_iplimage(wndname,image);\r
-}\r
-\r
-double angle;\r
-CvSize sz;\r
-\r
-for (i = 0; i< NUMBER; i++)\r
-{\r
-pt1.x=rand()/100;\r
-pt1.y=rand()/100;\r
-sz.width =rand()/50;\r
-sz.height=rand()/50;\r
-sz.height = sz.width = 100;\r
-angle =((double)rand())*3.14/12000.0;\r
-\r
-cvEllipse( image,\r
-pt1, sz, angle,\r
-angle - 100,\r
-angle + 200,\r
-CV_RGB(rand()/100,rand()/100,rand()/100), 6 );\r
-\r
-show_iplimage(wndname,image);\r
-}\r
-\r
-CvPoint  ptt[6];\r
-CvPoint* pt[6];\r
-\r
-pt[0] = &(ptt[0]);\r
-pt[1] = &(ptt[1]);\r
-pt[2] = &(ptt[2]);\r
-pt[3] = &(ptt[3]);\r
-pt[4] = &(ptt[4]);\r
-pt[5] = &(ptt[5]);\r
-\r
-int  arr[2];\r
-arr[0] = 3;\r
-arr[1] = 3;\r
-\r
-for (i = 0; i< NUMBER; i++)\r
-{\r
-pt[0]->x=rand()/100;\r
-pt[0]->y=rand()/100;\r
-pt[1]->x=rand()/100;\r
-pt[1]->y=rand()/100;\r
-pt[2]->x=pt[0]->x;\r
-pt[2]->y=pt[0]->y;\r
-pt[3]->x=rand()/100;\r
-pt[3]->y=rand()/100;\r
-pt[4]->x=rand()/100;\r
-pt[4]->y=rand()/100;\r
-pt[5]->x=pt[3]->x;\r
-pt[5]->y=pt[3]->y;\r
-\r
-cvPolyLine( image, &pt,&arr, 2, 1, \r
-CV_RGB(rand()/100,rand()/100,rand()/100), 2, 8 );\r
-\r
-show_iplimage(wndname,image);\r
-}\r
-\r
-for (i = 0; i< NUMBER; i++)\r
-{\r
-pt[0]->x=rand()/100;\r
-pt[0]->y=rand()/100;\r
-pt[1]->x=rand()/100;\r
-pt[1]->y=rand()/100;\r
-pt[2]->x=pt[0]->x;\r
-pt[2]->y=pt[0]->y;\r
-pt[3]->x=rand()/100;\r
-pt[3]->y=rand()/100;\r
-pt[4]->x=rand()/100;\r
-pt[4]->y=rand()/100;\r
-pt[5]->x=pt[3]->x;\r
-pt[5]->y=pt[3]->y;\r
-\r
-cvFillPoly( image, \r
-&pt,&arr,2,CV_RGB(rand()/100,rand()/100,rand()/100) );\r
-\r
-show_iplimage(wndname,image);\r
-}\r
-\r
-for (i = 0; i< NUMBER; i++)\r
-{\r
-pt1.x=rand()/80;\r
-pt1.y=rand()/80;\r
-pt2.x=rand()/80;\r
-pt2.y=rand()/80;\r
-\r
-cvCircle (image, pt1, rand()/120,\r
-CV_RGB(rand()/100,rand()/100,rand()/100) , 1);\r
-show_iplimage(wndname,image);\r
-}\r
-\r
-\r
-CvFont font;\r
-\r
-for (i = 1; i< NUMBER; i++)\r
-{\r
-pt1.x=rand()/150;\r
-pt1.y=rand()/110;\r
-\r
-cvInitFont( &font , CV_FONT_VECTOR0 ,\r
-rand()/5000.0, rand()/5000.0, \r
-rand()/40000.0, rand()/2000.0 );\r
-\r
-cvPutText( image, "Hawk",\r
-pt1, &font,\r
-CV_RGB((rand()/100)*10/i,(rand()/100)*10/i,(rand()/100)*10/i));\r
-\r
-show_iplimage(wndname,image);\r
-}\r
-\r
-cvInitFont( &font , CV_FONT_VECTOR0 ,\r
-1, 2, \r
-0.0, 7 );\r
-\r
-pt1.x=40;\r
-pt1.y=200;\r
-\r
-for(i = 0; i < 255; i++)\r
-{\r
-    cvPutText( image, "OpenCV forever!",\r
-    pt1, &font,\r
-    CV_RGB(255,i,i));\r
-    show_iplimage(wndname,image);\r
-}\r
-\r
-\r
-// Wait for a key stroke; the same function arranges events processing\r
-wait_key(0);\r
-cvReleaseImage(&image);\r
-destroy_window(wndname);\r