Ask Your Question
0

stereoRectify doubt

asked 2015-01-19 05:31:21 -0600

rcarrasco gravatar image

updated 2015-01-19 05:31:56 -0600

Hi, I want to use the function stereoRectify to get the Q matrix, but I don't know all the input parameters. How can I calculate the R and T parameters?

This is my calibration data:

Right camera:
camera_matrix: [634.909677387927, 0, 297.560249240374, 0, 634.865463121865, 158.8371760664, 0, 0, 1]

distortion_coefficients: [-0.504454260664395, 0.138609530989189, 0.0203198092295076, 0.00967761579645135, 0]

rectification_matrix: [0.966163280084709, -0.0083550378707894, -0.257795868000506, 0.00163860823321609, 0.999653878808556, -0.0262571427627996, 0.257926018809686, 0.0249462607455643, 0.965842561132921]

projection_matrix:
data: [6304.94671586074, 0, 473.495297431946, 280.518391789843, 0, 6304.94671586074, 167.603784561157, 0, 0, 0, 1, 0]

Left camera:   
camera_matrix: [1356.35752938346, 0, 261.669289951563, 0, 1361.87246183291, 152.711809345378, 0, 0, 1]

distortion_coefficients: [-0.288103120402993, 0.398595604261962, -0.00473618587860346, -0.0097855325627947, 0]

rectification_matrix: [0.968033107464518, -0.00309525870864915, -0.250803353697904, 0.00962260176867882, 0.999646030047709, 0.0248036316908628, 0.250637803189764, -0.0264241174569953, 0.967720237273577]

projection_matrix:[6304.94671586074, 0, 473.495297431946, 0, 0, 6304.94671586074, 167.603784561157, 0, 0, 0, 1, 0]

Thanks.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2015-08-21 17:06:45 -0600

benbloom gravatar image

The R & T matrices are the rotation and translation between the two cameras. You can obtain them using StereoCalibrate. It's a similar procedure to the chessboard calibration used for a single camera, except you need to pass it images of the same scene taken by different cameras.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-01-19 05:31:21 -0600

Seen: 408 times

Last updated: Aug 21 '15