livox_camera_calib icon indicating copy to clipboard operation
livox_camera_calib copied to clipboard

Issue with rectified image input

Open aditdoshi333 opened this issue 3 years ago • 5 comments

Hello,

I tried with non rectified images and rectified images. Calibration output is much better with non rectified images. Is the code is expecting distorted images? Are you running rectification in the pipeline anywhere?

Regards

aditdoshi333 avatar Mar 08 '22 08:03 aditdoshi333

Hello,

I tried with non rectified images and rectified images. Calibration output is much better with non rectified images. Is the code is expecting distorted images? Are you running rectification in the pipeline anywhere?

Regards

Yes, the input image should be distorted, and the point cloud projection needs to be provided with the same distortion model

ChongjianYUAN avatar Mar 08 '22 12:03 ChongjianYUAN

Okay!

But does the final calibration matrix need to use with the rectified image or non rectified image?

aditdoshi333 avatar Mar 08 '22 12:03 aditdoshi333

Okay!

But does the final calibration matrix need to use with the rectified image or non rectified image?

It depends on whether you correlate the LiDAR and camera data through projection, and if so, you need to use the rectified image.

ChongjianYUAN avatar Mar 08 '22 12:03 ChongjianYUAN

I have one more doubt. I am able to calibrate pretty well with your code but not able to use the same matrix in r3live. From the following can you say how is calibration? 157250097-ab28a675-03d6-43bf-813c-7cb31d21d598

aditdoshi333 avatar Mar 08 '22 17:03 aditdoshi333

I have one more doubt. I am able to calibrate pretty well with your code but not able to use the same matrix in r3live. From the following can you say how is calibration? 157250097-ab28a675-03d6-43bf-813c-7cb31d21d598

Sorry for the late reply. The extrinsic matrix in livox_camera_calib is from LiDAR coordinate to Camera coordinate and in R3LIVE is from Camera coordinate to LiDAR coordinate. Therefore, you should use the inverse of the output result of livox_camera_calib.

ChongjianYUAN avatar Mar 15 '22 05:03 ChongjianYUAN