Fawkes API Fawkes Development Version
hor_search.h
1
2/***************************************************************************
3 * hor_search.h - Header of horizontal search filter
4 *
5 * Created: Wed Jul 06 11:52:27 2005
6 * Copyright 2005-2007 Tim Niemueller [www.niemueller.de]
7 * 2005 Yuxiao Hu (Yuxiao.Hu@rwth-aachen.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_HOR_SEARCH_H_
26#define _FIREVISION_FILTERS_HOR_SEARCH_H_
27
28#include <fvfilters/filter.h>
29#include <fvmodels/color/colormodel.h>
30
31namespace firevision {
32
33class FilterHSearch : public Filter
34{
35public:
36 FilterHSearch(ColorModel *cm, color_t what);
37
38 virtual void apply();
39
40private:
41 ColorModel *cm;
42 color_t what;
43};
44
45} // end namespace firevision
46
47#endif // FIREVISION_FILTERS_HOR_SEARCH_H__
Color model interface.
Definition: colormodel.h:32
Search horizontally for a color change.
Definition: hor_search.h:34
FilterHSearch(ColorModel *cm, color_t what)
Constructor.
Definition: hor_search.cpp:45
virtual void apply()
Apply the filter.
Definition: hor_search.cpp:52
Filter interface.
Definition: filter.h:33