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?

Another image:

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?

Another image:

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.
See this code from matlab website: "Depth from gradient":
http://www.mathworks.com/matlabcentral/fileexchange/45269-dfgbox