Imagepointprocesses.h
上传用户:alisonmail
上传日期:2013-02-28
资源大小:500k
文件大小:2k
- // ImagePointProcesses.h
- #ifndef __IMAGEPOINTPROCESSES_H__
- #define __IMAGEPOINTPROCESSES_H__
- #include "ImageObject.h"
-
- #define SOBEL 0
- #define PREWITT 1
- #define LAPLACE 2
- #define ZHENGJIAO 3
- class CImagePointProcesses
- {
- public:
BOOL ExtractRiver(CPoint *pStartPoint, CImageObject *pImageObject);
- BOOL AddNoise(CImageObject * pImageObject, int nRatio);
- CPoint RiverTrack[1024*100];
- BOOL Embossed;
- int EdgeDetectType;
- BOOL EdgeDetect(CImageObject * pImageObject);
- BOOL DCTTrans(CImageObject *pImageObject=NULL);
- //flag = 1 fft; flag = 0 ifft;
- BOOL FFTTrans(CImageObject *pImageObject = NULL);
- CImagePointProcesses();
- CImagePointProcesses( CImageObject * );
- BOOL ChangeBrightness( int, int nX1 = -1, int nY1 = -1, int nX2 = -1, int nY2 = -1, CImageObject *pImageObject = NULL );
- BOOL ReverseColors( int nX1 = -1, int nY1 = -1, int nX2 = -1, int nY2 = -1, CImageObject *pImageObject = NULL );
- BOOL MakeGray( BOOL bSetPalette = TRUE, CImageObject *pImageObject = NULL );
- BOOL Colorize( int, int, int, int, COLORREF, CImageObject *pImageObject = NULL );
- int *GetHistogram( int nX1 = -1, int nY1 = -1, int nX2 = -1, int nY2 = -1, CImageObject *pImageObject = NULL );
- void SetImageObjectClass( CImageObject * );
- int *CreateHistogram( int, int, int, int, unsigned char *, RGBQUAD *, int, CImageObject *pImageObject = NULL );
- protected:
- void BrightnessValues( int, unsigned char, unsigned char, unsigned char, unsigned char *, unsigned char *, unsigned char * );
- CImageObject *m_pImageObject;
- };
- #endif