📄 picture trainingdlg.h
字号:
// Picture TrainingDlg.h : header file
//
#if !defined(AFX_PICTURETRAININGDLG_H__DB16F62E_A4C6_4341_BBFF_964ACD243067__INCLUDED_)
#define AFX_PICTURETRAININGDLG_H__DB16F62E_A4C6_4341_BBFF_964ACD243067__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CPictureTrainingDlg dialog
#include "SettingDlg.h"
#include "Image.h"
class CPictureTrainingDlg : public CDialog
{
// Construction
public:
CPictureTrainingDlg(CWnd* pParent = NULL); // standard constructor
VOID FindFileNumRecurse(CString pstr);
VOID CreateFileNameRecurse(CString pstr);
long CurrentDealNum;
long FileNum;
int CurrentFileNum;
CString *FilePathName;
CImage *CurrentImg;
CImage *SaveImg;
int IsReady;
BOOL IsWorking;
BOOL IsInRegion;
BOOL IsLocating;
BOOL OnStart;
CPoint BoundaryPoint[2];
CRect PicRegion;
BOOL LosingCapture;
CPoint SelectSize;
void DealWithImage(); //设计一个函数来处理图片的信息
CPoint RealSize; //选择区域对应的原图像的大小
double AspectRatioX; //X方向的伸缩比
double AspectRatioY; //Y方向的伸缩比
double NormalizeAspectRatioX; //归一化时候X方向的伸缩比
double NormalizeAspectRatioY; //归一化时候Y方向的伸缩比
int TotalSample; //文本信息里记载一共有多少幅图片,写入的时候文件名totalnumber+1.jpg
CPoint ScreenCenter;
CPoint ImgCenter;
BOOL IsAdd;
// Dialog Data
//{{AFX_DATA(CPictureTrainingDlg)
enum { IDD = IDD_PICTURETRAINING_DIALOG };
CString m_RawImgFolder;
CString m_ResultsFolder;
int m_Cuurent_Deal_Number;
int m_Total_Number;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CPictureTrainingDlg)
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CPictureTrainingDlg)
virtual BOOL OnInitDialog();
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnBUTTONRawFolderLocation();
afx_msg void OnBUTTONResultsFolder();
afx_msg void OnBUTTONExit();
afx_msg void OnBUTTONSetting();
afx_msg void OnBUTTONNext();
afx_msg void OnBUTTONPrevious();
afx_msg void OnMouseMove(UINT nFlags, CPoint point);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnKillFocus(CWnd* pNewWnd);
afx_msg void OnCaptureChanged(CWnd *pWnd);
afx_msg void OnButtonWriteToFile();
afx_msg void OnButtonPoint();
afx_msg void OnBUTTONConfirm();
afx_msg void OnBUTTONEraseLast();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_PICTURETRAININGDLG_H__DB16F62E_A4C6_4341_BBFF_964ACD243067__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -