CSCI 5280 Project 3
Contrast Preserving Decolorization
Xiong Yuanjun
SID: 1155018814
2013.3.26
Decolorization - the process to transform a color image to a grayscale one - is a basic tool in digital printing, stylized black-and-white photography, and in many single channel
image processing applications
The decolorization function is defined as g = f(c), which is a mapping from color image c to gray image g.
The mapping function is further expressed as
where {m} is the set of monomial basis and {w} is the corresponding coefficients.
With the weak color order assumption, the energy function w.r.t parameter {w} can be finally written as
The overall algorithm is like this
The implementation is using MATLAB with the skeleton code provided. The main acceleration skill is to use 2D filter [1,-1] and [1;-1] to get the difference between neighbors.
Here we got 10 test images, with different contents. They are
Image 1 Image 2 Image 3 Image 4 Image 5
Image 6 Image 7 Image 8 Image 9 Image 10
In this program, there is one only one parameter we need to set. That is the variation of Gaussian functions, .
Here I use the
Then we get 10 output image, listed below. Their original image are shown next to each image.
Using the function ccpr(), we get the following ccpr value:
We can set that the CCPR significantly improved the contrast of decolorized picture.