📄 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 <afxtempl.h>
#include <math.h>
/////////////////////////////////////////////////////////////////////////////
// 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_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -