24 #include <fvclassifiers/border_shrinker.h> 25 #include <fvmodels/color/colormodel.h> 26 #include <fvmodels/scanlines/scanlinemodel.h> 27 #include <fvutils/base/roi.h> 28 #include <fvutils/color/colorspaces.h> 32 namespace firevision {
48 unsigned int border_right,
49 unsigned int border_top,
50 unsigned int border_bottom)
54 this->border_left = border_left;
55 this->border_right = border_right;
56 this->border_top = border_top;
57 this->border_bottom = border_bottom;
75 if (border_bottom > 0) {
77 if (roi->
start.
y >= brdr) {
87 if (roi->
start.
y <= brdr) {
96 if (border_right > 0) {
98 if (roi->
start.
x >= brdr) {
106 if (border_left > 0) {
108 if (roi->
start.
x <= brdr) {
fawkes::upoint_t start
ROI start.
virtual void shrink(ROI *roi)
Shrink! Do the actual shrinking.
unsigned int y
y coordinate
unsigned int x
x coordinate
unsigned int width
ROI width.
virtual ~BorderShrinker()
Virtual empty destructor.
unsigned int image_width
width of image that contains this ROI
unsigned char * src
Source image buffer.
unsigned int image_height
height of image that contains this ROI
Shrinker class to shrink ROIs.
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 re...
unsigned int height
ROI height.