libcamera
v0.5.0
Supporting cameras in Linux since 2019
|
Class that implements lux estimation. More...
Public Member Functions | |
Lux () | |
Construct the Lux helper module. | |
int | parseTuningData (const YamlObject &tuningData) |
Parse tuning data. More... | |
double | estimateLux (utils::Duration exposureTime, double aGain, double dGain, const Histogram &yHist) const |
Estimate lux given runtime values. More... | |
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.