Abstract
Color space transformations, such as color-to-grayscale conversion or gamut mapping, often suffer from significant information loss due to dimensionality reduction or hardware constraints. This paper introduces a unified, cluster-based optimization framework designed to preserve original image contrast and detail. By grouping pixels into spatio-chromatic clusters and solving a linear least-squares problem on a cluster-based graph, the method maintains global consistency while avoiding the halo artifacts common in local filtering techniques.
Introduction
Transforming images between different color spaces is a fundamental task in digital imaging, ranging from printing color photos in black and white to displaying high-gamut content on standard monitors. The primary challenge in these transformations is information loss. Dimensionality reduction (e.g., RGB to grayscale) can lead to "metamerism," where distinct source colors become indistinguishable in the target space. Similarly, gamut constraints often result in "clipping," where out-of-range colors are flattened, destroying fine textures in highly saturated areas.
Existing approaches typically fall into two categories: global mappings, which are consistent but lose local detail, and local filters, which preserve detail but often introduce unrealistic "halo" artifacts. This research proposes a "semi-local" framework that bridges this gap by operating on image clusters rather than individual pixels.
Methodology: A Unified Optimization Framework
The proposed pipeline treats various color transformation problems—including color-to-gray, gamut mapping, and multispectral fusion—as a single optimization task. The process involves five key stages:
- Initial Projection: The source image is mapped to the target space using a standard "natural" mapping (e.g., CIE $L^*$ for grayscale). This provides a baseline for visual realism.
- Spatio-Chromatic Clustering: Pixels are grouped using $k$-means++ based on color similarity and spatial proximity. This ensures the optimization respects both global color relationships and local structures.
- Graph Construction: A graph is built where edges connect spatially neighboring clusters, representing the local contrast to be preserved.
- Optimization: A linear least-squares problem is solved to determine new colors for each cluster. The objective function balances a Target Term (preserving source contrast) and a Regularization Term (maintaining proximity to the initial natural mapping).
- Blending: Cluster movements are transferred back to individual pixels using a Mahalanobis distance-weighted blend to prevent posterization or visible boundaries.
Key Results and Applications
The framework was evaluated across diverse datasets, including the Kodak photography set and the Columbia Multispectral Image Database.
Color-to-Gray and Gamut Mapping
In color-to-gray conversion, the method excels at recovering details lost in standard luminance mappings. For example, in Monet’s Impression, Sunrise, the red sun—which has the same luminance as the surrounding blue sky—disappears in standard grayscale but is clearly preserved using the proposed method. In gamut mapping, the algorithm prevents texture clipping in highly saturated areas, such as the feathers of colorful birds or the petals of flowers.
Multispectral Fusion and Daltonization
The method effectively "reveals" hidden information in multispectral data. It can distinguish between real and artificial food that appears identical to the human eye or enhance text obscured by ink. Furthermore, for color-deficient viewers, the framework can perform "daltonization," shifting colors into functional dimensions to make Ishihara plate numbers visible.
Discussion and Future Work
The "semi-local" approach offers a significant advantage by capturing local contrast without the computational burden or artifacts of pixel-level local methods. By prioritizing relative contrast over absolute values, the algorithm "pushes" overlapping colors apart just enough to remain visible.
However, challenges remain. The method requires parameter tuning to balance detail versus naturalness and is computationally more intensive than simple global transforms. Future work could address temporal consistency for video applications to prevent cluster "flickering" between frames.
Summary updated