Creating a depth map from the disparity map function
55 views (last 30 days)
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!