Stereo vision: Distance between cameras and object

1 view (last 30 days)
Example in documentation about stereo vision contains 7th step - Backprojection. Here is calculated distance between cameras and the object but I still don't get it. If I have the camera matrix K (same for both cameras exported from Camera Calibrator), the baseline in millimeters (distance between cameras) and the disparity map (I used function disparity()). How can I calculate distance for each pixel? My results are still wrong.

Answers (1)

Dima Lisin
Dima Lisin on 1 May 2014
If you have the 2014a release, then please take a look at this example .

Community Treasure Hunt

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

Start Hunting!