How to obtain the focal length from ocam_model??

765 views
Skip to first unread message

chan...@gmail.com

unread,
Dec 11, 2013, 3:12:03 AM12/11/13
to ocamcali...@googlegroups.com
Dear prof. Davide:

Thank you for your response, again.

One question we met as follows.

How to obtain the "focal length" of camera from ocam_model in your release toolbox ??

Thank you.

Davide Scaramuzza

unread,
Dec 18, 2013, 8:19:07 PM12/18/13
to ocamcali...@googlegroups.com
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
___________________________________

Davide Scaramuzza

unread,
Dec 18, 2013, 8:19:49 PM12/18/13
to ocamcali...@googlegroups.com, chan...@gmail.com
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
___________________________________


On 11.12.2013 09:12, chan...@gmail.com wrote:

chan...@gmail.com

unread,
Dec 24, 2013, 11:31:35 PM12/24/13
to ocamcali...@googlegroups.com, chan...@gmail.com
Dear Prof. Davide:
Thank you for your response, We want to obtain the focal length and use another calibration by prof.Higgins. This is his report"ENHANCEMENTS FOR DIGITAL
IMAGING OF GUSSET PLATE CONNECTIONS: FISHEYE AND IMAGE STITCHING" and use the calibration by matlab.
You can download and try it.
Thank you~~

chan...@gmail.com於 2013年12月11日星期三UTC+8下午4時12分03秒寫道: > Dear prof. Davide: Thank you for your response, again. One question we met as follows. How to obtain the "focal length" of camera from ocam_model in your release toolbox ?? Thank you.

Davide Scaramuzza

unread,
Dec 25, 2013, 5:44:33 AM12/25/13
to ocamcali...@googlegroups.com, ocamcali...@googlegroups.com, chan...@gmail.com
Hi
I already replied this question on the ocamcalib online forum. Please check there for the answer.
Best
Davide
>
> --
> You received this message because you are subscribed to the Google Groups "OCamCalib Toolbox" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ocamcalib-tool...@googlegroups.com.
> To post to this group, send email to ocamcali...@googlegroups.com.
> Visit this group at http://groups.google.com/group/ocamcalib-toolbox.
> To view this discussion on the web visit https://groups.google.com/d/msgid/ocamcalib-toolbox/e7479c98-830f-4372-9a57-a7e3e77a20b6%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
Reply all
Reply to author
Forward
0 new messages