A few years ago, taking a photo at night with your phone was almost an ordeal: everything came out dark, blurry or full of grain. Today it is enough to press a button and the image appears sharp, well lit and with surprising colours. The blame — or rather, the credit — goes to computational photography.
Computational photography is, in short, the combination of the camera lens and the phone’s brain. The lens captures the light, but it is the processor that decides how to turn that light into an image that makes sense. It is no longer just about “opening the shutter”: the software intervenes before, during and after every shot.
Many photos in one
One of the most common techniques consists of taking several images in fractions of a second and combining them into a single one. Each capture gathers a different part of the scene: one is brighter, another captures details better, another reduces movement. The phone analyses them and merges them to keep the best of each one.
This is how, for example, night photos are achieved. While the camera “sees” in the dark, the software takes care of removing noise and balancing lights and shadows. The result seems magical, but in reality it is a mathematical exercise of adding up information.
The night trick
When you activate “night mode”, the phone keeps the shutter open for a few seconds. The problem is that your hand trembles, so the software compensates for the movement and stacks several shots. The result is a photo with much more detail than the lens, on its own, would be capable of capturing.
It is also used for portraits. The famous “portrait mode” that blurs the background does not need a professional camera: the phone calculates depth, detects the person’s outline and blurs the rest through software.
The zoom that is not a zoom
Zoom is another great example. When you zoom in a lot on an image, the camera cannot physically magnify the lens, so the software “fills in” the missing information by estimating what the enlarged image should look like. It is not always perfect, but on the latest models the results border on the real.
The key to all of this is that today’s phones carry processors designed expressly for these tasks. They are capable of performing billions of operations per second, something unthinkable a decade ago.
Where we are heading
Computational photography is not going to slow down. Every year manufacturers incorporate smarter algorithms, capable of recognizing scenes, improving faces or recovering details from dark areas. Some are already starting to use generative artificial intelligence to reconstruct images that, technically, the camera never even captured.
That also raises an interesting question: to what extent is what we photograph real? The boundary between capturing reality and creating it blurs more every day. But for most of us, the important thing is that that photo of dinner with friends or that sunset on the beach come out perfect with a single touch.
Next time you take out your phone at night and get a bright, sharp image, now you know: it is not magic, it is computational photography.






