ITK
5.2.0
Insight Toolkit
|
#include <itkMatrix.h>
Public Types | |
using | CompatibleSquareMatrixType = Matrix< T, NColumns, NColumns > |
using | ComponentType = T |
using | InternalMatrixType = vnl_matrix_fixed< T, NRows, NColumns > |
using | Self = Matrix |
using | ValueType = T |
Public Member Functions | |
void | Fill (const T &value) |
InternalMatrixType & | GetVnlMatrix () |
const InternalMatrixType & | GetVnlMatrix () const |
Matrix (const InternalMatrixType &matrix) | |
Matrix (const vnl_matrix< T > &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 |
Self | operator* (const CompatibleSquareMatrixType &matrix) const |
CovariantVector< T, NRows > | operator* (const CovariantVector< T, NColumns > &covect) const |
Point< T, NRows > | operator* (const Point< T, NColumns > &pnt) const |
Self | operator* (const T &value) const |
Vector< T, NRows > | operator* (const Vector< T, NColumns > &vect) const |
vnl_matrix< T > | operator* (const vnl_matrix< T > &matrix) const |
template<unsigned int OuterDim> | |
Matrix< T, NRows, OuterDim > | operator* (const vnl_matrix_fixed< T, NRows, OuterDim > &matrix) const |
vnl_vector< T > | operator* (const vnl_vector< T > &vc) const |
vnl_vector_fixed< T, NRows > | operator* (const vnl_vector_fixed< T, NColumns > &inVNLvect) const |
void | operator*= (const CompatibleSquareMatrixType &matrix) |
void | operator*= (const T &value) |
void | operator*= (const vnl_matrix< T > &matrix) |
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) const |
void | operator/= (const T &value) |
const Self & | operator= (const InternalMatrixType &matrix) |
const Self & | operator= (const vnl_matrix< T > &matrix) |
bool | operator== (const Self &matrix) const |
T * | operator[] (unsigned int i) |
const T * | operator[] (unsigned int i) const |
void | SetIdentity () |
Static Public Attributes | |
static constexpr unsigned int | ColumnDimensions = NColumns |
static constexpr unsigned int | RowDimensions = NRows |
InternalMatrixType | m_Matrix {} |
vnl_matrix_fixed< T, NColumns, NRows > | GetInverse () const |
vnl_matrix_fixed< T, NColumns, NRows > | GetTranspose () const |
Matrix ()=default | |
void | swap (Self &other) |
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 51 of file itkMatrix.h.
using itk::Matrix< T, NRows, NColumns >::CompatibleSquareMatrixType = Matrix<T, NColumns, NColumns> |
Compatible square matrix. This is currently used by operator* to help with wrapping.
Definition at line 71 of file itkMatrix.h.
using itk::Matrix< T, NRows, NColumns >::ComponentType = T |
Definition at line 59 of file itkMatrix.h.
using itk::Matrix< T, NRows, NColumns >::InternalMatrixType = vnl_matrix_fixed<T, NRows, NColumns> |
Internal matrix type
Definition at line 66 of file itkMatrix.h.
using itk::Matrix< T, NRows, NColumns >::Self = Matrix |
Standard class type aliases.
Definition at line 55 of file itkMatrix.h.
using itk::Matrix< T, NRows, NColumns >::ValueType = T |
Component value type
Definition at line 58 of file itkMatrix.h.
|
inline |
For every operator=, there should be an equivalent copy constructor.
Definition at line 213 of file itkMatrix.h.
|
inlineexplicit |
For every operator=, there should be an equivalent copy constructor.
Definition at line 251 of file itkMatrix.h.
|
default |
Defaulted default-constructor. Zero-initializes all of its elements.
|
inline |
Fill the matrix with a value.
Definition at line 199 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 257 of file itkMatrix.h.
|
inline |
Return the transposed matrix.
Definition at line 270 of file itkMatrix.h.
|
inline |
Return the matrix.
Definition at line 178 of file itkMatrix.h.
Referenced by itk::OpenCVBasicTypeBridge< itk::Matrix< T, NRows, NColumns >, cv::Matx< T, NRows, NColumns > >::FromITKToOpenCV(), itk::detail::GetPointerToMatrixData(), and itk::operator<<().
|
inline |
Return the matrix.
Definition at line 185 of file itkMatrix.h.
|
inline |
Definition at line 238 of file itkMatrix.h.
|
inline |
Return an element of the matrix.
Definition at line 158 of file itkMatrix.h.
|
inline |
Return an element of the matrix.
Definition at line 165 of file itkMatrix.h.
Self itk::Matrix< T, NRows, NColumns >::operator* | ( | const CompatibleSquareMatrixType & | matrix | ) | const |
CovariantVector<T, NRows> itk::Matrix< T, NRows, NColumns >::operator* | ( | const CovariantVector< T, NColumns > & | covect | ) | const |
Matrix by CovariantVector multiplication.
Point<T, NRows> itk::Matrix< T, NRows, NColumns >::operator* | ( | const Point< T, NColumns > & | pnt | ) | const |
|
inline |
Matrix by scalar multiplication.
Definition at line 131 of file itkMatrix.h.
Vector<T, NRows> itk::Matrix< T, NRows, NColumns >::operator* | ( | const Vector< T, NColumns > & | vect | ) | const |
vnl_matrix<T> itk::Matrix< T, NRows, NColumns >::operator* | ( | const vnl_matrix< T > & | matrix | ) | const |
Matrix by vnl_matrix multiplication.
|
inline |
Definition at line 89 of file itkMatrix.h.
vnl_vector<T> itk::Matrix< T, NRows, NColumns >::operator* | ( | const vnl_vector< T > & | vc | ) | const |
Matrix by vnl_vector multiplication.
vnl_vector_fixed<T, NRows> itk::Matrix< T, NRows, NColumns >::operator* | ( | const vnl_vector_fixed< T, NColumns > & | inVNLvect | ) | const |
Matrix by vnl_vector_fixed multiplication.
void itk::Matrix< T, NRows, NColumns >::operator*= | ( | const CompatibleSquareMatrixType & | matrix | ) |
|
inline |
Matrix by scalar multiplication.
Definition at line 125 of file itkMatrix.h.
void itk::Matrix< T, NRows, NColumns >::operator*= | ( | const vnl_matrix< T > & | matrix | ) |
Matrix by vnl_matrix multiplication.
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 148 of file itkMatrix.h.
|
inline |
Matrix by scalar division.
Definition at line 141 of file itkMatrix.h.
|
inline |
Definition at line 244 of file itkMatrix.h.
|
inline |
Assignment operator.
Definition at line 206 of file itkMatrix.h.
|
inline |
Comparison operators.
Definition at line 219 of file itkMatrix.h.
|
inline |
Return a row of the matrix.
Definition at line 171 of file itkMatrix.h.
|
inline |
Return a row of the matrix.
Definition at line 174 of file itkMatrix.h.
|
inline |
Set the matrix to identity.
Definition at line 192 of file itkMatrix.h.
Referenced by itk::IOTestHelper::SetIdentityDirection().
|
inline |
|
staticconstexpr |
Definition at line 63 of file itkMatrix.h.
|
private |
Return the inverse matrix.
Definition at line 292 of file itkMatrix.h.
Referenced by itk::Matrix< double, Self::ImageDimension, Self::ImageDimension >::operator==(), and itk::Matrix< double, Self::ImageDimension, Self::ImageDimension >::swap().
|
staticconstexpr |
Number Of Columns and Rows.
Definition at line 62 of file itkMatrix.h.