#include <CvFaceDetect.hh>
Collaboration diagram for CvFaceDetect:
Definition at line 109 of file CvFaceDetect.hh.
Public Member Functions | |
CvFaceDetect (int min=0, int max=10000) | |
CvFaceDetect contructor. | |
virtual | ~CvFaceDetect () |
The CvVrFilter virtual destructor. | |
void | cvFaceDetect (IplImage *image, int DRAW_TYPE=0) |
CvFaceDetect init. | |
Public Attributes | |
CvSeq * | faces |
Public sequence of faces detected. | |
Private Member Functions | |
void | icvMouthMap (IplImage *image) |
A function used to create the mouth map. | |
void | icvMouthMask () |
A function used to create the mouth mask. | |
void | icvMouthDetect () |
A function used to detect the mouth. | |
void | icvEyesMap (IplImage *image) |
A function used to create the eyes map. | |
void | icvEyesMask () |
A function used to create the eyes mask. | |
void | icvEyesDetect () |
A function used to detect the eyes. | |
void | icvMouthEyesMap (IplImage *image) |
A function used to create the mouth and eyes map together. | |
void | icvMouthEyesMask () |
A function used to create the mouth and eyes mask. | |
void | icvMouthEyesDetect () |
A function used to detect the mouth and the eyes together. | |
Private Attributes | |
IplImage * | source |
Private image copy of the original one. | |
IplImage * | ycc |
Private image of Y C_b C_r color space. | |
IplImage * | y |
CvSize | size |
Private size of the image. | |
CvSeq * | contour |
Private sequence used to fill with detected faces features. | |
CvMemStorage * | storage |
Private memory storage pointer. | |
CvVrFilter * | vrfilter |
Private pointer to CvVrFilter class. | |
IplImage * | skin_locus_map |
Private skin locus map returned from CvVrFilter. | |
IplImage * | mouth_map |
Private image used for mouth features detection algorithm. | |
IplImage * | mouth_map_bin |
Private image used for mouth features detection algorithm. | |
IplImage * | eyes_map |
Private image used for eyes features detection algorithm. | |
IplImage * | eyes_map_bin |
Private image used for eyes features detection algorithm. | |
bool | started |
Boolean activated when algoritmh start. |
CvFaceDetect::CvFaceDetect | ( | int | min = 0 , |
|
int | max = 10000 | |||
) |
CvFaceDetect contructor Min and max parameters are the minum and the maximum size of contour's point. It depends from your original image size and from the application target.
min | minimum contour points | |
max | maximum contour points |
Definition at line 58 of file CvFaceDetect.cpp.
CvFaceDetect::~CvFaceDetect | ( | ) | [virtual] |
Definition at line 68 of file CvFaceDetect.cpp.
void CvFaceDetect::cvFaceDetect | ( | IplImage * | image, | |
int | DRAW_TYPE = 0 | |||
) |
An init function used to process frame: this has to be called first off all.
image | to get image size | |
DRAW_TYPE | for what you want to draw of detection results |
Definition at line 84 of file CvFaceDetect.cpp.
References CvVrFilter::cvVrFilter(), faces, size, skin_locus_map, source, started, storage, vrfilter, and ycc.
Referenced by OmniAlgoVRFilterDetection< ConverterT, AngleT, ImageT, PointT >::loop_next_frame().
Here is the call graph for this function:
Here is the caller graph for this function:
void CvFaceDetect::icvEyesDetect | ( | ) | [private] |
A function used to detect the eyes box using the eyes mask created with icveyesMask(). The detected eyes box are inseted into Cvface struct
Definition at line 595 of file CvFaceDetect.cpp.
References Cvface::eyes_box, faces, Cvface::skin_face, and Cvface::Cvskin::skin_rect.
void CvFaceDetect::icvEyesMap | ( | IplImage * | image | ) | [private] |
void CvFaceDetect::icvEyesMask | ( | ) | [private] |
A function used to create the eyes mask using the eyes map created with icvEyeshMap()
Definition at line 541 of file CvFaceDetect.cpp.
References eyes_map_bin, and NULL.
void CvFaceDetect::icvMouthDetect | ( | ) | [private] |
A function used to detect the mouth box using the mouth mask created with icvMouthMask(). The detected mouth box are inseted into Cvface struct
Definition at line 327 of file CvFaceDetect.cpp.
References faces, Cvface::mouth_box, Cvface::skin_face, Cvface::Cvskin::skin_rect, and y.
void CvFaceDetect::icvMouthEyesDetect | ( | ) | [private] |
A function used to detect the maouth and eyes boxes using the mouth and eyes mask created with icvMouthEyesMask(). The detected box are inseted into Cvface struct
Definition at line 891 of file CvFaceDetect.cpp.
References faces, Cvface::mouth_box, Cvface::skin_face, Cvface::Cvskin::skin_rect, and y.
void CvFaceDetect::icvMouthEyesMap | ( | IplImage * | image | ) | [private] |
A function used to create the mouth and eyes map from an YCbCr image
image | YCbCr skin locus region image |
Definition at line 724 of file CvFaceDetect.cpp.
void CvFaceDetect::icvMouthEyesMask | ( | ) | [private] |
A function used to create the mouth and eyes mask using the mouth and eyes map created with icvMouthEyesMap()
Definition at line 817 of file CvFaceDetect.cpp.
References eyes_map_bin, mouth_map_bin, and NULL.
void CvFaceDetect::icvMouthMap | ( | IplImage * | image | ) | [private] |
A function used to create the mouth map from an YCbCr image
image | YCbCr skin locus region image |
Definition at line 268 of file CvFaceDetect.cpp.
void CvFaceDetect::icvMouthMask | ( | ) | [private] |
A function used to create the mouth mask using the mouth map created with icvMouthMap()
Definition at line 287 of file CvFaceDetect.cpp.
References mouth_map_bin, and NULL.
CvSeq* CvFaceDetect::contour [private] |
Definition at line 119 of file CvFaceDetect.hh.
IplImage* CvFaceDetect::eyes_map [private] |
IplImage* CvFaceDetect::eyes_map_bin [private] |
Definition at line 136 of file CvFaceDetect.hh.
Referenced by icvEyesMask(), and icvMouthEyesMask().
CvSeq* CvFaceDetect::faces |
Definition at line 167 of file CvFaceDetect.hh.
Referenced by cvFaceDetect(), icvEyesDetect(), icvMouthDetect(), icvMouthEyesDetect(), and OmniAlgoVRFilterDetection< ConverterT, AngleT, ImageT, PointT >::loop_next_frame().
IplImage* CvFaceDetect::mouth_map [private] |
IplImage* CvFaceDetect::mouth_map_bin [private] |
Definition at line 131 of file CvFaceDetect.hh.
Referenced by icvMouthEyesMask(), and icvMouthMask().
CvSize CvFaceDetect::size [private] |
Definition at line 116 of file CvFaceDetect.hh.
Referenced by cvFaceDetect(), icvEyesMap(), icvMouthEyesMap(), and icvMouthMap().
IplImage* CvFaceDetect::skin_locus_map [private] |
IplImage* CvFaceDetect::source [private] |
bool CvFaceDetect::started [private] |
CvMemStorage* CvFaceDetect::storage [private] |
CvVrFilter* CvFaceDetect::vrfilter [private] |
IplImage * CvFaceDetect::y [private] |
Definition at line 114 of file CvFaceDetect.hh.
Referenced by icvEyesMap(), icvMouthDetect(), icvMouthEyesDetect(), and icvMouthEyesMap().
IplImage* CvFaceDetect::ycc [private] |
Definition at line 114 of file CvFaceDetect.hh.
Referenced by cvFaceDetect(), icvEyesMap(), icvMouthEyesMap(), and icvMouthMap().