libcamera/test/ipa/libipa
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
..
fixedpoint.cpp libipa: Centralise Fixed / Floating point convertors 2024-12-17 22:35:58 +00:00
histogram.cpp test: ipa: libipa: histogram: Add tests for small inter quantile mean ranges 2025-04-03 12:36:07 +02:00
interpolator.cpp test: ipa: libipa: Add tets for Interpolator 2024-09-23 16:42:45 +02:00
meson.build libipa: histogram: Fix interQuantileMean() for small ranges 2025-04-03 12:36:07 +02:00