Class that implements lux estimation. More...
Public Member Functions | |
| Lux () | |
| Construct the Lux helper module. | |
| int | parseTuningData (const YamlObject &tuningData) |
| Parse tuning data. | |
| double | estimateLux (utils::Duration exposureTime, double aGain, double dGain, const Histogram &yHist) const |
| Estimate lux given runtime values. | |
Class that implements lux estimation.
IPAs that wish to use lux estimation should create a Lux algorithm module that lightly wraps this module by providing the platform-specific luminance histogram. The Lux entry in the tuning file must then precede the algorithms that depend on the estimated lux value.
| double libcamera::ipa::Lux::estimateLux | ( | utils::Duration | exposureTime, |
| double | aGain, | ||
| double | dGain, | ||
| const Histogram & | yHist ) const |
Estimate lux given runtime values.
| [in] | exposureTime | Exposure time applied to the frame |
| [in] | aGain | Analogue gain applied to the frame |
| [in] | dGain | Digital gain applied to the frame |
| [in] | yHist | Histogram from the ISP statistics |
Estimate the lux given the exposure time, gain, and histogram.
| int libcamera::ipa::Lux::parseTuningData | ( | const YamlObject & | tuningData | ) |
Parse tuning data.
| [in] | tuningData | The YamlObject representing the tuning data |
This function parses yaml tuning data for the common Lux module. It requires reference exposure time, analogue gain, digital gain, and lux values.