Structural deformable models
|
#include <DMatrix.h>
Public Types | |
typedef std::vector< T >::const_iterator | const_iterator |
typedef std::vector< T >::iterator | iterator |
typedef T * | TPtr |
typedef const T * | CTPtr |
typedef DMatrix< T > | MT |
typedef Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > | EMT |
Public Member Functions | |
DMatrix (dword _sx=0, dword _sy=0, const T &inival=T()) | |
DMatrix (dword _sx, dword _sy, const T *data) | |
~DMatrix () | |
MT & | resize (dword _sx, dword _sy, const T &inival=T()) |
MT & | reshape (dword _sx, dword _sy) |
void | clear () |
dword | sizeX () const |
dword | sizeY () const |
dword | size () const |
dword | index (dword x, dword y) const |
T & | at (dword x, dword y) |
const T & | at (dword x, dword y) const |
std::vector< T > & | getData () |
const std::vector< T > & | getData () const |
bool | empty () const |
MT & | operator= (const T &rhs) |
MT & | operator= (const T *rhs) |
MT & | operator+= (const MT &rhs) |
MT & | operator-= (const MT &rhs) |
MT & | operator*= (const MT &rhs) |
MT & | operator/= (const MT &rhs) |
MT & | operator+= (const T &rhs) |
MT & | operator-= (const T &rhs) |
MT & | operator*= (const T &rhs) |
MT & | operator/= (const T &rhs) |
MT & | max (const MT &rhs) |
MT & | max (const T &rhs) |
T | max () const |
MT & | min (const MT &rhs) |
MT & | min (const T &rhs) |
T | min () const |
MT | mulRight (const MT &rhs) const |
MT | mulLeft (const MT &rhs) const |
MT & | setCol (dword col, MT &vec) |
MT & | setCol (dword col, const T &val=1) |
MT & | setRow (dword row, MT &vec) |
MT & | setRange (dword ox, dword oy, const MT &mat) |
MT & | getRange (dword ox, dword oy, MT &mat) const |
MT & | setRow (dword row, const T &val=1) |
MT & | setDiag (MT &vec, int offset=0) |
MT & | setDiag (const T &val=1, int offset=0) |
MT | getDiag (int offset=0) |
MT & | setUpper (const T &val=1, int offset=0) |
MT & | setLower (const T &val=1, int offset=0) |
MT & | transpose () |
Protected Attributes | |
dword | sx |
dword | sy |
std::vector< T > | values |
Friends | |
std::ostream & | operator<< (std::ostream &os, const DMatrix< T > &rhs) |
std::istream & | operator>> (std::istream &is, DMatrix< T > &rhs) |
Small matrix class. First index is colum number. Memory arrangement is row-wise.
typedef std::vector<T>::const_iterator DMatrix< T >::const_iterator |
|
inline |
Definition at line 46 of file DMatrix.h.
Referenced by MStructure::addExpectation(), Model::adjMat(), SubStructure::analyseTF(), MahalSensor::calcValue(), Model::createByAdjMat(), SubStructure::generateEMDist(), dmutil::makeDiag(), dmutil::makeRotMat2D(), DMatrix< float >::mulRight(), dmutil::pseudoInv(), Model::removeByAdjMat(), Model::scaleSel(), MStructure::showStats(), dmutil::SVD(), and DMatrix< float >::transpose().
|
inline |
Definition at line 50 of file DMatrix.h.
Referenced by SubStructure::analyseTF(), SubStructure::generateEMDist(), hgPropTF(), and dmutil::invert().
|
inline |
Definition at line 48 of file DMatrix.h.
Referenced by dmutil::abs(), StructTable::adjustByAvgDir(), dmutil::convert(), DMatrix< float >::getDiag(), dmutil::makeDiag(), DMatrix< float >::setCol(), DMatrix< float >::setDiag(), DMatrix< float >::setRow(), dmutil::sqr(), dmutil::sqrt(), dmutil::sum(), and dmutil::threshold().
|
inline |
Definition at line 197 of file DMatrix.h.
Referenced by SubStructure::analyseTF(), and dmutil::SVD().
Definition at line 45 of file DMatrix.h.
Referenced by DMatrix< float >::at(), DMatrix< float >::getRange(), and DMatrix< float >::setRange().
Definition at line 110 of file DMatrix.h.
Referenced by MStructure::addExpectation(), and MStructure::showStats().
Definition at line 129 of file DMatrix.h.
Referenced by MStructure::addExpectation(), Model::connectNodes(), Model::selMaskMat(), and MStructure::showStats().
Definition at line 159 of file DMatrix.h.
Referenced by SubStructure::generateEMDist(), and hgPropTF().
Definition at line 149 of file DMatrix.h.
Referenced by SubStructure::analyseTF(), MahalSensor::calcValue(), DMatrix< float >::mulLeft(), and dmutil::pseudoInv().
Definition at line 30 of file DMatrix.h.
Referenced by SubStructure::analyseTF(), and dmutil::SVD().
Definition at line 185 of file DMatrix.h.
Referenced by SubStructure::analyseTF(), MStructure::buildAllStats(), dmutil::expand(), hgPropTF(), dmutil::horizCat(), MStructure::showStats(), and dmutil::vertCat().
Definition at line 44 of file DMatrix.h.
Referenced by StructTable::adjustByAvgDir(), and dmutil::makeDiag().
Definition at line 42 of file DMatrix.h.
Referenced by SubStructure::analyseTF(), dmutil::convert(), Model::createByAdjMat(), dmutil::expand(), SubStructure::generateEMDist(), hgPropTF(), dmutil::horizCat(), dmutil::pseudoInv(), Model::removeByAdjMat(), EMDXformer::setTFMat(), dmutil::sum(), dmutil::SVD(), and dmutil::vertCat().
Definition at line 43 of file DMatrix.h.
Referenced by SubStructure::analyseTF(), dmutil::avg(), dmutil::convert(), Model::createByAdjMat(), dmutil::expand(), hgPropTF(), dmutil::horizCat(), dmutil::pseudoInv(), Model::removeByAdjMat(), EMDXformer::setTFMat(), dmutil::sum(), dmutil::SVD(), and dmutil::vertCat().
Definition at line 260 of file DMatrix.h.
Referenced by Model::adjMat(), SubStructure::analyseTF(), MahalSensor::calcValue(), and dmutil::pseudoInv().
|
friend |
|
friend |
Definition at line 306 of file DMatrix.h.
Referenced by DMatrix< float >::clear(), DMatrix< float >::getDiag(), DMatrix< float >::getRange(), DMatrix< float >::index(), DMatrix< float >::max(), DMatrix< float >::min(), DMatrix< float >::mulRight(), DMatrix< float >::reshape(), DMatrix< float >::resize(), DMatrix< float >::setCol(), DMatrix< float >::setDiag(), DMatrix< float >::setLower(), DMatrix< float >::setRange(), DMatrix< float >::setRow(), DMatrix< float >::setUpper(), DMatrix< float >::sizeX(), and DMatrix< float >::transpose().
Definition at line 306 of file DMatrix.h.
Referenced by DMatrix< float >::clear(), DMatrix< float >::getDiag(), DMatrix< float >::getRange(), DMatrix< float >::max(), DMatrix< float >::min(), DMatrix< float >::mulRight(), DMatrix< float >::reshape(), DMatrix< float >::resize(), DMatrix< float >::setCol(), DMatrix< float >::setDiag(), DMatrix< float >::setRange(), DMatrix< float >::sizeY(), and DMatrix< float >::transpose().
|
protected |
Definition at line 307 of file DMatrix.h.
Referenced by DMatrix< float >::at(), DMatrix< float >::clear(), DMatrix< float >::empty(), DMatrix< float >::getData(), DMatrix< float >::getDiag(), DMatrix< float >::getRange(), DMatrix< float >::max(), DMatrix< float >::min(), DMatrix< float >::operator*=(), DMatrix< float >::operator+=(), DMatrix< float >::operator-=(), DMatrix< float >::operator/=(), DMatrix< float >::operator=(), DMatrix< float >::resize(), DMatrix< float >::setCol(), DMatrix< float >::setDiag(), DMatrix< float >::setLower(), DMatrix< float >::setRange(), DMatrix< float >::setRow(), DMatrix< float >::setUpper(), and DMatrix< float >::size().