ipa: rkisp1: awb: Apply gains based on default colour temperature on start
The colour gains are initialized with a default value of 1. Improve that by querying the auto white balance algorithm for the gains for a default colour temperature. This is still not based on measurements, but it is still better than the current implementation. If the algorithm doesn't implement mapping from colour temperature to gains, it will internally fallback to 1.0. Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com> Reviewed-by: Paul Elder <paul.elder@ideasonboard.com> Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com>
This commit is contained in:
parent
7a4012ec79
commit
bab4db2d6d
1 changed files with 2 additions and 1 deletions
|
@ -125,7 +125,8 @@ int Awb::configure(IPAContext &context,
|
||||||
const IPACameraSensorInfo &configInfo)
|
const IPACameraSensorInfo &configInfo)
|
||||||
{
|
{
|
||||||
context.activeState.awb.gains.manual = RGB<double>{ 1.0 };
|
context.activeState.awb.gains.manual = RGB<double>{ 1.0 };
|
||||||
context.activeState.awb.gains.automatic = RGB<double>{ 1.0 };
|
context.activeState.awb.gains.automatic =
|
||||||
|
awbAlgo_->gainsFromColourTemperature(kDefaultColourTemperature);
|
||||||
context.activeState.awb.autoEnabled = true;
|
context.activeState.awb.autoEnabled = true;
|
||||||
context.activeState.awb.temperatureK = kDefaultColourTemperature;
|
context.activeState.awb.temperatureK = kDefaultColourTemperature;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue