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 : 12th October 2004 00033 // Author : Siva Chandra 00034 // Purpose : Declares a class performing morphological membership filtering. 00036 00037 #ifndef __MEMBERSHIP_FILTER_H__ 00038 #define __MEMBERSHIP_FILTER_H__ 00039 00040 #include <morphologicalOperationUsingStrel.h> 00041 00042 namespace iptk 00043 { // Start of iptk namespace. 00044 00051 class MembershipFilter : public iptk::MorphologicalOperationUsingStrel 00052 { 00053 public: 00057 MembershipFilter(void); 00058 00061 MembershipFilter(const Image &im); 00062 00065 MembershipFilter(const MembershipFilter &mf); 00066 00069 virtual ~MembershipFilter(); 00070 00074 virtual void setParams(double params[]); 00075 00080 virtual void process(void); 00081 00082 private: 00083 int cardinal; 00084 }; 00085 00086 } // End of iptk namespace. 00087 00088 #endif // __MEMBERSHIP_FILTER_H__ 00089 00090