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

📄 edgedetector.h

📁 刚上传内容的相关CODEC不能单独上传。于是
💻 H
字号:
// EdgeDector.h : header file
//
// Class Name	: CEdgeDetector
// Author		: Minseok Choi
// Date			: 2001. 2. 10
//		1. Edge Detection class
//		2. Sobel algorithm
//		3. Deriche algorithm
//
/////////////////////////////////////////////////////////////////////////////


#if !defined(AFX_EDGEDECTOR_H__E7A21DF0_6F13_11D3_947F_00105A6B94B5__INCLUDED_)
#define AFX_EDGEDECTOR_H__E7A21DF0_6F13_11D3_947F_00105A6B94B5__INCLUDED_

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

class CImage;

class CEdgeDetector
{
// Attributes
public:

// Operations
public:

	// 措惑 捞固瘤 按眉甫 罐绰 积己磊
	CEdgeDetector( CImage* pImage );
	// 2瞒盔 data 器牢磐甫 罐绰 积己磊
	CEdgeDetector( BYTE** pImg, CSize size );
	// 家戈磊
	~CEdgeDetector();

// Overrides
public:

	// Deriche 规过阑 捞侩茄 edge detection, a : filter 拌荐
	void Edge_Deriche( float a );
	// Hysteresis thresolding	
	void Hysteresis(int sh, int sb, float** r, float** rr, BYTE** img);
	// Hysteresis thresolding	
	void Confcont(int i, int j, int sh, int sb, float **r, float **rr, BYTE** img);
	// Edge linking
	void EdgeLink( int tol, float** r, BYTE** img );
	// Edge linking
	void LinkEdge( int i, int j, int tol, float** r, BYTE** img );
	// local maxima 眠免
	void FindMax(float** rx, float** ry, float** r, float** rr);	

	// sobel mask俊 狼茄 edge 八免
	void Edge_Sobel();
	// thresolding
	void Thresholding();

// Implementation
protected:
	
	CImage* m_pImage;		// 措惑 CImage 按眉 器牢磐
	BYTE**	m_pImg;			// 措惑 2瞒盔 硅凯 器牢磐
	CSize	m_Size;			// 措惑 捞固瘤 农扁

};

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

#endif // !defined(AFX_EDGEDECTOR_H__E7A21DF0_6F13_11D3_947F_00105A6B94B5__INCLUDED_)

⌨️ 快捷键说明

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