Fawkes API  Fawkes Development Version
median.h
1 
2 /***************************************************************************
3  * median.h - Header of the median filter
4  *
5  * Created: Mon Jun 05 15:01:26 2006
6  * Copyright 2005-2012 Tim Niemueller [www.niemueller.de]
7  ****************************************************************************/
8 
9 /* This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 2 of the License, or
12  * (at your option) any later version. A runtime exception applies to
13  * this software (see LICENSE.GPL_WRE file mentioned below for details).
14  *
15  * This program is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  * GNU Library General Public License for more details.
19  *
20  * Read the full text in the LICENSE.GPL_WRE file in the doc directory.
21  */
22 
23 #if ! (defined(HAVE_IPP) || defined(HAVE_OPENCV))
24 #error "Neither IPP nor OpenCV installed"
25 #endif
26 
27 #ifndef __FIREVISION_FILTER_MEDIAN_H_
28 #define __FIREVISION_FILTER_MEDIAN_H_
29 
30 #include <fvfilters/filter.h>
31 
32 namespace firevision {
33 #if 0 /* just to make Emacs auto-indent happy */
34 }
35 #endif
36 
37 class FilterMedian : public Filter
38 {
39  public:
40  FilterMedian(unsigned int mask_size);
41 
42  virtual void apply();
43 
44  private:
45  unsigned int mask_size;
46 };
47 
48 } // end namespace firevision
49 
50 #endif
virtual void apply()
Apply the filter.
Definition: median.cpp:59
Filter interface.
Definition: filter.h:35
Median filter.
Definition: median.h:37
FilterMedian(unsigned int mask_size)
Constructor.
Definition: median.cpp:51