Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ContrastFilter.h
Go to the documentation of this file.
1 /* Import from Gabor API
2 
3 Copyright (c) 2002-3 Adriaan Tijsseling
4 
5 
6  All Rights Reserved
7 
8  This program is free software; you can redistribute it and/or modify
9  it under the terms of the GNU General Public License as published by
10  the Free Software Foundation; either version 2 of the License, or
11  (at your option) any later version.
12 
13  This program is distributed in the hope that it will be useful,
14  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  GNU General Public License for more details.
17 
18  You should have received a copy of the GNU General Public License
19  along with this program. If not, see <http://www.gnu.org/licenses/>.
20 */
21 
22 /*
23  Description: Abstract class for contrast filter
24  Original Author: Yasunobu Honma
25  Modifications by: Adriaan Tijsseling (AGT)
26 */
27 
28 #ifndef __CONTRAST_FILTER_CLASS__
29 #define __CONTRAST_FILTER_CLASS__
30 
31 #include <cstring>
32 #include "PGMImage.h"
33 
34 namespace celeste
35 {
36 
38 {
39 public:
40 
41  ContrastFilter() : mContrast(NULL), mHeight(0), mWidth(0) { };
42  ContrastFilter( float**, int, int );
44 
45  void ApplyFilter( float** img, int height, int width );
46  void Save( char* file );
47 
48  inline float** GetContrast( void ) { return mContrast; }
49  inline int GetWidth() { return mWidth; }
50  inline int GetHeight(){ return mHeight; }
51 
52 private:
53  // prevent copying of class
56 
57 protected:
58 
59  float **mContrast; // applied contrast
60  int mHeight; // height of filter
61  int mWidth; // width of filter
62 };
63 }; // namespace
64 #endif
void ApplyFilter(float **img, int height, int width)
float ** GetContrast(void)
ContrastFilter & operator=(const ContrastFilter &)