Fawkes API Fawkes Development Version
geodesic_dilation.h
1
2/***************************************************************************
3 * geodesic_dilation.h - header for morphological geodesic dilation
4 * reconstruction
5 *
6 * Created: Wed Jun 21 16:25:22 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_FILTERS_MORPHOLOGY_GEODESIC_DILATION_H_
26#define _FIREVISION_FILTERS_MORPHOLOGY_GEODESIC_DILATION_H_
27
28#include <fvfilters/morphology/morphologicalfilter.h>
29
30namespace firevision {
31
32class FilterDilation;
33class FilterMin;
34class ImageDiff;
35class ROI;
36
38{
39public:
40 FilterGeodesicDilation(unsigned int se_size = 3);
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 FilterDilation *dilate;
55 FilterMin * min;
56
57 ImageDiff *diff;
58
59 unsigned int iterations;
60};
61
62} // end namespace firevision
63
64#endif
Morphological dilation.
Definition: dilation.h:31
Morphological geodesic dilation.
static const unsigned int MASK
Mask.
FilterGeodesicDilation(unsigned int se_size=3)
Constructor.
virtual ~FilterGeodesicDilation()
Destructor.
virtual void apply()
Apply the filter.
static const unsigned int MARKER
Marker.
virtual unsigned int num_iterations()
Get the number of iterations.
Minimum filter.
Definition: min.h:32
Image difference checker.
Definition: imagediff.h:33
Morphological filter interface.