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

📄 locateview.h

📁 车牌定位识别系统地涉及具体由车牌定位
💻 H
字号:
// LocateView.h : interface of the CLocateView class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_LOCATEVIEW_H__23D79A14_98A5_4DB1_8C6B_A2295CEF8B00__INCLUDED_)
#define AFX_LOCATEVIEW_H__23D79A14_98A5_4DB1_8C6B_A2295CEF8B00__INCLUDED_

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

#include "DIBAPI.h"

class CLocateView : public CView
{
protected: // create from serialization only
	CLocateView();
	DECLARE_DYNCREATE(CLocateView)

// Attributes
public:
	HDIB GetHDIB() const
		{ return m_hDIB; }
	CPalette* GetViewPalette() const
		{ return m_palDIB; }
	CLocateDoc* GetDocument();

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CLocateView)
	public:
	virtual void OnDraw(CDC* pDC);  // overridden to draw this view
	protected:
	//}}AFX_VIRTUAL

// Implementation
public:
	CRect m_pzRect;
	
	void ReplaceHDIB(HDIB hDIB);
	void InitDIBData();
	void Paste();
	void Copy();
	void TempSubrect(CRect rect);
	virtual ~CLocateView();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	long m_lMaxDist;	// 最大允许的跳变点间距
	long m_lMinDotNum;	// 最小允许的每行跳变点数

	int m_nMaxOffset;	// 同一区域两行最左端允许相差的最大距离
	int m_nMaxGap;		// 同一区域最多允许的间断行数
	int m_nMinHeight;	// 车牌照的最小高度
	int m_nMinWidth;	// 车牌照的最小宽度

	HDIB		m_hDIB;
	CPalette*	m_palDIB;
//	CSize m_sizeView;
	//{{AFX_MSG(CLocateView)
	afx_msg LRESULT OnDoRealize(WPARAM wParam, LPARAM lParam);
	afx_msg void OnImageToGray();
	afx_msg void OnStretch();
	afx_msg void OnThreshold();
	afx_msg void OnTemplate();
	afx_msg void OnMedianFilter();
	afx_msg void OnFiltrate();
	afx_msg void OnSubrect();
	afx_msg void OnImageOpen();
	afx_msg void OnGrayEqualize();
	afx_msg void OnViewHist();
	afx_msg void OnImageSave();
	afx_msg void OnOptionParam();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

	struct group // 有一组行组成的候选区域
	{
		int s;	// 起始行号
		int e;  // 终止行号
	};

};

#ifndef _DEBUG  // debug version in LocateView.cpp
inline CLocateDoc* CLocateView::GetDocument()
   { return (CLocateDoc*)m_pDocument; }
#endif

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

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

#endif // !defined(AFX_LOCATEVIEW_H__23D79A14_98A5_4DB1_8C6B_A2295CEF8B00__INCLUDED_)

⌨️ 快捷键说明

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