[an error occurred while processing this directive]
Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

celeste/ContrastFilter.h

Go to the documentation of this file.
00001 /* Import from Gabor API
00002 
00003 Copyright (c) 2002-3 Adriaan Tijsseling
00004 
00005 
00006                              All Rights Reserved
00007 
00008     This program is free software; you can redistribute it and/or modify
00009     it under the terms of the GNU General Public License as published by
00010     the Free Software Foundation; either version 2 of the License, or
00011     (at your option) any later version.
00012 
00013     This program is distributed in the hope that it will be useful,
00014     but WITHOUT ANY WARRANTY; without even the implied warranty of
00015     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016     GNU General Public License for more details.
00017 
00018     You should have received a copy of the GNU General Public License
00019     along with this program. If not, see <http://www.gnu.org/licenses/>.
00020 */
00021 
00022 /*
00023         Description:            Abstract class for contrast filter
00024         Original Author:        Yasunobu Honma
00025         Modifications by:       Adriaan Tijsseling (AGT)
00026 */
00027 
00028 #ifndef __CONTRAST_FILTER_CLASS__
00029 #define __CONTRAST_FILTER_CLASS__
00030 
00031 #include <cstring>
00032 #include "PGMImage.h"
00033 
00034 class ContrastFilter
00035 {
00036 public:
00037 
00038     ContrastFilter(){ mContrast = NULL; }
00039     ContrastFilter( float**, int, int );
00040     ~ContrastFilter();
00041 
00042         void            ApplyFilter( float** img, int height, int width );
00043         void            Save( void );
00044 
00045         inline void             SetFileName( char* file ) { strcpy( mFile, file ); }
00046         inline float**  GetContrast( void ) { return mContrast; }
00047         inline int              GetWidth() { return mWidth; }
00048         inline int              GetHeight(){ return mHeight; }
00049 
00050 protected:
00051 
00052     float       **mContrast;    // applied contrast
00053     char        mFile[256];             // file name
00054     int         mHeight;                // height of filter
00055     int         mWidth;                 // width of filter
00056 };
00057 
00058 #endif

Generated on Mon Sep 20 01:01:25 2010 for Hugintrunk by doxygen 1.3.9.1