libcamera/src
Stefan Klug d476f8358b libipa: awb_bayes: Change the probabilities from log space to linear space
The original code used to specify the probabilities in log space and
scaled for the RaspberryPi hardware with 192 AWB measurement points.
This is reasonable as the whole algorithm makes use of unitless numbers
to prefer some colour temperatures based on a lux level. These numbers
are then hand tuned with the specific device in mind.

This has two shortcomings:

1. The linear interpolation of PWLs in log space is mathematically
   incorrect. The outcome might still be ok, as both spaces (log and
linear) are monotonic, but it is still not "right".

2. Having unitless numbers gets more error prone when we try to
   harmonize the behavior over multiple platforms.

Change the algorithm to interpret the numbers as being in linear space.
This makes the interpolation mathematically correct at the expense of a
few log operations.

To account for that change, update the numbers in the tuning example
file with the linear counterparts scaled to one AWB zone measurement.

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>
2025-02-21 17:51:10 +01:00
..
android meson: Don't unnecessarily fallback to libyuv wrap 2024-11-26 19:05:17 +02:00
apps apps: ppm_writer: Return EIO on I/O errors 2025-01-27 00:06:11 +02:00
gstreamer gstreamer: Fix scaler-crop property get 2025-02-17 18:59:22 +02:00
ipa libipa: awb_bayes: Change the probabilities from log space to linear space 2025-02-21 17:51:10 +01:00
libcamera libcamera: pipeline: Fix LIBCAMERA_<NAME>_TUNING_FILE handling 2025-02-21 17:34:12 +01:00
py utils: codegen: controls.py: Parse direction information 2024-12-18 17:26:52 +09:00
v4l2 meson: Convert v4l2 into a feature option 2025-01-10 12:35:10 +01:00
meson.build meson: Don't unnecessarily fallback to libyuv wrap 2024-11-26 19:05:17 +02:00