00001 00007 00008 // This software is distributed as part of the Improla library. 00009 // Improla is a library of classes for image processing. 00010 // 00011 // Copyright (c) 2004, B. R. Siva Chandra, India 00012 // 00013 // This program is free software; you can redistribute it and/or 00014 // modify it under the terms of the GNU General Public License 00015 // as published by the Free Software Foundation; either version 2 00016 // of the License, or (at your option) any later version. 00017 // 00018 // This program is distributed in the hope that it will be useful, 00019 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00020 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00021 // GNU General Public License for more details. 00022 // 00023 // You should have received a copy of the GNU General Public License 00024 // along with this program; if not, write to the Free Software 00025 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00026 // 00027 // In case you would like to contact the author, use the following e-mail 00028 // address: sivachandra_br@yahoo.com 00030 00032 // First Created : 16th October 2004 00033 // Author : Siva Chandra 00034 // Purpose : Declares an abstract base class for classes which perform a 00035 // segmentation of images to extarct regions. 00037 00038 #ifndef __REGION_EXTRACTOR_H__ 00039 #define __REGION_EXTRACTOR_H__ 00040 00041 #include <ip_function.h> 00042 #include <tlist.h> 00043 #include <regionMap.h> 00044 00045 namespace iptk 00046 { // Start of namespace iptk. 00047 00051 class RegionExtractor : public iptk::IP_Function 00052 { 00053 public: 00056 RegionExtractor(void); 00057 00060 RegionExtractor(const Image &im); 00061 00064 RegionExtractor(const RegionExtractor &re); 00065 00068 ~RegionExtractor(); 00069 00072 virtual void setParams(double params[]); 00073 00077 virtual void process(void) = 0; 00078 00083 iptk::RegionMap getRegionMap(void); 00084 00089 tutk::List< gutk::Region* > getRegionList(void); 00090 00094 virtual iptk::Image getResult(void); 00095 00096 protected: 00100 iptk::RegionMap REGION_MAP; 00101 00105 tutk::List< gutk::Region* > REGION_LIST; 00106 00109 iptk::Image RESULT; 00110 }; 00111 00112 } // End of namespace iptk. 00113 00114 #endif // __REGION_EXTRACTOR_H__ 00115