00001 00006 00007 // This software is distributed as part of the Improla library. 00008 // Improla is a GUI framework 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 : 2nd October 2004 00032 // Author : Siva Chandra 00033 // Purpose : Declares a class used to extract the extrema in an image. 00035 00036 #ifndef __IM_EXTREMA_H__ 00037 #define __IM_EXTREMA_H__ 00038 00039 #include <neighbourhoodStatisticsFilter.h> 00040 #include <point.h> 00041 #include <tlist.h> 00042 00043 namespace iptk 00044 { // Start of namespace brace. 00045 00050 class ImExtrema : public iptk::NeighbourhoodStatisticsFilter 00051 { 00052 public: 00056 ImExtrema(void); 00057 00060 ImExtrema(const iptk::Image &im); 00061 00066 ImExtrema(const ImExtrema &ip); 00067 00070 virtual ~ImExtrema(); 00071 00074 virtual void process(void); 00075 00079 iptk::Image getMaxImage(void); 00080 00084 iptk::Image getMinImage(void); 00085 00089 tutk::List< gutk::Point > getExtrema(void); 00090 00094 tutk::List< gutk::Point > getMaxima(void); 00095 00099 tutk::List< gutk::Point > getMinima(void); 00100 00101 private: 00102 iptk::Image maxIm, minIm; 00103 tutk::List< gutk::Point > extList, maxList, minList; 00104 }; 00105 00106 } // End of namespace brace. 00107 00108 #endif // __IM_EXTREMA_H__ 00109