⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 facedetectdoc.h

📁 人脸识别因其在安全验证系统、信用卡验证、医学、档案管理、视频会 议、人机交互、系统公安(罪犯识别等)等方面的巨大应用前景而越来越成为 当前模式识别和人工智能领域的一个研究热点。
💻 H
字号:
// FaceDetectDoc.h : interface of the CFaceDetectDoc class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_FACEDETECTDOC_H__42B3DFEF_BDE4_4510_B373_046B407B3134__INCLUDED_)
#define AFX_FACEDETECTDOC_H__42B3DFEF_BDE4_4510_B373_046B407B3134__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "LikelyHood.h"
#include <afxtempl.h>
#include <math.h>

class CFaceDetectDoc : public CDocument
{
protected: // create from serialization only

	DECLARE_DYNCREATE(CFaceDetectDoc)

// Attributes
public:	
 CFaceDetectDoc();
 void Likehood(int m_WndWidth,int m_WndHeight)  ;
 void OnBtnBinary();
 //void MyDraw();
 void HistogramV() ;
 void OnBtnHistogramH();
 void OnBtnMarkFace();
 bool CopyBitMap(RGBQUAD **dest, RGBQUAD **source);
 void MakeBitMap();
 void DrawCross(CDC *pDC, CPoint point, COLORREF crColor);
 void READYGetFaceOutLline1();
 BOOL OnOpenDocument1(LPCTSTR lpszPathName);
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CFaceDetectDoc)
	public:
	virtual BOOL OnNewDocument();
	virtual void Serialize(CArchive& ar);
	virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CFaceDetectDoc();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:
public:
   RGBQUAD** m_tOriPixelArray;//原始位图数据
   RGBQUAD** m_tResPixelArray;//参考位图数据
   RGBQUAD** m_tOriPixelArray1;
   int m_nWndWidth ;
   int m_nWndHeight;
   CLikelyHood	*method1;
   CBitmap* 	m_pResMap;
   	bool m_bFaceOK;//脸部已经确定标志位
	bool m_bShowFace;
	CRect m_rFaceRegion;//脸部区域
	CDC *pDCShow;//用来画图的区域
		//下面是一些标志位
	bool m_bManualMarkFacial;
	bool m_bLeftEyeOK;//左眼确定标志位
	bool m_bRightEyeOK;//右眼确定标志位
	bool m_bLeftEyeLeftCornerOK;//左眼左角
	bool m_bLeftEyeRightCornerOK;//左眼右角
	bool m_bRightEyeLeftCornerOK;//右眼左角
	bool m_bRightEyeRightCornerOK;//右眼右角
	bool m_bLeftNostrilOK;//左鼻角
	bool m_bRightNostrilOK;//右鼻角
	bool m_bLeftMouthCornerOK;//左嘴角
	bool m_bRightMouthCornerOK;//右嘴角
	bool m_bMidMouthOK;//嘴中部
	bool m_bMidNoseOK;//鼻尖
	//下面是上那些特征点的位置
	CPoint m_LeftEye;
	CPoint m_LeftEyeLeftCorner;
	CPoint m_LeftEyeRightCorner;
	CPoint m_RightEye;
	CPoint m_RightEyeLeftCorner;
	CPoint m_RightEyeRightCorner;
	CPoint m_LeftNostril;
	CPoint m_RightNostril;
	CPoint m_LeftMouthCorner;
	CPoint m_RightMouthCorner;
	CPoint m_MidMouth;
	CPoint m_MidNose;
	int left,right,l,top,bottom;
	LPCTSTR path;
// Generated message map functions
protected:
	//{{AFX_MSG(CFaceDetectDoc)
	afx_msg void OnREADYGetFaceOutLline();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_FACEDETECTDOC_H__42B3DFEF_BDE4_4510_B373_046B407B3134__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -