Skip to content

Commit

Permalink
correction for initUndistortRectifyMap
Browse files Browse the repository at this point in the history
  • Loading branch information
Alireza Khodamoradi committed Sep 12, 2019
1 parent d37d65c commit fd75a0b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,16 +60,16 @@
numberOfIterations=1
print("Number of loop iterations: "+str(numberOfIterations))

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

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

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

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

newCameraMatrixLeft = iRLeft*R
newCameraMatrixRight = iRRight*R
Expand Down

0 comments on commit fd75a0b

Please sign in to comment.