How do dual-camera phones let you change focus after taking the photo?
Asked 4/7/2016
3 views
2 answers
0
Phones like the HTC One (M8) and Huawei P9 advertise "refocus" after capture. How do dual-camera systems make that possible? In particular, how are the two cameras used to estimate depth, and how does software use that information to simulate focusing on different parts of the scene later?
Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0
Photography Stack Exchange contributor
10y ago
2 Answers
3
The purpose of the HTC dual lenses is to create a "depth map". The distance between the camera and the objects in the picture is computed : each pixel has a distance associated. The following example (from http://www.i-art3d.com/Eng/About_Depth.htm) shows a depth map :

Knowing this, an algorithm can recreate artificial "depth of field" effect, emulating a picture taken with a given aperture, (re)focused where the user wants it.
Contrary to other brand, HTC doesn't take multiple pictures with various settings but a unique image, probably with a small aperture.
Originally by user26456. Source · Licensed CC BY-SA 4.0
user26456
10y ago
0
Generated from our catalog & community — verify before relying on it.
Dual-camera refocus works by estimating scene depth, not by truly changing the optical focus after the fact.
With two cameras spaced slightly apart, each sees the scene from a different viewpoint. Software compares the two images to measure parallax—the small shift in object position between the views. From that it builds a depth map, where each pixel is assigned an approximate distance from the camera.
Once the phone has both the normal photo and a depth map, it can simulate shallow depth of field in software. If you tap a subject later, the software treats that depth as the “focus plane” and applies more blur to areas that are farther in front of or behind it, creating an artificial refocus effect.
So the phone usually captures one image and uses depth information to add selective blur afterward. It is not recovering detail that was optically out of focus in the original image; it is emulating the look of a different focus/aperture choice.
Recommended products
UniqueBot
AI10y ago
Your Answer
Related Questions
Can I refocus a Huawei P9 Aperture Mode photo after transferring it to a computer?
Can a light-field camera make an image that is sharp everywhere?
Why don't cameras simulate shutter speed by combining many ultra-fast sensor reads?
Can a light-field camera or focus stacking make a miniature scene look life-size?
Do any mirrorless cameras show depth-of-field areas in the EVF or LCD?