Author Topic: stereo vision questions  (Read 1080 times)

0 Members and 1 Guest are viewing this topic.

Offline sinistaTopic starter

  • Jr. Member
  • **
  • Posts: 14
  • Helpful? 0
stereo vision questions
« on: November 22, 2010, 07:34:59 PM »
hey,
Im setting up something like the stereo vision tutorial (http://www.societyofrobots.com/programming_computer_vision_tutorial_pt3.shtml bottom of the page) and have a few questions

1. I know the focal length of the cams, but the image on the image plane, how does this relate to the web cams, its not like I can touch or see it so how do I know where it is?

2. also is there some conversion from he distance that I will receive? I'm expecting a the distance to be in pixels, and if so do I do a DPI conversion to get the distance, if this is the case all i need to do is measure the position of the abject on the screen, but i doubt that this will give a true representation of the distance between the object and the cameras?

thanks in advance :)

Offline dunk

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 1,086
  • Helpful? 21
Re: stereo vision questions
« Reply #1 on: November 23, 2010, 06:58:53 AM »
hi Sinista,
you are on the right track assuming the distance will be in pixels early in your calculations.

you don't ever really need to know the exact size of the image plane providing you can calculate the correct multiplier to convert pixels to distance. (inches, mm, meters, whatever you use...)

you are going to have to work this multiplier out experimentally.
just compare the output from your program to the actual distance to work out the multiplier.


dunk.

Offline waltr

  • Supreme Robot
  • *****
  • Posts: 1,936
  • Helpful? 98
Re: stereo vision questions
« Reply #2 on: November 23, 2010, 08:06:36 AM »
The angular distance between pixels is easily calculated. This is used is astro-imaging:

angular distance (arc-sec) = 206.265 * pixel pitch (um)/lens focal length (mm)

The pixel pitch comes from the data sheet of the imaging sensor.

Offline sinistaTopic starter

  • Jr. Member
  • **
  • Posts: 14
  • Helpful? 0
Re: stereo vision questions
« Reply #3 on: November 23, 2010, 03:14:51 PM »
cheers for the replys,

that what i was thinking dunk, get the figures and convert them according to the actual dist i.e if i get 5 pixels and the dist is 20 cm than i have a scale of 5/20 ( of what ever ) found a few similar posts to this and they all pretty much say the same thing,

waltr, im sorry i dont even get what your saying im not so hot when it comes to maths, can you explain a little further


cheers guys.

Offline azy

  • Full Member
  • ***
  • Posts: 107
  • Helpful? 0
Re: stereo vision questions
« Reply #4 on: November 23, 2010, 06:27:00 PM »
cut out a bunch of large square targets with gridlines,place at different distances, find a ruler and hold it up to your screen

the maths may be hard with this kind of thing, but u can beat using stoneage approach when things get brain heavy.

seeing is believing


Offline waltr

  • Supreme Robot
  • *****
  • Posts: 1,936
  • Helpful? 98
Re: stereo vision questions
« Reply #5 on: November 23, 2010, 07:45:48 PM »
The lens projects the real image (object at some distance) onto the surface of the image sensor. The width (say) of object at some distance can be measure as an angle. It is this angle that can then calculated on the image sensor. That is what the this equation expresses.
angular distance (arc-sec) = 206.265 * pixel pitch (um)/lens focal length (mm)
The units seem to need explanations:
an arc-second is 1/3600 degrees
um is micro-meter
mm is millimeter
206.265 is a conversion factor of the units in the equation.

Does that help?

Offline sinistaTopic starter

  • Jr. Member
  • **
  • Posts: 14
  • Helpful? 0
Re: stereo vision questions
« Reply #6 on: November 24, 2010, 05:09:54 AM »
brilliant, cheers waltr

 


Get Your Ad Here