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)
函數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)