Is it the triangulation routine is correct? (OpenCV 3.0.0)

asked 2015-08-12 18:36:49 -0600

AGPX gravatar image

updated 2017-08-22 08:49:51 -0600

Hi,

In the "triangulate.cpp" at line 84 we have:

// preallocate SVD matrices on stack
cv::Matx<double, 4, 4> matrA;
cv::Matx<double, 4, 4> matrU;
cv::Matx<double, 4, 1> matrW;
cv::Matx<double, 4, 4> matrV;

and A should be equals to UWV. So, isn't the dimensionality of W wrong? (4 x 4) = (4 x 4) * (4 x 1) * (4 x 4) = (4 x 1) * (4 x 4) (<--- this cannot be computed).

matrW should be:

cv::Matx<double, 4, 4> matrW;

Am I right?

Thanks.

edit retag flag offensive close merge delete

Comments

For

cv::Matx<double, 4, 1> matrW;

means 4 rows and 1 column so (4 x 1) * (4 x 4) it's impossible but of course (1x4) * (4 x 4) is allowed

LBerger gravatar imageLBerger ( 2015-08-13 02:48:09 -0600 )edit