Ask Your Question

Revision history [back]

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

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.

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

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.