Fawkes API Fawkes Development Version
geodesic_erosion.h
1
2/***************************************************************************
3 * geodesic_erosion.h - header for morphological geodesic erosion
4 * reconstruction
5 *
6 * Created: Sat Jun 10 16:10:08 2006 (FIFA WM 2006, England vs. Paraguay)
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_FILTERS_MORPHOLOGY_GEODESIC_EROSION_H_
26#define _FIREVISION_FILTERS_MORPHOLOGY_GEODESIC_EROSION_H_
27
28#include <fvfilters/morphology/morphologicalfilter.h>
29
30namespace firevision {
31
32class FilterErosion;
33class FilterMax;
34class ImageDiff;
35class ROI;
36
38{
39public:
40 FilterGeodesicErosion(unsigned int se_size = 3);
41 virtual ~FilterGeodesicErosion();
42
43 virtual void apply();
44
45 virtual unsigned int num_iterations();
46
47 static const unsigned int MARKER;
48 static const unsigned int MASK;
49
50private:
51 unsigned char *isotropic_se;
52 unsigned int se_size;
53
54 FilterErosion *erode;
55 FilterMax * max;
56
57 ImageDiff *diff;
58
59 unsigned int iterations;
60};
61
62} // end namespace firevision
63
64#endif
Morphological erosion.
Definition: erosion.h:31
Morphological geodesic erosion.
FilterGeodesicErosion(unsigned int se_size=3)
Constructor.
virtual unsigned int num_iterations()
Get the number of iterations.
virtual void apply()
Apply the filter.
static const unsigned int MARKER
Marker.
virtual ~FilterGeodesicErosion()
Destructor.
static const unsigned int MASK
Mask.
Maximum filter.
Definition: max.h:32
Image difference checker.
Definition: imagediff.h:33
Morphological filter interface.