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

staticSignal.h

Go to the documentation of this file.
00001 00006 00007 // This software is distributed as part of the Improla library. 00008 // Improla is a library of classes for image processing. 00009 // 00010 // Copyright (c) 2004, B. R. Siva Chandra, India 00011 // 00012 // This program is free software; you can redistribute it and/or 00013 // modify it under the terms of the GNU General Public License 00014 // as published by the Free Software Foundation; either version 2 00015 // of the License, or (at your option) any later version. 00016 // 00017 // This program is distributed in the hope that it will be useful, 00018 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 // GNU General Public License for more details. 00021 // 00022 // You should have received a copy of the GNU General Public License 00023 // along with this program; if not, write to the Free Software 00024 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00025 // 00026 // In case you would like to contact the author, use the following e-mail 00027 // address: sivachandra_br@yahoo.com 00029 00031 // First Created : 21st September 2004 00032 // Author : Siva Chandra 00033 // Purpose : Declares a class which performs a max-diff gradient operation on a 00034 // gray-scale image. 00036 00037 #ifndef __STATIC_SIGNAL_H__ 00038 #define __STATIC_SIGNAL_H__ 00039 00040 #include <icomplex.h> 00041 #include <cstdlib> 00042 00043 namespace sptk 00044 { // Start of namespace brace. 00045 00046 #ifndef STATIC_SIGNAL_LENGTH 00047 #define STATIC_SIGNAL_LENGTH 100 00048 #endif // SIGNAL_LENGTH 00049 00053 class StaticSignal 00054 { 00055 public: 00060 StaticSignal(void); 00061 00064 StaticSignal(const int length); 00065 00069 StaticSignal(const StaticSignal &s); 00070 00073 ~StaticSignal(); 00074 00077 int getLength(void); 00078 00081 double getEnergy(void); 00082 00086 void dcShift(mutk::Complex &dcValue); 00087 00094 mutk::Complex corr(int lag); 00095 00099 void setValue(int n, const mutk::Complex &value); 00100 00104 mutk::Complex getValue(int n); 00105 00110 StaticSignal operator+(const StaticSignal s); 00111 00116 StaticSignal operator-(const StaticSignal s); 00117 00122 StaticSignal operator*(const StaticSignal s); 00123 00127 void operator=(const StaticSignal s); 00128 00129 private: 00130 int *refCount, *length; 00131 00132 protected: 00135 mutk::Complex *data; 00136 }; 00137 00138 } // End of namespace brace. 00139 00140 #endif // __STATIC_SIGNAL_H__ 00141

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