Medical Imaging Interaction Toolkit  2016.11.0
Medical Imaging Interaction Toolkit
mitk::Matrix< T, NRows, NColumns > Class Template Reference

#include <mitkMatrix.h>

Inheritance diagram for mitk::Matrix< T, NRows, NColumns >:
Collaboration diagram for mitk::Matrix< T, NRows, NColumns >:

Public Types

typedef Matrix Self
 
typedef itk::Matrix< T, NRows, NColumns >::InternalMatrixType InternalMatrixType
 

Public Member Functions

 Matrix ()
 
 Matrix (const Matrix &matrix)
 
 Matrix (const itk::Matrix< T, NRows, NColumns > &matrix)
 
 Matrix (const vnl_matrix< T > &matrix)
 
 Matrix (InternalMatrixType &matrix)
 
template<typename ArrayType >
void FillMatrix (const ArrayType &array)
 
template<typename MatrixType >
void ToArray (MatrixType matrix) const
 

Detailed Description

template<class T, unsigned int NRows = 3, unsigned int NColumns = 3>
class mitk::Matrix< T, NRows, NColumns >

Definition at line 29 of file mitkMatrix.h.

Member Typedef Documentation

template<class T , unsigned int NRows = 3, unsigned int NColumns = 3>
typedef itk::Matrix<T, NRows, NColumns>::InternalMatrixType mitk::Matrix< T, NRows, NColumns >::InternalMatrixType

Definition at line 35 of file mitkMatrix.h.

template<class T , unsigned int NRows = 3, unsigned int NColumns = 3>
typedef Matrix mitk::Matrix< T, NRows, NColumns >::Self

Standard class typedefs.

Definition at line 33 of file mitkMatrix.h.

Constructor & Destructor Documentation

template<class T , unsigned int NRows = 3, unsigned int NColumns = 3>
mitk::Matrix< T, NRows, NColumns >::Matrix ( )
inlineexplicit

Default constructor.

Definition at line 38 of file mitkMatrix.h.

template<class T , unsigned int NRows = 3, unsigned int NColumns = 3>
mitk::Matrix< T, NRows, NColumns >::Matrix ( const Matrix< T, NRows, NColumns > &  matrix)
inlineexplicit

Copy constructor.

Definition at line 40 of file mitkMatrix.h.

template<class T , unsigned int NRows = 3, unsigned int NColumns = 3>
mitk::Matrix< T, NRows, NColumns >::Matrix ( const itk::Matrix< T, NRows, NColumns > &  matrix)
inline

Copy constructor for itk compatibility

Definition at line 42 of file mitkMatrix.h.

template<class T , unsigned int NRows = 3, unsigned int NColumns = 3>
mitk::Matrix< T, NRows, NColumns >::Matrix ( const vnl_matrix< T > &  matrix)
inline

For every operator=, there should be an equivalent copy constructor.

Definition at line 46 of file mitkMatrix.h.

template<class T , unsigned int NRows = 3, unsigned int NColumns = 3>
mitk::Matrix< T, NRows, NColumns >::Matrix ( InternalMatrixType matrix)
inlineexplicit

For every operator=, there should be an equivalent copy constructor.

Definition at line 48 of file mitkMatrix.h.

Member Function Documentation

template<class T , unsigned int NRows = 3, unsigned int NColumns = 3>
template<typename ArrayType >
void mitk::Matrix< T, NRows, NColumns >::FillMatrix ( const ArrayType &  array)
inline

Copies the elements from array array to this. Note that this method will assign doubles to floats without complaining!

Parameters
arraythe array whose values shall be copied. Must overload [] operator.

Definition at line 61 of file mitkMatrix.h.

template<class T , unsigned int NRows = 3, unsigned int NColumns = 3>
template<typename MatrixType >
void mitk::Matrix< T, NRows, NColumns >::ToArray ( MatrixType  matrix) const
inline

Warning: matrix must have same dimension as Matrix

Definition at line 76 of file mitkMatrix.h.


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