OpenCV  4.8.0
Open Source Computer Vision
Public Member Functions | List of all members
cv::gapi::wip::draw::Rect Struct Reference

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

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

Public Member Functions

 Rect (const cv::Rect &rect_, const cv::Scalar &color_, int thick_=1, int lt_=8, int shift_=0)
 Rect constructor. More...
 
GAPI_WRAP Rect ()=default
 

Public Attributes

GAPI_PROP_RW cv::Rect rect
 Coordinates of the rectangle. More...
 
GAPI_PROP_RW cv::Scalar color
 The rectangle color or brightness (grayscale image) More...
 
GAPI_PROP_RW int thick
 The thickness of lines that make up the rectangle. Negative values, like FILLED, mean that the function has to draw a filled rectangle. More...
 
GAPI_PROP_RW int lt
 The type of the line. See LineTypes. More...
 
GAPI_PROP_RW int shift
 The number of fractional bits in the point coordinates. More...
 

Detailed Description

This structure represents a rectangle to draw.

Parameters match cv::rectangle().

Constructor & Destructor Documentation

◆ Rect() [1/2]

cv::gapi::wip::draw::Rect::Rect ( const cv::Rect rect_,
const cv::Scalar color_,
int  thick_ = 1,
int  lt_ = 8,
int  shift_ = 0 
)
inline

Rect constructor.

Parameters
rect_Coordinates of the rectangle
color_The bottom-left corner of the text string in the image
thick_The thickness of lines that make up the rectangle. Negative values, like FILLED, mean that the function has to draw a filled rectangle
lt_The type of the line. See LineTypes
shift_The number of fractional bits in the point coordinates

◆ Rect() [2/2]

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

Member Data Documentation

◆ color

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

The rectangle color or brightness (grayscale image)

◆ lt

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

The type of the line. See LineTypes.

◆ rect

GAPI_PROP_RW cv::Rect cv::gapi::wip::draw::Rect::rect

Coordinates of the rectangle.

◆ shift

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

The number of fractional bits in the point coordinates.

◆ thick

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

The thickness of lines that make up the rectangle. Negative values, like FILLED, mean that the function has to draw a filled rectangle.


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