Home | History | Annotate | Download | only in src

Lines Matching defs:box

351     CvBox2D box;
356 memset(&box, 0, sizeof(box));
443 box.center.x = out[0].x + (out[1].x + out[2].x)*0.5f;
444 box.center.y = out[0].y + (out[1].y + out[2].y)*0.5f;
445 box.size.height = (float)sqrt((double)out[1].x*out[1].x + (double)out[1].y*out[1].y);
446 box.size.width = (float)sqrt((double)out[2].x*out[2].x + (double)out[2].y*out[2].y);
447 box.angle = (float)atan2( -(double)out[1].y, (double)out[1].x );
451 box.center.x = (points[0].x + points[1].x)*0.5f;
452 box.center.y = (points[0].y + points[1].y)*0.5f;
455 box.size.height = (float)sqrt(dx*dx + dy*dy);
456 box.size.width = 0;
457 box.angle = (float)atan2( -dy, dx );
462 box.center = points[0];
465 box.angle = (float)(box.angle*180/CV_PI);
472 return box;