00001 00006 00007 // This software is distributed as part of the Improla library. 00008 // Improla is a library of classes for image processing. 00009 // 00010 // Copyright (c) 2004, B. R. Siva Chandra, India 00011 // 00012 // This program is free software; you can redistribute it and/or 00013 // modify it under the terms of the GNU General Public License 00014 // as published by the Free Software Foundation; either version 2 00015 // of the License, or (at your option) any later version. 00016 // 00017 // This program is distributed in the hope that it will be useful, 00018 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 // GNU General Public License for more details. 00021 // 00022 // You should have received a copy of the GNU General Public License 00023 // along with this program; if not, write to the Free Software 00024 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00025 // 00026 // In case you would like to contact the author, use the following e-mail 00027 // address: sivachandra_br@yahoo.com 00029 00031 // First Created : 21st September 2004 00032 // Author : Siva Chandra 00033 // Purpose : Declares a class which performs a steepest-ascent gradient 00034 // operation on a gray-scale image. 00036 00037 #ifndef __STEEPEST_ASCENT_H__ 00038 #define __STEEPEST_ASCENT_H__ 00039 00040 #include <tnt/tnt_array2d.h> 00041 #include <gradient.h> 00042 00043 namespace iptk 00044 { // Start of namespace brace. 00045 00088 class SteepestAscent : public iptk::Gradient 00089 { 00090 public: 00094 SteepestAscent(void); 00095 00098 SteepestAscent(const iptk::Image &im); 00099 00103 SteepestAscent(const SteepestAscent &mdg); 00104 00107 virtual ~SteepestAscent(); 00108 00112 virtual void process(void); 00113 00116 virtual iptk::Image getResult(void); 00117 00118 private: 00119 iptk::Image result; 00120 00121 }; 00122 00123 } // End of namespace brace. 00124 00125 #endif // __STEEPEST_ASCENT_H__ 00126