Medical Imaging Interaction Toolkit  2024.06.00
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 25 of file mitkMatrix.h.

Member Typedef Documentation

◆ InternalMatrixType

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 31 of file mitkMatrix.h.

◆ Self

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 29 of file mitkMatrix.h.

Constructor & Destructor Documentation

◆ Matrix() [1/5]

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

Default constructor.

Definition at line 34 of file mitkMatrix.h.

◆ Matrix() [2/5]

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 36 of file mitkMatrix.h.

◆ Matrix() [3/5]

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 38 of file mitkMatrix.h.

◆ Matrix() [4/5]

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 42 of file mitkMatrix.h.

◆ Matrix() [5/5]

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 44 of file mitkMatrix.h.

Member Function Documentation

◆ FillMatrix()

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 57 of file mitkMatrix.h.

◆ ToArray()

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 72 of file mitkMatrix.h.


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