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 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;    // applied contrast
00056     char        mFile[256];             // file name
00057     int         mHeight;                // height of filter
00058     int         mWidth;                 // width of filter
00059 };
00060 }; // namespace
00061 #endif

Generated on Tue Sep 30 01:25:29 2014 for Hugintrunk by  doxygen 1.3.9.1