Border shrinker. More...
#include <classifiers/border_shrinker.h>

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. | |
| virtual | ~BorderShrinker () |
| Virtual empty destructor. | |
| virtual void | shrink (ROI *roi) |
| Shrink! Do the actual shrinking. | |
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.
| firevision::BorderShrinker::~BorderShrinker | ( | ) | [virtual] |
Virtual empty destructor.
Definition at line 65 of file border_shrinker.cpp.
| void firevision::BorderShrinker::shrink | ( | ROI * | roi | ) | [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::point_t::x, and fawkes::point_t::y.
1.6.1