Hi,
You can't if the field of view of your camera is larger than 180 degrees
(it doesn't exist, since it would be negative).
I dont know what you need a focal length for, since you have the
world2cam and cam2world functions (which project image points on to the
unit sphere), but, to answer your question, the focal length is simply
equal to W/(2*tan(FOV/2)), where W is the width of the image and FOV is
the field of view of the camera in radians.
Best
Davide
___________________________________
Prof. Dr. Davide Scaramuzza
Head of the Robotics and Perception Group:
http://rpg.ifi.uzh.ch
University of Zurich,
Andreasstrasse 15, AND 2.28, Zurich, Switzerland
Office:
+41 44 635 2409
___________________________________