Creating a depth map from the disparity map function
조회 수: 24 (최근 30일)
이전 댓글 표시
Hi everyone, I am having trouble with the following code:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/897850/image.png)
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.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/897855/image.png)
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!
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Computer Vision Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!