Abstract: In this work, we propose a fast superpixel-based color transfer method (SCT) between two images. Superpixels enable to decrease the image dimension and to extract a reduced set of color candidates. We propose to use a fast approximate nearest neighbor matching algorithm in which we enforce the match diversity by limiting the selection of the same superpixels. A fusion framework is designed to transfer the matched colors, and we demonstrate the improvement obtained over exact matching results. Finally, we show that SCT is visually competitive compared to state-of-the-art methods.
Introduction
Color transfer is the process of recoloring a "target" image using the aesthetic palette of a "source" image. While the concept is simple, high-quality execution remains challenging. Traditional methods often struggle with high computational costs—particularly when using Optimal Transport (OT) or pixel-wise matching—and visual artifacts like "color bleeding" or "palette collapse." Palette collapse occurs when greedy matching algorithms map many different target regions to the same "best" source color, resulting in a flat, washed-out look that fails to capture the source's full variety.
The Superpixel-based Color Transfer (SCT) method aims to bridge the gap between fast global methods, which lack local detail, and slow local methods, which are computationally heavy.
Methodology
The SCT framework consists of three main stages designed for speed and structural integrity:
1. Superpixel Decomposition
The images are first broken down into "superpixels"—clusters of neighboring pixels with similar colors—using the SCALP algorithm. This reduces the complexity of the image from millions of pixels to a few thousand elements, drastically speeding up subsequent processing steps.
2. Constrained ANN Matching
To determine which source colors belong in specific target regions, the authors adapt the PatchMatch (PM) algorithm. The key innovation here is the Match Diversity Constraint ($\epsilon$). Standard PatchMatch finds the single nearest neighbor for each patch. However, SCT limits how many target superpixels can be associated with a single source superpixel. If a source color is "full," the algorithm forces a switch to the next best match, ensuring the final image captures a diverse range of colors from the source.
3. Non-Local Color Fusion
To avoid a blocky appearance, the method employs a fusion framework inspired by non-local means. Each pixel's new color is a weighted average of several matched colors, calculated using a Mahalanobis-like distance that considers both spatial position and color similarity. This step acts as a built-in smoother, maintaining the original grain and exposure of the target image.
Key Results and Discussion
SCT is remarkably efficient. For a standard 480x360 image, the entire process takes less than one second (approximately 0.75s total), whereas variational models can take up to 120 seconds.
Qualitatively, SCT excels at preserving the target image's structure. By preventing palette collapse through the $\epsilon$ constraint, the method captures nuanced gradients (e.g., different shades of blue in a sky) rather than a single average color. For example, when transferring colors from a dark coastal landscape to a vibrant image of clownfish, the method successfully adopts the cool, deep tones while maintaining the intricate textures of the anemone.
Conclusion and Future Work
The SCT method provides a high-speed, visually competitive alternative to traditional color transfer techniques. While the method is sensitive to the initial superpixel segmentation and the $\epsilon$ parameter, it offers a massive speedup for high-resolution processing. Future work involves extending this framework to video color transfer by using "supervoxels" (3D clusters spanning across time) to ensure temporal consistency.
Summary updated