📄 testdoc.h
字号:
// TestDoc.h : interface of the CTestDoc class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_TESTDOC_H__1FD56C6F_51E3_48CD_A416_9E37E14F1E05__INCLUDED_)
#define AFX_TESTDOC_H__1FD56C6F_51E3_48CD_A416_9E37E14F1E05__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "DIB.H"
#include "myconst.h"
//人脸检测
#include "cv.h"
#include "cvaux.h"
#include "highgui.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <math.h>
#include <float.h>
#include <limits.h>
#include <time.h>
#include <ctype.h>
#define ORIG_WIN_SIZE 24
static CvMemStorage* storage = 0;
static CvHidHaarClassifierCascade* hid_cascade = 0;
class CTestDoc : public CDocument
{
protected: // create from serialization only
CTestDoc();
DECLARE_DYNCREATE(CTestDoc)
// Attributes
public:
int flag;
LONG width;
LONG hight;
CDIB * m_pSingle;
CString m_path;
CPoint m_beginpoint;
CPoint m_endpoint;
CDIB * JieQuempimage;
CDIB *SizeTempImage;
CDIB *SizeNewimage;
CString SaveTypeString[2];//处理后的训练集与测试集
CString TypeString[2];//处理前的训练集与测试集
CString FaceString[6];
CString SaveDirectory;
CString str; //第一次打开时的文件路径
CString PathName; //文件夹中的不变部分
CString AbsolutePath;//文件打开路径
CString SavePathName;//文件保存路径
CString SixFaceSaveDirectory;
int number ;//'/'的个数
//判断计算机中是否存在某文件夹.
CFileFind finder;
WIN32_FIND_DATA wfd;
CString SequenceSaveDictory;
CString SequenceStr;
BOOL OpenType;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CTestDoc)
public:
virtual BOOL OnNewDocument();
virtual void Serialize(CArchive& ar);
virtual BOOL OnSaveDocument(LPCTSTR lpszPathName);
//}}AFX_VIRTUAL
// Implementation
public:
virtual ~CTestDoc();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CTestDoc)
afx_msg void OnOpensingle();
afx_msg void OnJiequ();
afx_msg void OnInteequalize();
afx_msg void OnSizeequalize();
afx_msg void OnDct();
afx_msg void OnDetect();
afx_msg void OnSizeProperty();
afx_msg void OnFileSaveAs();
afx_msg void OnOpenSequence();
afx_msg void OnTrainingAllMap();
afx_msg void OnTestAllMap();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_TESTDOC_H__1FD56C6F_51E3_48CD_A416_9E37E14F1E05__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -