Underwater Organism Color Enhancement via Color Code Decomposition, Adaptation and Interpolation
Xiaofeng Cong, Jing Zhang, Yeying Jin, Junming Hou, Yu Zhao, Jie Gui, James Tin-Yau Kwok, Yuan Yan Tang
TL;DR
The paper tackles underwater color distortion by introducing ColorCode, a framework that decomposes an underwater image into a color code $m$ and a content code $c$ to enable deterministic color enhancement, guidance-based color adaptation, and continuous color interpolation. A supervised training stage recovers a reference image, while self- and cross-reconstruction disentangle color semantics from content, with explicit Gaussian constraints on $m$ and a color-guided fusion mechanism for long-wavelength hues. ColorCode delivers three capabilities—color enhancement, color adaptation, and color interpolation—validated across multiple benchmarks with quantitative gains and compelling visual results, outperforming several baselines in diversity, realism, and controllability. This approach enables flexible, user-controllable underwater image enhancement suitable for publication-ready visuals and downstream analysis.
Abstract
Underwater images often suffer from quality degradation due to absorption and scattering effects. Most existing underwater image enhancement algorithms produce a single, fixed-color image, limiting user flexibility and application. To address this limitation, we propose a method called \textit{ColorCode}, which enhances underwater images while offering a range of controllable color outputs. Our approach involves recovering an underwater image to a reference enhanced image through supervised training and decomposing it into color and content codes via self-reconstruction and cross-reconstruction. The color code is explicitly constrained to follow a Gaussian distribution, allowing for efficient sampling and interpolation during inference. ColorCode offers three key features: 1) color enhancement, producing an enhanced image with a fixed color; 2) color adaptation, enabling controllable adjustments of long-wavelength color components using guidance images; and 3) color interpolation, allowing for the smooth generation of multiple colors through continuous sampling of the color code. Quantitative and visual evaluations on popular and challenging benchmark datasets demonstrate the superiority of ColorCode over existing methods in providing diverse, controllable, and color-realistic enhancement results. The source code is available at https://github.com/Xiaofeng-life/ColorCode.
