value for each pixel. For example, Matlab (MAT-
LAB, 2010) eliminates the hue and saturation com-
ponents from a color pixel, and retain the luminance
component as the gray value for each pixel. (Neu-
mann et al., 2007) conducted a large scale user study
to identify the general set of parameters which per-
form best on most images, and used these parameters
to design their decolorization function. Such meth-
ods support very fast computation for the gray val-
ues, in which the computational complexity is O(1).
However, given that the decolorization function is not
tailored to the input image, decolorization results of
these methods often provide does not maintain maxi-
mal information presented in the color image.
Modern approaches to convert a color image to
its gray representation tailor a decolorization function
to the color image. Such approaches can be clas-
sified into two main categories, local mapping and
global mappings. In local mapping approaches, the
decolorization function applies different color-to-gray
mappings to image pixels based on their spatial posi-
tions. For example, (Bala and Eschbach, 2004) en-
hanced color edges by adding high frequency com-
ponents of chromaticity to the luminance component
of a gray image. (Smith et al., 2008) used a local
mapping step to map color values to gray values, and
utilized a local sharpening step to further enhance the
gray image. While such methods to enhance the lo-
cal features can improve the perceptually quality of
the gray representation, a weakness of these methods
is that they could distort the appearance of uniform
color regions. This may results in haloing artifacts.
Global mapping methods use a decolorization
function that applies the same color-to-gray mapping
to all image pixels. (Rasche et al., 2005) proposed an
objective function which combines the needs to main-
tain contrast of an image with consistency of the lumi-
nance channel. A constrained multi-variate optimiza-
tion framework is used to find the gray image which
optimizes the objective function. (Gooch et al., 2005)
constrained their optimization on neighboring pixel
pairs, where they sought to preserve color contrast be-
tween pairs of image pixels. (Kim et al., 2009) devel-
oped a fast decolorization method which seeks to pre-
serve image feature discriminability and reasonable
color ordering. Their method is based on the obser-
vation that more saturated colors are perceived to be
brighter than their luminance values. Recently, (Lu
et al., 2012) proposed a method which first defines a
bimodal objective function, and then uses a discrete
optimization framework to find a gray image which
preserves color contrast. As one weakness, (Gooch
et al., 2005; Kim et al., 2009; Lu et al., 2012) op-
timize contrast between neighboring connected pixel
pairs and does not consider color/gray differences be-
tween non-connected pixels. Hence, different col-
ored regions that are non-connected may be mapped
to similar gray values by their methods. This results
in the loss of appearance information in the gray im-
age. Our framework considers both connected and
non-connected pixel pairs to find the optimal decol-
orization function of an image and thus does not suf-
fer from this shortcoming.
2 OUR APPROACH
Fig. 1 outlines our method which comprises four
main modules. Given a color image, we first extract
unique colors from the image. We compute the cor-
responding gray values of these color values using a
currently considered decolorization function. Based
on these color and gray values, we compute a color-
gray feature to encapsulate the color and gray contrast
information into a single representation. The best
possible color-gray feature is computed and we eval-
uated the quality of the currently considered decol-
orization function by comparing its color-gray feature
with the optimal one. Here, a coarse-to-fine search
strategy is employed to search for a decolorization
function which provides the color-gray feature that is
a closest fit to the optimal feature. In this aspect, our
method explicitly drives the search towards the gray
image which maximally preserves the color contrast
in the form of gray contrast. This function is then
used to convert the color image into its gray represen-
tation. We elaborate on these modules next.
2.1 Extracting Unique Colors
Given an input color image, we first extract its unique
color values by applying the robust mean shift clus-
tering method of (Cheng, 1995) on its color values.
Let
{
c
i
}
denote the set of clusters formed. We do not
remove weakly populated clusters, but instead con-
sider all mean shift clusters for subsequent process-
ing. Consequently, the color clusters represent not
only dominant colors of the image, but collectively
represent the unique colors of the image.
We highlight three advantages of using these
unique colors in the decolorization framework. First,
it affords our method with lower computational cost
as compared to methods which operate on a per-pixel
basis, since the number of unique colors is typically
much less than the number of image pixels. Second,
as the clusters represent all unique colors that are ex-
tracted from the image, therefore it does not concen-
trate the color-to-gray optimization on only the dom-
ICPRAM2014-InternationalConferenceonPatternRecognitionApplicationsandMethods
454