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 #ifndef _FIREVISION_FILTER_MEDIAN_H_
24 #define _FIREVISION_FILTER_MEDIAN_H_
25 
26 #if !(defined(HAVE_IPP) || defined(HAVE_OPENCV))
27 # error "Neither IPP nor OpenCV installed"
28 #endif
29 
30 #include <fvfilters/filter.h>
31 
32 namespace firevision {
33 
34 class FilterMedian : public Filter
35 {
36 public:
37  FilterMedian(unsigned int mask_size);
38 
39  virtual void apply();
40 
41 private:
42  unsigned int mask_size;
43 };
44 
45 } // end namespace firevision
46 
47 #endif
firevision::FilterMedian::FilterMedian
FilterMedian(unsigned int mask_size)
Constructor.
Definition: median.cpp:52
firevision::FilterMedian::apply
virtual void apply()
Definition: median.cpp:58