Lines Matching refs:mr

61     int *mr;  in icvLMedS()  local
80 mr = (int *) cvAlloc( sizeof( int ) * num * 3 ); in icvLMedS()
90 mr[i * 3] = points2[i * 2]; in icvLMedS()
91 mr[i * 3 + 1] = points2[i * 2 + 1]; in icvLMedS()
93 mr[i * 3 + 2] = 1; in icvLMedS()
105 icvChoose7( ml, mr, num, ml7, mr7 ); in icvLMedS()
111 Mj_new = icvMedian( ml, mr, num, F_try + i * 9 ); in icvLMedS()
130 done = icvBoltingPoints( ml, mr, num, F, Mj, &new_ml, &new_mr, &new_num ); in icvLMedS()
135 cvFree( &mr ); in icvLMedS()
149 error = icvPoint7( ml, mr, F, &i ); in icvLMedS()
166 icvChoose7( int *ml, int *mr, int num, int *ml7, int *mr7 ) in icvChoose7() argument
170 if( !ml || !mr || num < 7 || !ml7 || !mr7 ) in icvChoose7()
190 mr7[i] = mr[3 * indexes[i / 3] + i % 3]; in icvChoose7()
406 icvMedian( int *ml, int *mr, int num, double *F ) in icvMedian() argument
412 if( !ml || !mr || !F ) in icvMedian()
423 l1 = F[0] * mr[i3] + F[1] * mr[i3 + 1] + F[2]; in icvMedian()
424 l2 = F[3] * mr[i3] + F[4] * mr[i3 + 1] + F[5]; in icvMedian()
425 l3 = F[6] * mr[i3] + F[7] * mr[i3 + 1] + F[8]; in icvMedian()
433 d2 = (l1 * mr[i3] + l2 * mr[i3 + 1] + l3) / sqrt( l1 * l1 + l2 * l2 ); in icvMedian()
488 icvBoltingPoints( int *ml, int *mr, in icvBoltingPoints() argument
495 if( !ml || !mr || num < 1 || !F || Mj < 0 ) in icvBoltingPoints()
509 l1 = F[0] * mr[i] + F[1] * mr[i + 1] + F[2]; in icvBoltingPoints()
510 l2 = F[3] * mr[i] + F[4] * mr[i + 1] + F[5]; in icvBoltingPoints()
511 l3 = F[6] * mr[i] + F[7] * mr[i + 1] + F[8]; in icvBoltingPoints()
519 d2 = (l1 * mr[i] + l2 * mr[i + 1] + l3) / sqrt( l1 * l1 + l2 * l2 ); in icvBoltingPoints()
564 (*new_mr)[j++] = mr[i++]; in icvBoltingPoints()
566 (*new_mr)[j++] = mr[i++]; in icvBoltingPoints()
568 (*new_mr)[j++] = mr[i++]; in icvBoltingPoints()
581 icvPoints8( int *ml, int *mr, int num, double *F ) in icvPoints8() argument
587 if( !ml || !mr || num < 8 || !F ) in icvPoints8()
612 l1 = F[0] * mr[i3] + F[1] * mr[i3 + 1] + F[2]; in icvPoints8()
613 l2 = F[3] * mr[i3] + F[4] * mr[i3 + 1] + F[5]; in icvPoints8()
640 U[i9 + j] = w * (double) ml[i3 + j / 3] * (double) mr[i3 + j % 3]; in icvPoints8()
1695 icvPoint7( int *ml, int *mr, double *F, int *amount ) in icvPoint7() argument
1710 if( !ml || !mr || !F ) in icvPoint7()
1718 A[i * 9 + j] = (double) ml[i * 3 + j / 3] * (double) mr[i * 3 + j % 3]; in icvPoint7()