ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

how to get a camera focal length and dimension of the pixel in mm from intrinsic matrix [closed]

asked 2020-09-20 12:47:15 -0500

leogeo gravatar image

hello , i am looking to transform the (u,v) camera coordinates in pixel to (c,y) camera coordinates in mm. using the equations x = u−u0/ku , y = v−v0/kv. : 1/ku the horizontal dimension of the pixel in mm. 1/kv the vertical dimension of the pixel in mm. (u0, v0) the pixel coordinates of the optical axis projection got from intrinsic matrix. i calibrated the camera, and i have the camera intrinsic parameters value. my question is how i can get the focal length and 1/ku from the intrinsic camera ? i'am using a simulated robot with a mounted camera in gazebo ros. thank you for help.

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by leogeo
close date 2020-10-02 12:11:56.808984

1 Answer

Sort by » oldest newest most voted
0

answered 2020-09-22 13:20:57 -0500

kscottz gravatar image

I believe the camera's focal length values should be along the diagonals of the intrinsic matrix. This should help explain a bit.

edit flag offensive delete link more

Comments

the focal length in the intrinsic matrix are in mm, i am looking to determinate focal length in pixel in order to extract the pixel dimensions, which i will use to get the width and height in mm for some geometric calculus

leogeo gravatar image leogeo  ( 2020-09-23 03:18:45 -0500 )edit

I'm shooting a bit from from the hip here, but here but can you tell me a bit more about your application? It sounds like you have a metrology application where you have a camera pointed at something and want to make measurements on (e.g. camera pointed at a table). I think to get pixels to mm you'll need a metric reconstruction which requires some scene information. In the case I mentioned above there's a cheat / approximation you can do.

kscottz gravatar image kscottz  ( 2020-09-23 11:51:06 -0500 )edit

i did some geometric calculus, to complet my application i am in need to the dimensions of the image in mm

leogeo gravatar image leogeo  ( 2020-09-24 04:01:44 -0500 )edit

Question Tools

2 followers

Stats

Asked: 2020-09-20 12:47:15 -0500

Seen: 1,997 times

Last updated: Sep 22 '20