00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef __CONTRAST_FILTER_CLASS__
00029 #define __CONTRAST_FILTER_CLASS__
00030
00031 #include <cstring>
00032 #include "PGMImage.h"
00033
00034 namespace celeste
00035 {
00036
00037 class ContrastFilter
00038 {
00039 public:
00040
00041 ContrastFilter(){ mContrast = NULL; }
00042 ContrastFilter( float**, int, int );
00043 ~ContrastFilter();
00044
00045 void ApplyFilter( float** img, int height, int width );
00046 void Save( void );
00047
00048 inline void SetFileName( char* file ) { strcpy( mFile, file ); }
00049 inline float** GetContrast( void ) { return mContrast; }
00050 inline int GetWidth() { return mWidth; }
00051 inline int GetHeight(){ return mHeight; }
00052
00053 protected:
00054
00055 float **mContrast;
00056 char mFile[256];
00057 int mHeight;
00058 int mWidth;
00059 };
00060 };
00061 #endif