www.pudn.com > wavelet-vc++6.rar > LBG.h


#if !defined(AFX_LBG_H__83CD9E21_CC8E_11D4_9D72_5254AB265AB0__INCLUDED_) 
#define AFX_LBG_H__83CD9E21_CC8E_11D4_9D72_5254AB265AB0__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
// LBG.h : header file 
// 
 
///////////////////////////////////////////////////////////////////////////// 
// CLBG dialog 
class CLBG : public CDialog 
{ 
// Construction 
public: 
	void mainprogram(); 
	CLBG(CWnd* pParent = NULL);   // standard constructor 
    void readfile(); 
	BYTE   *m_pDIBData; 
// Dialog Data 
	//{{AFX_DATA(CLBG) 
	enum { IDD = IDD_LBG }; 
	int		m_codebook; 
	CString	m_infile; 
	CString	m_outfile; 
	int		m_vector; 
	float	m_eps; 
    long SOI;  
	//}}AFX_DATA 
 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
	//{{AFX_VIRTUAL(CLBG) 
	protected: 
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support 
	//}}AFX_VIRTUAL 
 
// Implementation 
protected: 
	unsigned char *random1(unsigned char *ts,int m); 
	void vcpy(unsigned char *a1,unsigned char *a2); 
	int vcmp(unsigned char *a1,unsigned char *a2); 
	void quan(unsigned char *ts,unsigned char *Y,float eps,unsigned m); 
	void tcb(int *s,unsigned char *ts,unsigned char *y,unsigned m); 
	int min1(unsigned char *x,unsigned char *y,int flag); 
	int d(unsigned char *x,unsigned char *y); 
	unsigned char *core(unsigned char *ts,int *s,unsigned num,unsigned m); 
    void vectoradd(int *a1,unsigned int *a2); 
	// Generated message map functions 
	//{{AFX_MSG(CLBG) 
	afx_msg void OnInfilelook(); 
	afx_msg void OnOutfilelook(); 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_LBG_H__83CD9E21_CC8E_11D4_9D72_5254AB265AB0__INCLUDED_)