[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/GaborJet.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:    Class definition for a Gabor Jet
00024 Author:         Adriaan Tijsseling (AGT)
00025 Copyright:      (c) Copyright 2002 Adriaan Tijsseling. All rights reserved.
00026 Change History (most recent first):
00027 18/04/2002 - AGT - initial version
00028 */
00029 
00030 #ifndef __GABORJET__
00031 #define __GABORJET__
00032 
00033 #include <cstring>
00034 #include "GaborGlobal.h"
00035 #include "GaborFilter.h"
00036 
00037 
00038 class GaborJet
00039 {
00040 public:
00041 
00042         GaborJet();
00043         ~GaborJet();
00044         
00045         void    Initialize( int y, int x, int x0, int y0, int r, float s = 2.0, int f = 2, 
00046                                                 float maxF = 2, float minF = 1, int a = 8, bool save = false );
00047         void    Filter( float** image, int* len );
00048         float   GetResponse( int idx ) { return mFiducials[idx]; }
00049 
00050         inline void             SetFileName( char* file ) { strcpy( mFile, file ); }
00051         
00052 protected:
00053 
00054         bool                    mShowFilter;// indicates whether to save images of used filters
00055         int                             mHeight;        // vertical size of image
00056         int                             mWidth;         // horizontal size of image
00057         int                             mX;                     // origin of Gabor Jet
00058         int                             mY;
00059         float                   mSigma;         // modulator for standard deviation sigma
00060         int                             mAngles;        // number of orientations
00061         int                             mFreqs;         // number of frequencies
00062         int                             mRadius;        // radius of filter
00063         float                   mMinFreq;       // minimum frequency
00064         float                   mMaxFreq;       // maximum frequency
00065         GaborFilter**   mFilters;       // set of filters in use
00066         float*                  mFiducials;     // vector with Gabor responses at center
00067         char                    mFile[256];     // filename
00068 };
00069 
00070 #endif
00071 

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