OpenCV  4.9.0-dev
Open Source Computer Vision
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
cv::gapi::wip::draw::Line Struct Reference

This structure represents a line to draw. More...

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

Collaboration diagram for cv::gapi::wip::draw::Line:

Public Member Functions

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 constructor.
 

Public Attributes

GAPI_PROP_RW cv::Scalar color
 The line color.
 
GAPI_PROP_RW int lt
 The Type of the line. See LineTypes.
 
GAPI_PROP_RW cv::Point pt1
 The first point of the line segment.
 
GAPI_PROP_RW cv::Point pt2
 The second point of the line segment.
 
GAPI_PROP_RW int shift
 The number of fractional bits in the point coordinates.
 
GAPI_PROP_RW int thick
 The thickness of line.
 

Detailed Description

This structure represents a line to draw.

Parameters match cv::line().

Constructor & Destructor Documentation

◆ 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 constructor.

Parameters
pt1_The first point of the line segment
pt2_The second point of the line segment
color_The line color
thick_The thickness of line
lt_The Type of the line. See LineTypes
shift_The number of fractional bits in the point coordinates

◆ Line() [2/2]

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

Member Data Documentation

◆ color

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

The line color.

◆ lt

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

The Type of the line. See LineTypes.

◆ pt1

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

The first point of the line segment.

◆ pt2

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

The second point of the line segment.

◆ shift

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

The number of fractional bits in the point coordinates.

◆ thick

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

The thickness of line.


The documentation for this struct was generated from the following file: