Lines Matching refs:comp

1326                                 CvAvgComp comp;
1327 comp.rect.x = (comps[i].rect.x*2 + n)/(2*n);
1328 comp.rect.y = (comps[i].rect.y*2 + n)/(2*n);
1329 comp.rect.width = (comps[i].rect.width*2 + n)/(2*n);
1330 comp.rect.height = (comps[i].rect.height*2 + n)/(2*n);
1331 comp.neighbors = n;
1332 cvSeqPush( bseq, &comp );
1364 CvAvgComp comp;
1367 comp.rect.x = comps[i].rect.x;
1368 comp.rect.y = comps[i].rect.y;
1369 comp.rect.width = comps[i].rect.width - comps[i].rect.x + 1;
1370 comp.rect.height = comps[i].rect.height - comps[i].rect.y + 1;
1373 t = cvRound( comp.rect.width*min_scale );
1376 t = cvRound( comp.rect.height*min_scale );
1382 int offset = cvRound(comp.rect.width * 0.2);
1383 int right = MIN( img->cols-1, comp.rect.x+comp.rect.width-1 + offset );
1384 int bottom = MIN( img->rows-1, comp.rect.y+comp.rect.height-1 + offset);
1385 comp.rect.x = MAX( comp.rect.x - offset, 0 );
1386 comp.rect.y = MAX( comp.rect.y - offset, 0 );
1387 comp.rect.width = right - comp.rect.x + 1;
1388 comp.rect.height = bottom - comp.rect.y + 1;
1391 comp.neighbors = n;
1392 cvSeqPush( bseq, &comp );
1406 CvAvgComp* comp = (CvAvgComp*)cvGetSeqElem( bseq, i );
1407 int area = comp->rect.width * comp->rect.height;
1411 result_comp.rect = comp->rect;
1412 result_comp.neighbors = bseq == seq ? 1 : comp->neighbors;
1450 CvAvgComp comp;
1451 comp.rect = *rect;
1452 comp.neighbors = 1;
1453 cvSeqPush( result_seq, &comp );
1489 CvAvgComp comp;
1490 comp.rect.x = (comps[i].rect.x*2 + n)/(2*n);
1491 comp.rect.y = (comps[i].rect.y*2 + n)/(2*n);
1492 comp.rect.width = (comps[i].rect.width*2 + n)/(2*n);
1493 comp.rect.height = (comps[i].rect.height*2 + n)/(2*n);
1494 comp.neighbors = comps[i].neighbors;
1496 cvSeqPush( seq2, &comp );
1534 CvAvgComp* comp = (CvAvgComp*)cvGetSeqElem( seq2, i );
1535 int area = comp->rect.width * comp->rect.height;
1539 result_comp = *comp;