00001 00003 // This software is distributed as part of the Improla library. 00004 // Improla is a GUI framework for image processing. 00005 // 00006 // Copyright (c) 2004, B. R. Siva Chandra, India 00007 // 00008 // This program is free software; you can redistribute it and/or 00009 // modify it under the terms of the GNU General Public License 00010 // as published by the Free Software Foundation; either version 2 00011 // of the License, or (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, write to the Free Software 00020 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00021 // 00022 // In case you would like to contact the author, use the following e-mail 00023 // address: sivachandra_br@yahoo.com 00025 00026 #ifndef __TERM_H__ 00027 #define __TERM_H__ 00028 00029 #include <ip_function.h> 00030 #include <regionMap.h> 00031 #include <tlist.h> 00032 00033 namespace iptk 00034 { // Start of namespace brace. 00035 00046 class TERM : public iptk::IP_Function 00047 { 00048 public: 00052 TERM(void); 00053 00056 TERM(const iptk::Image &im); 00057 00062 TERM(const TERM &t); 00063 00066 virtual ~TERM(); 00067 00072 virtual void process(void); 00073 00077 virtual iptk::Image getResult(void); 00078 00087 virtual void setParams(double params[]); 00088 00091 iptk::RegionMap getRegionMap(void); 00092 00095 tutk::List< gutk::Region > getRegionList(void); 00096 00097 private: 00098 tutk::List< gutk::Region > regionList; 00099 iptk::RegionMap regionMap; 00100 int threshold, minSize; 00101 int color; 00102 }; 00103 00104 } // End of namespace brace. 00105 00106 #endif // __TERM_H__ 00107