CvFaceDetect Class Reference

#include <CvFaceDetect.hh>

Collaboration diagram for CvFaceDetect:

Collaboration graph
[legend]
List of all members.

Detailed Description

CvFaceDetect return the face features (mouth and eyes) to choose when detected skin regio are faces or not.

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.
CvVrFiltervrfilter
 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.


Constructor & Destructor Documentation

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.

Parameters:
min minimum contour points
max maximum contour points

Definition at line 58 of file CvFaceDetect.cpp.

References started, storage, and vrfilter.

CvFaceDetect::~CvFaceDetect (  )  [virtual]

Definition at line 68 of file CvFaceDetect.cpp.


Member Function Documentation

void CvFaceDetect::cvFaceDetect ( IplImage *  image,
int  DRAW_TYPE = 0 
)

An init function used to process frame: this has to be called first off all.

Parameters:
image to get image size
DRAW_TYPE for what you want to draw of detection results
Returns:
the cvVrFilter processed image

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

See also:
icvEyesMask(), Cvface

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]

A function used to create the eyes map from an YCbCr image

Parameters:
image YCbCr skin locus region image

Definition at line 453 of file CvFaceDetect.cpp.

References eyes_map, size, y, and ycc.

void CvFaceDetect::icvEyesMask (  )  [private]

A function used to create the eyes mask using the eyes map created with icvEyeshMap()

See also:
icvEyesMap()

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

See also:
icvMouthMask(), Cvface

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

See also:
icvMouthEyesMask(), Cvface

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

Parameters:
image YCbCr skin locus region image
See also:
icvMouthMap(), icvEyesMap()

Definition at line 724 of file CvFaceDetect.cpp.

References eyes_map, mouth_map, size, y, and ycc.

void CvFaceDetect::icvMouthEyesMask (  )  [private]

A function used to create the mouth and eyes mask using the mouth and eyes map created with icvMouthEyesMap()

See also:
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

Parameters:
image YCbCr skin locus region image

Definition at line 268 of file CvFaceDetect.cpp.

References mouth_map, size, and ycc.

void CvFaceDetect::icvMouthMask (  )  [private]

A function used to create the mouth mask using the mouth map created with icvMouthMap()

See also:
icvMouthMap()

Definition at line 287 of file CvFaceDetect.cpp.

References mouth_map_bin, and NULL.


Member Data Documentation

CvSeq* CvFaceDetect::contour [private]

Definition at line 119 of file CvFaceDetect.hh.

IplImage* CvFaceDetect::eyes_map [private]

Definition at line 134 of file CvFaceDetect.hh.

Referenced by icvEyesMap(), and icvMouthEyesMap().

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]

Definition at line 129 of file CvFaceDetect.hh.

Referenced by icvMouthEyesMap(), and icvMouthMap().

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]

Definition at line 126 of file CvFaceDetect.hh.

Referenced by cvFaceDetect().

IplImage* CvFaceDetect::source [private]

Definition at line 112 of file CvFaceDetect.hh.

Referenced by cvFaceDetect().

bool CvFaceDetect::started [private]

Definition at line 139 of file CvFaceDetect.hh.

Referenced by cvFaceDetect(), and CvFaceDetect().

CvMemStorage* CvFaceDetect::storage [private]

Definition at line 121 of file CvFaceDetect.hh.

Referenced by cvFaceDetect(), and CvFaceDetect().

CvVrFilter* CvFaceDetect::vrfilter [private]

Definition at line 124 of file CvFaceDetect.hh.

Referenced by cvFaceDetect(), and CvFaceDetect().

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().


The documentation for this class was generated from the following files:
Generated on Tue Dec 26 10:35:39 2006 for Omnimeeting by  doxygen 1.4.7