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

📄 barrecogview.h

📁 采用Visual C++开发平台开发了一个条形码识别系统。该系统采用图像处理技术对条形码图像的噪声进行处理
💻 H
字号:
// BarRecogView.h : interface of the CBarRecogView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_BARRECOGVIEW_H__9B87EB4A_6B2A_4865_8069_7BEB06E26504__INCLUDED_)
#define AFX_BARRECOGVIEW_H__9B87EB4A_6B2A_4865_8069_7BEB06E26504__INCLUDED_

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


class CBarRecogView : public CScrollView
{
protected: // create from serialization only
	CBarRecogView();
	DECLARE_DYNCREATE(CBarRecogView)

// Attributes
public:
	CBarRecogDoc* GetDocument();

// Operations
public:

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

// Implementation
public:
	int Step;
	char SystemCode;
	char strCodeStyle[100];
	char strCodeNumber[50];
	int arDelta[1000];
	int arLeftEdge2[1000];
	int arLeftEdge1[1000];
	int arLeftEdge[1000];
	int ImageBottom;
	int ImageTop;
	int ImageRight;
	int ImageLeft;
	bool arMark[1000];
	int arDifference[1000];
	int arWidth[200];
	int arPixelV[1000];
	int arPixelH[1000];
	LPBYTE ImageArray;
	long ImageWidth;
	long ImageHeight;
	int JudgNum(int w1,int w2,int w3,int w4,double mx);
	BOOL Recognize();
	BOOL PreProcess();
	BOOL TwoStateMethord();
	BOOL MedianFilterDIB();
	void Convert256toGray();
	virtual ~CBarRecogView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CBarRecogView)
	afx_msg void OnConvert();
	afx_msg void OnMedianFilter();
	afx_msg void OnTwoState();
	afx_msg void OnRecog();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

#ifndef _DEBUG  // debug version in BarRecogView.cpp
inline CBarRecogDoc* CBarRecogView::GetDocument()
   { return (CBarRecogDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_BARRECOGVIEW_H__9B87EB4A_6B2A_4865_8069_7BEB06E26504__INCLUDED_)

⌨️ 快捷键说明

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