Abstract
Near-Infrared (NIR) to RGB spectral translation is a critical task for enhancing nighttime surveillance and remote sensing capabilities. However, existing methods based on Convolutional Neural Networks (CNNs) and Transformers often struggle to balance local texture preservation with global context modeling. In this paper, we present ColorMamba, the first framework to leverage Selective Structured State Space Models (Mamba) for NIR-to-RGB translation. By introducing a 2D-selective scanning strategy with learnable padding tokens and an HSV-based color guidance sub-network, ColorMamba addresses the "local context neglect" common in sequence-based vision models. Experimental results on the VCIP2020 dataset demonstrate that ColorMamba achieves a state-of-the-art PSNR of 24.56 dB, outperforming previous methods by 1.02 dB while maintaining high computational efficiency.
1. Introduction
Near-Infrared (NIR) imaging captures details in low-light conditions that are invisible to the human eye, making it indispensable for security and environmental monitoring. Despite its utility, NIR images lack the chromatic information necessary for intuitive human interpretation. Translating these images into full-color RGB is an inherently ill-posed problem, as a single NIR intensity value can correspond to multiple potential colors in the visible spectrum.
Recent advancements in deep learning have utilized CNNs for their efficiency and Transformers for their global receptive fields. However, CNNs are often limited by local receptive fields, while Transformers suffer from quadratic computational complexity relative to image resolution. The Mamba architecture has recently emerged as a linear-complexity alternative for long-range dependency modeling. Yet, applying Mamba to 2D images typically involves flattening pixels into 1D sequences, which can destroy spatial relationships. ColorMamba is designed to overcome these limitations through specialized scanning and color-prior mechanisms.
2. Methodology
2.1 Visual State Space Blocks (VSSB)
ColorMamba utilizes a U-Net-style backbone composed of evolved Visual State Space Blocks (VSSB). Unlike vanilla Mamba blocks, these units incorporate local convolutional enhancements and "Agent Attention." This hybrid approach ensures the model captures both the fine-grained textures required for sharp image reconstruction and the long-range dependencies necessary for global color consistency.
2.2 2D-Selective Scan with Learnable Padding
To mitigate the "local context neglect" caused by 1D flattening, ColorMamba employs a four-direction scanning strategy. A key innovation is the introduction of learnable padding tokens. These tokens are inserted between pixels that are adjacent in the 1D sequence but non-adjacent in the 2D grid (e.g., at the end of a row). These tokens serve as boundary signals, allowing the state space model to "reset" or acknowledge spatial transitions, thereby preserving the structural integrity of the image.
2.3 HSV Color Guidance and Fusion
Colorization is often plagued by artifacts like color bleeding. ColorMamba addresses this by incorporating a dedicated sub-network that predicts the image in the HSV (Hue, Saturation, Value) color space. By separating structural intensity (Value) from chromatic information (Hue and Saturation), the model gains a robust color prior.
High-frequency textures are extracted from the NIR input using a Laplacian operator and then integrated with the predicted color maps via a Fusion Block utilizing SPADE ResNet blocks. This ensures that the final RGB output is both chromatically accurate and spatially sharp.
3. Experiments and Results
3.1 Experimental Setup
The model was evaluated using the VCIP2020 Grand Challenge on NIR dataset. Images were processed at a resolution of 256 × 256. Training involved standard data augmentation techniques, including random resizing, cropping, and contrast adjustment, to ensure the model's robustness across varying environmental conditions.
3.2 Quantitative Performance
ColorMamba establishes a new state-of-the-art benchmark for NIR-to-RGB translation. As shown in the comparative analysis, the model achieved:
- PSNR: 24.56 dB (a +1.02 dB improvement over the previous SOTA, CoColor).
- SSIM: 0.71
- ERGAS: 3.27
3.3 Qualitative Analysis
Visual comparisons indicate that ColorMamba produces significantly more vivid and naturalistic results than its predecessors. While CNN-based models like Restormer and Transformer-based models like DRSformer often result in "muddy" or desaturated outputs, ColorMamba maintains high color fidelity and sharp boundaries, particularly in complex outdoor scenes.
4. Discussion and Conclusion
ColorMamba demonstrates that State Space Models are highly effective for dense prediction tasks when spatial boundaries are explicitly managed. The use of learnable padding tokens and HSV-based priors allows the model to navigate the ambiguities of spectral translation more effectively than traditional architectures.
Despite these successes, the task remains challenging. The model occasionally exhibits over-saturation in specific contexts, such as rendering landscapes with exaggerated blue or purple hues. Future research will focus on refining scanning strategies and testing the architecture against more diverse datasets to improve generalization across extreme thermal and lighting variations. In conclusion, ColorMamba represents a significant step forward in making NIR-to-RGB translation both efficient and high-quality for real-world applications.
Summary updated