Opencv的Ellipse函數

來源:互聯網
上載者:User
文章目錄
  • 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)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.