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

📄 patternview.h

📁 本程序中列举了数字图象模式识别领域中的常用程序,可以在其基础上进行图象处理.
💻 H
字号:
// patternView.h : interface of the CPatternView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_PATTERNVIEW_H__696AB6FA_20EF_46BB_B9DE_8654C84DC5DE__INCLUDED_)
#define AFX_PATTERNVIEW_H__696AB6FA_20EF_46BB_B9DE_8654C84DC5DE__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

typedef struct tezheng{
	signed char value;//数字值
	signed char VHDerection[15];//水平垂直特征
	//right--1  down--2 left--3  up-4
	signed char lenth1;//第一个笔划长度1-4 >4
	signed char lenth;//最后一个方向的长度1-4(1)  >4(2)
	signed char decon;//有无断点 等于1有断点
	signed char lenfirst;
	signed char lenend;
}TEZHENG;

class CPatternView : public CView
{
protected: // create from serialization only
	CPatternView();
	DECLARE_DYNCREATE(CPatternView)
//自己定义的变量
public:
	unsigned char bitgraph[16][16];//为了以后对扩展时对扫描图象处理方便
	int mouseDown;
	CPoint mypoint[100],oldpoint;//模拟手写板输入
	int mytime;//手写板输入的时间序列
	int curvalue;//当前输入的数字
	TEZHENG *mytezheng;
	CFile cf;//用于保存特征的文件

// Attributes
public:
	CPatternDoc* GetDocument();

// Operations
public:
	void GetTeZheng(void);
	void OnStudy(void);
	void OnRecognize(void);
	void OnClear(void);
	void OnMyHelp(void);

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPatternView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
	protected:
	virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
	virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
	virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~CPatternView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CPatternView)
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in patternView.cpp
inline CPatternDoc* CPatternView::GetDocument()
   { return (CPatternDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_PATTERNVIEW_H__696AB6FA_20EF_46BB_B9DE_8654C84DC5DE__INCLUDED_)

⌨️ 快捷键说明

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