Fawkes API  Fawkes Development Version
tophat_closing.h
1 
2 /***************************************************************************
3  * tophat_closing.h - header for morphological tophat closing
4  * reconstruction
5  *
6  * Created: Sun Jun 25 23:05:06 2006 (FIFA WM 2006)
7  * Copyright 2005-2007 Tim Niemueller [www.niemueller.de]
8  *
9  ****************************************************************************/
10 
11 /* This program is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License as published by
13  * the Free Software Foundation; either version 2 of the License, or
14  * (at your option) any later version. A runtime exception applies to
15  * this software (see LICENSE.GPL_WRE file mentioned below for details).
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU Library General Public License for more details.
21  *
22  * Read the full text in the LICENSE.GPL_WRE file in the doc directory.
23  */
24 
25 #ifndef _FIREVISION_FILTER_MORPHOLOGY_TOPHAT_CLOSING_H_
26 #define _FIREVISION_FILTER_MORPHOLOGY_TOPHAT_CLOSING_H_
27 
28 #include <fvfilters/morphology/morphologicalfilter.h>
29 
30 namespace firevision {
31 
32 class FilterClosing;
33 class FilterDifference;
34 
35 class FilterTophatClosing : public MorphologicalFilter
36 {
37 public:
39  virtual ~FilterTophatClosing();
40 
41  virtual void apply();
42 
43  static const unsigned int SUBTRACTFROM;
44  static const unsigned int FILTERIMAGE;
45 
46 private:
47  FilterClosing * closing;
48  FilterDifference *diff;
49 };
50 
51 } // end namespace firevision
52 
53 #endif
firevision::FilterTophatClosing::FilterTophatClosing
FilterTophatClosing()
Constructor.
Definition: tophat_closing.cpp:59
firevision::FilterTophatClosing::apply
virtual void apply()
Definition: tophat_closing.cpp:76
firevision::FilterTophatClosing::SUBTRACTFROM
static const unsigned int SUBTRACTFROM
Image that we subtract from.
Definition: tophat_closing.h:50
firevision::FilterTophatClosing::~FilterTophatClosing
virtual ~FilterTophatClosing()
Destructor.
Definition: tophat_closing.cpp:69
firevision::FilterClosing
Definition: closing.h:40
firevision::FilterDifference
Definition: difference.h:37
firevision::FilterTophatClosing::FILTERIMAGE
static const unsigned int FILTERIMAGE
Image to filter.
Definition: tophat_closing.h:51