How to improve Depth map Accuracy generated from Stereo Images?
2 次查看(过去 30 天)
显示 更早的评论
Hey
How can I improve the Depth Map Quality??
Below is my two L&R images.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/191727/image.png)
And, Below is what I achieved from
points3D(:, :, 3)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/191728/image.png)
Below, is Ideal Depth Map
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/191729/image.png)
%%This is my entire code :)
clc
clear all
close all
load('stereoParams.mat')
frameLeft = imread('Left.png');
frameRight = imread('Right.png');
[frameLeftRect, frameRightRect] = rectifyStereoImages(frameLeft, frameRight, stereoParams);
frameLeftGray = rgb2gray(frameLeftRect);
frameRightGray = rgb2gray(frameRightRect);
disparityMap = disparity(frameLeftGray, frameRightGray, 'BlockSize', 15,'DisparityRange', [0 64]);
disparityMap = medfilt2(disparityMap);
points3D = reconstructScene(disparityMap, stereoParams);
Z = points3D(:, :, 3)./ 1000;
imtool(Z, [0, 100]);
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Processing and Computer Vision 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!