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

📄 activecontour.h

📁 刚上传内容的相关CODEC不能单独上传。于是
💻 H
字号:
// ActiveContour.h: interface for the CActiveContour class.
//
// Class Name	: CActiveContour
// Author		: Oanjin Kim, Hanyang Univ. Image Engineering Lab.
// Date			: 2001. 08. 08
//
// Notes : It requires CImage, CEdgeList, CEdgePoint classes
//		   composed by Minseok Choi
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_ACTIVECONTOUR_H__3C0E4F2D_AC69_4D4F_83BD_908BC6E1337D__INCLUDED_)
#define AFX_ACTIVECONTOUR_H__3C0E4F2D_AC69_4D4F_83BD_908BC6E1337D__INCLUDED_

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

typedef struct tagCARTCoord
{
	double	x;
	double	y;
} CARTCoord;

typedef struct tagPOLARCoord
{
	double	radius;
	double	angle;
} POLARCoord;

class CImage;
class CEdgeList;
class CActiveContour  
{
public:
	// 扁夯 积己磊
	CActiveContour();
	// 扁夯 家戈磊
	virtual ~CActiveContour();

public:
	// Public Member Functions

	// 货肺款 Active Contour 俺眉甫 父电促.
	BOOL	Create( CEdgeList* pEdgeList );

	// 捞固瘤甫 罐酒辑 Edge map阑 积己茄促.
	// Canny edge detector狼 搬苞甫 涝仿茄促.
	BOOL	FeedEdgeImage( CImage* pImage );

	// Active Contour甫 捞固瘤狼 Edge肺 函屈矫挪促.
	BOOL	Evolve( double dErrorCapability );

	// 泅犁狼 Active Contour甫 馆券茄促.
	BOOL	GetActiveContour( CEdgeList* pEdgeList );

	// Parameter狼 蔼阑 犁炼沥茄促.
	BOOL	SetParameter( double dInternalScaler, double dExternalScaler, double dCentripedralScaler );

protected:
	// Protected Member Functions

	// Canny edge detector狼 搬苞捞固瘤甫 smoothing茄促.
	BOOL	Smoothing( double param );

	// Gradient 捞固瘤甫 备茄促.
	BOOL	Gradient();

	// 流背谅钎拌甫 盔林谅钎拌肺 函券茄促.
	BOOL	CartToPolar( CARTCoord* pPointList, POLARCoord* pPolarList, CARTCoord* pCentroid, UINT num );

	// 盔林谅钎拌甫 流背谅钎拌肺 函券茄促.
	BOOL	PolarToCart( POLARCoord* pPolarList, CARTCoord* pPointList, CARTCoord Centroid, UINT num );

	// 啊厘 啊鳖款 沥荐甫 馆券茄促.
	BOOL	Round( CARTCoord coord, int* X, int* Y );

protected:
	// Protected Member Variables
	
	// Edge 捞固瘤甫 smoothing茄 搬苞啊 历厘瞪 器牢磐
	CImage*		m_pImage;

	// Gradient map阑 历厘窍扁 困茄 器牢磐
	CARTCoord**	m_pGradientImage;

	// Active contour狼 器牢飘啊 历厘等 硅凯
	CARTCoord*		m_pPointList;

	// 流背谅钎拌狼 active contour狼 谅钎甫 盔林谅钎拌肺 函券茄 硅凯
	POLARCoord*		m_pPolarList;

	// Active contour狼 吝缴 谅钎
	CARTCoord		m_Centroid;

	// Active contour狼 器牢飘狼 俺荐
	UINT		m_uNumofPoint;

	// 寇何 塞狼 胶纳老 蔼
	double	m_dExternalScaler;

	// 郴何 塞狼 胶纳老 蔼
	double	m_dInternalScaler;

	// 备缴仿俊 措茄 胶纳老 蔼
	double	m_dCentripedralScaler;

};

#endif // !defined(AFX_ACTIVECONTOUR_H__3C0E4F2D_AC69_4D4F_83BD_908BC6E1337D__INCLUDED_)

⌨️ 快捷键说明

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