www.pudn.com > FacialFeature.rar > FacialFeatureDlg.h
// FacialFeatureDlg.h : header file // #if !defined(AFX_FACIALFEATUREDLG_H__6E3BCE51_74F2_4111_A37D_EE20D07DC0EE__INCLUDED_) #define AFX_FACIALFEATUREDLG_H__6E3BCE51_74F2_4111_A37D_EE20D07DC0EE__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include "Dib.h" #include#include ///////////////////////////////////////////////////////////////////////////// // CFacialFeatureDlg dialog class CFacialFeatureDlg : public CDialog { // Construction public: CFacialFeatureDlg(CWnd* pParent = NULL); // standard constructor public: void LoadPixelOfBmp(CDib* pDib); void CreateBitMap();////re-paint void MyDraw(); bool CopyBitMap(RGBQUAD** dest,RGBQUAD** source); void SetPixelValArray(RGBQUAD** target, int val); void DrawCross(CDC *pDC, CPoint point, COLORREF crColor); public: void LightCompensation(); void ConverFromDib(); CDib *m_pMainDibBmp;//m_pMainDib CDC *pDCShow; int m_nBmpWidth; int m_nBmpHeigh; CString m_sBmpName; CRect m_rFaceArea; CRect m_rAdaFaceArea; RGBQUAD** m_tPixelOfOriBmpArray; RGBQUAD** m_tPixelOfRefBmpArray; CBitmap* m_pRefMap; ///////////////////////// IplImage* image; IplImage* grayimg; IplImage* edgeimg; IplImage* yuvimg; bool m_bFaceOK; bool m_bShowFace; 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; 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;//±Ç¼â // Dialog Data //{{AFX_DATA(CFacialFeatureDlg) enum { IDD = IDD_FACIALFEATURE_DIALOG }; CStatic m_sizeofarea; //}}AFX_DATA // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CFacialFeatureDlg) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: HICON m_hIcon; // Generated message map functions //{{AFX_MSG(CFacialFeatureDlg) virtual BOOL OnInitDialog(); afx_msg void OnSysCommand(UINT nID, LPARAM lParam); afx_msg void OnPaint(); afx_msg HCURSOR OnQueryDragIcon(); afx_msg void OnBtnOpenfile(); afx_msg void OnFaceDetect(); afx_msg void OnEyeCenter(); afx_msg void OnMouthCenter(); afx_msg void OnNoseCenter(); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_FACIALFEATUREDLG_H__6E3BCE51_74F2_4111_A37D_EE20D07DC0EE__INCLUDED_)