| 
eLynx SDK
v3.3.0 C++ image processing API reference  | 
Basic M x N matrix implementation as rectangular array of doubles. More...
#include <Matrix.h>
  
 Public Member Functions | |
| Matrix (uint32 iHeight, uint32 iWidth) | |
| Constructor, creates matrix with specified height (M) and width (N).   | |
| Matrix (const IMatrix &iMatrix) | |
| Constructor, creates matrix as a copy of given matrix.   | |
| Matrix (const Matrix &iOther) | |
| Copy constructor.   | |
| Matrix & | operator= (const Matrix &iOther) | 
| An assignement operator.   | |
| virtual uint32 | GetWidth () const | 
| Returns width (number of columns, N) of the matrix.   | |
| virtual uint32 | GetHeight () const | 
| Returns height (number of rows, M) of the matrix.   | |
| virtual const double & | operator() (uint32 iRow, uint32 iCol) const | 
| Matrix content access operator.   | |
| virtual double & | operator() (uint32 iRow, uint32 iCol) | 
| Matrix content access operator.   | |
| virtual void | SwapRows (uint32 iRow1, uint32 iRow2) | 
| Swaps specified rows of the matrix.   | |
| virtual void | SwapCols (uint32 iCol1, uint32 iCol2) | 
| Swaps specified columns of the matrix.   | |
| void | Resize (uint32 iHeight, uint32 iWidth) | 
| Resizes the matrix to specified height and width.   | |
Basic M x N matrix implementation as rectangular array of doubles.
Matrix uses row-first indexing and indices are zero-based.
| eLynx::Math::Matrix::Matrix | ( | uint32 | iHeight, | 
| uint32 | iWidth | ||
| ) | 
Constructor, creates matrix with specified height (M) and width (N).
The content of the matrix is not initialized.
| iHeight | the height (number of rows, M) of the matrix | 
| iWidth | the width (number of columns, N) of the matrix | 
| eLynx::Math::Matrix::Matrix | ( | const IMatrix & | iMatrix ) | 
Constructor, creates matrix as a copy of given matrix.
| iMatrix | the matrix to copy | 
| eLynx::Math::Matrix::Matrix | ( | const Matrix & | iOther ) | 
Copy constructor.
| iOther | the matrix to copy | 
| virtual uint32 eLynx::Math::Matrix::GetHeight | ( | ) |  const [inline, virtual] | 
        
Returns height (number of rows, M) of the matrix.
Implements eLynx::Math::IMatrix.
| virtual uint32 eLynx::Math::Matrix::GetWidth | ( | ) |  const [inline, virtual] | 
        
Returns width (number of columns, N) of the matrix.
Implements eLynx::Math::IMatrix.
| virtual const double& eLynx::Math::Matrix::operator() | ( | uint32 | iRow, | 
| uint32 | iCol | ||
| ) |  const [virtual] | 
        
Matrix content access operator.
Can be used in form Matrix(r, c). () operator is prefered on [] operator, because it can have more params.
| iRow | the row index | 
| iCol | the column index | 
Implements eLynx::Math::IMatrix.
| virtual double& eLynx::Math::Matrix::operator() | ( | uint32 | iRow, | 
| uint32 | iCol | ||
| ) |  [virtual] | 
        
Matrix content access operator.
Can be used in form Matrix(r, c). () operator is prefered on [] operator, because it can have more params.
| iRow | the row index | 
| iCol | the column index | 
Implements eLynx::Math::IMatrix.
An assignement operator.
| iOther | the matrix to copy | 
| void eLynx::Math::Matrix::Resize | ( | uint32 | iHeight, | 
| uint32 | iWidth | ||
| ) | 
Resizes the matrix to specified height and width.
The matrix content is not defined after this operation.
| iHeight | the height (number of rows, M) of the matrix | 
| iWidth | the width (number of columns, N) of the matrix | 
| virtual void eLynx::Math::Matrix::SwapCols | ( | uint32 | iCol1, | 
| uint32 | iCol2 | ||
| ) |  [virtual] | 
        
Swaps specified columns of the matrix.
| iCol1 | the index of the first column to swap | 
| iCol2 | the index of the second column to swap | 
Implements eLynx::Math::IMatrix.
| virtual void eLynx::Math::Matrix::SwapRows | ( | uint32 | iRow1, | 
| uint32 | iRow2 | ||
| ) |  [virtual] | 
        
Swaps specified rows of the matrix.
| iRow1 | the index of the first row to swap | 
| iRow2 | the index of the second row to swap | 
Implements eLynx::Math::IMatrix.