Fawkes API
Fawkes Development Version
|
Shrinker class to shrink ROIs. More...
#include <>>
Public Member Functions | |
Shrinker () | |
Constructor. More... | |
virtual | ~Shrinker () |
Destructor. More... | |
virtual void | setFilteredBuffer (unsigned char *yuv422planar_buffer) |
Set the filtered buffer. More... | |
virtual void | shrink (ROI *roi) |
Shrink! Do the actual shrinking. More... | |
Protected Attributes | |
unsigned char * | src |
Source image buffer. More... | |
Shrinker class to shrink ROIs.
This shrinker shrinks a given ROI. This is done to cope with several special problems that arise in different setups. For example if playing downstairs in the lobby without a carpet we always have a problem with reflections on the floor.
This shrinker works like this:
Definition at line 34 of file shrinker.h.
firevision::Shrinker::Shrinker | ( | ) |
|
virtual |
Destructor.
Definition at line 58 of file shrinker.cpp.
|
virtual |
Set the filtered buffer.
The buffer is assumed to being YUV422_PLANAR mode and the desired filter combination has been run.
yuv422planar_buffer | YUV422 planar buffer |
Definition at line 69 of file shrinker.cpp.
References src.
|
virtual |
Shrink! Do the actual shrinking.
See above for used method.
roi | ROI to srhink |
Reimplemented in firevision::BorderShrinker, and firevision::SquareShrinker.
Definition at line 79 of file shrinker.cpp.
References firevision::ROI::get_roi_buffer_start(), firevision::ROI::height, firevision::ROI::line_step, src, firevision::ROI::width, fawkes::upoint_t::x, and fawkes::upoint_t::y.
|
protected |
Source image buffer.
Definition at line 46 of file shrinker.h.
Referenced by firevision::BorderShrinker::BorderShrinker(), setFilteredBuffer(), shrink(), and Shrinker().