OpenCV编程-> CvBox2D解析


源码库源码:

typedef struct CvBox2D {     CvPoint2D32f center;  /* Center of the box.                          */  中心点(x,y)     CvSize2D32f  size;    /* Box width and length.                       */  尺度(width,height)     float angle;          /* Angle between the horizontal axis           */  位移长度                            /* and the first side (i.e. length) in degrees */ } CvBox2D;


画矩形框参数设置代码如下:
cvRectangle(image,cvPoint(track_box.center.x-20,track_box.center.y-20),cvPoint(track_box.center.x+20,track_box.center.y+20),CV_RGB(255,0,0), 3, CV_AA, 0 ); 			

画椭圆框参数设置代码如下:

cvEllipseBox( image, track_box, CV_RGB(255,0,0), 3, CV_AA, 0 );


你可能感兴趣的:(OpenCV编程-> CvBox2D解析)