Imagepointprocesses.h
资源名称:imageview.zip [点击查看]
上传用户:gz_nwdz
上传日期:2007-01-12
资源大小:527k
文件大小:2k
源码类别:
图形图象
开发平台:
Visual C++
- // 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
English
