typedefstruct _IplImage { int nSize; int ID; int nChannels; int alphaChannel; int depth; char colorModel[4]; char dataOrder; int origin; int align; intwidth; intheight; struct _IplROI *roi; struct _IplImage *maskROI; void *imageId; struct _IplTileInfo *tileInfo; int imageSize; char *imageData; int widthStep; int BorderMode[4]; int BorderConst[4]; char *imageDataOrigin; } IplImage;
voidcvLine(CvArr* array, CvPoint pt1, CvPoint pt2, CvScalar color, int thickness=1, int connectivity=8); // 直线 voidcvRectangle(CvArr* array, CvPoint pt1, CvPoint pt2, CvScalar color, int thickness=1); // 矩形
圆形和椭圆
1 2
voidcvCircle(CvArr* array, CvPoint center, int radius, CvScalar color, int thickness=1, int connectivity=8); // 圆形 voidcvEllipse(CvArr* img, CvPoint center, CvSize axes, double angle, double start_angle, double end_angle, CvScalar color, int thickness=1, int line_type=8); // 椭圆
多边形
1
voidcvFillPoly(CvArr* img, CvPoint** pts, int* npts, int contours, CvScalar color, int line_type=8); // 多边形