This project took me allmost 2 days and that's because of the formulas and the calibration of the cam with the laser,camera orientation must be parallel with the laser. i was inspired from here
http://sites.google.com/site/todddanko/home/webcam_laser_ranger
. You can download my entire project from here:
http://rapidshare.com/files/188824471/dbpcap.rar
and compile with visual c++ 2008, but very important, you must change the parameters depending on your construction.EX: my distance between the cam and laser is 7 cm. Yours could be diferent. And the error corections are found with continuous measurments between certain distances.
watch video here:
http://www.youtube.com/watch?v=DUN1RTsF9rA
if you think you can ... or not.. both ways.. you're right