Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members

strel.h

Go to the documentation of this file.
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 encapsulating a structure element for 00035 // morphological operations. 00037 00038 #ifndef __STREL_H__ 00039 #define __STREL_H__ 00040 00041 #include <tntMatrix.h> 00042 #include <size.h> 00043 #include <point.h> 00044 00045 namespace iptk 00046 { // Start of namespace brace. 00047 00050 enum StrelType 00051 { 00054 ST_RECTANGULAR, 00055 00058 ST_ELLIPTICAL, 00059 00062 ST_ARBITRARY 00063 }; 00064 00068 class Strel : public mutk::Matrix 00069 { 00070 public: 00074 Strel(const StrelType &st, const gutk::Size &s, const gutk::Point &origin); 00075 00079 Strel(const Strel &s); 00080 00083 virtual ~Strel(); 00084 00087 gutk::Point getOrigin(void); 00088 00089 private: 00090 gutk::Point origin_; 00091 }; 00092 00093 } // End of namespace brace. 00094 00095 #endif // __STREL_H__ 00096

Generated on Mon Nov 22 11:12:41 2004 for ImprolaLib by doxygen 1.3.7