How to create a depth map of a given image?

Hey all! I am not sure as to what Matlab function to use to create depth map of a given image. Hope you know the answer to this!

回答 (2 件)

Dima Lisin
Dima Lisin 2014 年 7 月 18 日
編集済み: John Kelly 2015 年 2 月 27 日

1 投票

You can do this using the Computer Vision System Toolbox.
If your cameras are not calibrated, then you can do uncalibrated stereo image rectification, and then use the disparity() function to compute stereo dispartiy, which is proportional to depth. Unfortunately, you cannot easily get depth in world units with an uncalibrated stereo pair, unless you know distances between some points in the world, and you can locate these points in the image.
A better approach is to use calibrated cameras. Please see this http://www.mathworks.com/help/vision/examples/stereo-calibration-and-scene-reconstruction.html of how to calibrate a stereo pair of cameras and reconstruct the scene using the Computer Vision System Toolbox.
Image Analyst
Image Analyst 2014 年 7 月 17 日

0 投票

You need more information than just a grayscale optical image. You need special sensors (e.g. profilometer, Microsoft Kinect, or stereo cameras).

3 件のコメント

Supritha  Injeti
Supritha Injeti 2014 年 7 月 17 日
Thank you so much! Now, given that I have a picture captured by stereo cameras. What do I do next to get it's depth map?
Image Analyst
Image Analyst 2014 年 7 月 17 日
I don't know - I haven't done that since I don't work in that field. I suggest you do a search, for example starting at VisionBib: http://www.visionbib.com/bibliography/contents.html, or search the Answers forum for stereo or stereoscopy.
Supritha  Injeti
Supritha Injeti 2014 年 7 月 17 日
Thank you!

サインインしてコメントする。

カテゴリ

質問済み:

2014 年 7 月 17 日

編集済み:

2015 年 2 月 27 日

Community Treasure Hunt

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

Start Hunting!

Translated by