Fawkes API  Fawkes Development Version
border_shrinker.h
1 
2 /***************************************************************************
3  * border_shrinker.h - Header for BorderShrinker
4  *
5  * Created: Wed Feb 15 15:00:26 2006
6  * Copyright 2005-2007 Tim Niemueller [www.niemueller.de]
7  *
8  ****************************************************************************/
9 
10 /* This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version. A runtime exception applies to
14  * this software (see LICENSE.GPL_WRE file mentioned below for details).
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU Library General Public License for more details.
20  *
21  * Read the full text in the LICENSE.GPL_WRE file in the doc directory.
22  */
23 
24 #ifndef _FIREVISION_CLASSIFIER_BORDER_SHRINKER_H_
25 #define _FIREVISION_CLASSIFIER_BORDER_SHRINKER_H_
26 
27 #include <fvclassifiers/shrinker.h>
28 
29 namespace firevision {
30 
31 class ROI;
32 
33 class BorderShrinker : public Shrinker
34 {
35 public:
36  BorderShrinker(unsigned int border_left = 0,
37  unsigned int border_right = 0,
38  unsigned int border_top = 0,
39  unsigned int border_bottom = 10);
40 
41  virtual ~BorderShrinker();
42 
43  virtual void shrink(ROI *roi);
44 
45 private:
46  unsigned int border_left;
47  unsigned int border_right;
48  unsigned int border_top;
49  unsigned int border_bottom;
50 };
51 
52 } // end namespace firevision
53 
54 #endif
firevision::BorderShrinker::shrink
virtual void shrink(ROI *roi)
Shrink! Do the actual shrinking.
Definition: border_shrinker.cpp:74
firevision::ROI
Definition: roi.h:58
firevision::BorderShrinker::~BorderShrinker
virtual ~BorderShrinker()
Virtual empty destructor.
Definition: border_shrinker.cpp:65
firevision::BorderShrinker::BorderShrinker
BorderShrinker(unsigned int border_left=0, unsigned int border_right=0, unsigned int border_top=0, unsigned int border_bottom=10)
Constructor.
Definition: border_shrinker.cpp:51