16

Is there anyway of segmenting objects based on how far they are from the viewer?

Can color values assess this sort of a thing for us? How will intensity levels help in determining how far the object is from the viewer?

enter image description here

Another image:

enter image description here

vini
  • 2,182
  • 4
  • 21
  • 37

2 Answers2

11

This is an extremely difficult task, one which is a very active line of research. I've managed to find a semi-recent paper on the subject entitled " 3-D Depth Reconstruction from a Single Still Image". I won't go into the details, but here's a few things that this paper found that can be used.

  1. Textures: If you see a given texture, they can help you figure out how far something is away. The wood texture here would be quite ideal for this.
  2. Fixed object sizes: Identify common objects, see how large they are, and use them to help with depth analysis. The phone book, soda bottle, etc should work well with this.
  3. Focus: If you know how the picture was take, focus can help you identify ranges.
  4. Shadows- If you know where the light was coming from, shadows can help you identify how tall objects are, and thus how far they are away.
PearsonArtPhoto
  • 1,610
  • 1
  • 16
  • 20
-1

See this code from matlab website: "Depth from gradient":

http://www.mathworks.com/matlabcentral/fileexchange/45269-dfgbox

Osman
  • 1