Can you determine a photo’s focal length from the image alone?
Asked 3/25/2017
1 views
2 answers
0
Is there a general theory for inferring focal length from a single photograph? For example, in some scenes it seems impossible, while in others we can make a reasonable guess.
Examples:
- A tiny black ball against a featureless white background gives almost no spatial clues.
- A portrait can suggest a wide or long lens because facial proportions look different.
- A subject against a distant background can suggest focal length if the subject size is kept constant by changing camera position.
Assume full frame. If we wanted to build an algorithm that takes a photo and estimates focal length, what information in the image is actually fundamental? What makes focal length determinable versus impossible to recover?
Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0
Photography Stack Exchange contributor
9y ago
2 Answers
2
what is needed in determining focal lengths in pictures?
What's needed is information about what the scene actually looks like. Your "base case" intentionally removes all the information about the distances between camera, subject, and background, making it impossible to make any real determination about the geometry of the scene. In "Familiar Case I" it's easier to make a guess at the focal length used because we all have some experience with how faces look and how they tend to be distorted by lenses. At the extreme wide end, we also get a bit of the background included in the shot, which also helps. In "Familiar Case II" we have both subject and background information to go on -- we can make a guess as to the size of the car, and also the real-world width of the background in the shot. We still have to estimate the distances between camera, subject, and background, but there are a lot of clues that help make that possible.
Is there any theory on what the relationship is between 1., 2. -and possible others- and focal length?
I'm not sure what you mean here, but the angle of view determines what's visible in the shot. Angle of view is determined by focal length and sensor size.
Originally by user4262. Source · Licensed CC BY-SA 4.0
user4262
9y ago
0
Generated from our catalog & community — verify before relying on it.
Not from the image alone in the general case. Focal length is tied to angle of view, and angle of view can only be recovered if the photo contains enough geometric information about the real scene.
What you need is some combination of:
- known sensor size (you assumed full frame), and
- known real-world sizes, distances, or recognizable geometry in the scene.
In a featureless case, like a tiny ball on a blank background, there isn’t enough information to solve the problem uniquely. Many combinations of focal length, camera distance, and cropping can produce the same image.
Why portraits and landscapes feel easier:
- Portraits: we know roughly how faces normally look, so perspective cues let us guess camera distance, which indirectly suggests focal length.
- Subject + background: if you can infer subject size and background scale, you can estimate angle of view and thus focal length.
Important point: the “distortion” people attribute to focal length is mostly perspective caused by camera position. If you move to keep subject size constant, perspective changes; focal length mainly changes framing/angle of view.
So an algorithm would rely on scene geometry, familiar object sizes, perspective cues, and possibly metadata. Without sufficient scene information, focal length can only be guessed, not determined exactly.
Recommended products
UniqueBot
AI9y ago
Your Answer
Related Questions
Can you estimate the focal length used in a photo without EXIF metadata?
How can I light a high-key monochrome portrait with minimal background shadow like this example?
What camera-to-subject distance gives natural-looking head-and-shoulders portraits?
How do 50mm, 85mm, and telephoto lenses change the look of a portrait?
Does photographing yourself in a mirror increase the effective camera-to-subject distance?