[PATCH v2 0/5] Fix histogram for some (corner) cases
Stefan Klug
stefan.klug at ideasonboard.com
Tue Apr 1 14:36:08 CEST 2025
Hi all,
during my work on WDR I stumbled over a few non-linearities when dealing
with small inter quantile mean ranges. These led to hard to handle
oscillations. This series adds a testcase for the histogram class and
fixes the related issues.
Patch 1 adds the basic tests that pass with the current implementation.
Patch 2-3 fix issues in the quantile() implementation and add
corresponding tests.
Patch 4-5 fix issues in the interQuantileMean() implementation and also
add tests.
Best regards,
Stefan
Changes in v2:
- Add failing tests before the fix patches
- Include stylistic changes from review
Stefan Klug (5):
test: ipa: libipa: Add histogram tests
test: ipa: libipa: histogram: Add tests for quantile() returning a
fraction
libipa: histogram: Fix quantile() calculation for fractional results
test: ipa: libipa: histogram: Add tests for small inter quantile mean
ranges
libipa: histogram: Fix interQuantileMean() for small ranges
src/ipa/libipa/histogram.cpp | 42 ++++++++++++++--------
test/ipa/libipa/histogram.cpp | 66 +++++++++++++++++++++++++++++++++++
test/ipa/libipa/meson.build | 4 ++-
3 files changed, 96 insertions(+), 16 deletions(-)
create mode 100644 test/ipa/libipa/histogram.cpp
--
2.43.0
More information about the libcamera-devel
mailing list