libcamera v0.5.1
Supporting cameras in Linux since 2019
Loading...
Searching...
No Matches
awb_bayes.h File Reference

Implementation of bayesian auto white balance algorithm. More...

#include <libcamera/controls.h>
#include "libcamera/internal/vector.h"
#include "libcamera/internal/yaml_parser.h"
#include "awb.h"
#include "interpolator.h"
#include "pwl.h"
Include dependency graph for awb_bayes.h:

Go to the source code of this file.

Classes

class  libcamera::ipa::AwbBayes
 Implementation of a bayesian auto white balance algorithm. More...

Namespaces

namespace  libcamera
 Top-level libcamera namespace.
namespace  libcamera::ipa
 The IPA (Image Processing Algorithm) namespace.

Detailed Description

Implementation of bayesian auto white balance algorithm.

This implementation is based on the initial implementation done by RaspberryPi.

Todo
Documentation
Todo
Not all the features implemented by RaspberryPi were ported over to this algorithm because they either rely on hardware features not generally available or were considered not important enough at the moment.

The following parts are not implemented:

  • min_pixels: minimum proportion of pixels counted within AWB region for it to be "useful"
  • min_g: minimum G value of those pixels, to be regarded a "useful"
  • min_regions: number of AWB regions that must be "useful" in order to do the AWB calculation
  • deltaLimit: clamp on colour error term (so as not to penalize non-grey excessively)
  • bias_proportion: The biasProportion parameter adds a small proportion of the counted pixels to a region biased to the biasCT colour temperature. A typical value for biasProportion would be between 0.05 to 0.1.
  • bias_ct: CT target for the search bias
  • sensitivityR: red sensitivity ratio (set to canonical sensor's R/G divided by this sensor's R/G)
  • sensitivityB: blue sensitivity ratio (set to canonical sensor's B/G divided by this sensor's B/G)