Opencv的Ellipse函数

Ellipse

绘制椭圆圆弧和椭圆扇形。

void cvEllipse( CvArr* img, CvPoint center, CvSize axes, double angle,
                double start_angle, double end_angle, CvScalar color,
                int thickness=1, int line_type=8, int shift=0 );

C++: void ellipse(Mat&img, Pointcenter, Size axes, doubleangle, doublestartAngle, double endAngle, const Scalar&color, intthickness=1, int lineType=8, intshift=0)

C++: void ellipse(Mat&img, const RotatedRect&box, const Scalar& color, int thickness=1, intlineType=8)

img 图像。 center 椭圆圆心座标。 axes 轴的长度。 angle 偏转的角度。 start_angle 圆弧起始角的角度。. end_angle 圆弧终结角的角度。 color 线条的颜色。 thickness 线条的粗细程度。 line_type 线条的类型,见CVLINE的描述。 shift 圆心座标点和数轴的精度。

函数cvEllipse用来绘制或者填充一个简单的椭圆弧或椭圆扇形。圆弧被ROI矩形所忽略。反走样弧线和粗弧线使用线性分段近似值。所有的角都是以角度的形式给定的。下面的图片将解释这些参数的含义。

Parameters of Elliptic Arc

参考:

http://www.opencv.org.cn/index.php/Cxcore%E7%BB%98%E5%9B%BE%E5%87%BD%E6%95%B0#Ellipse

http://www.opencv.org.cn/opencvdoc/2.3.2/html/modules/core/doc/drawing_functions.html?highlight=ellipse#void ellipse(Mat& img, Point center, Size axes, double angle, double startAngle, double endAngle, const Scalar& color, int thickness, int lineType, int shift)

发布了60 篇原创文章 · 获赞 15 · 访问量 66万+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章