OpenCV
Open Source Computer Vision
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
Singular value matrix decomposition

Detailed Description

Performs singular value decomposition of M×N( M>N) matrix A=UΣVT.

Parameters
srcpointer to input M×N matrix A stored in column major order. After finish of work src will be filled with rows of U or not modified (depends of flag CV_HAL_SVD_MODIFY_A).
src_stepnumber of bytes between two consequent columns of matrix A.
wpointer to array for singular values of matrix A (i. e. first N diagonal elements of matrix Σ).
upointer to output M×N or M×M matrix U (size depends of flags). Pointer must be valid if flag CV_HAL_SVD_MODIFY_A not used.
u_stepnumber of bytes between two consequent rows of matrix U.
vtpointer to array for N×N matrix VT.
vt_stepnumber of bytes between two consequent rows of matrix VT.
mnumber fo rows in matrix A.
nnumber of columns in matrix A.
flagsalgorithm options (combination of CV_HAL_SVD_FULL_UV, ...).

Functions

int hal_ni_SVD32f (float *src, size_t src_step, float *w, float *u, size_t u_step, float *vt, size_t vt_step, int m, int n, int flags)
 
int hal_ni_SVD64f (double *src, size_t src_step, double *w, double *u, size_t u_step, double *vt, size_t vt_step, int m, int n, int flags)
 

Function Documentation

◆ hal_ni_SVD32f()

int hal_ni_SVD32f ( float * src,
size_t src_step,
float * w,
float * u,
size_t u_step,
float * vt,
size_t vt_step,
int m,
int n,
int flags )
inline

◆ hal_ni_SVD64f()

int hal_ni_SVD64f ( double * src,
size_t src_step,
double * w,
double * u,
size_t u_step,
double * vt,
size_t vt_step,
int m,
int n,
int flags )
inline