OpenCV453
公開メンバ関数 | 静的公開メンバ関数 | 全メンバ一覧
cv::mcc::CCheckerDraw クラスabstract

checker draw [詳解]

#include <checker_model.hpp>

公開メンバ関数

virtual CV_WRAP void draw (InputOutputArray img)=0
 Draws the checker to the given image. [詳解]
 

静的公開メンバ関数

static CV_WRAP Ptr< CCheckerDrawcreate (Ptr< CChecker > pChecker, cv::Scalar color=CV_RGB(0, 250, 0), int thickness=2)
 Create a new CCheckerDraw object. [詳解]
 

詳解

checker draw

This class contains the functions for drawing a detected chart. This class expects a pointer to the checker which will be drawn by this object in the constructor and then later on whenever the draw function is called the checker will be drawn. Remember that it is not possible to change the checkers which will be draw by a given object, as it is decided in the constructor itself. If you want to draw some other object you can create a new CCheckerDraw instance.

The reason for this type of design is that in some videos we can assume that the checker is always in the same position, even if the image changes, so the drawing will always take place at the same position.

関数詳解

◆ create()

static CV_WRAP Ptr< CCheckerDraw > cv::mcc::CCheckerDraw::create ( Ptr< CChecker pChecker,
cv::Scalar  color = CV_RGB(0, 250, 0),
int  thickness = 2 
)
static

Create a new CCheckerDraw object.

引数
pCheckerThe checker which will be drawn by this object.
colorThe color by with which the squares of the checker will be drawn
thicknessThe thickness with which the sqaures will be drawn
戻り値
A pointer to the implementation of the CCheckerDraw

◆ draw()

virtual CV_WRAP void cv::mcc::CCheckerDraw::draw ( InputOutputArray  img)
pure virtual

Draws the checker to the given image.

引数
imgimage in color space BGR
戻り値
void

このクラス詳解は次のファイルから抽出されました: