Skip to content

Commit

Permalink
ipa: rpi: awb: Disable CT search bias for Grey World AWB
Browse files Browse the repository at this point in the history
If grey world AWB is setup in the tuning file, the CT curve will either
be missing or invalid. Disable biasing the statistics for the search in
such cases.

Signed-off-by: Naushir Patuck <[email protected]>
  • Loading branch information
naushir committed Nov 19, 2024
1 parent 75fe515 commit ad9e3b9
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/ipa/rpi/controller/rpi/awb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -459,10 +459,13 @@ void Awb::prepareStats()
* LSC has already been applied to the stats in this pipeline, so stop
* any LSC compensation. We also ignore config_.fast in this version.
*/
const double biasCtR = config_.bayes && config_.ctR.size() ?
config_.ctR.eval(config_.biasCT) : 0;
const double biasCtB = config_.bayes && config_.ctB.size() ?
config_.ctB.eval(config_.biasCT) : 0;
generateStats(zones_, statistics_, config_.minPixels,
config_.minG, getGlobalMetadata(),
config_.biasProportion, config_.ctR.eval(config_.biasCT),
config_.ctB.eval(config_.biasCT));
config_.biasProportion, biasCtR, biasCtB);
/*
* apply sensitivities, so values appear to come from our "canonical"
* sensor.
Expand Down

0 comments on commit ad9e3b9

Please sign in to comment.