From e930e460ee13513892d6aad1012c80ec18e35866 Mon Sep 17 00:00:00 2001 From: Stefan van der Walt Date: Thu, 2 Dec 2010 16:55:26 +0200 Subject: [PATCH] DOC: Better document test for cvFindFundamentalMat. --- scikits/image/opencv/tests/test_opencv_cv.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/scikits/image/opencv/tests/test_opencv_cv.py b/scikits/image/opencv/tests/test_opencv_cv.py index 452aacd0..31468d5d 100644 --- a/scikits/image/opencv/tests/test_opencv_cv.py +++ b/scikits/image/opencv/tests/test_opencv_cv.py @@ -323,13 +323,14 @@ class TestUndistort2(OpenCVTest): @opencv_skip def test_cvFindFundamentalMat(): # - # *<---c2 - # ^ - # | - # c1 + # c2--->* * = Data Cloud + # ^ + # | ^ z-direction + # c1 <--| + # x # # Experimental setup: camera 1 at the origin, random cube data set in front, - # camera two watching from the side + # camera two watching from the side (position [10, 0, 10]) # Set up projection matrices @@ -388,9 +389,6 @@ def test_cvFindFundamentalMat(): points1 = np.dot(data, P.T) points2 = np.dot(data, P_.T) - #points1 /= points1[:, 2][:, None] - #points2 /= points2[:, 2][:, None] - # See Hartley & Zisserman, Multiple View Geometry (2nd ed), p. 244 t = -np.dot(R_, C_) K_t = np.dot(K_, t)