firevision::Shrinker Class Reference

Shrinker class to shrink ROIs. More...

#include <classifiers/shrinker.h>

Inheritance diagram for firevision::Shrinker:

[legend]
List of all members.

Public Member Functions

 Shrinker ()
 Constructor.
virtual ~Shrinker ()
 Destructor.
virtual void setFilteredBuffer (unsigned char *yuv422planar_buffer)
 Set the filtered buffer.
virtual void shrink (ROI *roi)
 Shrink! Do the actual shrinking.

Protected Attributes

unsigned char * src
 Source image buffer.

Detailed Description

Shrinker class to shrink ROIs.

This shrinker shrinks a given ROI. This is done to cope with several special problems that arise in different setups. For example if playing downstairs in the lobby without a carpet we always have a problem with reflections on the floor.

This shrinker works like this:

Definition at line 34 of file shrinker.h.


Constructor & Destructor Documentation

firevision::Shrinker::Shrinker (  ) 

Constructor.

Definition at line 51 of file shrinker.cpp.

References src.

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

Destructor.

Definition at line 58 of file shrinker.cpp.


Member Function Documentation

void firevision::Shrinker::setFilteredBuffer ( unsigned char *  yuv422planar_buffer  )  [virtual]

Set the filtered buffer.

The buffer is assumed to being YUV422_PLANAR mode and the desired filter combination has been run.

Parameters:
yuv422planar_buffer YUV422 planar buffer

Definition at line 69 of file shrinker.cpp.

References src.

void firevision::Shrinker::shrink ( ROI roi  )  [virtual]

Shrink! Do the actual shrinking.

See above for used method.

Parameters:
roi ROI to srhink

Reimplemented in firevision::BorderShrinker, and firevision::SquareShrinker.

Definition at line 79 of file shrinker.cpp.

References firevision::ROI::get_roi_buffer_start(), firevision::ROI::height, firevision::ROI::line_step, src, firevision::ROI::width, fawkes::point_t::x, and fawkes::point_t::y.


Member Data Documentation

unsigned char* firevision::Shrinker::src [protected]

Source image buffer.

Definition at line 46 of file shrinker.h.

Referenced by firevision::BorderShrinker::BorderShrinker(), setFilteredBuffer(), shrink(), and Shrinker().


The documentation for this class was generated from the following files:
Generated on Tue Feb 22 13:31:43 2011 for Fawkes API by  doxygen 1.4.7