Public Member Functions | Private Types | Private Attributes
puma2::Matrix< T > Class Template Reference

Represents a matrix template class. More...

#include <Matrix.h>

List of all members.

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

Detailed Description

template<class T>
class puma2::Matrix< T >

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.

Definition at line 20 of file Matrix.h.


Member Typedef Documentation

template<class T>
typedef T puma2::Matrix< T >::ElemType [private]

local typedef to provide give an alias for the template parameter T

Definition at line 25 of file Matrix.h.


Constructor & Destructor Documentation

template<class T >
Matrix::Matrix ( const Matrix< T > &  m)

copy given matrix

Definition at line 259 of file Matrix.h.

template<class T >
Matrix::Matrix ( int  x = 0,
int  y = 0 
) [explicit]

create matrix (default 0x0)

Definition at line 212 of file Matrix.h.

template<class T >
Matrix::Matrix ( int  x,
int  y,
Matrix< T > *  m,
int  xo,
int  yo 
)

create Matrix of given size and make it a submatrix of another matrix with offset xo and

Parameters:
yo.

Definition at line 242 of file Matrix.h.

template<class T >
Matrix::~Matrix ( ) [virtual]

delete matrix

Definition at line 227 of file Matrix.h.


Member Function Documentation

template<class T>
int puma2::Matrix< T >::getHeight ( ) const [inline]

return size of matrix

Definition at line 60 of file Matrix.h.

template<class T>
int puma2::Matrix< T >::getWidth ( ) const [inline]

return size of matrix

Definition at line 56 of file Matrix.h.

template<class T>
bool puma2::Matrix< T >::isSubMatrix ( ) const [inline]

returns true if matrix is a submatrix of another matrix

Definition at line 99 of file Matrix.h.

template<class T>
puma2::Matrix< T >::operator const T ** ( ) const [inline]

provide direct access to matrix (read only)

Definition at line 95 of file Matrix.h.

template<class T>
puma2::Matrix< T >::operator T ** ( ) [inline]

provide direct access to matrix (read / write)

Definition at line 91 of file Matrix.h.

template<class T >
void Matrix::operator= ( const Matrix< T > &  m)

assign matrix

Definition at line 278 of file Matrix.h.

template<class T>
void puma2::Matrix< T >::operator= ( const T &  v)

assign a given value to each element

template<class T >
Vector< T > & Matrix::operator[] ( int  i) [inline]

read / write access by operator []

Definition at line 110 of file Matrix.h.

template<class T >
const Vector< T > & Matrix::operator[] ( int  i) const [inline]

read access by operator []

Definition at line 194 of file Matrix.h.

template<class T >
void Matrix::resize ( int  x,
int  y 
)

resize a zero sized matrix to the given size

Definition at line 142 of file Matrix.h.

template<class T >
void Matrix::resize ( int  x,
int  y,
Matrix< T > *  m,
int  xo,
int  yo 
)

resize a zero sized matrix to the given size making it a submatrix of the matrix given as parameter with offset xo and

Parameters:
yo.

Definition at line 123 of file Matrix.h.


Member Data Documentation

template<class T>
Matrix<T>* puma2::Matrix< T >::master [private]

Definition at line 105 of file Matrix.h.

template<class T>
T** puma2::Matrix< T >::matrix [private]

Definition at line 103 of file Matrix.h.

template<class T>
int puma2::Matrix< T >::mXSize [private]

Definition at line 101 of file Matrix.h.

template<class T>
int puma2::Matrix< T >::mYSize [private]

Definition at line 102 of file Matrix.h.

template<class T>
int puma2::Matrix< T >::rcount [private]

Definition at line 106 of file Matrix.h.

template<class T>
Vector<T>** puma2::Matrix< T >::vp [private]

Definition at line 104 of file Matrix.h.


The documentation for this class was generated from the following file:


obj_rec_gui
Author(s): AGAS/agas@uni-koblenz.de
autogenerated on Mon Oct 6 2014 02:53:44