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 .......: ltiSaliency.h 00027 * authors ....: Stefan Syberichs 00028 * organization: LTI, RWTH Aachen 00029 * creation ...: 17.04.2000 00030 * revisions ..: $Id: ltiSaliency.h,v 1.5 2006/02/08 11:47:10 ltilib Exp $ 00031 */ 00032 00033 #ifndef _LTI_SALIENCY_H_ 00034 #define _LTI_SALIENCY_H_ 00035 00036 #include "ltiImage.h" 00037 #include "ltiModifier.h" 00038 00039 namespace lti { 00040 00041 00042 /** 00043 * base class for all saliency modifiers. 00044 */ 00045 class saliency : public modifier { 00046 public: 00047 /** 00048 * %parameters class for lti::saliency objects. 00049 */ 00050 class parameters : public modifier::parameters { 00051 public: 00052 /** 00053 * default constructor 00054 */ 00055 parameters() : modifier::parameters() {}; 00056 00057 /** 00058 * copy constructor 00059 */ 00060 parameters(const parameters& other) 00061 : modifier::parameters() { 00062 copy(other); 00063 }; 00064 00065 /** 00066 * returns the name of this type 00067 */ 00068 virtual const char* getTypeName() const { 00069 return "saliency::parameters"; 00070 }; 00071 00072 /** 00073 * copy member 00074 */ 00075 parameters& copy(const parameters& other) { 00076 # ifndef _LTI_MSC_6 00077 // MS Visual C++ 6 is not able to compile this... 00078 modifier::parameters::copy(other); 00079 # else 00080 // ...so we have to use this workaround. 00081 // Conditional on that, copy may not be virtual. 00082 modifier::parameters& (modifier::parameters::* p_copy) 00083 (const modifier::parameters&) = modifier::parameters::copy; 00084 (this->*p_copy)(other); 00085 # endif 00086 00087 return (*this); 00088 }; 00089 00090 /** 00091 * returns a pointer to a clone of the parameters. 00092 */ 00093 virtual functor::parameters* clone() const { 00094 return (new parameters(*this)); 00095 }; 00096 00097 }; // end of parameters class 00098 00099 //virtual channel& apply(const image& src, channel& dest) const=0; 00100 00101 }; 00102 }; // namespace lti 00103 00104 #endif