AWB/AE統計前に線形データへ逆変換したい
Raspberry Pi 5でHDR対応センサーを使って撮影を行っており、RAW出力は12bitに非線形圧縮された形式で取得しています。
libcamera/src/libcamera/pipeline/rpi/pisp/pisp.cpp 内のpreprareBe()で、CFE OutputからISP Inputへ渡す直前に16bitへ非線形圧縮の逆変換をしています。
しかし、この処理位置ではAuto White Balance(AWB)やAuto Exposure (AE)、Auto Gain(AG)制御に使用される統計情報が、逆変換前の12bitデータに基づいて計算されてしまいます。
そのためか、全体的に緑が強く、暗い画が撮れています。
統計処理(AWB/AE/AG)の前段階で線形な16bitデータに復元する方法、あるいはそのような構成にパイプラインを変更する方法をご存じの方がいらっしゃれば、ご教示いただけないでしょうか?
アドバイスや関連情報があれば、ぜひお願いいたします。
libcamera/src/libcamera/pipeline/rpi/pisp/pisp.cpp 内のpreprareBe()で、CFE OutputからISP Inputへ渡す直前に16bitへ非線形圧縮の逆変換をしています。
しかし、この処理位置ではAuto White Balance(AWB)やAuto Exposure (AE)、Auto Gain(AG)制御に使用される統計情報が、逆変換前の12bitデータに基づいて計算されてしまいます。
そのためか、全体的に緑が強く、暗い画が撮れています。
統計処理(AWB/AE/AG)の前段階で線形な16bitデータに復元する方法、あるいはそのような構成にパイプラインを変更する方法をご存じの方がいらっしゃれば、ご教示いただけないでしょうか?
アドバイスや関連情報があれば、ぜひお願いいたします。
Jump to
- Community
- General discussion
- Announcements
- Other languages
- Deutsch
- Español
- Français
- Italiano
- Nederlands
- 日本語
- Polski
- Português
- Русский
- Türkçe
- User groups and events
- Raspberry Pi Official Magazine
- Using the Raspberry Pi
- Beginners
- Troubleshooting
- Advanced users
- Assistive technology and accessibility
- Education
- Picademy
- Teaching and learning resources
- Staffroom, classroom and projects
- Astro Pi
- Mathematica
- High Altitude Balloon
- Weather station
- Programming
- C/C++
- Java
- Python
- Scratch
- Other programming languages
- Windows 10 for IoT
- Wolfram Language
- Bare metal, Assembly language
- Graphics programming
- OpenGLES
- OpenVG
- OpenMAX
- General programming discussion
- Projects
- Networking and servers
- Automation, sensing and robotics
- Graphics, sound and multimedia
- Other projects
- Gaming
- Media centres
- AIY Projects
- Hardware and peripherals
- Camera board
- Compute Module
- Official Display
- HATs and other add-ons
- Device Tree
- Interfacing (DSI, CSI, I2C, etc.)
- Keyboard computers (400, 500, 500+)
- Raspberry Pi Pico
- General
- SDK
- MicroPython
- Other RP2040 boards
- Zephyr
- Rust
- AI Accelerator
- AI Camera - IMX500
- Hailo
- Software
- Raspberry Pi OS
- Raspberry Pi Connect
- Raspberry Pi Desktop for PC and Mac
- Beta testing
- Other
- Android
- Debian
- FreeBSD
- Gentoo
- Linux Kernel
- NetBSD
- openSUSE
- Plan 9
- Puppy
- Arch
- Pidora / Fedora
- RISCOS
- Ubuntu
- Ye Olde Pi Shoppe
- For sale
- Wanted
- Off topic
- Off topic discussion