eLynx SDK
v3.3.0 C++ image processing API reference |
00001 //============================================================================ 00002 // IMatrix.h Math.Component package 00003 //============================================================================ 00004 // Usage : linear algebra - matrix interface 00005 //---------------------------------------------------------------------------- 00006 // Copyright (C) 2006 by eLynx project 00007 // 00008 // This library is free software; you can redistribute it and/or 00009 // modify it under the terms of the GNU Library General Public 00010 // License as published by the Free Software Foundation; either 00011 // version 2 of the License, or (at your option) any later version. 00012 // 00013 // This library is distributed in the hope that it will be useful, 00014 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 00016 // See the GNU Library General Public License for more details. 00017 //---------------------------------------------------------------------------- 00018 #ifndef __IMatrix_h__ 00019 #define __IMatrix_h__ 00020 00021 #include <elx/core/CoreTypes.h> 00022 #include "MathLib.h" 00023 00024 namespace eLynx { 00025 namespace Math { 00026 00033 class ExportedByMath IMatrix { 00034 00035 public: 00036 00038 virtual ~IMatrix() {} 00039 00042 virtual uint32 GetWidth() const = 0; 00043 00046 virtual uint32 GetHeight() const = 0; 00047 00053 virtual const double& operator () (uint32 iRow, uint32 iCol) const = 0; 00054 00060 virtual double& operator () (uint32 iRow, uint32 iCol) = 0; 00061 00065 virtual void SwapRows(uint32 iRow1, uint32 iRow2) = 0; 00066 00070 virtual void SwapCols(uint32 iCol1, uint32 iCol2) = 0; 00071 00072 }; 00073 00074 } // namespace Math 00075 } // namespace eLynx 00076 00077 00078 #endif // __IMatrix_h__ 00079