digiKam
Digikam::MatrixOperations Namespace Reference

Functions

void cvmattostdmat (const cv::Mat &dst, std::vector< std::vector< float > > &src)
 
float determinant (const std::vector< std::vector< float > > &u)
 
std::vector< std::vector< float > > inv2 (const std::vector< std::vector< float > > &mat)
 
std::vector< std::vector< float > > pinv (const std::vector< std::vector< float > > &mat)
 
template<typename T >
T pythag (const T &a, const T &b)
 
template<typename T >
T signdlib (const T &a, const T &b)
 
void stdmattocvmat (const std::vector< std::vector< float > > &src, cv::Mat &dst)
 
void svd (const std::vector< std::vector< float > > &m, std::vector< std::vector< float > > &u, std::vector< std::vector< float > > &w, std::vector< std::vector< float > > &v)
 
bool svd3 (std::vector< std::vector< float > > &a, std::vector< float > &w, std::vector< std::vector< float > > &v, std::vector< float > &rv1)
 
float trace (const std::vector< std::vector< float > > &src)
 
void transpose (std::vector< std::vector< float > > &src, std::vector< std::vector< float > > &dst)
 

Function Documentation

◆ cvmattostdmat()

void Digikam::MatrixOperations::cvmattostdmat ( const cv::Mat &  dst,
std::vector< std::vector< float > > &  src 
)

◆ determinant()

float Digikam::MatrixOperations::determinant ( const std::vector< std::vector< float > > &  u)

◆ inv2()

std::vector< std::vector< float > > Digikam::MatrixOperations::inv2 ( const std::vector< std::vector< float > > &  mat)

Referenced by Digikam::inv().

◆ pinv()

std::vector< std::vector< float > > Digikam::MatrixOperations::pinv ( const std::vector< std::vector< float > > &  mat)

◆ pythag()

template<typename T >
T Digikam::MatrixOperations::pythag ( const T a,
const T b 
)
inline

References T.

Referenced by svd3().

◆ signdlib()

template<typename T >
T Digikam::MatrixOperations::signdlib ( const T a,
const T b 
)
inline

Referenced by svd3().

◆ stdmattocvmat()

void Digikam::MatrixOperations::stdmattocvmat ( const std::vector< std::vector< float > > &  src,
cv::Mat &  dst 
)

◆ svd()

void Digikam::MatrixOperations::svd ( const std::vector< std::vector< float > > &  m,
std::vector< std::vector< float > > &  u,
std::vector< std::vector< float > > &  w,
std::vector< std::vector< float > > &  v 
)

References svd3().

Referenced by Digikam::findSimilarityTransform().

◆ svd3()

bool Digikam::MatrixOperations::svd3 ( std::vector< std::vector< float > > &  a,
std::vector< float > &  w,
std::vector< std::vector< float > > &  v,
std::vector< float > &  rv1 
)

References pythag(), and signdlib().

Referenced by svd().

◆ trace()

float Digikam::MatrixOperations::trace ( const std::vector< std::vector< float > > &  src)

◆ transpose()

void Digikam::MatrixOperations::transpose ( std::vector< std::vector< float > > &  src,
std::vector< std::vector< float > > &  dst 
)