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

📄 image.h

📁 the code write C++. it is in image processing field. this code Read TIFF Image then it segment image
💻 H
字号:
// Image.h: interface for the CImage class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(FX_IMAGE_H__EA64FF86_CAD9_41E9_B31E_9EBE340CB4DE__INCLUDED_)
#define AFX_IMAGE_H__EA64FF86_CAD9_41E9_B31E_9EBE340CB4DE__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define BYTE unsigned  char
class CImage  
{
	char m_strFilename[50];
public:
	CImage();
	virtual ~CImage();
	void ReadTIFFImage(long &m_lWidth, long &m_lHeight, float  InputImage[]);
    void Unload(BYTE *m_pData);
    void Unload1Dfloat(float *m_pData);
    void WriteTIFFUnsignedChar(long m_lWidth, long m_lHeight, float *m_pData);
	void LoadDimensionOfImage(long &m_lWidth, long &m_lHeight);
    void MallocError(char *info, char* file, int line);
	long GetLong(FILE *pfile, int  m_byteswap);
    short GetShort(FILE *pfile, int m_byteswap);
    int  Open(long m_lWidth, long m_lHeight, long m_lDataoffset, int m_nBitcount, int m_byteswap, BYTE m_p[]); 
	void  DecodeTIFF(long &m_lWidth, long &m_lHeight, long &m_lDataoffset, int &m_nBitcount, int &m_byteswap); 
	unsigned long SwapLong(unsigned long value);
	void Load(long m_lWidth, long m_lHeight, BYTE *m_pData, long m_lDataoffset, int m_nBitcount); 



};

#endif // !defined(AFX_IMAGE_H__EA64FF86_CAD9_41E9_B31E_9EBE340CB4DE__INCLUDED_)

⌨️ 快捷键说明

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