![]() |
Companion
1.0.0
Companion is an object recognition framework written with OpenCV.
|
#include <Drawable.h>

Public Member Functions | |
| virtual void | Draw (cv::Mat image)=0 |
| virtual void | Ratio (int cWidth, int cHeight, int nWidth, int nHeight)=0 |
| virtual cv::Rect | CutArea ()=0 |
| virtual int | OriginX ()=0 |
| virtual int | OriginY ()=0 |
| virtual void | MoveOrigin (int x, int y)=0 |
| virtual void | Color (const cv::Scalar &color)=0 |
| virtual const cv::Scalar & | Color () const =0 |
| virtual int | Thickness () const =0 |
| virtual void | Thickness (int thickness)=0 |
Abstract class for a drawable object.
|
pure virtual |
Set drawable color.
| color | Drawable color to set. |
Implemented in Companion::Draw::Frame, and Companion::Draw::Line.
|
pure virtual |
Get the color of the drawable.
Implemented in Companion::Draw::Frame, and Companion::Draw::Line.
|
pure virtual |
Get cut area around this drawable.
Implemented in Companion::Draw::Frame, and Companion::Draw::Line.
|
pure virtual |
Draw this drawable object to the given image.
| image | Image on which to draw the object. |
Implemented in Companion::Draw::Frame, and Companion::Draw::Line.
|
pure virtual |
Move the drawable object's origin.
| x | Relative distance to move the origin on the x axis. |
| y | Relative distance to move the origin on the y axis. |
Implemented in Companion::Draw::Frame, and Companion::Draw::Line.
|
pure virtual |
Obtain the origin's x coordinate.
Implemented in Companion::Draw::Frame, and Companion::Draw::Line.
|
pure virtual |
Obtain the origin's y coordinate.
Implemented in Companion::Draw::Frame, and Companion::Draw::Line.
|
pure virtual |
Scale this drawable from the current image dimensions to new image dimensions.
| cWidth | Current image width. |
| cHeight | Current image height. |
| nWidth | New image width. |
| nHeight | New image height. |
Implemented in Companion::Draw::Frame, and Companion::Draw::Line.
|
pure virtual |
Get thickness of this drawable.
Implemented in Companion::Draw::Frame, and Companion::Draw::Line.
|
pure virtual |
Set thickness of the drawable.
| thickness | Drawable thickness. |
Implemented in Companion::Draw::Frame, and Companion::Draw::Line.
1.8.15