how to extract depth from a single image and give me matlab code
8 views (last 30 days)
Show older comments
extract depth from monocular image.
1 Comment
hidangmayum saxena
on 6 Apr 2015
I want somebody to explain me the steps to extract gray level depth map from a single 3D anaglyph image
Answers (2)
Image Analyst
on 14 Apr 2014
What's your input? For example profilometers use projected stripes and look at the amount the stripes wiggle to convert that into a height. But even profilometers rely on multiple images. An image from Kinect (which I haven't played around with) is already a depth map based on time of flight. There are some other methods that estimate whether an object in the image is close (foreground) or distant (background) but they're based on multiple frames. And you can also get depth if you have a lightfield (Lytro) camera. So, despite the enormous wealth of information you provided in your question, there is still not enough to answer you.
11 Comments
Image Analyst
on 6 Jun 2021
@Ayush singhal, sorry I don't have any code to construct a topographic image from a series of striped structured light photos. All I can do is to point you to the Image Processing Literature:
Ayush singhal
on 6 Jun 2021
in this link, when we scroll down some picture like hammer and so on. where hammer is extracted and shown in 3D graph.
Is it possible to do with my images. Is there any code by whihc the object can be extarcted and shown in this way?
Walter Roberson
on 14 Apr 2014
4 Comments
Image Analyst
on 8 Jun 2021
This is more of an algorithm question more than a MATLAB programming question. None of us here can write you a turnkey, robust, structured light analysis program. It would simply take way too much of our time. Like months instead of minutes. You also need to know a lot obout the optics and geometry of the situation. I suggest you just buy or rent a commercial profilometer -- they have it all worked out already and will even train you. It's the fastest way to get on with your task. If you still want your own MATLAB code to do it, there is someone who would happily do it for you. Click this link.
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!