Fawkes API
Fawkes Development Version
faces.h
1
2
/***************************************************************************
3
* faces.h - Faces classifier based on OpenCV
4
*
5
* Created: Mon Dec 10 15:46:06 2007
6
* Copyright 2005-2007 Tim Niemueller [www.niemueller.de]
7
*
8
****************************************************************************/
9
10
/* This program is free software; you can redistribute it and/or modify
11
* it under the terms of the GNU General Public License as published by
12
* the Free Software Foundation; either version 2 of the License, or
13
* (at your option) any later version. A runtime exception applies to
14
* this software (see LICENSE.GPL_WRE file mentioned below for details).
15
*
16
* This program is distributed in the hope that it will be useful,
17
* but WITHOUT ANY WARRANTY; without even the implied warranty of
18
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19
* GNU Library General Public License for more details.
20
*
21
* Read the full text in the LICENSE.GPL_WRE file in the doc directory.
22
*/
23
24
#ifndef __FIREVISION_CLASSIFIERS_FACES_H_
25
#define __FIREVISION_CLASSIFIERS_FACES_H_
26
27
#include <fvclassifiers/classifier.h>
28
29
struct
CvHaarClassifierCascade;
30
struct
CvMemStorage;
31
typedef
struct
_IplImage IplImage;
32
33
namespace
firevision
{
34
#if 0
/* just to make Emacs auto-indent happy */
35
}
36
#endif
37
38
class
FacesClassifier
:
public
Classifier
39
{
40
public
:
41
FacesClassifier
(
const
char
*haarcascade_file,
42
unsigned
int
pixel_width,
unsigned
int
pixel_height,
43
IplImage *image = 0,
44
float
haar_scale_factor = 1.1,
int
min_neighbours = 3,
int
flags = 0);
45
46
virtual
~FacesClassifier
();
47
48
virtual
std::list< ROI > *
classify
();
49
50
private
:
51
CvHaarClassifierCascade *__cascade;
52
CvMemStorage *__storage;
53
IplImage *__image;
54
float
__haar_scale_factor;
55
int
__min_neighbours;
56
int
__flags;
57
bool
__own_image;
58
};
59
60
}
// end namespace firevision
61
62
#endif
firevision
Definition:
vision_master.h:32
firevision::FacesClassifier::FacesClassifier
FacesClassifier(const char *haarcascade_file, unsigned int pixel_width, unsigned int pixel_height, IplImage *image=0, float haar_scale_factor=1.1, int min_neighbours=3, int flags=0)
Constructor.
Definition:
faces.cpp:64
firevision::FacesClassifier
Faces classifier.
Definition:
faces.h:38
firevision::FacesClassifier::~FacesClassifier
virtual ~FacesClassifier()
Destructor.
Definition:
faces.cpp:96
firevision::Classifier
Classifier to extract regions of interest.
Definition:
classifier.h:37
firevision::FacesClassifier::classify
virtual std::list< ROI > * classify()
Classify image.
Definition:
faces.cpp:107
src
libs
fvclassifiers
faces.h
Generated by
1.8.13