OpenCV453
|
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< CCheckerDraw > | create (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.
|
static |
Create a new CCheckerDraw object.
pChecker | The checker which will be drawn by this object. |
color | The color by with which the squares of the checker will be drawn |
thickness | The thickness with which the sqaures will be drawn |
|
pure virtual |
Draws the checker to the given image.
img | image in color space BGR |