OpenCV Q&A Forum - RSS feedhttp://answers.opencv.org/questions/OpenCV answersenCopyright <a href="http://www.opencv.org">OpenCV foundation</a>, 2012-2018.Tue, 25 Sep 2018 07:36:08 -0500Parameters of cv::SVDecomphttp://answers.opencv.org/question/200080/parameters-of-cvsvdecomp/Hi,
what are the parameters w, u, vt of `cv::SVDecomp(src, w, u, vt)` in comparison to Matlab's
[U,S,V] = svd(src);
I need the submatrices for further calculations that I already have given in Matlab.
Can I directly translate w to U, u to S and vt to V.
It seems like they are having varying Matrix sizes.
I did not find further explanations on the SVDecomp function (e.g. here: [documentation](https://docs.opencv.org/3.4.2/d2/de8/group__core__array.html#gab477b5b7b39b370bb03e75b19d2d5109))
Edit:
I tried more stuff. I have the src matrix of size 27x18 (edited):
In Matlab I get as result for the sizes U(27x27), S(27x18), V(18x18) which solves the SVD equation src=U*S*V'
In OpenCV I open the same matrix src(27x18) and I get as result with `cv::SVD::FULL_UV`:
w(1x18), u(18x18), vt(27x27) which does **not** solve the equation. I am quite confused right now, what is going on in openCV SVD.GrilltellerTue, 25 Sep 2018 07:36:08 -0500http://answers.opencv.org/question/200080/