Fawkes API
Fawkes Development Version
|
Border shrinker. More...
#include <>>
Public Member Functions | |
BorderShrinker (unsigned int border_left=0, unsigned int border_right=0, unsigned int border_top=0, unsigned int border_bottom=10) | |
CloseShrinker shrinks ROIs It will make sure that any ROI that passes it will NOT be in the border regions denoted by the pixels. More... | |
virtual | ~BorderShrinker () |
Virtual empty destructor. More... | |
virtual void | shrink (ROI *roi) |
Shrink! Do the actual shrinking. More... | |
![]() | |
Shrinker () | |
Constructor. More... | |
virtual | ~Shrinker () |
Destructor. More... | |
virtual void | setFilteredBuffer (unsigned char *yuv422planar_buffer) |
Set the filtered buffer. More... | |
Additional Inherited Members | |
![]() | |
unsigned char * | src |
Source image buffer. More... | |
Border shrinker.
This shrinker makes sure that a ROI does not get too close to the image boundaries. This may be needed for some mask-based operations.
Definition at line 36 of file border_shrinker.h.
firevision::BorderShrinker::BorderShrinker | ( | unsigned int | border_left = 0 , |
unsigned int | border_right = 0 , |
||
unsigned int | border_top = 0 , |
||
unsigned int | border_bottom = 10 |
||
) |
CloseShrinker shrinks ROIs It will make sure that any ROI that passes it will NOT be in the border regions denoted by the pixels.
Constructor.
border_left | left pixel margin |
border_right | right pixel margin |
border_top | top pixel margin |
border_bottom | botto pixel margin |
border_left | minimum x value for ROI |
border_right | maximum x plus width value for ROI |
border_top | minimum y value for ROI |
border_bottom | maximum y plus height value for ROI |
Definition at line 52 of file border_shrinker.cpp.
References firevision::Shrinker::src.
|
virtual |
Virtual empty destructor.
Definition at line 65 of file border_shrinker.cpp.
|
virtual |
Shrink! Do the actual shrinking.
roi | ROI to shrink |
Reimplemented from firevision::Shrinker.
Definition at line 75 of file border_shrinker.cpp.
References firevision::ROI::height, firevision::ROI::image_height, firevision::ROI::image_width, firevision::ROI::start, firevision::ROI::width, fawkes::upoint_t::x, and fawkes::upoint_t::y.