I was reading about pixel per foot but can someone teach how can i calculate the pixel per foot?
If given the resolution 640(horizontal) x 480(vertical), lens range from 2.8 mm – 12 mm, distance = 16ft (around 5 meter) and pixel per foot equals to?
Anyone?
I think I understand what you mean – you want to calculate how wide an image is in real-world units?
If you know the angle of the field of view
f, and the distance to the targetd, you can calculate the widthwof plane visible at that distance with a bit of trig.So, remember the old school SOH CAH TOA?
tan(angle) = opposite / adjacent. We want to calculate the opposite dimensiono, and we know that the adjacent isdand the angle is isf/2, so we geto = tan(f/2) * dois half the width, so we double it to give our final calculation ofw = d * tan(f/2) * 2So, now you know the real-world width
wof the planedunits from the camera, and you know your image isppixels wide, the pixels-per-unit is simplyp/wThe only problem that remains is calculating the field of view angle
ffrom the focal length of the lens – that’s a little more specialised. This depends on the camera, particularly the size of the image sensor. You can generate a table for many popular cameras here http://www.howardedin.com/articles/fov.html.If you know the size of the image sensor, or are using 36mmx24mm film negatives, you can use this formula to calculate the FOV for a “normal” rectilinear lens: