Three-dimensional matrix template. More...
#include <cmtkMatrix.h>


Public Types | |
| typedef Matrix3D< T > | Self |
| This class. | |
| typedef SmartPointer< Self > | SmartPtr |
| Smart pointer. | |
| typedef Matrix2D< T * > | Superclass |
| Superclass. | |
Public Member Functions | |
| Matrix3D (const size_t dims2, const size_t dims1, const size_t dims0) | |
| Constructor: allocate and create cross-references. | |
| size_t | GetNumberOfPlanes () const |
| Return number of planes. | |
| void | Resize (const size_t numberOfRows, const size_t numberOfColumns, const size_t numberOfPlanes) |
| Resize the matrix. | |
| void | SetAllToZero () |
| Reset all values to zero. | |
| void | SetAll (const T value) |
| Set all values. | |
| Matrix2D< T > & | operator= (const Matrix2D< T > &other) |
| Copy another matrix. | |
Private Attributes | |
| size_t | m_NumberOfPlanes |
| Planes in the 3D matrix. | |
| size_t | m_NumberOfElements |
| Number of matrix elements. | |
Three-dimensional matrix template.
Definition at line 247 of file cmtkMatrix.h.
| typedef Matrix3D<T> cmtk::Matrix3D< T >::Self |
| typedef SmartPointer<Self> cmtk::Matrix3D< T >::SmartPtr |
Smart pointer.
Reimplemented from cmtk::Matrix2D< T * >.
Definition at line 256 of file cmtkMatrix.h.
| typedef Matrix2D<T*> cmtk::Matrix3D< T >::Superclass |
| cmtk::Matrix3D< T >::Matrix3D | ( | const size_t | dims2, |
| const size_t | dims1, | ||
| const size_t | dims0 | ||
| ) | [inline] |
Constructor: allocate and create cross-references.
Definition at line 263 of file cmtkMatrix.h.
| size_t cmtk::Matrix3D< T >::GetNumberOfPlanes | ( | ) | const [inline] |
Return number of planes.
Definition at line 279 of file cmtkMatrix.h.
| Matrix2D<T>& cmtk::Matrix3D< T >::operator= | ( | const Matrix2D< T > & | other ) | [inline] |
Copy another matrix.
Definition at line 328 of file cmtkMatrix.h.
References cmtk::Matrix2D< T >::GetNumberOfColumns(), and cmtk::Matrix2D< T >::GetNumberOfRows().
| void cmtk::Matrix3D< T >::Resize | ( | const size_t | numberOfRows, |
| const size_t | numberOfColumns, | ||
| const size_t | numberOfPlanes | ||
| ) | [inline] |
Resize the matrix.
Definition at line 285 of file cmtkMatrix.h.
References cmtk::Memory::DeleteArray(), and NULL.
| void cmtk::Matrix3D< T >::SetAll | ( | const T | value ) | [inline] |
Set all values.
Definition at line 319 of file cmtkMatrix.h.
| void cmtk::Matrix3D< T >::SetAllToZero | ( | ) | [inline] |
Reset all values to zero.
Reimplemented from cmtk::Matrix2D< T * >.
Definition at line 313 of file cmtkMatrix.h.
size_t cmtk::Matrix3D< T >::m_NumberOfElements [private] |
Number of matrix elements.
Reimplemented from cmtk::Matrix2D< T * >.
Definition at line 340 of file cmtkMatrix.h.
size_t cmtk::Matrix3D< T >::m_NumberOfPlanes [private] |
Planes in the 3D matrix.
Definition at line 337 of file cmtkMatrix.h.
1.7.2