Home | History | Annotate | Download | only in test

Lines Matching refs:CvPoint

258     vector<CvPoint> polyline(4);
259 polyline[0] = cvPoint(0, 0);
260 polyline[1] = cvPoint(imgSize.width, 0);
261 polyline[2] = cvPoint(imgSize.width, imgSize.height);
262 polyline[3] = cvPoint(0, imgSize.height);
263 CvPoint* pts = &polyline[0];
268 CvPoint p1 = cvPoint(1,1), p2 = cvPoint(3,3);
270 cvCircle( &img, cvPoint(300,100), 40, cvScalar(0,0,255), 3 ); // draw
272 p1 = cvPoint(1,1), p2 = cvPoint(3,imgSize.height+1000);
274 cvCircle( &img, cvPoint(500,300), 50, cvScalar(255,0,0), 5, 8, 1 ); // draw
276 p1 = cvPoint(imgSize.width,1), p2 = cvPoint(imgSize.width,3);
278 cvCircle( &img, cvPoint(390,100), 10, cvScalar(0,0,255), 3 ); // not draw
282 cvEllipse( &img, cvPoint(390,100), cvSize(20,30), 60, 0, 220.0, cvScalar(0,200,0), 4 ); //draw
295 actualSize = cvEllipse2Poly( cvPoint(430,180), cvSize(100,150), 30, 0, 150, &polyline[0], 20 );
299 for( vector<CvPoint>::const_iterator it = polyline.begin(); n < (int)polyline.size()-1; ++it, n++ )
307 actualSize = cvEllipse2Poly( cvPoint(500,300), cvSize(50,80), 0, 0, 180, &polyline[0], 10 );
314 polyline[0] = cvPoint(500, 20);
315 polyline[1] = cvPoint(580, 20);
316 polyline[2] = cvPoint(580, 100);
317 polyline[3] = cvPoint(500, 100);
319 polyline[4] = cvPoint(520, 40);
320 polyline[5] = cvPoint(560, 40);
321 polyline[6] = cvPoint(560, 80);
322 polyline[7] = cvPoint(520, 80);
323 CvPoint* ppts[] = {&polyline[0], &polyline[0]+4};
327 cvRectangle( &img, cvPoint(0, 300), cvPoint(50, 398), cvScalar(0,0,255) );
336 CvPoint textOrg = cvPoint((imgSize.width - textSize.width)/2, (imgSize.height + textSize.height)/2);
337 cvRectangle( &img, cvPoint( textOrg.x, textOrg.y + baseline),
338 cvPoint(textOrg.x + textSize.width, textOrg.y - textSize.height), cvScalar(0,0,255));
339 cvLine( &img, cvPoint(textOrg.x, textOrg.y + font.thickness),
340 cvPoint(textOrg.x + textSize.width, textOrg.y + font.thickness), cvScalar(0, 0, 255));
348 textOrg = cvPoint(5, 5+textSize.height+dist);
353 textOrg = cvPoint(textOrg.x,textOrg.y+textSize.height+dist);
358 textOrg = cvPoint(textOrg.x,textOrg.y+textSize.height+dist);
363 textOrg = cvPoint(textOrg.x,textOrg.y+textSize.height+dist);
368 textOrg = cvPoint(textOrg.x,textOrg.y+textSize.height+dist);
373 textOrg = cvPoint(textOrg.x,textOrg.y+textSize.height+dist + 180);
378 textOrg = cvPoint(textOrg.x,textOrg.y+textSize.height+dist);
383 textOrg = cvPoint(textOrg.x,textOrg.y+textSize.height+dist);
389 textOrg = cvPoint(textOrg.x,textOrg.y+textSize.height+dist);
397 int count = cvInitLineIterator( &img, cvPoint(0,300), cvPoint(1000, 300), &it );