Lines Matching refs:points
93 icvRotatingCalipers( CvPoint2D32f* points, int n, int mode, float* out ) in icvRotatingCalipers() argument
113 CvPoint2D32f pt0 = points[0]; in icvRotatingCalipers()
134 CvPoint2D32f pt = points[(i+1) & (i+1 < n ? -1 : 0)]; in icvRotatingCalipers()
250 float dx = points[seq[opposite_el]].x - points[seq[main_element]].x; in icvRotatingCalipers()
251 float dy = points[seq[opposite_el]].y - points[seq[main_element]].y; in icvRotatingCalipers()
271 float dx = points[seq[1]].x - points[seq[3]].x; in icvRotatingCalipers()
272 float dy = points[seq[1]].y - points[seq[3]].y; in icvRotatingCalipers()
278 dx = points[seq[2]].x - points[seq[0]].x; in icvRotatingCalipers()
279 dy = points[seq[2]].y - points[seq[0]].y; in icvRotatingCalipers()
317 float C1 = A1 * points[((int *) buf)[0]].x + points[((int *) buf)[0]].y * B1; in icvRotatingCalipers()
318 float C2 = A2 * points[((int *) buf)[5]].x + points[((int *) buf)[5]].y * B2; in icvRotatingCalipers()
352 CvPoint2D32f* points = 0; in cvMinAreaRect2() local
419 CV_CALL( points = (CvPoint2D32f*)cvAlloc( n*sizeof(points[0]) )); in cvMinAreaRect2()
428 points[i].x = (float)pt.x; in cvMinAreaRect2()
429 points[i].y = (float)pt.y; in cvMinAreaRect2()
436 CV_READ_SEQ_ELEM( points[i], reader ); in cvMinAreaRect2()
442 icvRotatingCalipers( points, n, CV_CALIPERS_MINAREARECT, (float*)out ); in cvMinAreaRect2()
451 box.center.x = (points[0].x + points[1].x)*0.5f; in cvMinAreaRect2()
452 box.center.y = (points[0].y + points[1].y)*0.5f; in cvMinAreaRect2()
453 double dx = points[1].x - points[0].x; in cvMinAreaRect2()
454 double dy = points[1].y - points[0].y; in cvMinAreaRect2()
462 box.center = points[0]; in cvMinAreaRect2()
470 cvFree( &points ); in cvMinAreaRect2()