latest version v1.9 - last update 10 Apr 2010 |
00001 /* 00002 * Copyright (C) 2000, 2001, 2002, 2003, 2004, 2005, 2006 00003 * Lehrstuhl fuer Technische Informatik, RWTH-Aachen, Germany 00004 * 00005 * This file is part of the LTI-Computer Vision Library (LTI-Lib) 00006 * 00007 * The LTI-Lib is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU Lesser General Public License (LGPL) 00009 * as published by the Free Software Foundation; either version 2.1 of 00010 * the License, or (at your option) any later version. 00011 * 00012 * The LTI-Lib is distributed in the hope that it will be 00013 * useful, but WITHOUT ANY WARRANTY; without even the implied warranty 00014 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU Lesser General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public 00018 * License along with the LTI-Lib; see the file LICENSE. If 00019 * not, write to the Free Software Foundation, Inc., 59 Temple Place - 00020 * Suite 330, Boston, MA 02111-1307, USA. 00021 */ 00022 00023 00024 /*---------------------------------------------------------------- 00025 * project ....: LTI Digital Image/Signal Processing Library 00026 * file .......: ltiFeatureExtractor.h 00027 * authors ....: Pablo Alvarado 00028 * organization: LTI, RWTH Aachen 00029 * creation ...: 9.8.2000 00030 * revisions ..: $Id: ltiFeatureExtractor.h,v 1.6 2006/02/08 11:07:44 ltilib Exp $ 00031 */ 00032 00033 #ifndef _LTI_FEATURE_EXTRACTOR_H_ 00034 #define _LTI_FEATURE_EXTRACTOR_H_ 00035 00036 #include "ltiObject.h" 00037 #include "ltiImage.h" 00038 #include "ltiFunctor.h" 00039 00040 namespace lti { 00041 /** 00042 * The feature extractors are functors which extract information from 00043 * the given images or channels, and leave this information in the form 00044 * of vectors of doubles. This class is parent class for all 00045 * implemented feature extractors. 00046 */ 00047 class featureExtractor : public functor { 00048 public: 00049 /** 00050 * the parameters for the class featureExtractor 00051 */ 00052 class parameters : public functor::parameters { 00053 public: 00054 /** 00055 * default constructor 00056 */ 00057 parameters(); 00058 00059 /** 00060 * copy constructor 00061 * @param other the parameters object to be copied 00062 */ 00063 parameters(const parameters& other); 00064 00065 /** 00066 * destructor 00067 */ 00068 ~parameters(); 00069 00070 /** 00071 * returns name of this type 00072 */ 00073 const char* getTypeName() const; 00074 00075 /** 00076 * copy the contents of a parameters object 00077 * @param other the parameters object to be copied 00078 * @return a reference to this parameters object 00079 */ 00080 parameters& copy(const parameters& other); 00081 00082 /** 00083 * returns a pointer to a clone of the parameters 00084 */ 00085 virtual functor::parameters* clone() const; 00086 00087 }; 00088 00089 /** 00090 * default constructor 00091 */ 00092 featureExtractor(); 00093 00094 /** 00095 * copy constructor 00096 * @param other the object to be copied 00097 */ 00098 featureExtractor(const featureExtractor& other); 00099 00100 /** 00101 * destructor 00102 */ 00103 virtual ~featureExtractor(); 00104 00105 /** 00106 * returns the name of this type ("featureExtractor") 00107 */ 00108 virtual const char* getTypeName() const; 00109 00110 /** 00111 * copy data of "other" functor. 00112 * @param other the functor to be copied 00113 * @return a reference to this functor object 00114 */ 00115 featureExtractor& copy(const featureExtractor& other); 00116 00117 /** 00118 * returns a pointer to a clone of this functor. 00119 */ 00120 virtual functor* clone() const; 00121 00122 /** 00123 * returns used parameters 00124 */ 00125 const parameters& getParameters() const; 00126 }; 00127 } 00128 00129 #endif