This PR add a new stereo matching validator to validate and visualize the result of multiple camera calibration. It uses the calibration result (the yaml file) from the last kalibr_calibrate_cameras step, undistorts and recitifies the images, and then run a stereo matcher to calculate the disparity map. No Calibration Target is Required in This Validator.
The stereo disparity map offers an intuitive, direct and comprehensive way to quickly visualize the calibration result. For example, a successful calibration may yield the following disparity results:
(with opencv sgbm stereo matcher)
(with opencv bm stereo matcher)
The depth of the ground plane and object surface is uniform and smooth.
While a bad calibration result leads to failed stereo matching (because of poor rectification) , resulting in a disparity map looks like this
Note there are lots of speckles and the ground plane is missing.
the --matcher option selects the stereo matching algorithm (bm or sgbm). The --scale option determines how many times we downsample the image to speed up stereo matching .
This PR add a new stereo matching validator to validate and visualize the result of multiple camera calibration. It uses the calibration result (the yaml file) from the last
kalibr_calibrate_cameras
step, undistorts and recitifies the images, and then run a stereo matcher to calculate the disparity map. No Calibration Target is Required in This Validator.The stereo disparity map offers an intuitive, direct and comprehensive way to quickly visualize the calibration result. For example, a successful calibration may yield the following disparity results:
(with opencv
sgbm
stereo matcher)(with opencv
bm
stereo matcher) The depth of the ground plane and object surface is uniform and smooth.While a bad calibration result leads to failed stereo matching (because of poor rectification) , resulting in a disparity map looks like this Note there are lots of speckles and the ground plane is missing.
Usage:
or
the
--matcher
option selects the stereo matching algorithm (bm
orsgbm
). The--scale
option determines how many times we downsample the image to speed up stereo matching .