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

mask.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 : 19th October 2004 00033 // Author : Siva Chandra 00034 // Purpose : Declares a class which encapsulates a spatial domain mask. 00036 00037 #ifndef __MASK_H__ 00038 #define __MASK_H__ 00039 00040 #include <tntMatrix.h> 00041 #include <size.h> 00042 00043 namespace iptk 00044 { // Start of namespace brace. 00045 00048 enum MaskType 00049 { 00052 GAUSSIAN_MASK, 00053 00056 LAPLACIAN_MASK, 00057 00060 RECTANGULAR_MASK 00061 }; 00062 00066 class Mask : public mutk::Matrix 00067 { 00068 public: 00071 Mask(void); 00072 00076 Mask(int w, int h); 00077 00083 Mask(int w, int h, MaskType mt, double sd = 1); 00084 00090 Mask(gutk::Size s, MaskType mt, double sd = 1); 00091 00094 virtual ~Mask(); 00095 00096 private: 00097 // These functions will be called by the above constructors to initialise the 00098 // mask cells to the suitable type values. 00099 void genRectangular(void); 00100 void genGaussian(double sd); 00101 00102 }; 00103 00104 } // End of namespace brace. 00105 00106 #endif // __MASK_H__ 00107

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