OpenCV 4.12.0
開源計算機視覺
載入中...
搜尋中...
無匹配項
cv::gapi::wip::draw::Line 結構體參考

此結構體表示要繪製的線條。 更多...

#include <opencv2/gapi/render/render_types.hpp>

cv::gapi::wip::draw::Line 的協作圖

公共成員函式

GAPI_WRAP Line ()=default
 
GAPI_WRAP Line (const cv::Point &pt1_, const cv::Point &pt2_, const cv::Scalar &color_, int thick_=1, int lt_=8, int shift_=0)
 Line 建構函式。
 

公共屬性

GAPI_PROP_RW cv::Scalar color
 線條顏色。
 
GAPI_PROP_RW int lt
 線條的型別。 請參見 LineTypes
 
GAPI_PROP_RW cv::Point pt1
 線段的第一個點。
 
GAPI_PROP_RW cv::Point pt2
 線段的第二個點。
 
GAPI_PROP_RW int 移位 (shift)
 點座標中的小數位數。
 
GAPI_PROP_RW int thick
 線條粗細。
 

詳細描述

此結構體表示要繪製的線條。

引數匹配 cv::line()

建構函式 & 解構函式文件

◆ Line() [1/2]

GAPI_WRAP cv::gapi::wip::draw::Line::Line ( const cv::Point & pt1_,
const cv::Point & pt2_,
const cv::Scalar & color_,
int thick_ = 1,
int lt_ = 8,
int shift_ = 0 )
inline

Line 建構函式。

引數
pt1_線段的第一個點
pt2_線段的第二個點
color_線條顏色
thick_線條粗細
lt_線條的型別。 請參見 LineTypes
shift_點座標中的小數位數

◆ Line() [2/2]

GAPI_WRAP cv::gapi::wip::draw::Line::Line ( )
default

成員資料文件

◆ color

GAPI_PROP_RW cv::Scalar cv::gapi::wip::draw::Line::color

線條顏色。

◆ lt

GAPI_PROP_RW int cv::gapi::wip::draw::Line::lt

線條的型別。 請參見 LineTypes

◆ pt1

GAPI_PROP_RW cv::Point cv::gapi::wip::draw::Line::pt1

線段的第一個點。

◆ pt2

GAPI_PROP_RW cv::Point cv::gapi::wip::draw::Line::pt2

線段的第二個點。

◆ shift

GAPI_PROP_RW int cv::gapi::wip::draw::Line::shift

點座標中的小數位數。

◆ thick

GAPI_PROP_RW int cv::gapi::wip::draw::Line::thick

線條粗細。


此結構體的文件是從以下檔案生成的