libcamera/test/ipa
Stefan Klug 80ac19a507 libipa: histogram: Fix interQuantileMean() for small ranges
The interQuantileMean() is supposed to return a weighted mean value
between two quantiles. This works for fine histograms, but fails for
coarse histograms and small quantile ranges because the weight is always
taken from the lower border of the bin.

Fix that by rewriting the algorithm to calculate a lower and upper bound
for every (partial) bin that goes into the mean calculation and weight
the bins by the middle of these bounds.

Signed-off-by: Stefan Klug <stefan.klug@ideasonboard.com>
Acked-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
2025-04-03 12:36:07 +02:00
..
libipa libipa: histogram: Fix interQuantileMean() for small ranges 2025-04-03 12:36:07 +02:00
ipa_interface_test.cpp libcamera: ipa_manager: Remove singleton requirement 2024-08-07 18:58:55 +03:00
ipa_module_test.cpp libcamera: pipeline: Rename pipelines to a shorter name 2024-05-14 23:20:29 +01:00
meson.build libipa: Centralise Fixed / Floating point convertors 2024-12-17 22:35:58 +00:00