Azzera filtri
Azzera filtri

Creating a depth map from the disparity map function

24 visualizzazioni (ultimi 30 giorni)
Hi everyone, I am having trouble with the following code:
I want to create a depth map from the disparityBM function, by applying the equation of , where z is the depth, f is the focal length, b is the baseline and d is the disparity.
However, the depth map I receive is not intuitive, as ideally the object in white should be in black and the background around it should be in white.
Please can I request guidance on how to fix my code? Thank you!

Risposte (1)

Qu Cao
Qu Cao il 17 Feb 2022
You can use reconstructScene for your workflow.
  3 Commenti
Qu Cao
Qu Cao il 17 Feb 2022
You need to call rectifyStereoImages before calling reconstructScene. See the following example:
https://www.mathworks.com/help/vision/ref/reconstructscene.html
Arijit Bhattacharyya
Arijit Bhattacharyya il 17 Feb 2022
@Qu Cao When we call rectifyStereoImages before calling reconstructScene we get the following error:

Accedi per commentare.

Categorie

Scopri di più su Computer Vision Toolbox in Help Center e File Exchange

Prodotti


Release

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by