Home | History | Annotate | Download | only in src

Lines Matching defs:points

65 //      points      - convex hull vertices ( any orientation )
70 // left, bottom, right, top - indexes of extremal points
72 // In case CV_CALIPERS_MAXDIST it points to float value -
93 icvRotatingCalipers( CvPoint2D32f* points, int n, int mode, float* out )
113 CvPoint2D32f pt0 = points[0];
134 CvPoint2D32f pt = points[(i+1) & (i+1 < n ? -1 : 0)];
250 float dx = points[seq[opposite_el]].x - points[seq[main_element]].x;
251 float dy = points[seq[opposite_el]].y - points[seq[main_element]].y;
271 float dx = points[seq[1]].x - points[seq[3]].x;
272 float dy = points[seq[1]].y - points[seq[3]].y;
278 dx = points[seq[2]].x - points[seq[0]].x;
279 dy = points[seq[2]].y - points[seq[0]].y;
317 float C1 = A1 * points[((int *) buf)[0]].x + points[((int *) buf)[0]].y * B1;
318 float C2 = A2 * points[((int *) buf)[5]].x + points[((int *) buf)[5]].y * B2;
352 CvPoint2D32f* points = 0;
373 "Input sequence must consist of 2d points or pointers to 2d points" );
419 CV_CALL( points = (CvPoint2D32f*)cvAlloc( n*sizeof(points[0]) ));
428 points[i].x = (float)pt.x;
429 points[i].y = (float)pt.y;
436 CV_READ_SEQ_ELEM( points[i], reader );
442 icvRotatingCalipers( points, n, CV_CALIPERS_MINAREARECT, (float*)out );
451 box.center.x = (points[0].x + points[1].x)*0.5f;
452 box.center.y = (points[0].y + points[1].y)*0.5f;
453 double dx = points[1].x - points[0].x;
454 double dy = points[1].y - points[0].y;
462 box.center = points[0];
470 cvFree( &points );