Abstract
This paper introduces an efficient semi-automatic colorization algorithm for grayscale images that requires minimal user input. Operating within the Lab color space, the approach leverages a local linear optimization model derived from the Matting Laplacian matrix. A key innovation is the integration of diffusion distance instead of standard Euclidean distance, which effectively mitigates the "color bleeding" effect common in traditional methods. The resulting system allows for high-quality colorization through the solution of sparse linear equations, significantly reducing the required manual effort.
Introduction
Colorizing grayscale images is a fundamentally ill-posed problem in computer vision, as a single luminance value can correspond to a wide array of chrominance possibilities. While automatic methods have advanced, semi-automatic "scribble-based" methods remain popular for their precision. However, these methods often suffer from "color bleeding," where color leaks across object boundaries, necessitating extensive user interaction to define edges. This research addresses these challenges by proposing a structure-aware optimization model that respects the underlying geometry of the image.
Methodology
The proposed method functions in the Lab color space, where $L$ represents luminance and $a, b$ represent color channels. The core of the algorithm rests on three technical pillars:
1. Local Linear Model
The authors assume that within a small local neighborhood, the color components ($a$ and $b$) are linear functions of the luminance ($L$). This constraint ensures that the color intensity naturally follows the brightness variations of the original image, preserving texture and detail while maintaining the relationship between brightness and color intensity.
2. Matting Laplacian Optimization
The colorization task is framed as a cost-minimization problem. By employing the Matting Laplacian matrix—originally developed for image matting (separating foreground from background)—the authors can solve for unknown color values by solving a large, sparse system of linear equations. This formulation provides a mathematically rigorous way to ensure smooth color transitions while respecting image structure, and it is computationally efficient due to the sparsity of the matrix.
3. Diffusion Distance
The most significant contribution is the replacement of Euclidean distance with diffusion distance when constructing the Matting Laplacian. Unlike Euclidean distance, which only considers spatial proximity, diffusion distance is derived from the image's spectral properties. It measures the "distance" between pixels by following the underlying manifold of the image data. This makes it significantly harder for color to "jump" across structural boundaries, even in low-contrast regions where traditional algorithms often fail.
Results and Discussion
The algorithm was evaluated against standard benchmarks, including established methods by Levin et al. (2004) and Yatziv et al. (2006). Key findings include:
- Reduced Color Bleeding: Qualitative analysis shows that the use of diffusion distance allows the model to respect fine edges, such as those found in flower petals or complex natural scenes, far better than Euclidean-based models.
- Interaction Efficiency: Experimental data suggests that the proposed method can achieve comparable or superior results with 30-50% fewer user scribbles compared to the classic Levin algorithm.
- Mathematical Robustness: The paper provides a formal derivation showing that their local linear optimization is equivalent to solving a Matting Laplacian system, grounding the intuitive "color-follows-brightness" idea in rigorous optimization theory.
Conclusion
By combining a local linear model with diffusion-distance-based optimization, this research provides a robust framework for image colorization. The method successfully reduces the manual burden on users while producing high-fidelity results that respect the intrinsic geometry of the image. While the calculation of diffusion maps introduces some initial computational overhead, the efficiency of the sparse linear solver makes the process suitable for interactive use. Future work may involve further automating the scribble placement process or integrating semantic priors to handle more complex scenes.
Summary updated