12/16/2016

SVD (singular value decomposition) example in opencv


//Singular value decomposition :
 Mat w, u, v;
 SVDecomp(data, w, u, v); // A = U W V^T
 //The flags cause U and V to be returned transposed(does not work well without the transpose flags).
 cout << u << endl;
 cout << w << endl;
 cout << v << endl;


No comments:

Post a Comment