Fawkes API
Fawkes Development Version
laplace.h
1
2
/***************************************************************************
3
* laplace.h - Header of the laplace filter
4
*
5
* Created: Thu Jun 16 16:28:38 2005
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_LAPLACE_H_
28
#define __FIREVISION_FILTER_LAPLACE_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
FilterLaplace
:
public
Filter
38
{
39
40
public
:
41
FilterLaplace
();
42
FilterLaplace
(
float
sigma,
unsigned
int
size,
float
scale);
43
~FilterLaplace
();
44
45
virtual
void
apply
();
46
47
static
void
calculate_kernel
(
int
*kernel_buffer,
float
sigma,
unsigned
int
size,
float
scale);
48
49
private
:
50
int
*kernel;
51
// only used for OpenCV, but adding unconditional to avoid weird
52
// problems with differently sized class type sizes of macro missing
53
float
*kernel_float;
54
unsigned
int
kernel_size;
55
};
56
57
}
// end namespace firevision
58
59
#endif
firevision::FilterLaplace::FilterLaplace
FilterLaplace()
Constructor.
Definition:
laplace.cpp:53
firevision
Definition:
vision_master.h:32
firevision::FilterLaplace::~FilterLaplace
~FilterLaplace()
Destructor.
Definition:
laplace.cpp:82
firevision::Filter
Filter interface.
Definition:
filter.h:35
firevision::FilterLaplace::apply
virtual void apply()
Apply the filter.
Definition:
laplace.cpp:94
firevision::FilterLaplace::calculate_kernel
static void calculate_kernel(int *kernel_buffer, float sigma, unsigned int size, float scale)
Calculate a Laplacian of Gaussian kernel.
Definition:
laplace.cpp:193
firevision::FilterLaplace
Laplacian filter.
Definition:
laplace.h:37
src
libs
fvfilters
laplace.h
Generated by
1.8.13