MATLAB Answers

Problem in rectifyStereoImages, the result looks weird.

1 view (last 30 days)
Junnan Chen
Junnan Chen on 21 Sep 2020
Answered: Aman Vyas on 19 Oct 2020
I have implemented rectifyStereoImages, but the result looks weird.
The bottom images are inputs(1080 * 1920), and the top images are outputs(1320 * 7065).

Answers (1)

Aman Vyas
Aman Vyas on 19 Oct 2020
Hi,
You can try one of the following possible workaround for above problem:
1) Get the calibration right by getting more calibration images, especially towards the edges of the Field of View of the cameras to capture the distortion and skew with more accuracy. Trying out different calibration settings should also help in this.
2) Getting more overlap between the cameras and reducing the baseline also helps reducing the disparity and results in more reliable results. The disparityBM and disparitySGM functions also provide some control over parameters to allow for more pixels to be used in the disparity map ('ContrastThreshold', 'UniquenessThreshold').
Hope it helps !

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!