Fawkes API  Fawkes Development Version
firevision::BorderShrinker Class Reference

Border shrinker. More...

#include <>>

Inheritance diagram for firevision::BorderShrinker:

List of all members.

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.

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.


Constructor & Destructor Documentation

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.

firevision::BorderShrinker::~BorderShrinker ( ) [virtual]

Virtual empty destructor.

Definition at line 65 of file border_shrinker.cpp.


Member Function Documentation

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::image_height, firevision::ROI::start, fawkes::point_t::y, firevision::ROI::height, firevision::ROI::image_width, fawkes::point_t::x, and firevision::ROI::width.


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