LearnTechWithUs / Stereo-Vision

This program has been developed as part of a project at the University of Karlsruhe in Germany. The final purpose of the algorithm is to measure the distance to an object by combining two webcams and use them as a Stereo Camera.
MIT License
343 stars 114 forks source link

Calculating the distance #5

Closed zaher88abd closed 5 years ago

zaher88abd commented 5 years ago

Hi,

May I ask you to explain this line of the code, for which reason you are using those numbers. Distance= -593.97*average**(3) + 1506.8*average**(2) - 1373.1*average + 522.06

Thanks.

UndecidedBoy commented 5 years ago

Hello,

This equation converts the values from the disparity map to a distance. We used a polynomial equation of order 3 as explained in our PDF since it is the best representation for converting disparity values given by the stereo program into a distance. How we established the coefficients is described somewhere in the youtube comments or also in the discussion part of the youtube channel.

Hope this helps.

Have a nice day/evening!