Skip to content

Commit fd75a0b

Browse files
author
Alireza Khodamoradi
committed
correction for initUndistortRectifyMap
1 parent d37d65c commit fd75a0b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

applicationCode/unitTests/testPython/testXfInitUndistortRectifyMap.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,16 @@
6060
numberOfIterations=1
6161
print("Number of loop iterations: "+str(numberOfIterations))
6262

63-
cameraMatrixLeft = np.array([[1000.0, 0.0, 950.0], [0.0, 1000.0, 950.0], [0.0, 0.0, 1.0]], np.float64)
64-
cameraMatrixRight = np.array([[0.001, 0.0, -0.95], [0.0, 0.001, -0.95], [0.0, 0.0, 1.0]], np.float64)
63+
cameraMatrixLeft = np.array([[1000.0, 0.0, 0.0], [0.0, 1000.0, 0.0], [950.0, 950.0, 1.0]], np.float64)
64+
cameraMatrixRight = np.array([[1000.0, 0.0, 0.0], [0.0, 1000.0, 0.0], [950.0, 950.0, 1.0]], np.float64)
6565

6666
distCoeffsLeft = np.zeros([1,5], np.float64)
6767
distCoeffsRight = np.zeros([1,5], np.float64)
6868

6969
R = np.eye(3, dtype=np.float64)
7070

71-
iRLeft = np.array([[0.001, 0, -0.95], [0.0, 0.001, -0.95], [0.0, 0.0, 1.0]], np.float64)
72-
iRRight = np.array([[0.001, 0, -0.95], [0.0, 0.001, -0.95], [0.0, 0.0, 1.0]], np.float64)
71+
iRLeft = np.array([[0.001, 0.0, 0.0], [0.0, 0.001, 0.0], [-0.95, -0.95, 1.0]], np.float64)
72+
iRRight = np.array([[0.001, 0.0, 0.0], [0.0, 0.001, 0.0], [-0.95, -0.95, 1.0]], np.float64)
7373

7474
newCameraMatrixLeft = iRLeft*R
7575
newCameraMatrixRight = iRRight*R

0 commit comments

Comments
 (0)