Lines Matching refs:points

46 icvFitLine2D_wods( CvPoint2D32f * points, int _count, float *weights, float *line )  in icvFitLine2D_wods()  argument
60 x += points[i].x; in icvFitLine2D_wods()
61 y += points[i].y; in icvFitLine2D_wods()
62 x2 += points[i].x * points[i].x; in icvFitLine2D_wods()
63 y2 += points[i].y * points[i].y; in icvFitLine2D_wods()
64 xy += points[i].x * points[i].y; in icvFitLine2D_wods()
72 x += weights[i] * points[i].x; in icvFitLine2D_wods()
73 y += weights[i] * points[i].y; in icvFitLine2D_wods()
74 x2 += weights[i] * points[i].x * points[i].x; in icvFitLine2D_wods()
75 y2 += weights[i] * points[i].y * points[i].y; in icvFitLine2D_wods()
76 xy += weights[i] * points[i].x * points[i].y; in icvFitLine2D_wods()
102 icvFitLine3D_wods( CvPoint3D32f * points, int count, float *weights, float *line ) in icvFitLine3D_wods() argument
120 float x = points[i].x; in icvFitLine3D_wods()
121 float y = points[i].y; in icvFitLine3D_wods()
122 float z = points[i].z; in icvFitLine3D_wods()
142 float x = points[i].x; in icvFitLine3D_wods()
143 float y = points[i].y; in icvFitLine3D_wods()
144 float z = points[i].z; in icvFitLine3D_wods()
220 icvCalcDist2D( CvPoint2D32f * points, int count, float *_line, float *dist ) in icvCalcDist2D() argument
231 x = points[j].x - px; in icvCalcDist2D()
232 y = points[j].y - py; in icvCalcDist2D()
242 icvCalcDist3D( CvPoint3D32f * points, int count, float *_line, float *dist ) in icvCalcDist3D() argument
254 x = points[j].x - px; in icvCalcDist3D()
255 y = points[j].y - py; in icvCalcDist3D()
256 z = points[j].z - pz; in icvCalcDist3D()
339 static CvStatus icvFitLine2D( CvPoint2D32f * points, int count, int dist, in icvFitLine2D() argument
359 return icvFitLine2D_wods( points, count, 0, line ); in icvFitLine2D()
408 icvFitLine2D_wods( points, count, w, _line ); in icvFitLine2D()
435 err = icvCalcDist2D( points, count, _line, r ); in icvFitLine2D()
464 icvFitLine2D_wods( points, count, w, _line ); in icvFitLine2D()
488 icvFitLine3D( CvPoint3D32f * points, int count, int dist, in icvFitLine3D() argument
508 return icvFitLine3D_wods( points, count, 0, line ); in icvFitLine3D()
558 icvFitLine3D_wods( points, count, w, _line ); in icvFitLine3D()
592 if( icvCalcDist3D( points, count, _line, r ) < FLT_EPSILON*count ) in icvFitLine3D()
620 icvFitLine3D_wods( points, count, w, _line ); in icvFitLine3D()
648 schar* points = 0; in cvFitLine() local
691 points = ptseq->first->data; in cvFitLine()
695 CV_CALL( buffer = points = (schar*)cvAlloc( ptseq->total*CV_ELEM_SIZE(type) )); in cvFitLine()
696 CV_CALL( cvCvtSeqToArray( ptseq, points, CV_WHOLE_SEQ )); in cvFitLine()
704 ((float*)points)[i] = (float)((int*)points)[i]; in cvFitLine()
713 IPPI_CALL( icvFitLine2D( (CvPoint2D32f*)points, ptseq->total, in cvFitLine()
718 IPPI_CALL( icvFitLine3D( (CvPoint3D32f*)points, ptseq->total, in cvFitLine()