calibration data to orb salm 2
I'v just calibrated my logetechC270 camera with camera calibration package. And generated a yaml file as below: camera.yaml
image_width: 1280
image_height: 960
camera_name: camera
camera_matrix:
rows: 3
cols: 3
data: [2070.952323240658, 0, 615.4211500075771, 0, 2296.141297958174, 348.9518547206778, 0, 0, 1]
distortion_model: plumb_bob
distortion_coefficients:
rows: 1
cols: 5
data: [3.061750588587568, -23.95749705432321, 0.03743614604700891, 0.08119813176043622, 0]
rectification_matrix:
rows: 3
cols: 3
data: [1, 0, 0, 0, 1, 0, 0, 0, 1]
projection_matrix:
rows: 3
cols: 4
data: [2250.499267578125, 0, 658.697510417187, 0, 0, 2595.73291015625, 357.1287660120288, 0, 0, 0, 1, 0]
Now how do i add this data into orb slam 2 camera parameters? As i saw the orb slam configuration needs fx, fy, cx, cz data. So how do i fill them? Is it possible to load the camera.yaml file directly in orb slam 2?