www.pudn.com > facedetectDLL_expressions.zip > facedetect.h
// facedetect.h : main header file for the FACEDETECT DLL
//
#if !defined(AFX_FACEDETECT_H__B5283937_9874_4A44_8E7B_FBCD1D540A74__INCLUDED_)
#define AFX_FACEDETECT_H__B5283937_9874_4A44_8E7B_FBCD1D540A74__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#ifndef __AFXWIN_H__
#error include 'stdafx.h' before including this file for PCH
#endif
#include "resource.h" // main symbols
#include "stdafx.h"
/////////////////////////////////////////////////////////////////////////////
// CFacedetectApp
// See facedetect.cpp for the implementation of this class
//
class CFacedetectApp : public CWinApp
{
private:
void updateTracking();
void closestMatch(int &x,int &y,int size_x,int size_y,int searchArea);
void detect_keypoints(int index);
public:
void DetectFaces( IplImage* img );
int RCobj_InitFaceDetect( int img_width, int img_height );
int RCobj_detectfaces(SAFEARRAY **bmp);
void RCobj_getObject(int index, int &tx, int &ty, int &bx, int &by);
void RCobj_setBorder(int borderX, int borderTop, int borderBottom);
void RCobj_detectfeatures(int index, int &lateral_symetry, int &lefteye_x, int &righteye_x, int &lefteye_y, int &righteye_y, int &mouth_y, int &mouth_width, int &gazedirection);
void RCobj_trackface(int index);
void RCobj_detectGazeDirection(int index, int lateral_symetry, int lefteye_x, int righteye_x, int lefteye_y, int righteye_y, int &gazedirection);
void RCobj_learnFaceOrientation(int orientationID);
void RCobj_getFacialFeatures(int index, int &leftEyeOuter, int &leftEyeInner, int &leftEyePupil_x, int &leftEyePupil_y, int &leftEyebrow_y, int &rightEyeOuter, int &rightEyeInner, int &rightEyePupil_x, int &rightEyePupil_y, int &rightEyebrow_y, int &smile, int &mouthOpen, int &mouthOpenWidth);
CFacedetectApp();
~CFacedetectApp();
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CFacedetectApp)
//}}AFX_VIRTUAL
//{{AFX_MSG(CFacedetectApp)
// NOTE - the ClassWizard will add and remove member functions here.
// DO NOT EDIT what you see in these blocks of generated code !
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_FACEDETECT_H__B5283937_9874_4A44_8E7B_FBCD1D540A74__INCLUDED_)