Fawkes API
Fawkes Development Version
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Groups
Pages
morphologicalfilter.h
1
2
/***************************************************************************
3
* morphologicalfilter.h - interface for a morphological filter
4
*
5
* Created: Thu Jun 08 09:58:21 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_MORPHOLOGY_MORPHOLOGICAL_H_
28
#define __FIREVISION_FILTER_MORPHOLOGY_MORPHOLOGICAL_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
MorphologicalFilter
:
public
Filter
{
38
public
:
39
MorphologicalFilter
(
const
char
*name,
unsigned
int
max_num_buffers = 1);
40
virtual
~
MorphologicalFilter
();
41
virtual
void
set_structuring_element(
unsigned
char
*se,
42
unsigned
int
se_width,
43
unsigned
int
se_height,
44
unsigned
int
se_anchor_x,
45
unsigned
int
se_anchor_y );
46
47
protected
:
48
/** Structuring element */
49
unsigned
char
*
se
;
50
/** Width of structuring element */
51
unsigned
int
se_width
;
52
/** Height of structuring element */
53
unsigned
int
se_height
;
54
/** Anchor point x offset of structuring element */
55
unsigned
int
se_anchor_x
;
56
/** Anchor point y offset of structuring element */
57
unsigned
int
se_anchor_y
;
58
};
59
60
}
// end namespace firevision
61
62
#endif
src
libs
fvfilters
morphology
morphologicalfilter.h
Generated by
1.8.1.1