OpenCV  5.0.0-pre
Open Source Computer Vision
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | 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>

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

Public Member Functions

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

Public Attributes

GAPI_PROP_RW cv::Scalar color
 The rectangle color or brightness (grayscale image)
 
GAPI_PROP_RW int lt
 The type of the line. See LineTypes.
 
GAPI_PROP_RW cv::Rect rect
 Coordinates of the rectangle.
 
GAPI_PROP_RW int shift
 The number of fractional bits in the point coordinates.
 
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.
 

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: