Lines Matching defs:r2
841 const CvRect* r2 = (const CvRect*)_r2;
844 return r2->x <= r1->x + distance &&
845 r2->x >= r1->x - distance &&
846 r2->y <= r1->y + distance &&
847 r2->y >= r1->y - distance &&
848 r2->width <= cvRound( r1->width * 1.2 ) &&
849 cvRound( r2->width * 1.2 ) >= r1->width;
1474 CvAvgComp r2 = *(CvAvgComp*)cvGetSeqElem( seq2, j );
1475 int distance = cvRound( r2.rect.width * 0.2 );
1478 r1.rect.x >= r2.rect.x - distance &&
1479 r1.rect.y >= r2.rect.y - distance &&
1480 r1.rect.x + r1.rect.width <= r2.rect.x + r2.rect.width + distance &&
1481 r1.rect.y + r1.rect.height <= r2.rect.y + r2.rect.height + distance &&
1482 (r2.neighbors > MAX( 3, r1.neighbors ) || r1.neighbors < 3) )