⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 inputwnd.h

📁 Visual C++源程序;利用神经网络进行0-9十个数字图像的识别。
💻 H
字号:
#if !defined(AFX_INPUTWND_H__0F555661_5F51_436B_8562_CD8D3019C4BB__INCLUDED_)
#define AFX_INPUTWND_H__0F555661_5F51_436B_8562_CD8D3019C4BB__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// InputWnd.h : header file
//
#define LEN 10
#define LENF 10.0
/////////////////////////////////////////////////////////////////////////////
// CInputWnd view
class CInputWnd: public CWnd
{
DECLARE_DYNAMIC(CInputWnd)

public:
	CInputWnd();
	virtual ~CInputWnd();
	
public:
	
	afx_msg void OnPaint();
	
	// 画出输入框架
	bool DrawInputWnd(CPaintDC *pDC);
	
	// 背景画刷
	CBrush m_brBack;
	
	CBrush m_brSquare;
	CPen   m_hPen;
	CRect m_rectThis;
	CRect m_rectArray[LEN][LEN];
	bool  m_bArray[LEN][LEN];
    
	bool m_bInitDraw;
	
	
	// 获取经过调整的输入层数值,或者样本数值
	bool GetInput(int index);
	
	// 给输入的矩阵清零,用来下次输入
	BYTE m_InputArray[LEN][LEN];
	
	// 初始化样本
	bool Initialization(void);
	
	// 是否已经完成基本训练
	bool m_bTrain;
	
	// 关联信息文件
	HANDLE m_hFile;
	
//	// 训练函数
//	int Training(int index);
	
	// 识别数字
//	RESULT Identification(void);
private:
	
	// 初始化权值
// 	void InitWeight(void);

	// Generated message map functions
protected:
	//{{AFX_MSG(CInputWnd)
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
		// NOTE - the ClassWizard will add and remove member functions here.
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_INPUTWND_H__0F555661_5F51_436B_8562_CD8D3019C4BB__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -