Represents a matrix template class. More...
#include <Matrix.h>
Public Member Functions | |
int | getHeight () const |
int | getWidth () const |
bool | isSubMatrix () const |
Matrix (const Matrix &) | |
Matrix (int=0, int=0) | |
Matrix (int, int, Matrix *, int xo, int yo) | |
operator const T ** () const | |
operator T ** () | |
void | operator= (const Matrix &) |
void | operator= (const T &v) |
Vector< T > & | operator[] (int) |
const Vector< T > & | operator[] (int) const |
void | resize (int x, int y) |
void | resize (int x, int y, Matrix *m, int xo, int yo) |
virtual | ~Matrix () |
Private Types | |
typedef T | ElemType |
Private Attributes | |
Matrix< T > * | master |
T ** | matrix |
int | mXSize |
int | mYSize |
int | rcount |
Vector< T > ** | vp |
Represents a matrix template class.
This template class offers basic matrix functions for image classes. It is used in conjuction with the vector template class to provide a fast storage for raw image data.
typedef T puma2::Matrix< T >::ElemType [private] |
Matrix::Matrix | ( | const Matrix< T > & | m | ) |
Matrix::Matrix | ( | int | x = 0 , |
int | y = 0 |
||
) | [explicit] |
Matrix::Matrix | ( | int | x, |
int | y, | ||
Matrix< T > * | m, | ||
int | xo, | ||
int | yo | ||
) |
Matrix::~Matrix | ( | ) | [virtual] |
int puma2::Matrix< T >::getHeight | ( | ) | const [inline] |
int puma2::Matrix< T >::getWidth | ( | ) | const [inline] |
bool puma2::Matrix< T >::isSubMatrix | ( | ) | const [inline] |
puma2::Matrix< T >::operator const T ** | ( | ) | const [inline] |
puma2::Matrix< T >::operator T ** | ( | ) | [inline] |
void Matrix::operator= | ( | const Matrix< T > & | m | ) |
void puma2::Matrix< T >::operator= | ( | const T & | v | ) |
assign a given value to each element
Vector< T > & Matrix::operator[] | ( | int | i | ) | [inline] |
const Vector< T > & Matrix::operator[] | ( | int | i | ) | const [inline] |
void Matrix::resize | ( | int | x, |
int | y | ||
) |
void Matrix::resize | ( | int | x, |
int | y, | ||
Matrix< T > * | m, | ||
int | xo, | ||
int | yo | ||
) |
Matrix<T>* puma2::Matrix< T >::master [private] |
T** puma2::Matrix< T >::matrix [private] |
int puma2::Matrix< T >::mXSize [private] |
int puma2::Matrix< T >::mYSize [private] |
int puma2::Matrix< T >::rcount [private] |
Vector<T>** puma2::Matrix< T >::vp [private] |