27 #ifndef DIGIKAM_MATRIX_OPERATIONS_H
28 #define DIGIKAM_MATRIX_OPERATIONS_H
37 #include "digikam_opencv.h"
42 namespace MatrixOperations
45 std::vector<std::vector<float> >
inv2(
const std::vector<std::vector<float> >& mat);
47 std::vector<std::vector<float> >
pinv(
const std::vector<std::vector<float> >& mat);
49 void stdmattocvmat(
const std::vector<std::vector<float> >& src, cv::Mat& dst);
51 void cvmattostdmat(
const cv::Mat& dst, std::vector<std::vector<float> >& src);
77 return (absa * std::sqrt(1.0F + val));
90 return (absb * std::sqrt(1.0F + val));
95 void transpose(std::vector<std::vector<float> >& src,
96 std::vector<std::vector<float> >& dst);
98 float trace(
const std::vector<std::vector<float> >& src);
100 bool svd3(std::vector<std::vector<float> >& a,
101 std::vector<float >& w,
102 std::vector<std::vector<float> >& v,
103 std::vector<float >& rv1);
105 void svd(
const std::vector<std::vector<float> >& m,
106 std::vector<std::vector<float> >& u,
107 std::vector<std::vector<float> >& w,
108 std::vector<std::vector<float> >& v);
110 float determinant(
const std::vector<std::vector<float> >& u);
std::vector< std::vector< float > > pinv(const std::vector< std::vector< float > > &mat)
Definition: matrixoperations.cpp:58
std::vector< std::vector< float > > inv2(const std::vector< std::vector< float > > &mat)
Definition: matrixoperations.cpp:39
void cvmattostdmat(const cv::Mat &dst, std::vector< std::vector< float > > &src)
Definition: matrixoperations.cpp:96
void transpose(std::vector< std::vector< float > > &src, std::vector< std::vector< float > > &dst)
Definition: matrixoperations.cpp:107
T pythag(const T &a, const T &b)
Definition: matrixoperations.h:67
float trace(const std::vector< std::vector< float > > &src)
Definition: matrixoperations.cpp:120
T signdlib(const T &a, const T &b)
Definition: matrixoperations.h:54
float determinant(const std::vector< std::vector< float > > &u)
Definition: matrixoperations.cpp:551
void stdmattocvmat(const std::vector< std::vector< float > > &src, cv::Mat &dst)
Definition: matrixoperations.cpp:85
bool svd3(std::vector< std::vector< float > > &a, std::vector< float > &w, std::vector< std::vector< float > > &v, std::vector< float > &rv1)
Definition: matrixoperations.cpp:138
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)
Definition: matrixoperations.cpp:504
Definition: datefolderview.cpp:43