Hugin trunk 0.1
Loading...
Searching...
No Matches
GaborJet.h
Go to the documentation of this file.
1/* Import from Gabor API
2
3Copyright (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/*
23Description: Class definition for a Gabor Jet
24Author: Adriaan Tijsseling (AGT)
25Copyright: (c) Copyright 2002 Adriaan Tijsseling. All rights reserved.
26Change History (most recent first):
2718/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
37namespace celeste
38{
40{
41public:
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
52protected:
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 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
float * mFiducials
Definition GaborJet.h:62
float GetResponse(int idx)
Definition GaborJet.h:50
void Filter(float **image, int *len)
Definition GaborJet.cpp:109
GaborFilter ** mFilters
Definition GaborJet.h:61