Fawkes API  Fawkes Development Version
firevision::BorderShrinker Class Reference

Border shrinker. More...

#include <>>

Inheritance diagram for firevision::BorderShrinker:

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...
 
- Public Member Functions inherited from firevision::Shrinker
 Shrinker ()
 Constructor. More...
 
virtual ~Shrinker ()
 Destructor. More...
 
virtual void setFilteredBuffer (unsigned char *yuv422planar_buffer)
 Set the filtered buffer. More...
 

Additional Inherited Members

- Protected Attributes inherited from firevision::Shrinker
unsigned char * src
 Source image buffer. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ BorderShrinker()

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.

Parameters
border_leftleft pixel margin
border_rightright pixel margin
border_toptop pixel margin
border_bottombotto pixel margin
border_leftminimum x value for ROI
border_rightmaximum x plus width value for ROI
border_topminimum y value for ROI
border_bottommaximum y plus height value for ROI

Definition at line 52 of file border_shrinker.cpp.

References firevision::Shrinker::src.

◆ ~BorderShrinker()

firevision::BorderShrinker::~BorderShrinker ( )
virtual

Virtual empty destructor.

Definition at line 65 of file border_shrinker.cpp.

Member Function Documentation

◆ shrink()

void firevision::BorderShrinker::shrink ( ROI roi)
virtual

Shrink! Do the actual shrinking.

Parameters
roiROI 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.


The documentation for this class was generated from the following files: