BorderShrinker Class Reference

Border shrinker. More...

#include <classifiers/border_shrinker.h>

Inheritance diagram for 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.

Definition at line 31 of file border_shrinker.h.


Constructor & Destructor Documentation

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_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 47 of file border_shrinker.cpp.

References Shrinker::src.

BorderShrinker::~BorderShrinker (  )  [virtual]

Virtual empty destructor.

Definition at line 60 of file border_shrinker.cpp.


Member Function Documentation

void BorderShrinker::shrink ( ROI roi  )  [virtual]

Shrink! Do the actual shrinking.

Parameters:
roi ROI to shrink

Reimplemented from Shrinker.

Definition at line 70 of file border_shrinker.cpp.

References ROI::height, ROI::image_height, ROI::image_width, ROI::start, ROI::width, fawkes::point_t::x, and fawkes::point_t::y.


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