ITK
4.8.0
Insight Segmentation and Registration Toolkit
|
#include <itkMatrix.h>
A templated class holding a M x N size Matrix.
This class contains a vnl_matrix_fixed in order to make all the vnl mathematical methods available.
Definition at line 46 of file itkMatrix.h.
Public Types | |
typedef Matrix< T, NColumns, NColumns > | CompatibleSquareMatrixType |
typedef T | ComponentType |
typedef vnl_matrix_fixed< T, NRows, NColumns > | InternalMatrixType |
typedef Matrix | Self |
typedef T | ValueType |
Public Member Functions | |
void | Fill (const T &value) |
vnl_matrix_fixed< T, NColumns, NRows > | GetTranspose (void) const |
InternalMatrixType & | GetVnlMatrix (void) |
const InternalMatrixType & | GetVnlMatrix (void) const |
Matrix (const vnl_matrix< T > &matrix) | |
Matrix (const InternalMatrixType &matrix) | |
Matrix () | |
Matrix (const Self &matrix) | |
bool | operator!= (const Self &matrix) const |
T & | operator() (unsigned int row, unsigned int col) |
const T & | operator() (unsigned int row, unsigned int col) const |
Vector< T, NRows > | operator* (const Vector< T, NColumns > &vector) const |
Point< T, NRows > | operator* (const Point< T, NColumns > &vector) const |
CovariantVector< T, NRows > | operator* (const CovariantVector< T, NColumns > &vector) const |
vnl_vector_fixed< T, NRows > | operator* (const vnl_vector_fixed< T, NColumns > &vector) const |
Self | operator* (const CompatibleSquareMatrixType &matrix) const |
template<unsigned int OuterDim> | |
Matrix< T, NRows, OuterDim > | operator* (const vnl_matrix_fixed< T, NRows, OuterDim > &matrix) const |
vnl_matrix< T > | operator* (const vnl_matrix< T > &matrix) const |
vnl_vector< T > | operator* (const vnl_vector< T > &matrix) const |
Self | operator* (const T &value) |
void | operator*= (const CompatibleSquareMatrixType &matrix) |
void | operator*= (const vnl_matrix< T > &matrix) |
void | operator*= (const T &value) |
Self | operator+ (const Self &matrix) const |
const Self & | operator+= (const Self &matrix) |
Self | operator- (const Self &matrix) const |
const Self & | operator-= (const Self &matrix) |
Self | operator/ (const T &value) |
void | operator/= (const T &value) |
const Self & | operator= (const vnl_matrix< T > &matrix) |
const Self & | operator= (const InternalMatrixType &matrix) |
const Self & | operator= (const Self &matrix) |
bool | operator== (const Self &matrix) const |
T * | operator[] (unsigned int i) |
const T * | operator[] (unsigned int i) const |
void | SetIdentity (void) |
vnl_matrix_fixed< T, NColumns, NRows > | GetInverse (void) const |
Static Public Attributes | |
static const unsigned int | RowDimensions = NRows |
static const unsigned int | ColumnDimensions = NColumns |
Private Attributes | |
InternalMatrixType | m_Matrix |
typedef Matrix<T, NColumns, NColumns> itk::Matrix< T, NRows, NColumns >::CompatibleSquareMatrixType |
Compatible square matrix. This is currently used by operator* to help with wrapping.
Definition at line 67 of file itkMatrix.h.
typedef T itk::Matrix< T, NRows, NColumns >::ComponentType |
Definition at line 54 of file itkMatrix.h.
typedef vnl_matrix_fixed< T, NRows, NColumns > itk::Matrix< T, NRows, NColumns >::InternalMatrixType |
Internal matrix type
Definition at line 62 of file itkMatrix.h.
typedef Matrix itk::Matrix< T, NRows, NColumns >::Self |
Standard class typedefs.
Definition at line 50 of file itkMatrix.h.
typedef T itk::Matrix< T, NRows, NColumns >::ValueType |
Component value type
Definition at line 53 of file itkMatrix.h.
|
inline |
For every operator=, there should be an equivalent copy constructor.
Definition at line 197 of file itkMatrix.h.
|
inlineexplicit |
For every operator=, there should be an equivalent copy constructor.
Definition at line 233 of file itkMatrix.h.
|
inline |
Default constructor.
Definition at line 264 of file itkMatrix.h.
|
inline |
Copy constructor.
Definition at line 267 of file itkMatrix.h.
|
inline |
Fill the matrix with a value.
Definition at line 184 of file itkMatrix.h.
Referenced by itk::ShapeLabelObject< TLabel, VImageDimension >::ShapeLabelObject(), and itk::StatisticsLabelObject< TLabel, VImageDimension >::StatisticsLabelObject().
|
inline |
Return the inverse matrix.
Definition at line 246 of file itkMatrix.h.
|
inline |
Return the transposed matrix.
Definition at line 258 of file itkMatrix.h.
|
inline |
Return the matrix.
Definition at line 166 of file itkMatrix.h.
Referenced by itk::OpenCVBasicTypeBridge< itk::Matrix< T, NRows, NColumns >, cv::Matx< T, NRows, NColumns > >::FromITKToOpenCV().
|
inline |
Return the matrix.
Definition at line 172 of file itkMatrix.h.
|
inline |
Definition at line 221 of file itkMatrix.h.
|
inline |
Return an element of the matrix.
Definition at line 142 of file itkMatrix.h.
|
inline |
Return an element of the matrix.
Definition at line 148 of file itkMatrix.h.
Vector< T, NRows > itk::Matrix< T, NRows, NColumns >::operator* | ( | const Vector< T, NColumns > & | vector | ) | const |
Point< T, NRows > itk::Matrix< T, NRows, NColumns >::operator* | ( | const Point< T, NColumns > & | vector | ) | const |
CovariantVector< T, NRows > itk::Matrix< T, NRows, NColumns >::operator* | ( | const CovariantVector< T, NColumns > & | vector | ) | const |
Matrix by CovariantVector multiplication.
vnl_vector_fixed<T,NRows> itk::Matrix< T, NRows, NColumns >::operator* | ( | const vnl_vector_fixed< T, NColumns > & | vector | ) | const |
Matrix by vnl_vector_fixed multiplication.
Self itk::Matrix< T, NRows, NColumns >::operator* | ( | const CompatibleSquareMatrixType & | matrix | ) | const |
|
inline |
Definition at line 85 of file itkMatrix.h.
vnl_matrix< T > itk::Matrix< T, NRows, NColumns >::operator* | ( | const vnl_matrix< T > & | matrix | ) | const |
Matrix by vnl_matrix multiplication.
vnl_vector< T > itk::Matrix< T, NRows, NColumns >::operator* | ( | const vnl_vector< T > & | matrix | ) | const |
Matrix by vnl_vector multiplication.
|
inline |
Matrix by scalar multiplication.
Definition at line 118 of file itkMatrix.h.
void itk::Matrix< T, NRows, NColumns >::operator*= | ( | const CompatibleSquareMatrixType & | matrix | ) |
void itk::Matrix< T, NRows, NColumns >::operator*= | ( | const vnl_matrix< T > & | matrix | ) |
Matrix by vnl_matrix multiplication.
|
inline |
Matrix by scalar multiplication.
Definition at line 114 of file itkMatrix.h.
Self itk::Matrix< T, NRows, NColumns >::operator+ | ( | const Self & | matrix | ) | const |
Matrix addition.
const Self& itk::Matrix< T, NRows, NColumns >::operator+= | ( | const Self & | matrix | ) |
Self itk::Matrix< T, NRows, NColumns >::operator- | ( | const Self & | matrix | ) | const |
Matrix addition.
const Self& itk::Matrix< T, NRows, NColumns >::operator-= | ( | const Self & | matrix | ) |
|
inline |
Matrix by scalar division.
Definition at line 133 of file itkMatrix.h.
|
inline |
Matrix by scalar division.
Definition at line 127 of file itkMatrix.h.
|
inline |
Assignment operator.
Definition at line 190 of file itkMatrix.h.
Referenced by itk::Matrix< TParametersValueType, itkGetStaticConstMacro(InputSpaceDimension), itkGetStaticConstMacro(OutputSpaceDimension)>::Matrix().
|
inline |
Definition at line 226 of file itkMatrix.h.
|
inline |
Assignment operator.
Definition at line 239 of file itkMatrix.h.
|
inline |
Comparison operators.
Definition at line 203 of file itkMatrix.h.
|
inline |
Return a row of the matrix.
Definition at line 154 of file itkMatrix.h.
|
inline |
Return a row of the matrix.
Definition at line 160 of file itkMatrix.h.
|
inline |
Set the matrix to identity.
Definition at line 178 of file itkMatrix.h.
|
static |
Number Of Columns and Rows.
Definition at line 58 of file itkMatrix.h.
|
private |
Definition at line 270 of file itkMatrix.h.
Referenced by itk::Matrix< TParametersValueType, itkGetStaticConstMacro(InputSpaceDimension), itkGetStaticConstMacro(OutputSpaceDimension)>::Fill(), itk::Matrix< TParametersValueType, itkGetStaticConstMacro(InputSpaceDimension), itkGetStaticConstMacro(OutputSpaceDimension)>::GetInverse(), itk::Matrix< TParametersValueType, itkGetStaticConstMacro(InputSpaceDimension), itkGetStaticConstMacro(OutputSpaceDimension)>::GetTranspose(), itk::Matrix< TParametersValueType, itkGetStaticConstMacro(InputSpaceDimension), itkGetStaticConstMacro(OutputSpaceDimension)>::GetVnlMatrix(), itk::Matrix< TParametersValueType, itkGetStaticConstMacro(InputSpaceDimension), itkGetStaticConstMacro(OutputSpaceDimension)>::operator()(), itk::Matrix< TParametersValueType, itkGetStaticConstMacro(InputSpaceDimension), itkGetStaticConstMacro(OutputSpaceDimension)>::operator*(), itk::Matrix< TParametersValueType, itkGetStaticConstMacro(InputSpaceDimension), itkGetStaticConstMacro(OutputSpaceDimension)>::operator*=(), itk::Matrix< TParametersValueType, itkGetStaticConstMacro(InputSpaceDimension), itkGetStaticConstMacro(OutputSpaceDimension)>::operator/=(), itk::Matrix< TParametersValueType, itkGetStaticConstMacro(InputSpaceDimension), itkGetStaticConstMacro(OutputSpaceDimension)>::operator=(), itk::Matrix< TParametersValueType, itkGetStaticConstMacro(InputSpaceDimension), itkGetStaticConstMacro(OutputSpaceDimension)>::operator==(), itk::Matrix< TParametersValueType, itkGetStaticConstMacro(InputSpaceDimension), itkGetStaticConstMacro(OutputSpaceDimension)>::operator[](), and itk::Matrix< TParametersValueType, itkGetStaticConstMacro(InputSpaceDimension), itkGetStaticConstMacro(OutputSpaceDimension)>::SetIdentity().
|
static |
Number Of Columns and Rows.
Definition at line 57 of file itkMatrix.h.