[PATCH v2 00/25] Add ccm calibration to libtuning
Stefan Klug
stefan.klug at ideasonboard.com
Fri Jun 28 12:46:53 CEST 2024
Hi all,
this patch series improves the rkisp1 tuning tool support. With that
code, it is possible to create a nice looking image on the imx8mp. It
incorporates some logic from the raspberrypi tuning tools. This was used
to get to a working state in a timely manner. After that further
refactoring and algorithm development can take place.
Feature wise it contains:
- Added ccm calibration for the rkisp1
- Add static support for awb, filter, gamma and cproc
- Fixed lsc correction tables
- Some general fixes to make all that work
Best regards,
Stefan
Paul Elder (1):
libtuning: modules: Add initial CCM module
Stefan Klug (24):
libtuning: Backport improvements in MacBeth search reliability
libtuning: Fix reference image
libtuning: Copy files from raspberrypi
libtuning: Copy visualize_macbeth_chart from raspberry pi
utils: tuning: Add requirements file and update readme
libtuning: Fix imports
libtuning: Migrate prints to python logging framework
libtuning: Fix visualize_macbeth_chart()
libtuning: Improve filename parsing
libtuning: Implement a minimal yaml parser
libtuning: Reactivate macbeth locator
libtuning: lsc: rkisp1: Clip lsc values to valid range
libtuning: Use the color member of the Image class
libtuning: Remove need for Cam object from ccm
libtuning: Handle cases, where no lsc tuning images are present
libtuning: Only warn if processing returns None
libtuning: agc: Fix kwargs handling
libtuning: Add static module
tuning: rkisp1: Add some static modules
libtuning: lsc: rkisp1: Do not calculate ratios to green
libtuning: lsc: Prevent negative values
libtuning: Make blacklevel optional
tuning: rkisp1: Add blc module
libtuning: agc: rkisp1: Increase y-target
utils/tuning/README.rst | 23 +-
utils/tuning/config-example.yaml | 12 +
utils/tuning/libtuning/ctt_awb.py | 378 ++++++++++++++++
utils/tuning/libtuning/ctt_ccm.py | 408 ++++++++++++++++++
utils/tuning/libtuning/ctt_colors.py | 30 ++
utils/tuning/libtuning/ctt_ransac.py | 71 +++
.../libtuning/generators/yaml_output.py | 8 +-
utils/tuning/libtuning/image.py | 18 +-
utils/tuning/libtuning/libtuning.py | 23 +-
utils/tuning/libtuning/macbeth.py | 65 ++-
utils/tuning/libtuning/macbeth_ref.pgm | 2 +-
utils/tuning/libtuning/modules/agc/agc.py | 3 +-
utils/tuning/libtuning/modules/agc/rkisp1.py | 2 +-
.../tuning/libtuning/modules/blc/__init__.py | 5 +
utils/tuning/libtuning/modules/blc/blc.py | 46 ++
.../tuning/libtuning/modules/ccm/__init__.py | 6 +
utils/tuning/libtuning/modules/ccm/ccm.py | 44 ++
utils/tuning/libtuning/modules/ccm/rkisp1.py | 34 ++
utils/tuning/libtuning/modules/lsc/lsc.py | 3 +-
.../libtuning/modules/lsc/raspberrypi.py | 12 +-
utils/tuning/libtuning/modules/lsc/rkisp1.py | 11 +-
utils/tuning/libtuning/modules/static.py | 24 ++
utils/tuning/libtuning/parsers/yaml_parser.py | 9 +-
utils/tuning/libtuning/utils.py | 92 +++-
utils/tuning/requirements.txt | 7 +
utils/tuning/rkisp1.py | 23 +-
26 files changed, 1279 insertions(+), 80 deletions(-)
create mode 100644 utils/tuning/config-example.yaml
create mode 100644 utils/tuning/libtuning/ctt_awb.py
create mode 100644 utils/tuning/libtuning/ctt_ccm.py
create mode 100644 utils/tuning/libtuning/ctt_colors.py
create mode 100644 utils/tuning/libtuning/ctt_ransac.py
create mode 100644 utils/tuning/libtuning/modules/blc/__init__.py
create mode 100644 utils/tuning/libtuning/modules/blc/blc.py
create mode 100644 utils/tuning/libtuning/modules/ccm/__init__.py
create mode 100644 utils/tuning/libtuning/modules/ccm/ccm.py
create mode 100644 utils/tuning/libtuning/modules/ccm/rkisp1.py
create mode 100644 utils/tuning/libtuning/modules/static.py
create mode 100644 utils/tuning/requirements.txt
--
2.43.0
More information about the libcamera-devel
mailing list