Light
The physical signal in the scene. It is not yet a color grade or a style.
Tensei algorithm, from first principles
Tensei treats capture and rendering as two separate jobs. First it preserves as much trustworthy light information as the phone can measure. Then it spends that information through an analog model: exposure, optics, halation, film response, print response, and grain.
Start with lightThe starting fact
A camera sensor counts photons. Brighter parts of the scene produce larger numbers; darker parts produce smaller numbers. If you double the photons, the sensor value roughly doubles. That is called linear light.
A JPEG or phone screen cannot hold the whole range of real scene light. It has to compress the measurement into a visible picture. Once that compression happens, highlight detail, shadow separation, and the relationship between bright and dark regions can be lost.
Tensei's central rule is simple: do not fake richness after the image has already been flattened. Keep the measurement alive for as long as possible, then make visible decisions with the hidden evidence still available.
The physical signal in the scene. It is not yet a color grade or a style.
The camera's choice of how much light to collect before the frame is read.
The distance between the darkest usable signal and the brightest usable signal.
A math space where twice as much light is represented as twice the value.
Extra highlight information that exists in the capture but cannot fit directly into the visible image.
The compression function that turns a large measurement range into a displayable photograph.
The evidence Tensei keeps
The selected capture is a fresh city bundle with visible headroom: 20260522-213012-487-EF523506. Its headroom map is intentionally shown below because it teaches the core idea: there is information outside the ordinary visible frame.
Read the three images left to right. The first is the visible city merge. The second is not a photo; it is the same scene's headroom map, inverted for display. In this scene, pale sky and facade areas have little extra reserve, while darker building, sign, and street structure marks stronger stored headroom. The third is the final analog render after the look model uses both.
The merged city image after capture, before hidden highlight evidence changes the final look.
The inverted map fills its panel: pale means little reserve; dark city detail means stored headroom.
The final photograph after exposure, rolloff, halation, color, print response, and grain.
The algorithm
One phone frame is noisy and fragile. Tensei buffers many recent frames, chooses a useful burst, and records the camera metadata that explains how those frames were made.
The frames are not identical because hands move, objects move, and the sensor samples at different instants. Tensei registers the selected frames into the same coordinate system, weights them, and merges them into a higher-confidence light estimate.
Brightness arithmetic is only physically meaningful before the image is display-encoded. Tensei keeps the merge in a linear, high-precision representation so that exposure, noise, highlight pressure, and scattering operate on light rather than on already-styled pixels.
Tensei forms a displayable low dynamic range image, but it does not throw away the extra highlight signal. It stores that extra signal as a headroom map. The visible image answers "what should I show here?" The map answers "how much brighter was this place in the real measurement?"
The renderer decides how bright the photograph should feel while honoring the scene assessment. It can lift a dark scene, but it subtracts unresolved noise and watches highlight pressure. The point is not to make everything bright; it is to make the important signal visible without lying about what was measured.
In film, bright light can scatter through layers of emulsion and return as a warm halo. Tensei models that as an energy transfer: identify bright sources using color and headroom, spread a controlled amount through a multipass kernel, tint it, and composite it back with compensation.
The analog look is a response model, not a preset overlay. Tensei passes the image through optics, negative density, color response, print density, palette constraints, skin protection, vignette, and density-space grain.
What this buys you
The burst merge improves signal-to-noise before the render decides how far shadows can be lifted.
The headroom map keeps bright-scene evidence available after the image has been compressed for display.
Optics, halation, film color, print density, and grain each operate on the part of the image they are meant to explain.
Implementation anchor
The selected bundle records 32 available buffered frames, a 32-frame merge request, exposure metadata, motion weights, replay outputs, and a gain map.
analogOpticsAcutanceLayer to analogHalationBloomLayer to analogColorRenditionLayer to analogVignetteGrainFinalLayer.
Fresh disposable daylight 400: negative density, headroom halation, print density, restrained palette, skin protection, vignette, and grain.