Ask Your Question

Revision history [back]

focal length in pixel from fx and fy

Hi,

how can I get focal length in pixels from fx and fy? I need to get disparity using z = b*f / d,

where z is the depth (in meters), b is the horizontal baseline between the cameras (in meters), f is the (common) focal length of the cameras (in pixels), and d is the disparity (in pixels). At zero disparity, the rays from each camera are parallel, and the depth is infinite. Larger values for the disparity mean shorter distances.

I am using kinect with the focal length: fx_rgb = 5.1885790117450188e+02 * ratio; fy_rgb = 5.1946961112127485e+02 * ratio;

Kinect is not a stereo sensor, therefore I dont have a "baseline".

Please help Ayesha