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

📄 hicdoc.h

📁 图像无损压缩 TI常用例程 希望能对大家有所帮助
💻 H
字号:
// HICDoc.h : interface of the CHICDoc class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_HICDOC_H__31821803_3A2D_42E4_A14E_71357667B714__INCLUDED_)
#define AFX_HICDOC_H__31821803_3A2D_42E4_A14E_71357667B714__INCLUDED_

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

#include "Dib.h"
#include "IntDwt53.h"
#include "SPTransform.h"

class CHICDoc : public CDocument
{
protected: // create from serialization only
	CHICDoc();
	DECLARE_DYNCREATE(CHICDoc)

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CHICDoc)
	public:
	virtual BOOL OnNewDocument();
	virtual void Serialize(CArchive& ar);
	//}}AFX_VIRTUAL

// Implementation
public:
	long OnACencode(int *image, int width, int height);
	int * OnArithmeticdcoding(int width, int height);
	void OnArithmeticencode(int *image, int width, int height);
	BOOL IsBmp(LPCTSTR lpszPathName);
	CDib lpSrc,lpDst1,lpDst2,lpDst3,lpDst4,BMPFile;
	CIntDwt53  IntDwt53;
	CSPTransform  SPTransform;
	float ACByte;
	int *data1,*original;
    double *data2;
	int iheight,iwidth,level;
	clock_t start, finish;
    double  duration1,duration2;
	float bpp1, bpp2, CR1,CR2,CR3, CR4, MSE, PSNR;        //码率
	int threshold1, threshold2;
	virtual ~CHICDoc();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CHICDoc)
	afx_msg void OnImageopen();
	afx_msg void OnSpihtcoding();
	afx_msg void OnDpcmcoding();
	afx_msg void OnJpeglscoding();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

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

#endif // !defined(AFX_HICDOC_H__31821803_3A2D_42E4_A14E_71357667B714__INCLUDED_)

⌨️ 快捷键说明

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