---
title: Resolution-Invariant NIR-to-RGB Colorization
url: https://www.emergentmind.com/topics/resolution-invariant-nir-to-rgb-colorization
type: topic
---

# Resolution-Invariant NIR-to-RGB Colorization

Resolution-invariant NIR-to-RGB colorization refers to a set of deep learning strategies and network architectures designed to translate near-infrared (NIR) imagery into high-fidelity, naturalistic RGB renderings while maintaining stable performance across diverse image resolutions. This objective is motivated by practical challenges in multi-modality imaging—including lidar and NIR camera systems—where input resolutions may vary due to sensor design, application domain, or downstream computational constraints. The key principle is to ensure that both the chromatic accuracy and fine structural details of synthesized RGB outputs are robust to the spatial scale of the NIR input, while also enabling efficient adaptation to high-resolution imagery without loss of texture or color consistency [2601.01103][2404.16685][2505.02049].

## 1. Core Approaches and Model Architectures

Resolution-invariant NIR-to-RGB colorization models are characterized by architectural features and training paradigms that break fixed-size dependencies and enable scale-agnostic processing. Notable recent advances include:

- **Multi-branch Encoders with Local-Global Feature Interactions:** The HAQAGen model employs a Mamba-based encoder–decoder core with two decoding branches: one predicts an HSV prior field, the other reconstructs the RGB image, injecting local hue-saturation cues at every decoder stage via SPADE conditioning. This enables localized chromatic guidance even at large resolutions or spatially varying image content [2601.01103].

- **Multi-scale Feature Embedding and Fusion:** MCFNet formalizes a multi-scale design, explicitly extracting and injecting HSV color feature maps and high-frequency texture signals (via Laplacian operations) at corresponding U-Net decoder levels. SPADE-based modulation ensures that color priors are adaptively utilized at each resolution, decoupling the scale of input from both texture and color propagation [2404.16685].

- **Resolution-adaptive Inference Engines:** HAQAGen’s adaptive-resolution inference leverages a sliding-window approach with feathered overlap-hanning blending, permitting inference on arbitrarily large images by locally applying the model to overlapping patches and aggregating results to preserve seam-free structure and texture [2601.01103].

- **Super-resolution Integration:** In lidar-focused domains, architectures may first super-resolve NIR or reflectivity images (e.g., 2× upsampling by CARN with pixel-shuffle) before or after colorization. This normalizes resolution and improves keypoint extraction for subsequent tasks such as odometry [2505.02049].

## 2. Loss Functions and Training Objectives

Resolution-invariant NIR-to-RGB colorization is typically formulated as a multi-component optimization with losses designed to encourage both pixelwise accuracy and perceptual/structural consistency:

- **Adversarial Losses:** Most models utilize PatchGAN or Hinge GAN objectives for RGB and/or HSV outputs. The discriminator operates at local scales, which is inherently compatible with variable-resolution inputs [2601.01103][2404.16685].

- **Reconstruction and Perceptual Losses:** These comprise $\ell_1$ or MSE losses on both RGB and HSV outputs for direct color regression; VGG-based perceptual losses on feature activations to maintain high-level texture/semantics; and sometimes additional cosine similarity or feature-based objectives [2601.01103][2404.16685][2505.02049].

- **Texture and Edge-Preserving Terms:** Texture-aware components may leverage frozen autoencoders or direct Laplacian (edge) losses to align high-frequency content. MCFNet includes explicit edge loss components from image gradients [2404.16685].

- **Global Color Statistics:** HAQAGen introduces a differentiable histogram (CDF) matching term to globally regularize output color distributions, helping to prevent spatially coherent but globally unrealistic chromaticity [2601.01103].

- **Scale Consistency (Optional):** Some frameworks suggest introducing scale-consistency terms, e.g., enforcing that outputs downsampled to coarser scales match independent colorizations of those scales. While present as a proposed (but unimplemented) extension in MCFNet, such a loss further regularizes prediction consistency across resolutions [2404.16685].

## 3. Adaptive-Resolution Strategies and Inference

Contrary to resizing inputs to a canonical spatial size, state-of-the-art resolution-invariant models forward images at their native or arbitrary resolution. Central approaches include:

- **Patching with Overlap and Blending:** HAQAGen divides high-resolution NIR images into overlapping patches (e.g., 256×256 with ~30px overlaps), processes each patch independently, then aggregates results with a Hanning-blended mask to avoid seams and maintain texture continuity across patch borders [2601.01103].

- **Fully Convolutional and SPADE-Conditioned Networks:** The absence of fully-connected layers or fixed positional embeddings, and reliance on spatially adaptive normalization, allows core architectures to generalize across input sizes. All convolutions and SPADE modulations operate locally, preserving network behavior irrespective of spatial extent [2601.01103][2404.16685].

- **Super-Resolution as a Preprocessing Step:** In lidar imagery, all input images are upsampled to at least double their native resolution using networks such as CARN. Colorization is then performed at this common high-resolution scale, ensuring that subsequent keypoint and odometry operations are resolution-independent [2505.02049].

## 4. Evaluation Metrics and Benchmarks

Resolution-invariant NIR-to-RGB colorization is assessed through a battery of perceptual and distortion-based measures, usually reported at multiple scales and across diverse datasets:

- **Quantitative Metrics:** 
  - PSNR (Peak signal-to-noise ratio)
  - SSIM (structural similarity index) [Hore & Ziou 2010]
  - Angular Error (AE) in RGB space (lower is better)
  - LPIPS (Learned Perceptual Image Patch Similarity) [2601.01103][2404.16685]

- **Comparative Results:**

| Method        | PSNR↑ | SSIM↑ | AE↓  | LPIPS↓ |
|---------------|-------|-------|------|--------|
| ColorMamba    | 24.56 | 0.71  | 2.81 | 0.212  |
| HAQAGen       | 24.96 | 0.71  | 2.96 | 0.18   |
| MCFNet        | 20.34 | 0.61  | 3.79 | 0.208  |

On VCIP2020, HAQAGen attains higher PSNR and lower LPIPS compared to alternatives, and its sliding-window inference preserves texture over cross-dataset tests [2601.01103]. MCFNet demonstrates strong performance at 256×256, with hypothesized minor metric drop (<0.5 dB PSNR) under explicit resolution variation [2404.16685]. Lidar domain colorization maintains PSNR, SSIM, and ΔE stable above 2× super-resolved input [2505.02049].

## 5. Practical Considerations and Limitations

- **Paired Data Requirement:** All leading models require paired NIR–RGB data for supervised training. This remains a bottleneck for deployment in domains with limited paired sensors [2601.01103][2404.16685].

- **Patch-based Inference Overhead:** Sliding-window strategies incur increased computation compared to single forward passes, though they are necessary to preserve texture at large resolutions [2601.01103].

- **Resolution Invariance Mechanisms:** While HAQAGen and MCFNet are natively resolution-agnostic due to fully convolutional and SPADE-based conditioning, direct multi-scale supervision (e.g., with explicit scale-consistency losses) could further reinforce scale robustness [2404.16685]. In lidar frameworks, practical invariance emerges from upsampling and standardizing the resolution before colorization [2505.02049].

- **Downstream Generalization:** Empirically, invariance to input resolution correlates with stable downstream performance in feature extraction (e.g., ALIKE, SuperPoint) and odometry, provided minimal upscaling thresholds are met [2505.02049].

## 6. Contributions, Extensions, and Future Directions

Recent literature delineates several key innovations and potential areas for extension:

- **Unified Losses for Color, Texture, and Perceptual Quality:** Unified objectives combining differentiable histogram matching, perceptual, texture-aware, and direct pixelwise losses establish a balance between global chromatic fidelity and high-frequency structure [2601.01103].

- **SPADE-based Local Chromatic Conditioning:** Both HAQAGen and MCFNet exploit SPADE to inject local hue and saturation priors, stabilizing reconstructions especially under spatially ambiguous or feature-poor NIR regions [2601.01103][2404.16685].

- **Multi-scale Fusion and Feature Injection:** MCFNet’s integration of color features at multiple scales supports rich detail recovery and transferability to variable test resolutions [2404.16685].

- **Open Issues and Future Work:** Extensions discussed include (i) data-efficient or unpaired training paradigms, (ii) optimized, real-time inference engines via model distillation or progressive growing, and (iii) end-to-end training jointly with downstream perception modules such as segmentation or tracking [2601.01103][2404.16685].

A plausible implication is that, as research advances, explicit multi-scale consistency supervision and emergent, self-supervised colorization will further enhance both the resolution-invariance and the transferability of NIR-to-RGB translation networks to diverse, real-world imaging contexts.

Source: https://www.emergentmind.com/topics/resolution-invariant-nir-to-rgb-colorization