Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GaborJet.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: Class definition for a Gabor Jet
24 Author: Adriaan Tijsseling (AGT)
25 Copyright: (c) Copyright 2002 Adriaan Tijsseling. All rights reserved.
26 Change History (most recent first):
27 18/04/2002 - AGT - initial version
28 */
29 
30 #ifndef __GABORJET__
31 #define __GABORJET__
32 
33 #include <cstring>
34 #include "GaborGlobal.h"
35 #include "GaborFilter.h"
36 
37 namespace celeste
38 {
39 class GaborJet
40 {
41 public:
42 
43  GaborJet();
44  ~GaborJet();
45 
46  void Initialize( int y, int x, int x0, int y0, int r, float s = 2.0, int f = 2,
47  float maxF = 2, float minF = 1, int a = 8, char* file=NULL);
48 
49  void Filter( float** image, int* len );
50  float GetResponse( int idx ) { return mFiducials[idx]; }
51 
52 protected:
53 
54  int mHeight; // vertical size of image
55  int mWidth; // horizontal size of image
56  int mX; // origin of Gabor Jet
57  int mY;
58  int mAngles; // number of orientations
59  int mFreqs; // number of frequencies
60  int mRadius; // radius of filter
61  GaborFilter** mFilters; // set of filters in use
62  float* mFiducials; // vector with Gabor responses at center
63 };
64 } //namespace
65 #endif
66 
void Filter(float **image, int *len)
Definition: GaborJet.cpp:109
float * mFiducials
Definition: GaborJet.h:62
GaborFilter ** mFilters
Definition: GaborJet.h:61
float GetResponse(int idx)
Definition: GaborJet.h:50
void Initialize(int y, int x, int x0, int y0, int r, float s=2.0, int f=2, float maxF=2, float minF=1, int a=8, char *file=NULL)
Definition: GaborJet.cpp:64