Let's say I have a full frame camera (Sony A7) with a 50 mm lens (Canon FDn 50mm f/1.4) mounted on it. At a given object (a plane) distance I should be able to compute the size of the image in real world units (meters).
To experiment this I have put an A4 sheet of paper in front of my camera and moved the camera so that the width of the sheet of paper fills the whole image.
Here are the real world results:
- Sensor size: 24 x 36 mm
- Focal length: 50 mm
- A4 sheet size: 210 x 297 mm
- Object width on the sensor: 36 mm (it covers the full width of the image)
- Object distance (from sensor to sheet of paper): 510 mm (approximately)
From this topic;
distance to object (mm) = focal length (mm) * real height of the object (mm) * image height (pixels)
---------------------------------------------------------------------------
object height (pixels) * sensor height (mm)
In my case this can be simplified because the pixel sizes are the same:
distance to object (mm) = focal length (mm) * real height of the object (mm)
--------------------------------------------------
sensor height (mm)
My real world experiments yelds 510 mm, not 412 mm!
50 mm * 297 mm = 412 mm
--------------
36 mm
What is wrong with my computation?
I'm using the Fotodiox 10LA-FD-NEX adaptater, I'm able to focus the lens at infinity. The sensor/paper sheets planes are parallel, here is a picture of the setup:
Lens focus is set to the closest value (~0.45m), object distance is 525 mm
Then lens is set to infinity value, the sheet does fit the image length
Then after correcting the height, the object distance is 485 mm
485 mm is closer to the answer but still far away from the 412 mm expected!