Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages
celeste/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 class LogPolar 00036 { 00037 public: 00038 00039 LogPolar(){ mCoords = NULL; mPolarized = NULL; } 00040 LogPolar( float** img, int height, int width, int minS, int ry = 30, int rx = 11 ); 00041 ~LogPolar(); 00042 00043 void ApplyFilter( float** img, int height, int width ); 00044 void Save( void ); 00045 00046 inline void SetFileName( char* file ) { strcpy( mFile, file ); } 00047 inline float** GetPolars( void ) { return mPolarized; } 00048 inline int GetWidth() { return mWidth; } 00049 inline int GetHeight(){ return mHeight; } 00050 00051 protected: 00052 00053 float **mCoords; // logpolar coordinates img 00054 float **mPolarized; // result 00055 char mFile[256]; // file name 00056 int mMinHW; // shortest size of image 00057 int mHeight; // height of filter 00058 int mWidth; // width of filter 00059 int mImgHeight; // height of output image 00060 int mImgWidth; // width of output image 00061 }; 00062 00063 #endif
1.3.9.1