필터 지우기
필터 지우기

Creating a depth map from the disparity map function

조회 수: 24 (최근 30일)
Arijit Bhattacharyya
Arijit Bhattacharyya 2022년 2월 17일
댓글: Arijit Bhattacharyya 2022년 2월 17일
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!

답변 (1개)

Qu Cao
Qu Cao 2022년 2월 17일
You can use reconstructScene for your workflow.
  댓글 수: 3
Qu Cao
Qu Cao 2022년 2월 17일
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 2022년 2월 17일
@Qu Cao When we call rectifyStereoImages before calling reconstructScene we get the following error:

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 MATLAB Support Package for USB Webcams에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by