Image.h
上传用户:gzboli
上传日期:2013-04-10
资源大小:471k
文件大小:1k
- // Image.h: interface for the CImage class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_IMAGE_H__EC0615B2_FBC8_44CD_AACA_4E55ECD9B49C__INCLUDED_)
- #define AFX_IMAGE_H__EC0615B2_FBC8_44CD_AACA_4E55ECD9B49C__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include "dibapi.h"
- class CImage
- {
- //operations
- public:
- CImage();
- virtual ~CImage();
- virtual BOOL ReadFromFile(const LPCTSTR lpszFile);
- virtual HDIB Show();
- static void Properties(int *Histogram, double &dMean, double &dStdDev, double &dShang,
- const LPSTR lpBits, int iPixels, int iColors);
- static const HDIB HistoEqualize(const HDIB hDIB);
- private:
- CImage(const CImage &img);
- CImage& operator=(const CImage &img);
- //properties
- protected:
- int m_iWidth;
- int m_iHeight;
- char m_szPathName[_MAX_PATH];
- };
- #endif // !defined(AFX_IMAGE_H__EC0615B2_FBC8_44CD_AACA_4E55ECD9B49C__INCLUDED_)