Abstract
Image learning and colorization are hot spots in the multimedia domain. Inspired by the learning capability of humans, in this paper, we propose an automatic colorization method with a learning framework. This method can be viewed as a hybrid of exemplar-based and learning-based methods, and it decouples the colorization process and learning process so as to generate various color styles for the same gray image. The matching process in the exemplar-based colorization method can be regarded as a parameterized function, and we employ a large amount of color images as the training samples to fit the parameters. During the training process, the color images are the ground truths, and we learn the optimal parameters for the matching process by minimizing the errors in terms of the parameters for the matching function. To deal with images with various compositions, a global feature is introduced, which can be used to classify the images with respect to their compositions, and then learn the optimal matching parameters for each image category individually. What's more, a spatial consistency based post-processing is design to smooth the extracted color information from the reference image to remove matching errors. Extensive experiments are conducted to verify the effectiveness of the method, and it achieves comparable performance against the state-of-the-art colorization algorithms.
Introduction
Image colorization is a classic "ill-posed" problem—there are many valid ways to color a grayscale photo of a flower or a landscape. Current solutions generally fall into three camps. Interaction-based methods require users to manually "scribble" colors onto the image; while accurate, this is labor-intensive and requires artistic skill. Exemplar-based methods transfer colors from a similar reference image, which is flexible but highly sensitive to how well the two images' structures match. Finally, learning-based methods use deep neural networks to learn colorization from massive datasets. While automatic, these models often produce a single "average" result and struggle when the input image differs significantly from the training data.
The authors identify a gap: how to achieve the automation of learning-based methods while retaining the artistic control and style variety of exemplar-based approaches. They propose a hybrid framework that decouples the learning of how to match features from the actual style (the colors themselves), allowing for high-quality, controllable colorization.
Methodology
The core innovation of this research is a hybrid framework that treats the matching process between a grayscale image and a reference color image as a parameterized function. By making feature weights learnable, the system adapts its matching strategy based on the type of scene it's looking at.
Global Feature Clustering
To handle diverse image types, the system uses Grey Level Co-occurrence Matrix (GLCM) features to represent global structure. It then clusters images into five categories using Affinity Propagation. This categorization is key to learning optimal matching parameters for each image category individually, such as "delicate" flowers versus "busy" cityscapes.
Parameterized Local Matching
Instead of using fixed weights for local features (Intensity, Standard Deviation, Gabor, and SURF), the authors treat these weights as parameters to be optimized. For each image category, they use the Levenberg-Marquardt algorithm to find the "sweet spot" weights that minimize colorization error. This treats matching as an optimization problem, addressing the common failure point of poor feature weighting in traditional exemplar methods.
Spatial Consistency and Post-Processing
The matching happens at the super-pixel level to reduce noise and computational complexity. After initial color transfer, a Conditional Random Field (CRF) is used as a post-processing step to smooth out matching errors and ensure that neighboring regions with similar textures have consistent colors. Finally, the colors are propagated from the centers of super-pixels to the rest of the image using a standard optimization-based interpolation.
Experimental Results
The model was benchmarked against several state-of-the-art (SOTA) methods, including Zhang et al. (CNN-based) and He et al. (Deep Exemplar-based), using a curated dataset of 1,000 training pairs and 500 test pairs.
Quantitative and Qualitative Performance
In a user study with 30 volunteers, the proposed method was chosen as the "most reasonable" 18.94% of the time, slightly edging out the deep exemplar-based SOTA by He et al. (18.90%) and significantly outperforming pure CNN methods. Quantitatively, using the CIEDE2000 color difference metric, the authors showed that their learned parameters resulted in significantly lower error rates compared to randomly generated weights. The method proved particularly effective at distinguishing between foreground and background (e.g., coloring a lotus pink and its leaves green), where other methods often bled colors across boundaries.
Conclusion
This framework successfully combines the automation of learning-based methods with the style variety of exemplar-based approaches. By decoupling style from the model, users can change the entire color palette of an image simply by swapping the reference image, without retraining the model. While the system currently requires manual reference selection and faces minor color bleeding at imperfect super-pixel boundaries, future work aims to integrate automatic image retrieval and GPU acceleration for real-time processing.
Summary updated