16
$\begingroup$

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

$\endgroup$

migrated from stackoverflow.com Apr 14 '12 at 20:13

This question came from our site for professional and enthusiast programmers.

  • 3
    $\begingroup$ This is not segmentation, it's 3D reconstruction. Do you have other images that capture the scene from a different view or under different lighting conditions? $\endgroup$ – Emre Apr 14 '12 at 23:08
  • $\begingroup$ i have provided another image with a different angle $\endgroup$ – vini Apr 16 '12 at 11:10
  • $\begingroup$ Now you can follow en.wikipedia.org/wiki/3D_reconstruction_from_multiple_images $\endgroup$ – Emre Apr 16 '12 at 18:05
11
$\begingroup$

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. 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.
$\endgroup$
  • $\begingroup$ Thanks for that reference yup will look into that however what more methods could be considered while approaching this problem $\endgroup$ – vini Apr 11 '12 at 14:04
  • $\begingroup$ Most 3D techniques are found in research papers could i found codes related to these topics? $\endgroup$ – vini Apr 13 '12 at 8:09
  • 3
    $\begingroup$ @vini Cornell has a research page with depth estimation from a single image and shares code. $\endgroup$ – Maurits Apr 14 '12 at 20:53
  • $\begingroup$ Yes i do have that code however which file to run is a problem in it $\endgroup$ – vini Apr 15 '12 at 12:22
-1
$\begingroup$

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

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

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.