www.pudn.com > FatRec001.rar > FatRecDlg.h
// FatRecDlg.h : header file // #if !defined(AFX_FATRECDLG_H__2ED1BE13_EB24_423C_8109_3DC7A6F9BDF8__INCLUDED_) #define AFX_FATRECDLG_H__2ED1BE13_EB24_423C_8109_3DC7A6F9BDF8__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif // _MSC_VER > 1000 #include "Dib.h" #include "LikelyHood.h" #include#include ///////////////////////////////////////////////////////////////////////////// // CFatRecDlg dialog class CFatRecDlg : public CDialog { // Construction public: CFatRecDlg(CWnd* pParent = NULL); // standard constructor public: bool CopyBitMap(RGBQUAD **dest, RGBQUAD **source); void DrawCross(CDC *pDC, CPoint point, COLORREF crColor); void MyDraw(); void LoadOriPixel(CDib *pDib); void MakeBitMap(); void SetPixelArray(RGBQUAD** target,int Val); CDC *pDCShow;//用来画图的区域 CDib *m_pMainDib;//位图 RGBQUAD** m_tOriPixelArray;//原始位图数据 RGBQUAD** m_tResPixelArray;//参考位图数据 CBitmap* m_pResMap; int m_nWndWidth;//图像宽度 以象素为单位 int m_nWndHeight;//图像高度 CString m_sFileName;//位图名称 bool m_bFaceOK;//脸部已经确定标志位 bool m_bShowFace; CRect m_rFaceRegion;//脸部区域 bool m_bSelectByMan; bool m_bLBottonDown; int m_ManLeft; int m_ManRight; int m_ManTop; int m_ManBottom; //下面是一些标志位 bool m_bManualMarkFacial; bool m_bLeftEyeOK;//左眼确定标志位 bool m_bRightEyeOK;//右眼确定标志位 bool m_bLeftEyeLeftCornerOK;//左眼左角 bool m_bLeftEyeRightCornerOK;//左眼右角 bool m_bRightEyeLeftCornerOK;//右眼左角 bool m_bRightEyeRightCornerOK;//右眼右角 //下面是上那些特征点的位置 CPoint m_LeftEye; CPoint m_LeftEyeLeftCorner; CPoint m_LeftEyeRightCorner; CPoint m_RightEye; CPoint m_RightEyeLeftCorner; CPoint m_RightEyeRightCorner; //两种方法 CLikelyHood *method; // Dialog Data //{{AFX_DATA(CFatRecDlg) enum { IDD = IDD_DIALOG1 }; // NOTE: the ClassWizard will add data members here //}}AFX_DATA // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CFatRecDlg) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: HICON m_hIcon; // Generated message map functions //{{AFX_MSG(CFatRecDlg) 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 OnBtnLikehood(); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; //{{AFX_INSERT_LOCATION}} // Microsoft Visual C++ will insert additional declarations immediately before the previous line. #endif // !defined(AFX_FATRECDLG_H__2ED1BE13_EB24_423C_8109_3DC7A6F9BDF8__INCLUDED_)