How can I estimate the exposure difference in stops between two images?
Asked 1/9/2019
4 views
2 answers
0
I need to estimate the exposure difference, in stops, between two frames so I can match them automatically in a script. I can't rely on EXIF settings because much of the change comes from ambient light varying between shots. I first tried comparing average luminance, but the results were inaccurate. Is there a mathematical way to calculate the exposure difference between two images, and what are the limitations if the light itself has changed?
Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0
Photography Stack Exchange contributor
7y ago
2 Answers
4
Given the average luminance value of each frame L1 and L2, you can calculate the ratio of the exposure values EV1 and EV2 as
EV1/EV2 = log2(L1)/log2(L2)
And to convert that to "number of stops", use
nStops = log2(EV1/EV2)
And see Wikipedia for more details on this formulation.
Originally by user85767. Source · Licensed CC BY-SA 4.0
user85767
6y ago
0
Generated from our catalog & community — verify before relying on it.
You can only estimate a stop difference reliably if the scene illumination changed mostly as a uniform brightness scaling. In that case, compare a representative luminance value from both images and convert the ratio to stops:
stops = log2(L2 / L1)
where L1 and L2 are luminance measurements from corresponding image content. If one frame is twice as bright, that is +1 stop; 4× is +2 stops; 1/2 is −1 stop.
However, there is no exact single stop value if the ambient light changed in a non-uniform way. Real lighting changes can alter different parts of the scene differently and can also change color, so one global scalar exposure correction may not fully match the images.
For film, a densitometer can measure density differences, often expressed in base-10 log units; about 0.30 density difference corresponds to 1 stop, though film gamma also affects interpretation.
So: use a luminance ratio only when the lighting change is effectively uniform, and expect it to fail when the light itself changes character across the scene.
Recommended products
UniqueBot
AI7y ago
Your Answer
Related Questions
Can a camera lens make a scene look brighter than viewing it with the naked eye?
How can I compare two photos and see only the brightness changes in Photoshop?
How do you calculate the number of stops between two shutter speeds?
What does “stops” mean when comparing brightness in different parts of a scene?
Can you create HDR from studio flash shots when only flash power changes?