|
PiImageStreamer
|
#include <AbstractImageOverlay.h>

Public Member Functions | |
| AbstractImageOverlay () | |
| virtual | ~AbstractImageOverlay () |
| virtual void | applyOverlay (cv::Mat *image)=0 |
| virtual void | applyScaledOverlay (cv::Mat *image)=0 |
| long | getOverlaySerialNumber () |
Private Attributes | |
| long | overlaySerialNumber |
Static Private Attributes | |
| static std::atomic< long > | serialCounter = {0} |
This is the abstract base class for all image overlays.
| AbstractImageOverlay::AbstractImageOverlay | ( | ) |
This will construct a new overlay, assigning it the next serial number.
|
virtual |
This is the destructor for the class.
|
pure virtual |
This method will draw the overlay onto the given image, using the overlay's original coordinates.
| image | This is the image that the overlay is to be drawn on. |
Implemented in SWE4211RPi::ContourOverlay.
|
pure virtual |
This method will draw the overlay onto the given image, scaling the overlay's coordinates to match the size of the image.
| image | This is the image that the overlay is to be drawn on. |
Implemented in SWE4211RPi::ContourOverlay.
| long AbstractImageOverlay::getOverlaySerialNumber | ( | ) |
This method will return the unique serial number of this overlay.
|
private |
This is the unique serial number of this overlay. The first overlay created is given 1.
|
staticprivate |
This is the count of overlays created so far. It is shared by all overlays and is used to assign each new overlay its serial number. It is atomic so that overlays can be created safely from multiple threads.
This is the count of overlays created so far. It starts at 0, so the first overlay is given serial number 1.