LogPolar.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 for log polar filter
00024         Original Author:        Takio Kurita
00025         Ported by:              Adriaan Tijsseling (AGT)
00026 */
00027 
00028 #ifndef __LOGPOLAR_CLASS__
00029 #define __LOGPOLAR_CLASS__
00030 
00031 #include <cstring>
00032 #include "GaborGlobal.h"
00033 #include "PGMImage.h"
00034 
00035 namespace celeste
00036 {
00037 class LogPolar
00038 {
00039 public:
00040 
00041     LogPolar(){ mCoords = NULL; mPolarized = NULL; }
00042     LogPolar( float** img, int height, int width, int minS, int ry = 30, int rx = 11 );
00043     ~LogPolar();
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**  GetPolars( void ) { return mPolarized; }
00050         inline int              GetWidth() { return mWidth; }
00051         inline int              GetHeight(){ return mHeight; }
00052 
00053 protected:
00054 
00055     float       **mCoords;              // logpolar coordinates img
00056     float       **mPolarized;   // result
00057     char        mFile[256];             // file name
00058     int         mMinHW;                 // shortest size of image
00059     int         mHeight;                // height of filter
00060     int         mWidth;                 // width of filter
00061     int         mImgHeight;             // height of output image
00062     int         mImgWidth;              // width of output image
00063 };
00064 }; //namespace
00065 #endif

Generated on Mon Sep 1 01:25:31 2014 for Hugintrunk by  doxygen 1.3.9.1