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

📄 videopro.h

📁 基于视觉的道路识别技术的智能小车导航源代码
💻 H
字号:

// VideoPro.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CVideoPro window
#include "HSI.h"

class CVideoPro
{
// Construction
public:
	CVideoPro();

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CVideoPro)
	//}}AFX_VIRTUAL

// Implementation
public:
	BOOL InteEqualize(LPBYTE lpBytes,int lHeight,int lWidth);
	BOOL NEWHough(LPBYTE lpDIBBits, int*lpAngleData,int lHeight, int lWidth,WINDOW w);
	BOOL RapidSobel(LPBYTE lpDIBBits,int*lpAngleData, int lHeight, int lWidth);
	BOOL RapidSobel(LPBYTE lpDIBBits, int lHeight, int lWidth);
	BOOL ToGray(LPBYTE lpBytes,int lHeight,int lWidth,WINDOW w);
	BOOL Hough(LPBYTE lpBufData,LPBYTE lpDIBBits, int lHeight, int lWidth,WINDOW w);
	void GetIntensity(LPBYTE lpDIBBits, int lHeight, int lWidth, int *nNs_Y);
	void Threshold(LPBYTE lpDIBBits, int lHeight, int lWidth);
	BOOL TempSobel(LPBYTE lpDIBBits, int lHeight, int lWidth);
	void GuassLaplacian(LPBYTE lpDIBBits, int lHeight, int lWidth);
	void RoadDetect(LPBYTE lpDIBBits, int lHeight, int lWidth);
	void Dilation(LPBYTE lpDIBBits, int lHeight, int lWidth);
	void Erosion(LPBYTE lpDIBBits, int lHeight, int lWidth);
	MaxValue m_HoughPara;
	POINT m_StartPoint;
	POINT m_EndPoint;
	BOOL TempSobel(LPBYTE lpDIBBits, int lHeight, int lWidth,WINDOW w);
	BOOL Hough(LPBYTE lpDIBBits, int lHeight, int lWidth,WINDOW w);
	void GetIntensity(LPBYTE lpDIBBits, int lHeight, int lWidth, int *nNs_Y,WINDOW w);
	void Threshold(LPBYTE lpDIBBits, int lHeight, int lWidth,WINDOW w);
	void MedianFilter(LPBYTE lpDIBBits, int lHeight, int lWidth);
    BOOL RgbTrans(LPBYTE lpBytes, int lHeight, int lWidth);
    BOOL ToGray(LPBYTE lpBytes,int lHeight,int lWidth);
	void GetCoreRegion(LPBYTE lpDIBBits,int lHeight, int lWidth,LUV* luv);
	BOOL HorizonEdgeJudge(LPBYTE lpDIBBits, LUV CoreLuv,int lHeight, int lWidth,int row, int col,int Len);

	virtual ~CVideoPro();
private:
	
	void Convolution(float *fpData, float *fpKernel, float fCoef,
		int nSize, unsigned char *nResult);

	// Generated message map functions
protected:
BOOL CVideoPro::TemplateOperation(LPBYTE lpDIBBits,float *fpArray, float fCoef, 
						int nTempW, int nTempH, int nTempXc, int nTempYc,
						 int nX1, int nY1, 
						int nX2, int nY2,
						int nHeight,int nWidth );
	//{{AFX_MSG(CVideoPro)
		// NOTE - the ClassWizard will add and remove member functions here.
	//}}AFX_MSG


	
};

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

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

//#endif // !defined(AFX_VIDEOPRO_H__7BE45551_3044_4943_8BA7_B212E47A9CB4__INCLUDED_)

⌨️ 快捷键说明

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