![]() |
Orfeo Toolbox
3.16
|
A templated class holding a M x N size Matrix This class contains a vnl_matrix in order to make all the vnl mathematical methods available. This class is meant to be used when the matrix length cannot be determined at compile time. More...
#include <itkVariableSizeMatrix.h>
Inheritance diagram for itk::VariableSizeMatrix< T >:Public Types | |
| typedef T | ComponentType |
| typedef vnl_matrix< T > | InternalMatrixType |
| typedef VariableSizeMatrix | Self |
| typedef T | ValueType |
Public Member Functions | |
| VariableSizeMatrix () | |
| VariableSizeMatrix (unsigned int rows, unsigned int cols) | |
| VariableSizeMatrix (const Self &matrix) | |
| unsigned int | Cols () const |
| void | Fill (const T &value) |
| vnl_matrix< T > | GetInverse (void) const |
| vnl_matrix< T > | GetTranspose (void) const |
| InternalMatrixType & | GetVnlMatrix (void) |
| const InternalMatrixType & | GetVnlMatrix (void) const |
| bool | operator!= (const Self &matrix) const |
| T & | operator() (unsigned int row, unsigned int col) |
| const T & | operator() (unsigned int row, unsigned int col) const |
| Array< T > | operator* (const Array< T > &vector) const |
| Self | operator* (const Self &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 Self &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 |
| Self & | operator- () |
| 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 Self &matrix) |
| bool | operator== (const Self &matrix) const |
| T * | operator[] (unsigned int i) |
| const T * | operator[] (unsigned int i) const |
| unsigned int | Rows () const |
| void | SetIdentity (void) |
| bool | SetSize (unsigned int r, unsigned int c) |
Private Attributes | |
| InternalMatrixType | m_Matrix |
A templated class holding a M x N size Matrix This class contains a vnl_matrix in order to make all the vnl mathematical methods available. This class is meant to be used when the matrix length cannot be determined at compile time.
Definition at line 44 of file itkVariableSizeMatrix.h.
| typedef T itk::VariableSizeMatrix< T >::ComponentType |
Definition at line 51 of file itkVariableSizeMatrix.h.
| typedef vnl_matrix<T> itk::VariableSizeMatrix< T >::InternalMatrixType |
Internal matrix type
Definition at line 54 of file itkVariableSizeMatrix.h.
| typedef VariableSizeMatrix itk::VariableSizeMatrix< T >::Self |
Standard class typedefs.
Definition at line 47 of file itkVariableSizeMatrix.h.
| typedef T itk::VariableSizeMatrix< T >::ValueType |
Component value type
Definition at line 50 of file itkVariableSizeMatrix.h.
|
inline |
Default constructor.
Definition at line 196 of file itkVariableSizeMatrix.h.
| itk::VariableSizeMatrix< T >::VariableSizeMatrix | ( | unsigned int | rows, |
| unsigned int | cols | ||
| ) |
Definition at line 28 of file itkVariableSizeMatrix.txx.
|
inline |
Copy constructor.
Definition at line 201 of file itkVariableSizeMatrix.h.
|
inline |
Return number of columns in the matrix
Definition at line 207 of file itkVariableSizeMatrix.h.
Referenced by itk::BSplineScatteredDataPointSetToImageFilter< TInputPointSet, TOutputImage >::EvaluateGradient(), otb::Functor::ComputeNeighborhoodContributionFunctor< itk::ConstNeighborhoodIterator< TInputImage >, TOutputImage::PixelType >::operator()(), otb::Functor::BayesianFunctor< TInputMultiSpectralImage::PixelType, TInputMultiSpectralInterpImage::PixelType, TInputPanchroImage::PixelType, TOutputImage::PixelType >::operator()(), itk::VariableSizeMatrix< T >::operator*(), itk::VariableSizeMatrix< T >::operator+(), itk::VariableSizeMatrix< T >::operator+=(), itk::VariableSizeMatrix< T >::operator-(), itk::VariableSizeMatrix< T >::operator-=(), itk::VariableSizeMatrix< T >::operator==(), otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::Synthetize(), and otb::PersistentStreamingStatisticsVectorImageFilter< TInputImage, TPrecision >::ThreadedGenerateData().
|
inline |
Fill the matrix with a value.
Definition at line 154 of file itkVariableSizeMatrix.h.
Referenced by otb::SurfaceAdjacencyEffect6SCorrectionSchemeFilter< TInputImage, TOutputImage >::ComputeParameters(), itk::BSplineScatteredDataPointSetToImageFilter< TInputPointSet, TOutputImage >::EvaluateGradient(), otb::LineSpatialObjectListToRightAnglePointSetFilter< TImage, TLinesList, TPointSet >::GenerateData(), otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::Reset(), otb::PersistentStreamingStatisticsVectorImageFilter< TInputImage, TPrecision >::Reset(), otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::Synthetize(), and otb::PersistentStreamingStatisticsVectorImageFilter< TInputImage, TPrecision >::Synthetize().
|
inline |
Return the inverse matrix.
Definition at line 182 of file itkVariableSizeMatrix.h.
Referenced by otb::LocalRxDetectorNonThreadFilter< TInputImage, TOutputImage >::GenerateData(), and otb::LocalRxDetectorFilter< TInputImage, TOutputImage >::ThreadedGenerateData().
|
inline |
Return the transposed matrix.
Definition at line 190 of file itkVariableSizeMatrix.h.
|
inline |
Return the matrix.
Definition at line 136 of file itkVariableSizeMatrix.h.
Referenced by itk::Statistics::GaussianMixtureModelComponent< TSample >::CalculateParametersChange(), otb::LocalRxDetectorNonThreadFilter< TInputImage, TOutputImage >::GenerateData(), otb::Statistics::GaussianModelComponent< TSample >::GenerateData(), itk::Statistics::GaussianMixtureModelComponent< TSample >::GenerateData(), itk::operator<<(), itk::Statistics::GaussianDensityFunction< TMeasurementVector >::SetCovariance(), and otb::LocalRxDetectorFilter< TInputImage, TOutputImage >::ThreadedGenerateData().
|
inline |
Return the matrix.
Definition at line 142 of file itkVariableSizeMatrix.h.
|
inline |
Definition at line 168 of file itkVariableSizeMatrix.h.
|
inline |
Return an element of the matrix.
Definition at line 112 of file itkVariableSizeMatrix.h.
|
inline |
Return an element of the matrix.
Definition at line 118 of file itkVariableSizeMatrix.h.
| Array< T > itk::VariableSizeMatrix< T >::operator* | ( | const Array< T > & | vect | ) | const |
Matrix by Vector multiplication.
Product by a Vector
Definition at line 38 of file itkVariableSizeMatrix.txx.
References itk::Array< TValueType >::Size().
| VariableSizeMatrix< T > itk::VariableSizeMatrix< T >::operator* | ( | const Self & | matrix | ) | const |
Matrix by Matrix multiplication.
Product by a matrix
Definition at line 67 of file itkVariableSizeMatrix.txx.
References itk::VariableSizeMatrix< T >::Cols(), itk::VariableSizeMatrix< T >::m_Matrix, and itk::VariableSizeMatrix< T >::Rows().
| vnl_matrix< T > itk::VariableSizeMatrix< T >::operator* | ( | const vnl_matrix< T > & | matrix | ) | const |
Matrix by vnl_matrix multiplication.
Product by a vnl_matrix
Definition at line 212 of file itkVariableSizeMatrix.txx.
| vnl_vector< T > itk::VariableSizeMatrix< T >::operator* | ( | const vnl_vector< T > & | vc | ) | const |
Matrix by vnl_vector multiplication.
Product by a vnl_vector
Definition at line 248 of file itkVariableSizeMatrix.txx.
|
inline |
Matrix by scalar multiplication.
Definition at line 90 of file itkVariableSizeMatrix.h.
| void itk::VariableSizeMatrix< T >::operator*= | ( | const Self & | matrix | ) |
Matrix by Matrix multiplication.
Product by a matrix
Definition at line 225 of file itkVariableSizeMatrix.txx.
References itk::VariableSizeMatrix< T >::m_Matrix.
| void itk::VariableSizeMatrix< T >::operator*= | ( | const vnl_matrix< T > & | matrix | ) |
Matrix by vnl_matrix multiplication.
Product by a vnl_matrix
Definition at line 237 of file itkVariableSizeMatrix.txx.
|
inline |
Matrix by scalar multiplication.
Definition at line 86 of file itkVariableSizeMatrix.h.
| VariableSizeMatrix< T > itk::VariableSizeMatrix< T >::operator+ | ( | const Self & | matrix | ) | const |
Matrix addition.
Matrix Addition
Definition at line 89 of file itkVariableSizeMatrix.txx.
References itk::VariableSizeMatrix< T >::Cols(), itk::VariableSizeMatrix< T >::m_Matrix, and itk::VariableSizeMatrix< T >::Rows().
| const VariableSizeMatrix< T > & itk::VariableSizeMatrix< T >::operator+= | ( | const Self & | matrix | ) |
Matrix Addition in-place
Definition at line 118 of file itkVariableSizeMatrix.txx.
References itk::VariableSizeMatrix< T >::Cols(), itk::VariableSizeMatrix< T >::m_Matrix, and itk::VariableSizeMatrix< T >::Rows().
| VariableSizeMatrix< T > itk::VariableSizeMatrix< T >::operator- | ( | const Self & | matrix | ) | const |
Matrix addition.
Matrix Subtraction
Definition at line 144 of file itkVariableSizeMatrix.txx.
References itk::VariableSizeMatrix< T >::Cols(), itk::VariableSizeMatrix< T >::m_Matrix, and itk::VariableSizeMatrix< T >::Rows().
| VariableSizeMatrix< T > & itk::VariableSizeMatrix< T >::operator- | ( | ) |
negation operator
Definition at line 194 of file itkVariableSizeMatrix.txx.
| const VariableSizeMatrix< T > & itk::VariableSizeMatrix< T >::operator-= | ( | const Self & | matrix | ) |
Matrix subtraction in-place
Definition at line 171 of file itkVariableSizeMatrix.txx.
References itk::VariableSizeMatrix< T >::Cols(), itk::VariableSizeMatrix< T >::m_Matrix, and itk::VariableSizeMatrix< T >::Rows().
|
inline |
Matrix by scalar division.
Definition at line 104 of file itkVariableSizeMatrix.h.
|
inline |
Matrix by scalar division.
Definition at line 98 of file itkVariableSizeMatrix.h.
|
inline |
Assignment operator.
Definition at line 160 of file itkVariableSizeMatrix.h.
|
inline |
Assignment operator.
Definition at line 174 of file itkVariableSizeMatrix.h.
|
inline |
Comparison operators.
Comparison
Definition at line 233 of file itkVariableSizeMatrix.h.
References itk::VariableSizeMatrix< T >::Cols(), itk::VariableSizeMatrix< T >::m_Matrix, and itk::VariableSizeMatrix< T >::Rows().
Referenced by itk::VariableSizeMatrix< CoefficientType >::operator!=().
|
inline |
Return a row of the matrix.
Definition at line 124 of file itkVariableSizeMatrix.h.
|
inline |
Return a row of the matrix.
Definition at line 130 of file itkVariableSizeMatrix.h.
|
inline |
Return number of rows in the matrix
Definition at line 204 of file itkVariableSizeMatrix.h.
Referenced by otb::Functor::BayesianFunctor< TInputMultiSpectralImage::PixelType, TInputMultiSpectralInterpImage::PixelType, TInputPanchroImage::PixelType, TOutputImage::PixelType >::operator()(), itk::VariableSizeMatrix< T >::operator*(), itk::VariableSizeMatrix< T >::operator+(), itk::VariableSizeMatrix< T >::operator+=(), itk::VariableSizeMatrix< T >::operator-(), itk::VariableSizeMatrix< T >::operator-=(), itk::VariableSizeMatrix< T >::operator==(), otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::Synthetize(), and otb::PersistentStreamingStatisticsVectorImageFilter< TInputImage, TPrecision >::ThreadedGenerateData().
|
inline |
Set the matrix to identity.
Definition at line 148 of file itkVariableSizeMatrix.h.
|
inline |
Set the matrix size. Old data lost. Returns true if size changed.
Definition at line 210 of file itkVariableSizeMatrix.h.
Referenced by itk::BSplineScatteredDataPointSetToImageFilter< TInputPointSet, TOutputImage >::EvaluateGradient(), otb::Functor::BayesianFunctor< TInputMultiSpectralImage::PixelType, TInputMultiSpectralInterpImage::PixelType, TInputPanchroImage::PixelType, TOutputImage::PixelType >::operator()(), otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::Reset(), otb::PersistentStreamingStatisticsVectorImageFilter< TInputImage, TPrecision >::Reset(), and otb::PersistentMatrixTransposeMatrixImageFilter< TInputImage, TInputImage2 >::Synthetize().
|
private |
Definition at line 214 of file itkVariableSizeMatrix.h.
Referenced by itk::VariableSizeMatrix< CoefficientType >::Cols(), itk::VariableSizeMatrix< CoefficientType >::Fill(), itk::VariableSizeMatrix< CoefficientType >::GetInverse(), itk::VariableSizeMatrix< CoefficientType >::GetTranspose(), itk::VariableSizeMatrix< CoefficientType >::GetVnlMatrix(), itk::VariableSizeMatrix< CoefficientType >::operator()(), itk::VariableSizeMatrix< T >::operator*(), itk::VariableSizeMatrix< T >::operator*=(), itk::VariableSizeMatrix< CoefficientType >::operator*=(), itk::VariableSizeMatrix< T >::operator+(), itk::VariableSizeMatrix< T >::operator+=(), itk::VariableSizeMatrix< T >::operator-(), itk::VariableSizeMatrix< T >::operator-=(), itk::VariableSizeMatrix< CoefficientType >::operator/=(), itk::VariableSizeMatrix< CoefficientType >::operator=(), itk::VariableSizeMatrix< T >::operator==(), itk::VariableSizeMatrix< CoefficientType >::operator[](), itk::VariableSizeMatrix< CoefficientType >::Rows(), itk::VariableSizeMatrix< CoefficientType >::SetIdentity(), and itk::VariableSizeMatrix< CoefficientType >::SetSize().