60 template<
class T,
class Init>
329 int *minx=0,
int *miny=0,
330 int *maxx=0,
int *maxy=0);
478 U.setBounds(A.cols(), A.rows());
479 V.setBounds(A.cols(), A.cols());
480 s.setBounds(1,A.cols());
481 DynMatrix<icl64f> A64f(A.cols(),A.rows()),U64f(U.cols(),U.rows()),s64f(1,s.rows()),V64f(V.cols(),V.rows());
482 std::copy(A.begin(),A.end(),A64f.begin());
484 svd_cpp_64f(A64f,U64f,s64f,V64f);
486 std::copy(U64f.begin(),U64f.end(),U.begin());
487 std::copy(V64f.begin(),V64f.end(),V.begin());
488 std::copy(s64f.begin(),s64f.end(),s.begin());
493 template<>
inline void svd_dyn<icl64f>(
const DynMatrix<icl64f> &A, DynMatrix<icl64f> &U, DynMatrix<icl64f> &s, DynMatrix<icl64f> &V) {
494 U.setBounds(A.cols(), A.rows());
495 V.setBounds(A.cols(), A.cols());
496 s.setBounds(1,A.cols());
498 svd_cpp_64f(A,U,s,V);
ICLMath_IMP T matrix_mean(const DynMatrix< T > &m)
calculate matrix mean value [IPP-optimized]
Definition: DynMatrixUtils.h:417
undocument this line if you encounter any issues!
Definition: Any.h:37
DynMatrix< T > & matrix_init(DynMatrix< T > &m, Init init)
Matrix initialization template.
Definition: DynMatrixUtils.h:61
ICLQt_API core::Img< T > norm(const core::Img< T > &image)
normalize an images range to [0,255]
ICLMath_IMP DynMatrix< T > & matrix_arcsin(DynMatrix< T > &m)
element-wise arcus sinus-function (inplace)
ICLMath_IMP void matrix_minmax(const DynMatrix< T > &m, T dst[2], int *minx=0, int *miny=0, int *maxx=0, int *maxy=0)
find min- and maxinim element at once (optionally with locations) [IPP-optimized]
ICLMath_IMP DynMatrix< T > & matrix_pow(const DynMatrix< T > &m1, const DynMatrix< T > &m2, DynMatrix< T > &dst)
element-wise power
ICLMath_IMP DynMatrix< T > & matrix_sqrt(DynMatrix< T > &m)
element-wise square-root-function (inplace) [IPP-optimized]
ICLMath_IMP DynMatrix< T > & matrix_sqr(DynMatrix< T > &m)
element-wise square-function (x*x) (inplace) [IPP-optimized]
double mean(ForwardIterator begin, ForwardIterator end)
computes the mean value of a data range
Definition: MathFunctions.h:78
Highly flexible and optimized matrix class implementation.
Definition: DynMatrix.h:81
ICLMath_IMP DynMatrix< T > & matrix_mulc(DynMatrix< T > &m, T val)
element-wise multiplication with constant value (inplace) [IPP-optimized]
ICLMath_IMP DynMatrix< T > & matrix_arctan(DynMatrix< T > &m)
element-wise arcus tangent-function (inplace)
iterator begin()
returns an iterator to the begin of internal data array
Definition: DynMatrix.h:751
ICLMath_IMP DynMatrix< T > & matrix_arctan2(const DynMatrix< T > &my, const DynMatrix< T > &mx, DynMatrix< T > &dst)
element-wise atan2 function atan2(y,x)
ICLMath_IMP DynMatrix< T > & matrix_reciprocal(DynMatrix< T > &m)
element-wise reciprocal-function (1/x) (inplace)
ICLMath_IMP DynMatrix< T > & matrix_mask(const DynMatrix< unsigned char > &mask, DynMatrix< T > &m)
applies masking operation (m(i,j) is set to 0 if mask(i,j) is 0) (inplace)
ICLMath_IMP DynMatrix< T > & matrix_muladd(const DynMatrix< T > &a, T alpha, const DynMatrix< T > &b, T beta, T gamma, DynMatrix< T > &dst)
computes alpha*a + beta*b + gamma
ICLMath_IMP DynMatrix< T > & matrix_powc(DynMatrix< T > &m, T exponent)
element-wise power-function (x^exponent) (inplace)
ICLMath_IMP T matrix_var(const DynMatrix< T > &m)
calculate matrix variance [IPP-optimized]
transposedDef
special utility type for definition of transposed states for matrices
Definition: DynMatrixUtils.h:415
ICLMath_IMP DynMatrix< T > & matrix_tan(DynMatrix< T > &m)
element-wise tangent-function (inplace)
ICLMath_IMP DynMatrix< T > & matrix_divc(DynMatrix< T > &m, T val)
element-wise division by constant value (inplace) [IPP-optimized]
ICLMath_IMP DynMatrix< T > & matrix_div(const DynMatrix< T > &m1, const DynMatrix< T > &m2, DynMatrix< T > &dst)
element-wise division [IPP-optimized]
ICLMath_IMP DynMatrix< T > & matrix_sub(const DynMatrix< T > &m1, const DynMatrix< T > &m2, DynMatrix< T > &dst)
element-wise substraction [IPP-optimized]
ICLMath_IMP void matrix_meanvar(const DynMatrix< T > &m, T *mean, T *var)
computes matrix mean and variance at once [IPP-optimized]
ICLQt_API void fill(float r, float g=-1, float b=-1, float alpha=255)
sets the current fill color to given r,g,b,alpha value
ICLMath_IMP DynMatrix< T > & matrix_add(const DynMatrix< T > &m1, const DynMatrix< T > &m2, DynMatrix< T > &dst)
element-wise addition [IPP-optimized]
ICLMath_IMP DynMatrix< T > & matrix_sin(DynMatrix< T > &m)
element-wise sinus-function (x*x) (inplace)
Definition: DynMatrixUtils.h:416
ICLMath_IMP T matrix_divergence(const DynMatrix< T > &m1, const DynMatrix< T > &m2)
computes generalized Kullback-Leibler-divergence between matrix vectors
Definition: DynMatrixUtils.h:418
iterator end()
returns an iterator to the end of internal data array
Definition: DynMatrix.h:754
Definition: DynMatrixUtils.h:419
ICLMath_IMP DynMatrix< T > & matrix_arccos(DynMatrix< T > &m)
element-wise arcus cosinus-function (inplace)
ICLMath_IMP DynMatrix< T > & big_matrix_mult_t(const DynMatrix< T > &src1, const DynMatrix< T > &src2, DynMatrix< T > &dst, int transpDef)
applies matrix mutliplication on optionally transposed matrices (specialized for big matrices)
ICLMath_IMP void svd_dyn(const DynMatrix< T > &A, DynMatrix< T > &U, DynMatrix< T > &S, DynMatrix< T > &V)
SVD function - decomposes A into USV' (only icl32f and icl64f)
ICLMath_IMP T matrix_min(const DynMatrix< T > &m, int *x=0, int *y=0)
find minimum element of matrix (optionally find location too) [IPP-optimized]
ICLMath_IMP T matrix_distance(const DynMatrix< T > &m1, const DynMatrix< T > &m2, T norm=2)
computes norm between matrix vectors
ICLMath_IMP DynMatrix< T > & matrix_abs(DynMatrix< T > &m)
element-wise absolute value (inplace) [IPP-optimized]
#define ICLMath_IMP
Definition: CompatMacros.h:172
ICLMath_IMP DynMatrix< T > & matrix_mul(const DynMatrix< T > &m1, const DynMatrix< T > &m2, DynMatrix< T > &dst)
element-wise multiplication [IPP-optimized]
ICLMath_IMP DynMatrix< T > & matrix_exp(DynMatrix< T > &m)
element-wise exp-function (inplace) [IPP-optimized]
ICLMath_IMP DynMatrix< T > & matrix_sub_t(const DynMatrix< T > &src1, const DynMatrix< T > &src2, DynMatrix< T > &dst, int transpDef)
applies matrix substraction on optionally transposed matrices
ICLMath_IMP T matrix_stddev(const DynMatrix< T > &m)
computes matrix standard deviation (sqrt(var)) [IPP-optimized]
void copy(const T *src, const T *srcEnd, T *dst)
moves data from source to destination array (no casting possible)
Definition: CoreFunctions.h:216
ICLMath_IMP DynMatrix< T > & matrix_addc(DynMatrix< T > &m, T val)
element-wise addition of constant value (inplace) [IPP-optimized]
ICLMath_IMP DynMatrix< T > & matrix_log(DynMatrix< T > &m)
element-wise logarith (basis E) (inplace) [IPP-optimized]
ICLMath_IMP DynMatrix< T > & matrix_cos(DynMatrix< T > &m)
element-wise cosinus-function (inplace)
ICLMath_IMP T matrix_max(const DynMatrix< T > &m, int *x=0, int *y=0)
find maximum element of matrix (optionally find location too) [IPP-optimized]
ICLMath_IMP DynMatrix< T > & matrix_subc(DynMatrix< T > &m, T val)
element-wise substraction of constant value (inplace) [IPP-optimized]
ICLMath_IMP DynMatrix< T > & matrix_add_t(const DynMatrix< T > &src1, const DynMatrix< T > &src2, DynMatrix< T > &dst, int transpDef)
applies matrix addition on optionally transposed matrices
ICLMath_IMP DynMatrix< T > & matrix_mult_t(const DynMatrix< T > &src1, const DynMatrix< T > &src2, DynMatrix< T > &dst, int transpDef)
applies matrix mutliplication on optionally transposed matrices