-
Notifications
You must be signed in to change notification settings - Fork 0
/
ud_imgchoose.h
78 lines (71 loc) · 2.2 KB
/
ud_imgchoose.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#ifndef UD_IMGCHOOSE_H
#define UD_IMGCHOOSE_H
#pragma once
#include<string>
#include<opencv2/opencv.hpp>
#include "framework.h"
#include <experimental/filesystem>
#include <cstdlib>
#include"ud_tools.h"
namespace stdfs = std::experimental::filesystem;
// CImgChoose 对话框
class CImgChoose : public CDialogEx
{
DECLARE_DYNAMIC(CImgChoose)
public:
CImgChoose(CWnd* pParent = nullptr); // 标准构造函数
virtual ~CImgChoose();
// 对话框数据
#ifdef AFX_DESIGN_TIME
enum { IDD = IDD_DIALOG1 };
#endif
protected:
//virtual BOOL OnInitDialog();
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
DECLARE_MESSAGE_MAP()
HACCEL m_hAccelTable;
private:
CTools* m_pcTools = new CTools();
CString strOpenFoldPth = _T("..\\ProcessImg\\");
CString strSaveGoodPth = _T("..\\dist\\DataSets\\LED\\train\\good\\");
CString strSaveBadPth = _T("..\\dist\\DataSets\\LED\\test\\bad\\");
CEdit m_editOpenFold;
CEdit m_editSaveGood;
CEdit m_editSaveBad;
CEdit m_editGoodNUm;
CEdit m_editBadNum;
CEdit m_editAllNum;
CEdit m_editFoldNum;
std::vector<cv::String> imageFiles;
int nImgIndex;
//CMFCButton* m_btnPrevious = new CMFCButton;
//CMFCButton* m_btnNext = new CMFCButton;
CButton m_btnPrevious;
CButton m_btnNext;
cv::Mat dlgImage;
int nSaveImgNum;
public:
afx_msg void OnEnChangeEditopenfold();
afx_msg void OnEnChangeEditsavegood();
afx_msg void OnEnChangeEditsavebad();
afx_msg void OnBnClickedOpenfilebutton();
public:
bool isDirectoryEmpty(const std::string& folderPath);
afx_msg void OnStnClickedDstimg();
afx_msg void OnBnClickedPreviousbutton();
afx_msg void OnBnClickedNextbutton();
afx_msg void OnBnClickedGoodbutton();
afx_msg void OnBnClickedBadbutton();
afx_msg void OnEnChangeEditgoodnum();
afx_msg void OnEnChangeEditbadnum();
afx_msg void OnEnChangeEditallnum();
afx_msg void OnEnChangeEditfoldnum();
afx_msg void OnBnClickedMfcbutton1();
afx_msg void OnBnClickedMfcbutton3();
afx_msg void OnBnClickedMfcbutton4();
afx_msg void OnBnClickedMfcbutton7();
afx_msg void OnBnClickedMfcbutton6();
afx_msg void OnBnClickedButton1();
afx_msg void OnBnClickedButton2();
};
#endif // !UD_IMGCHOOSE_H