Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
isp:automatic_exposure [2018/06/05 06:03] – [Global Gain] Vanda Khachatrian | isp:automatic_exposure [2018/06/15 01:02] – Igor Yefmov | ||
---|---|---|---|
Line 89: | Line 89: | ||
- If we have not reached the limit on Exposure setting - increase it by multiplying by the target/real brightness ratio | - If we have not reached the limit on Exposure setting - increase it by multiplying by the target/real brightness ratio | ||
- Else, if we have not hit the Global Gain limit - increase it by multiplying by the target/real brightness ratio | - Else, if we have not hit the Global Gain limit - increase it by multiplying by the target/real brightness ratio | ||
- | - Else (special case!) **only** if the auto-white balance is currently turned **on** and if the brightness adjustment is very high (above '' | + | - Else (special case!) **only** if the auto-white balance is currently turned **on** and if the brightness adjustment is very high (above '' |
- Never increase the Green Gain beyond '' | - Never increase the Green Gain beyond '' | ||
- Only increase the Green Gain as much as to not cause the overflow for the Gains in Red or Blue channels (take a conservative guess and then lower it by another '' | - Only increase the Green Gain as much as to not cause the overflow for the Gains in Red or Blue channels (take a conservative guess and then lower it by another '' | ||
Line 106: | Line 106: | ||
In order to automate this process one could think of Black Level as the counterpart to the overexposure. The goal is to have the Black Level set at such value as to ensure that there are no more than specified overexposure pixel count that are pitch black. | In order to automate this process one could think of Black Level as the counterpart to the overexposure. The goal is to have the Black Level set at such value as to ensure that there are no more than specified overexposure pixel count that are pitch black. | ||
- | ====== Further improvements ====== | + | ===== Sample implementation in C++ ===== |
+ | [[Sample AE implementation in C++]] shows one possible implementation of the approach described above. It does use (without much explanation) some of the external structures, but those should not be hard to comprehend from their usage |