border_shrinker.h
00001 00002 /*************************************************************************** 00003 * border_shrinker.h - Header for BorderShrinker 00004 * 00005 * Generated: Wed Feb 15 15:00:26 2006 00006 * Copyright 2005-2007 Tim Niemueller [www.niemueller.de] 00007 * 00008 ****************************************************************************/ 00009 00010 /* This program is free software; you can redistribute it and/or modify 00011 * it under the terms of the GNU General Public License as published by 00012 * the Free Software Foundation; either version 2 of the License, or 00013 * (at your option) any later version. A runtime exception applies to 00014 * this software (see LICENSE.GPL_WRE file mentioned below for details). 00015 * 00016 * This program is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 * GNU Library General Public License for more details. 00020 * 00021 * Read the full text in the LICENSE.GPL_WRE file in the doc directory. 00022 */ 00023 00024 #ifndef __FIREVISION_CLASSIFIER_BORDER_SHRINKER_H_ 00025 #define __FIREVISION_CLASSIFIER_BORDER_SHRINKER_H_ 00026 00027 #include <classifiers/shrinker.h> 00028 00029 class ROI; 00030 00031 class BorderShrinker : public Shrinker 00032 { 00033 public: 00034 00035 /** CloseShrinker shrinks ROIs 00036 * It will make sure that any ROI that passes it will NOT be in the border regions 00037 * denoted by the pixels 00038 * @param border_left left pixel margin 00039 * @param border_right right pixel margin 00040 * @param border_top top pixel margin 00041 * @param border_bottom botto pixel margin 00042 */ 00043 BorderShrinker(unsigned int border_left = 0, unsigned int border_right = 0, 00044 unsigned int border_top = 0, unsigned int border_bottom = 10); 00045 00046 virtual ~BorderShrinker(); 00047 00048 virtual void shrink( ROI *roi ); 00049 00050 private: 00051 unsigned int border_left; 00052 unsigned int border_right; 00053 unsigned int border_top; 00054 unsigned int border_bottom; 00055 00056 }; 00057 00058 #endif

