Abstract
In this paper, we propose a new image decolorization method based on image clustering and weight optimization. First, we smooth the color image and cluster it into several classes to obtain class centers, where each center represents a distinctive color. These centers are then sorted by brightness. Assuming the decolorized grayscale image is a linear combination of the RGB channels, we formulate an optimization problem that maps sorted class centers to grayscale values satisfying a uniform distribution. This problem is solved efficiently via quadratic programming. Experiments on two popular datasets demonstrate that our method is competitive with state-of-the-art decolorization techniques.
Introduction
Converting a vibrant color image into a meaningful grayscale representation—a process known as decolorization—is a fundamental task in image processing. Because it involves mapping a 3D color space (Red, Green, Blue) onto a 1D grayscale axis, information loss is inevitable. The primary challenge lies in preserving the "soul" of the image: its edges, contrast, and the distinctiveness of different chromatic regions.
Traditional decolorization methods often fall into two categories. Global methods apply a uniform mapping to every pixel; while computationally efficient, they frequently "wash out" local details when different colors map to the same gray level. Local methods attempt to preserve local contrast by treating pixels differently based on their neighborhood, but this can introduce artifacts or "halos" in regions that should remain uniform. This paper introduces a hybrid approach that maintains global consistency while ensuring local sensitivity through a novel smoothing and clustering pipeline.
The Proposed Method
The proposed pipeline bridges the gap between global and local methods through a three-stage process designed for both efficiency and visual fidelity.
- $L_0$ Smoothing: The process begins with an $L_0$ gradient minimization filter. This "pre-processor" flattens textures while strictly preserving sharp edges. By reducing the number of unique colors in the image, it simplifies the subsequent clustering step without losing structural integrity.
- Fast Fuzzy C-Means (FFCM) Clustering: Rather than clustering every pixel—a computationally expensive task—the authors perform clustering in the range domain (color values). This identifies a set of "class centers" that capture the most significant chromatic information of the scene.
- Weight Optimization via Quadratic Programming: The final grayscale image $g$ is modeled as a linear combination of the RGB channels: $g = w_1R + w_2G + w_3B$. To determine the optimal weights $w$, the representative colors are sorted by brightness (Euclidean norm) and forced to map to a uniform distribution of gray values. This ensures maximum contrast and respects the relative lightness of the original colors.
Key Insights and Ideas
A core innovation of this work is the use of smoothing as a computational accelerator. By simplifying the color palette early on, the clustering algorithm runs significantly faster.
Furthermore, the authors leverage the principle that a uniformly distributed grayscale image inherently possesses superior contrast. By mathematically "forcing" representative colors toward a uniform spread, the algorithm guarantees a visually striking result. Sorting the cluster centers before mapping prevents unnatural-looking color inversions, ensuring that a bright yellow in the original doesn't end up darker than a deep blue in the final gray image.
Experimental Results
The method was evaluated on two industry-standard benchmarks: Cadík’s Dataset (24 challenging images) and COLOR250 (250 diverse natural and digital images).
- Efficiency: The combination of $L_0$ smoothing and FFCM is approximately 11 to 12 times faster than applying standard Fuzzy C-Means clustering directly to the raw image.
- Quantitative Performance: Using the E-score metric for contrast preservation, the proposed method consistently ranked among the top performers across various thresholds compared to eight leading state-of-the-art methods.
- User Preference: A subjective study involving 20 participants showed that the proposed method was preferred in over 50% of cases, highlighting its superior visual appeal and natural appearance.
Conclusion and Future Work
While the method is robust and efficient, some limitations remain. The E-score does not always perfectly align with human perception, and processing a standard 390x390 image takes roughly 9 seconds—still slightly too slow for real-time video applications. Additionally, processing video frames individually can lead to temporal flickering. Future research will focus on optimizing the algorithm for speed and ensuring temporal consistency to enable high-quality video decolorization.
Summary updated