Home | History | Annotate | Download | only in src

Lines Matching refs:comp

1294                                 CvAvgComp comp;
1295 comp.rect.x = (comps[i].rect.x*2 + n)/(2*n);
1296 comp.rect.y = (comps[i].rect.y*2 + n)/(2*n);
1297 comp.rect.width = (comps[i].rect.width*2 + n)/(2*n);
1298 comp.rect.height = (comps[i].rect.height*2 + n)/(2*n);
1299 comp.neighbors = n;
1300 cvSeqPush( bseq, &comp );
1332 CvAvgComp comp;
1335 comp.rect.x = comps[i].rect.x;
1336 comp.rect.y = comps[i].rect.y;
1337 comp.rect.width = comps[i].rect.width - comps[i].rect.x + 1;
1338 comp.rect.height = comps[i].rect.height - comps[i].rect.y + 1;
1341 t = cvRound( comp.rect.width*min_scale );
1344 t = cvRound( comp.rect.height*min_scale );
1350 int offset = cvRound(comp.rect.width * 0.2);
1351 int right = MIN( img->cols-1, comp.rect.x+comp.rect.width-1 + offset );
1352 int bottom = MIN( img->rows-1, comp.rect.y+comp.rect.height-1 + offset);
1353 comp.rect.x = MAX( comp.rect.x - offset, 0 );
1354 comp.rect.y = MAX( comp.rect.y - offset, 0 );
1355 comp.rect.width = right - comp.rect.x + 1;
1356 comp.rect.height = bottom - comp.rect.y + 1;
1359 comp.neighbors = n;
1360 cvSeqPush( bseq, &comp );
1374 CvAvgComp* comp = (CvAvgComp*)cvGetSeqElem( bseq, i );
1375 int area = comp->rect.width * comp->rect.height;
1379 result_comp.rect = comp->rect;
1380 result_comp.neighbors = bseq == seq ? 1 : comp->neighbors;
1414 CvAvgComp comp;
1415 comp.rect = *rect;
1416 comp.neighbors = 1;
1417 cvSeqPush( result_seq, &comp );
1453 CvAvgComp comp;
1454 comp.rect.x = (comps[i].rect.x*2 + n)/(2*n);
1455 comp.rect.y = (comps[i].rect.y*2 + n)/(2*n);
1456 comp.rect.width = (comps[i].rect.width*2 + n)/(2*n);
1457 comp.rect.height = (comps[i].rect.height*2 + n)/(2*n);
1458 comp.neighbors = comps[i].neighbors;
1460 cvSeqPush( seq2, &comp );
1498 CvAvgComp* comp = (CvAvgComp*)cvGetSeqElem( seq2, i );
1499 int area = comp->rect.width * comp->rect.height;
1503 result_comp = *comp;