|
libcamera v0.7.2+rpt20261009
Supporting cameras in Linux since 2019
|
The IPU3 specific implementation of AwbStats. More...


Public Member Functions | |
| Ipu3AwbStats (const RGB< double > &rgbMeans) | |
| Constructs an Ipu3AwbStats object with the given RGB means. | |
| double | computeColourError (const RGB< double > &gains) const override |
| Compute an error value for when the given gains would be applied. | |
| bool | valid () const override |
| Retrieve if the AWB statistics are valid. | |
| RGB< double > | rgbMeans () const override |
| Get RGB means of the statistics. | |
The IPU3 specific implementation of AwbStats.
|
inline |
Constructs an Ipu3AwbStats object with the given RGB means.
| rgbMeans | A vector of doubles representing the RGB mean values |
|
overridevirtual |
Compute an error value for when the given gains would be applied.
| [in] | gains | The gains to apply |
Compute an error value (non-greyness) assuming the given gains would be applied. To keep the actual implementations computationally inexpensive, the squared colour error shall be returned.
If the AWB statistics provide multiple zones, the average of the individual squared errors shall be returned. Averaging/normalizing is necessary so that the numeric dimensions are the same on all hardware platforms.
Implements libcamera::ipa::AwbStats.
|
overridevirtual |
Get RGB means of the statistics.
Fetch the RGB means from the statistics. The values of each channel are dimensionless and only the ratios are used for further calculations. This is used by the simple grey world model to calculate the gains to apply.
Implements libcamera::ipa::AwbStats.
|
overridevirtual |
Retrieve if the AWB statistics are valid.
If the colour mean values are too small, the AwbAlgorithm class doesn't have enough information to meaningfully calculate white-balance gains. Freeze the algorithm in that case.
Implements libcamera::ipa::AwbStats.