원시데이터 수집 시스템
선정목록으로

Smoothing and Clustering Guided Image Decolorization

관련 필름·전자재료 · (15) 디스플레이 패널재료

기본 정보

저자
  1. Fang Li — East China Normal University
  2. Yuan-Ming Zhu — East China Normal University
DOI
10.5566/ias.2348
저널
Image Analysis & Stereology
발행년도
2021
발행기관
Slovenian Society for Stereology and Quantitative Image Analysis
피인용수
3
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.5566/ias.2348
토픽
Color Science and Applications
OpenAlex ID
W3150487204

평가 내용

관련도
관련
사업분야
필름·전자재료 · (15) 디스플레이 패널재료
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '필름·전자재료 > 디스플레이 패널재료' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

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 and get the class centers. Each center can represent a distinctive color in the image. Then the class centers are sorted according to their brightness measured by Euclidean norm. By assuming that the decolorized grayscale image is a linear combination of the three channels of the color image, we propose an optimization problem by forcing the sorted class centers to correspond to specified grayscale values satisfying uniform distribution. Numerically, the problem is solved by quadratic programming. Experiments on two popular data sets demonstrate that the proposed method is competitive with the state-of-the-art decolorization method.

본문 41,212자

본문 펼치기
Image Anal Stereol 2021;40:17-27 doi: 10.5566/ias.2348 _Original Research Paper_ ## SMOOTHING AND CLUSTERING GUIDED IMAGE DECOLORIZATION #### FANG LI � AND YUANMING ZHU School of Mathematical Sciences and Shanghai Key Laboratory of PMMP, East China Normal University, Shanghai, China e-mail: fli@math.ecnu.edu.cn, ymzhu385@126.com _(Received February 18, 2020; revised December 8, 2020; accepted February 2, 2021)_ 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 and get the class centers. Each center can represent a distinctive color in the image. Then the class centers are sorted according to their brightness measured by Euclidean norm. By assuming that the decolorized grayscale image is a linear combination of the three channels of the color image, we propose an optimization problem by forcing the sorted class centers to correspond to specified grayscale values satisfying uniform distribution. Numerically, the problem is solved by quadratic programming. Experiments on two popular data sets demonstrate that the proposed method is competitive with the state-of-the-art decolorization method. Keywords: Clustering, contrast, decolorization, optimization, smoothing. ### INTRODUCTION Image decolorization, also known as color-togray, aims to convert a color image into a grayscale one. It is widely used in single-channel image and video processing, digital printing, and photography. Decolorization maps 3D color space into 1D space, such that the information loss is inevitable. Hence the main focus of decoloration is preserving the salient features such as edges and contrast. The existing decolorization methods can be roughly categorized into global and local methods. Local methods treat the pixels with the same color differently in order to enhance local chrominance edges. Bala and Eschbach (2004) enhanced the color edges by adding high-frequency components of chromaticity to the lightness channel. Neumann _et_ _al._ (2007) introduced an efficient gradient-based color to gray transformation algorithm based on Coloroid color space. Smith _et_ _al._ (2008) proposed a twostep decolorization method that combines a global mapping based on perceived lightness with local chromatic contrast enhancement. Gooch _et_ _al._ (2005) proposed to minimize the differences between the chrominance and luminance values of pixel pairs. Jin _et_ _al._ (2014) proposed a variational approach by maximizing variance. These local methods are good at enhancing local contrast; however, the disadvantage is that they may occasionally distort the appearance of constant color regions Kim _et al._ (2009). Global methods apply a constant mapping function on all the image pixels such that pixels of the same color are mapped into the same grayscale value. Rasche _et_ _al._ (2005) used a linear color mapping function to obtain the optimal conversion by imposing constraints on different color pixel pairs. Grundland and Dodgson (2007) proposed a parametric piecewise linear mapping algorithm for image decolorization by adjusting the grayscale value with the chrominance. Kim _et_ _al._ (2009) proposed a non-linear global mapping function for decolorization and estimated the parameters by minimizing the color differences. Lu _et_ _al._ (2012a) employed a bimodal energy function to raise a more flexible contrast preserving constraint. Then Lu _et al._ (2012b) proposed a real-time decolorization algorithm by imposing constraints on weights based on the model in Lu _et_ _al._ (2012a). The limitation of global methods is that they cannot fully capture the details in a globally unified manner, which may lead to local contrast loss. Many methods use both global and local information. Lu _et_ _al._ (2014) improved their model in Lu _et_ _al._ (2012a) by introducing local and nonlocal constraints. Du _et al._ (2015) proposed a saliencyguided decolorization method using region-based optimization, in which the saliency combines both the local and global features of the images. Wang _et_ _al._ (2018) proposed a global mapping to achieve a fast computation on color order, and then a local decolorization algorithm is designed on the basis of the global linear mapping so that both color and spatial information are preserved. Zhao _et_ _al._ (2018) proposed a new multimodal contrast-preserving measure with a multimodal Gaussian distribution to relax the constraint of color contrast, which preserves both the local color contrast and the non-local color 17 contrast. Ji _et_ _al._ (2016) introduced a new bandpass filter for color-to-gray conversion. Liu _et_ _al._ (2015; 2019; 2017a;b) proposed several effective methods for image decolorization. Liu _et_ _al._ (2015) proposed a gradient correlation similarity measurebased decolorization model (GcsDecolor). Liu _et_ _al._ (2017a) proposed a semiparametric decolorization method (SPDecolor) by decomposing the first-order and the two-order color space. Liu _et_ _al._ (2019) presented a weighted projection maximum function to model the decolorization procedure. Liu _et_ _al._ (2017b) introduced the Log-Euclidean metric for decolorization. Recently, deep learning was introduced to image decolorization. Hou _et_ _al._ (2017) proposed a convolutional neural network for image decolorization with a perceptual loss. Zhang and Liu (2018) proposed a contrast preserving image decolorization method based on convolutional neural network which combining global features and local semantic features. Liu and Zhang (2019) designed a new convolutional neural network framework combining both local features and exposure features of the color image. Liu and Leung (2018) proposed a variable augmented neural network for decolorization. Clustering of the color image is included in some methods Lau _et_ _al._ (2012); Du _et_ _al._ (2015). Lau _et_ _al._ (2012) proposed to cluster the image and then construct a graph based on each segment for decolorization. The method is semi-local because it operates on clusters, modifying local contrasts between clusters. Du _et_ _al._ (2015) proposed to use the clustered superpixels to define region contrast saliency in their decolorization energy. It contributes to the region contrast preserving in the decolorization process. Experimentally, these methods work well on some test images. However, the overall performance on large datasets is still limited. In this paper, we propose a novel smoothing and clustering guided decolorization method to reduce F. LI _et al._ : _Guided image decolorization_ contrast loss in the global method. As is known, we cannot assign different gray values for different colors if the number of different colors is larger than the number of all the gray values. However, there are usually not many distinctive colors in a specific image since many pixels have similar colors. This observation motivates us to assign distinctive gray values for only distinctive colors. Our method has three steps. Firstly, the color image is smoothed by _L_ 0 smoothing method such that the colors are largely reduced. Then the smoothed image is segmented into several regions by using a revised fast fuzzy C-means method. The class centers represent distinctive colors, which are sorted according to their Euclidean norm. Then we form an optimization problem by requiring that the class centers are mapped into grayscale values satisfying uniform distribution. The parametric linear mapping is adopted for color-to-gray conversion. Experiments and comparisons are conducted on two popular datasets to verify the effectiveness of our method. ### OUR METHOD We describe in this section our decolorization method. In Fig. 1, we show the flowchart of our method by displaying all the main intermediate steps. The proposed method includes three steps: smoothing, clustering, and decolorization. In the following, we show the details of each step. SMOOTHING Smoothing is a preprocess for many image problems. In our method, the aim of using smoothing is to reduce the colors of the given color image. As we know, RGB color space is 3D and contains 256 <sup>3</sup> colors generally. Natural images usually contain tens of thousands of colors. Through the smoothing step, the number of colors can be largely reduced, which is useful for accelerating the next clustering step. Fig. 1: The flowchart of our method. Fig. 1a is from Cad´ık’s dataset Cad´ık (2008). 18 Image Anal Stereol 2021;40:17-27 There exist many smoothing methods in the literature; some representative methods are Xu _et_ _al._ (2011); Min _et al._ (2014); Ham _et al._ (2017). Xu _et al._ (2011) proposed an _L_ 0 gradient minimization method for image smoothing, which can preserve sharp edges globally ( _L_ 0 smoothing for short)). Min _et_ _al._ (2014) proposed a fast global image smoothing method based on weighted least squares (WLS for short). Ham _et al._ (2017) proposed a novel SD (for static/dynamic) filter for image smoothing, which jointly leverages structural information from guidance and input images (SDF for short). We choose _L_ 0 smoothing method Xu _et_ _al._ (2011) as a baseline in this step. Noting that choosing other smoothing techniques also works. The influence of different smoothing methods in our method will be quantitatively evaluated in the experimental section. The _L_ 0 smoothing method can be described as follows. Assume _I_ 0 is the given image. _L_ 0 smoothing aims to solve the following problem: CLUSTERING Image clustering aims to partition an image into several disjoint regions such that pixels in the same region share some uniform characteristics such as intensity, color, and texture. Fuzzy c-means (FCM) clustering method Bezdek _et_ _al._ (1984) is a widely used method for image clustering. The standard FCM model for partitioning image _I_ into _N_ class is given by _N_ # min ∑ _i_ =1 Ω <sup>(</sup> <sup>_I_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_ci_</sup> <sup>)2</sup> <sup>_u_</sup> _i_ <sup>2</sup> _i_ <sup>2(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_dx_</sup> (2) where Ω is the image region, _{ci}_ <sup>_N_</sup> _i_ where Ω is the image region, _{ci}_ <sup>_N_</sup> _i_ =1 are the class centers and _{ui}_ <sup>_N_</sup> _i_ =1 <sup>are</sup> <sup>membership</sup> <sup>functions</sup> min _I_ <sup>_λ_</sup> <sup>_∥_</sup> <sup>∇</sup> <sup>_I_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_∥_</sup> <sup>0 +</sup> <sup>_∥I_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_I_</sup> <sup>0(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_∥_</sup> 2 <sup>2</sup> class centers and _{ui}_ <sup>_N_</sup> _i_ =1 <sup>are</sup> <sup>membership</sup> <sup>functions</sup> satisfying some constraints. The computational complexity of the FCM algorithm increases as the image size increases. Szilagyi _et_ _al._ (2003) proposed a faster enhanced FCM algorithm for magnetic resonance (MR) image segmentation. The basic idea is constructing a new image based on the given MR image and then performing the FCM in the range domain of the new image. Since they consider gray images, the range domain is 1D. In this paper, we generalize their idea to color images. The range domain of a color image is 3D. Assume that the range domain contains _L_ different colors. The variable in the range domain is denoted as _ξr ∈_ [0 _,_ 255] <sup>3</sup> _,_ _r_ = 1 _,...,_ _L_ where _r_ is the index. Then we minimize the following energy function: min 2 <sup>2</sup> <sup>_,_</sup> (1) where _x ∈_ Ω and Ω is the 2D image region. The first term is the _L_ 0 regularization term, which requires that the number of pixels with non-zero gradient is as small as possible. The second term is the fidelity term, which requires that the smoothing result is close to the given image. _L_ 0 smoothing leads to cartoon-like images with sharp edges. In the decolorization process, these sharp edges are the key features that should be preserved. (a) (b) Fig. 2: Smoothing of a natural color image, _λ_ = 0 _._ 01. (a) Original color image with size 260 _×_ 390 (101400 pixels, 40582 different colors); (b) the result of _L_ 0 smoothing (15577 different colors). In Fig. 2, we show the _L_ 0 smoothing result of a natural image in Cad´ık’s dataset Cad´ık (2008). It can be seen that the main content and sharp edges are preserved in Fig. 2b, while the colors are reduced from 40582 to 15577. That is, 62% of the colors are reduced. For cartoon-like images, the smoothing effect is not so obvious. See Fig. 1, for example. After smoothing, the colors reduce from 2783 to 2114. However, cartoon images are much easier to segment than natural images since the number of colors in cartoon images is usually small. _L_ # ∑ _r_ =1 _N_ # min ∑ _i_ =1 3 # ∑ _j_ =1 _vr_ ( _ξr j −_ _cij_ ) <sup>2</sup> _u_ <sup>2</sup> _ir_ (3) where _vr_ is the number of pixels with the same color _ξr_, which can be seen as the weight of _ξr_, _j_ denotes color channel, _ci_ denotes the _i_ -th class center vector. The numerical algorithm is similar to the FCM algorithm, so we omit the details. The revised method is much faster than the standard FCM for color image clustering, so we call this method as fast FCM (FFCM). (a) (b) (c) Fig. 3: Clustering of color images in Fig. 2, class number is _N_ = 6. (a) Result of the standard FCM on the original image in Fig. 2a, computational time=3.01s; (b) result of FFCM on the original image in Fig. 2a, computational time=0.86s; (c) result of FFCM on the smoothed image in Fig. 2b, computational time=0.26s. 19 In Fig. 3, we compare the clustering results of FCM and FFCM. Note that for FCM, we show ∑ <sup>_N_</sup> _i_ <sup>_ciui_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>as</sup> <sup>the</sup> <sup>final</sup> <sup>clustering</sup> <sup>results.</sup> <sup>For</sup> <sup>FFCM,</sup> ∑ <sup>_N_</sup> _i_ <sup>_ciui_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>as</sup> <sup>the</sup> <sup>final</sup> <sup>clustering</sup> <sup>results.</sup> <sup>For</sup> <sup>FFCM,</sup> we let the membership value of pixel _x_ in class _i_ as _uir_ where _I_ ( _x_ ) = _ξr_ . Then the membership functions _{_ ˜ _ui_ ( _x_ ) _}_ <sup>_N_</sup> _i_ =1 <sup>can</sup> <sup>be</sup> <sup>defined</sup> <sup>for</sup> <sup>each</sup> <sup>pixel</sup> <sup>_x_</sup> <sup>such</sup> <sup>that</sup> _{_ ˜ _ui_ ( _x_ ) _}_ <sup>_N_</sup> _i_ =1 <sup>can</sup> <sup>be</sup> <sup>defined</sup> <sup>for</sup> <sup>each</sup> <sup>pixel</sup> <sup>_x_</sup> <sup>such</sup> <sup>that</sup> the final clustering is given by ∑ <sup>_N_</sup> _i_ <sup>_ci_</sup> <sup>˜</sup> <sup>_ui_</sup> <sup>(</sup> <sup>_x_</sup> <sup>). Visually, the</sup> the final clustering is given by ∑ <sup>_N_</sup> _i_ <sup>_ci_</sup> <sup>˜</sup> <sup>_ui_</sup> <sup>(</sup> <sup>_x_</sup> <sup>). Visually, the</sup> result of FCM and FFCM are similar; see Fig. 3a and Fig. 3b. The result of FFCM on the smoothed image in Fig. 3c seems good. Meanwhile, FFCM saves 72% computational time than FCM. When applying FFCM on the smoothed image, we can save another 70% computational time. On the whole, our FFCM together with _L_ 0 smoothing is about 11 to 12 times faster than FCM without smoothing. In order to evaluate the performance of FCM and FFCM on image segmentation, we use the standard test color images set from the Berkeley Segmentation Dataset BSDS500 [https://www2.](https://www2.eecs.berkeley.edu/Research/Projects/CS/vision/bsds/.) [eecs.berkeley.edu/Research/Projects/](https://www2.eecs.berkeley.edu/Research/Projects/CS/vision/bsds/.) [CS/vision/bsds/.,](https://www2.eecs.berkeley.edu/Research/Projects/CS/vision/bsds/.) which contains 100 color images in the test folder. The segmentation number is fixed as 10. The PSNR of FCM and FFCM segmentation results are 29.25dB and 29.29dB, respectively. The total computational time of FCM and FFCM are 1575s and 195s, respectively. Actually, as a preprocessing step for our proposed decolorization method, FCM and FFCM yield similar final decolorization results; see Table 1 in the experimental section. However, with FFCM, the algorithm is much faster than using FCM. CLUSTERING-GUIDED DECOLORIZATION Our motivation is that we expect the distinctive colors can be decolorized into distinctive gray values. For example, in Fig. 1, the image is segmented into four classes. The color values of the four cluster centers are displayed in Fig. 1d. These four colors can be seen as distinctive colors in the given color image. Our aim is to assign four distinctive gray values to these four colors. Intuitively, the four distinctive gray values should be equally distributed in [0,255]. Actually, it has been proved that the uniformly distributed gray image has the best contrast Bertalmio _et al._ (2007). Hence we choose the four gray values as 255, 170, 85, 0, see Fig. 1f. The remaining problem is how to correspond the four colors to the four gray values. As an output of the FFCM clustering method, the class centers have no order in Fig. 1d. So we sort the colors according to the brightness of the colors. We choose to measure the brightness of the colors by calculating the Euclidean norm of the color vector. Then we get the sorted colors in Fig. 1e, where 20 F. LI _et al._ : _Guided image decolorization_ brightness decreases from top to bottom. Then we have constructed the correspondence of the four colors in Fig. 1d with the four gray values in Fig. 1f. Let us go back to our decolorization problem. Following the existing global decolorization methods, we assume that the decolorized gray image _g_ can be represented by a linear combination of the three channels of the color image, i.e., _g_ ( _x_ ) = _w_ 1 _R_ ( _x_ )+ _w_ 2 _G_ ( _x_ )+ _w_ 3 _B_ ( _x_ ) (4) where _R,_ _G,_ _B_ are the red, green and blue channels of the given color image _I_, and _wi,_ _i_ = 1 _,_ 2 _,_ 3 are three scalar weights. The decolorization problem is to find the optimal weights. Assume the class number is _N >_ 1. After clustering, we get _N_ sorted colors which can be formulated as an _N ×_ 3 matrix A . Each row of A denotes a color vector. As stated above, we expect that the sorted colors correspond to uniformly distributed gray values in [0,255] one by one. The gray value vector can be written as b = [255 _,_ ( _N −_ 2) _a,_ ( _N −_ 3) _a,_ _···,_ 2 _a,_ _a,_ 0] <sup>_T_</sup> _,_ (5) where _a_ is the maximum integer less than 255 _/N_ . For example, in Fig. 1e, we have _N_ = 4, _a_ = 85 and then b = [255 _,_ 170 _,_ 85 _,_ 0] <sup>_T_</sup> . To force the correspondence of the colors in matrix A with the gray values in vector b, based on equation (4), we propose to optimize the weight w = [ _w_ 1 _,_ _w_ 2 _,_ _w_ 3] <sup>_T_</sup> by solving the following least square problem with constraints: min w _∥_ Aw _−_ b _∥_ <sup>2</sup> 2 _s.t._ 0 _≤_ _wi ≤_ 1 _,_ _i_ = 1 _,_ 2 _,_ 3 _,_ _w_ 1 + _w_ 2 + _w_ 3 = 1 _._ (6) This minimization problem can be easily solved by quadratic programming with the MATLAB routine ”quadprog”. Then the final decolorization result _g_ is given by formula (4) with the optimal weights determined by (6). As an example, in Fig. 1, we set the class number as _N_ = 4, then we have    255 170 85 0  A =  144 _._ 42 73 _._ 99 237 _._ 98 224 _._ 94 31 _._ 44 4 _._ 94 118 _._ 87 118 _._ 89 120 _._ 37 104 _._ 37 125 _._ 94 2 _._ 65   _,_ b =  _._ By calling “quadprog” in MATLAB with inputs A _,_ b and constraints, we get the solution w = �0 _._ 5111 _,_ 0 _._ 0000 _,_ 0 _._ 4889� _T ._ Finally, the output gray image is given by the linear combination of the three channels of the color image with weights 0 _._ 5111 _,_ 0 and 0.4889, which is shown in Image Anal Stereol 2021;40:17-27 Fig. 1g. It is obvious that distinctive colors in Fig. 1a is also distinctive in the gray image Fig. 1g. Remark that in our method the colors of the class centers are ordered according to their brightness measured by Euclidean distance. If their brightness are the same, no ordering is possible. In this case, we omit the color ordering step. The minimization problem in (6) can also be solved by quadratic programming. For example, we construct an RGB image with only red (255,0,0), green (0,255,0), and blue (0,0,255) colors in Fig. 4a. Then we have   255 127 _._ 5 0   _,_ b =    _._ A =  255 0 0 0 255 0 0 0 255 The solution of (6) is given by w = [0 _._ 75 _,_ 0 _._ 25 _,_ 0] <sup>_T_</sup> . The decolorized image Fig. 4b shows that our method can distinguish the three colors in the gray image. (a) color image (b) our result (N=3) Fig. 4: Test on a synthetic image with uniform brightness. (a) The color image with pure R, G, and B colors; our final decolorization result ( _N_ = 3). ### EXPERIMENTAL RESULTS In this section, we conduct extensive experiments to evaluate our method and compare it with some representative local and global decolorization approaches using the benchmarking Cad´ık’s dataset Cad´ık (2008) and COLOR250 dataset Lu _et al._ (2014). Cad´ık’s dataset contains 24 color images, and most of them are synthetic images. COLOR250 contains 250 color images, including natural images, digital charts, logos, and illustrations. We compare our method with eight existing methods CIE-Y, Gooch05 Gooch _et_ _al._ (2005), Smith08 Smith _et_ _al._ (2008), Lu12 Lu _et_ _al._ (2012a), Gcs15 Liu _et_ _al._ (2015), Du15 Du _et_ _al._ (2015), SP17 Liu _et_ _al._ (2017a), and Wpm17 Liu _et_ _al._ (2019). Note that there are two algorithms GcsDecolor1 and GcsDecolor2 in Liu _et_ _al._ (2015), we choose the better one GcsDecolor2. Similarly, there are two algorithms WpmDecolor1 and WpmDecolor2 in Liu _et_ _al._ (2019), we choose the better one WpmDecolor2. For methods CIE-Y, Gooch05 and Smith08, their results on Cad´ık’s dataset are provided in Cad´ık (2008), while their results on COLOR250 are provided in Lu _et_ _al._ (2014). The results of Lu12, Gcs17, Du15, SP17 and Wpm17 are either provided by the authors or generated by their source codes with default parameters. Our method is performed under Windows 10 and MATLAB R2018a with Intel Core i7-8500 CPU@1.80GHz @1.99GHZ and 32GB memory. SENSITIVITY STUDY In this subsection, we test the sensitivity of the proposed method in terms of the parameters, noise, structure and video sequence images. In our method, there are three parameters. The default parameters are given as follows. In the _L_ 0 smoothing step, _λ_ is the regularization parameter that controls the smoothness of the resulted image. The larger _λ_ is, the smoother the result is. The cluster number is the only parameter in the clustering step. We let _N_ varies from 2 to 10 empirically. Then for each test image, we get nine decolorization result images. To choose the best decolorization result in the nine images, we use the E-score measure. Note that there is a threshold integer _τ_ in the E-score calculation, which denotes the color or grayscale difference of pixel pairs. We set _τ_ = 9 and select the decolorization image with the highest E-score as our final result. Let us study the sensitivity of our method to the parameters. Firstly, we test the influence of class number _N_ . In Fig. 5, we show the clustering and decolorization results of image Fig. 1a in Cad´ık’s dataset with different _N_ varies from 2 to 10. The results of _N_ = 2 and _N_ = 3 are similar, where the black regions cannot be distinguished. The results of the others seem similar. By careful observation, we find that the results are quite good for _N_ = 4 _,_ 8 _,_ 10, which have good contrast and all the distinctive colors have distinct gray values. The E-scores are reported below each gray image. When _N_ = 4, the decolorized image has the highest E-score and good visual quality, which is chosen as the final result of the proposed method. Next, we test the sensitivity of parameters _λ_, _τ_ and noise in our method. In Fig. 6 and Fig. 7, we test our method on two images in Cad´ık’s dataset with different parameter pairs ( _λ_ _,_ _µ_ ). We set _λ_ = 0 _._ 1 _,_ 0 _._ 01 _,_ 0 _._ 001 and _τ_ = 9 _,_ 10 _,_ 20, such that there are nine pairs of parameters. In Figs. 6-7, the decolorization results in the first rows are the results of the clean color images, while the second rows are the results of the noisy color images which are contaminated by Gaussian noise with zero mean and standard deviation 20. All the decolorization images in Fig. 6 seem quite similar in terms of contrast. In Fig. 7, for the clean color image, 21 F. LI _et al._ : _Guided image decolorization_ (a) N = 2 (b) N=3 (c) N=4 (d) N=5 (e) N=6 (f) N=7 (g) N=8 (h) N=9 (i) N=10 (j) 0.8797 (k) 0.8797 (l) 0.9028 (m) 0.8779 (n) 0.8941 (o) 0.8896 (p) 0.8885 (q) 0.8888 (r) 0.8887 Fig. 5: Decolorization results of the image in Fig. 1a with different class numbers _N_ = 2 _,_ 4 _,_ 6 _,_ 8 _,_ 10. Each column shows the clustering result and the corresponding decolorized gray image with E-score. (a) color (b) (0.1,9) (c) (0.1,20) (d) (0.1,30) (e) (0.01,9) (f) (0.01,20) (g) (0.01,30) (h) (0.001,9) (i) (0.001,20) (j) (0.001,30) (k) noisy (l) (0.1,9) (m) (0.1,20) (n) (0.1,30) (o) (0.01,9) (p) (0.01,20) (q) (0.01,30) (r) (0.0001,9) (s) (0.001,20) (t) (0.001,30) Fig. 6: Parameter sensitivity of the proposed method. The parameters ( _λ_ _,_ _τ_ ) are shown below each subfigure. (a) Clean test image ”2.png” in Cadik’s dataset; (b)-(j) final results for (a) with different parameters; (k) noisy test image which is contaminated by Gaussian noise with zero mean and standard deviation 20; (l)-(t) final results for (k) with different parameters. the results are different in contrast and dynamic range. Figs. 7cdfgij are similar and have a high dynamic range; however, the dark regions are not distinctive. While Figs. 7beh have low dynamic range but good region contrast. We also find that for the noisy color image in Fig. 7, our decolorization results are quite robust to both parameters and noise. In the structure of the proposed method, there are three steps: smoothing, clustering and decolorization. In the first two steps, there are many choices. We test some different combinations on Cad´ık’s dataset. For smoothing, there are four choices: no smoothing (NONE), _L_ 0 smoothing Xu _et_ _al._ (2011), WLS Min _et_ _al._ (2014), SDF Ham _et_ _al._ (2017). For clustering, there are two choices: FCM and FFCM. The computational time and average E-score are reported in Table 1. From Table 1, we find that FCM without smoothing is the slowest; meanwhile, its average E-score is the lowest. Both _L_ 0+FFCM and WLS+FFCM are about four times faster than NONE+FCM. SDF+FFCM is about 2.7 times faster than NONE+FCM. The average E-scores of the decolorization results are quite similar. Among all, _L_ 0+FFCM has a little higher average E-score than others. We remark that the computational time reported in Table 1 is the total computational time of our method which includes all the preprocessing steps and the calculation of the E-score for each candidate decolorized image. <u>smoothing</u> <u>clustering</u> <u>E-score</u> <u>Time</u> NONE FCM 0.9101 41.3s _L_ 0 FFCM 0.9122 10.1s WLS FFCM 0.9106 9.4s <u>SDF</u> <u>FFCM</u> <u>0.9104</u> <u>15.3s</u> Table 1: The performance of the proposed decolorization method with different choices of smoothing and clustering methods on Cad´ık’s dataset. The average E-score and average computational time are reported. Our method is designed for a single image decolor. It has limitations in processing color video sequences 22 Image Anal Stereol 2021;40:17-27 (a) color (b) (0.1,9) (c) (0.1,20) (d) (0.1,30) (e) (0.01,9) (f) (0.01,20) (g) (0.01,30) (h) (0.001,9) (i) (0.001,20) (j) (0.001,30) (k) noisy (l) (0.1,9) (m) (0.1,20) (n) (0.1,30) (o) (0.01,9) (p) (0.01,20) (q) (0.01,30) (r) (0.0001,9) (s) (0.001,20) (t) (0.001,30) Fig. 7: Parameter sensitivity of the proposed method. The parameters ( _λ_ _,_ _τ_ ) are shown below each subfigure. (a) Clean test image; (b)-(j) final results for (a) with different parameters; (k) noisy test image which is contaminated by Gaussian noise with zero mean and standard deviation 20; (l)-(t) final results for (k) with different parameters. Fig. 8: Video decolorization by the proposed method. First row: the color images in some frames. Second row: our decolorization results. Third row: the difference of two adjacent frames in the second row (adding 150 for better display). since the relation between frames is not considered. We test a video in Fig. 8 in which the decolorization results of six frames are displayed. The difference images of the decolorized results in the adjacent frames are shown in the last row. From the results, it is easy to see that the first three frames are almost consistent and the last three frames are almost consistent for each color. However, the difference between the third and fourth frames is obvious. QUANTITATIVE EVALUATION In the following experiments on Cad´ık’s dataset and Color250 dataset, we use the default parameters _λ_ = 0 _._ 01 _,_ _N_ = 2 _,...,_ 10 _,_ _τ_ = 9 if not specified. For quantitative assessment, we compare the E-score measure of the decolorization results of each method. We let the threshold _τ_ in E-score varies from 1 to 40, as suggested by Lu _et_ _al._ (2014). The E-score curves of the two test datasets are shown in Fig. 9a and Fig. 9b, respectively. Higher E-score means better image quality. For Cad´ık’s dataset, when _τ_ _∈_ [0 _,_ 20), our method gives the highest E-score. It indicates that our method can preserve the low contrast (the color difference is not very prominent) in the color image better than others. Actually, there are many low contrast regions in color images with abundant colors. When _τ_ _≥_ 20, Gcs17 has the highest E-score and our method is second best. For COLOR250 dataset, when _τ ∈_ [0 _,_ 32], our method gains the highest E-score among all, see Fig. 9b. Gcs17 have a very close E-score as ours, which are higher than others. 23 1.1 1 0.9 0.8 0.7 F. LI _et al._ : _Guided image decolorization_ CIE_Y Gooch05 Smith08 Lu12 Gcs15 Du15 SP17 Wpm17 Ours 10 20 30 40 (b) COLOR250 dataset 1.1 1 0.9 0.8 0.7 CIE_Y Gooch05 Smith08 Lu12 Gcs15 Du15 SP17 Wpm17 Ours 0.6 10 20 30 40 (a) Cad´ık’s dataset Fig. 9: Qualitative evaluation of different methods on two datasets with E-score. The x-axis denotes the threshold _τ_ involved in the calculation of E-score. (a) Preference rate (Gray is our method) (b) Accuracy rate Fig. 10: Results of the preference experiment and accuracy experiment in user study. The gray bar denotes our method. Cad´ık’s dataset is tested. USER STUDY We use all the 24 images in Cad´ık’s dataset for the user study. In this study, we invited 20 participants (8 males and 12 females) at the age of 20–41 with no eye-sight deficiency, who are students or teachers in the university. In the experiments, six methods are mainly compared: Cadik08, Lu12, Gcs15, Du15, Wpm17 and ours. For Cadik08, we choose the best results according to the ranking of scores (see Cad´ık (2008)) involving seven decolorization methods. Note that averagely the last five methods have the top five E-score values as shown in Fig. 9. The user experiment consists of two parts: preference experiment and accuracy experiment. In the preference experiment, two decolorized images were displayed at two sides of the color image every time. Observers were instructed to select the decolorized image that they preferred. The two images are the results of our method and one of the five methods in Cadik08, Lu12, Gcs15, Du15, and Wpm17. Each participant is asked to choose 24 _×_ 5 = 120 image pairs. In the accuracy experiment, every time, five decolorized images obtained by Cadik08, Lu12, Gcs15, Du15, and Wpm17, and our method were displayed along with the color original in the third. Observers were asked to select the decolorized images that best match the original color image in appearance. Results of the user experiment are shown in Fig. 10. We find that the proposed method outperforms the other methods in terms of both preference and accuracy. The preference ratio of our method versus Cadik08, Lu12, Gcs15, Du15, and Wpm17 are 0.556, 0.688, 0.583, 0.609, and 0.608 respectively; see Fig. 10a. All the values are bigger than 0.5, which means that our method is better than others. The preference 24 Image Anal Stereol 2021;40:17-27 of Lu12 is the lowest. The accuracy comparison is displayed in Fig. 10b. It’s obvious that the ranking from best to worst is: ours, Gcs15, Cadik08, Wpm17, Du15, and Lu12. QUALITATIVE EVALUATION For qualitative evaluation, we list some results of Cad´ık’s dataset in Fig. 11 and some results of COLOR250 dataset in Fig. 12. As can be seen from Figs. 11-12, our results in the last column seem quite competitive with the best of the others. Visually, our results have good contrast. Meanwhile, the distinctiveness of colors is well preserved in the decolorized images by our method. Let’s show some details. In Figs. 11, the digital “2” in the first row is much more evident in the results of Wpm17 and ours than others. In the second row, the results of Lu12, Gcs15, Wpm17 and our method are similar and are much better than others. In the third row, the color blocks are distinctive in our results, which outperforms others. In the fourth row, the decolorized white flowers are more visually pleasing than dark flowers. Among the white flowers, our method can preserve the details in the flower and leaves better than others; and Wpm17 can preserve better contrast of the flower and the background than others. For the sunrise image in the last row, the results of Gcs15, Wpm17 and our method have better contrast than others. In Figs. 12, in the first row, the jacket’s color contrast is better preserved by CIE-Y, Gcs15, Du15 and ours. In the second and third rows, the overall contrast of our results seems quite good. In the fourth row, the colors of the three blocks are different; our result is the best among all which preserves the color contrast very well. In the last row, the results of Gcs15 and our methods are better than others since different color blocks are distinctive. ### CONCLUSIONS AND FUTURE WORK We presented a clustering-guided decolorization method in this paper. The clustering step guided us to find distinctive colors. Then we find the optimal linear combination weights by constructing the correspondence of distinctive colors with specified distinctive gray values. We can get many decolorized images by setting different class numbers. We choose the final decolorized image with the best E-score. Color CIE-Y Gooch05 Smith08 Lu12 Gcs15 Du15 SP17 Wpm17 Ours Fig. 11: Decolorization results of different methods on some images in Cad´ık’s dataset. The left column is the original color image. The second to the last columns are results of different methods. The last row show the names of the methods for each column. 25 F. LI _et al._ : _Guided image decolorization_ Color CIE-Y Gooch05 Smith08 Lu12 Gcs15 Du15 SP17 Wpm17 Ours Fig. 12: Decolorization results of different methods on some images in COLOR250 dataset. The left column is the original color image. The second to the last columns are results of different methods. The last row show the names of the methods for each column. There are several limitations of our method. 1) E-score is not consistent with the human visual system in some tests. So the final result was chosen by E-score maybe not optimal. 2) The proposed method is time-consuming since it has several steps, including smoothing, clustering, optimization, and E-score calculation. It takes about 9 seconds for decolorizing an image with size 390 times 390, in which E-score calculation takes about 3 seconds. 3) The proposed method lacks consistency between frames for video decolorization. Our future work will focus on overcoming the above limitations which include: designing a new measure which is more consistent with the human visual system; reducing the computational time by optimizing all the steps in our method; and studying consistent video decolorization model. ### ACKNOWLEDGEMENTS This work is supported in part by the National Natural Science Foundation of China (NSFC) (No.61731009, No.11671002), the NSFC-RGC under Grant 61961160734, the Fundamental Research Funds for the Central Universities, and Science and Technology Commission of Shanghai Municipality (No.19JC1420102, No.18dz2271000). REFERENCES Bala R, Eschbach R (2004). Spatial color-tograyscale transform preserving chrominance edge information. In: Color and Imaging Conference, vol. 2004. Society for Imaging Science and Technology. Bertalmio M, Caselles V, Provenzi E, Rizzi A (2007). Perceptual color correction through variational techniques. IEEE T Image Process 16:1058–72. Bezdek JC, Ehrlich R, Full W (1984). FCM: The fuzzy c-means clustering algorithm. Comput Geosci 10:191–203. Cad´ık M (2008). Perceptual evaluation of color-tograyscale image conversions. In: Comput Graph Forum, vol. 27. Wiley Online Library. Du H, He S, Sheng B, Ma L, Lau RW (2015). Saliency-guided color-to-gray conversion using region-based optimization. IEEE T Image Process 24:434–43. Gooch AA, Olsen SC, Tumblin J, Gooch B (2005). Color2gray: salience-preserving color removal. Acm T Graphic 24:634–9. 26 Image Anal Stereol 2021;40:17-27 Grundland M, Dodgson NA (2007). Decolorize: Fast, contrast enhancing, color to grayscale conversion. Pattern Recogn 40:2891–6. Ham B, Cho M, Ponce J (2017). Robust guided image filtering using nonconvex potentials. IEEE T Pattern Anal 40:192–207. Hou X, Duan J, Qiu G (2017). Deep feature consistent deep image transformations: Downscaling, decolorization and HDR tone mapping. arXiv preprint arXiv170709482 . Ji Z, Fang Me, Wang Y, Ma W (2016). Efficient decolorization preserving dominant distinctions. The Visual Computer 32:1621–31. Jin Z, Li F, Ng MK (2014). A variational approach for image decolorization by variance maximization. Siam J Imaging Sci 7:944–68. Kim Y, Jang C, Demouth J, Lee S (2009). Robust color-to-gray via nonlinear global mapping. ACM T Graphic 28:1–4. Lau C, Heidrich W, Mantiuk R (2012). Cluster-based color space optimizations. In: IEEE I Conf Comp Vis. Liu Q, Leung H (2018). Variable augmented neural network for decolorization and multi-exposure fusion. Inform Fusion 46:114–27. Liu Q, Li S, Xiong J, Qin B (2019). WpmDecolor: weighted projection maximum solver for contrastpreserving decolorization. Visual Comput 35:205– 21. Liu Q, Liu P, Wang Y, Leung H (2017a). Semiparametric decolorization with laplacian-based perceptual quality metric. IEEE T Circ Syst Vid 27:1856–68. Liu Q, Liu PX, Xie W, Wang Y, Liang D (2015). GcsDecolor: Gradient correlation similarity for efficient contrast preserving decolorization. IEEE T Image Process 24:2889–904. Liu Q, Shao G, Wang Y, Gao J, Leung H (2017b). Log-euclidean metrics for contrast preserving decolorization. IEEE T Image Process 26:5772– 83. Liu S, Zhang X (2019). Image decolorization combining local features and exposure features. IEEE T Multimedia 21:2461–72. Lu C, Xu L, Jia J (2012a). Contrast preserving decolorization. In: IEEE INT Conf Comput. IEEE. Lu C, Xu L, Jia J (2012b). Real-time contrast preserving decolorization. In: SIGGRAPH Asia 2012 Technical Briefs. ACM. Lu C, Xu L, Jia J (2014). Contrast preserving decolorization with perception-based quality metrics. INT J Comput Vision 110:222–39. Min D, Choi S, Lu J, Ham B, Sohn K, Do MN (2014). Fast global image smoothing based on weighted least squares. IEEE T Image Process 23:5638–53. Neumann L, Cad´ık <sup>ˇ</sup> M, Nemcsics A (2007). An efficient perception-based adaptive color to gray transformation. In: Proceedings of the Third Eurographics conference on Computational Aesthetics in Graphics, Visualization and Imaging. Eurographics Association. Rasche K, Geist R, Westall J (2005). Detail preserving reproduction of color images for monochromats and dichromats. IEEE Comput Graph 25:22–30. Smith K, Landes PE, Thollot J, Myszkowski K (2008). Apparent greyscale: A simple and fast conversion to perceptually accurate images and video. In: Comput Graph Forum, vol. 27. Wiley Online Library. Szilagyi L, Benyo Z, Szilagyi SM, Adam HS (2003). MR brain image segmentation using an enhanced fuzzy c-means algorithm. In: P Ann Int IEEE EMBS, vol. 1. Wang W, Li Z, Wu S (2018). Color contrast-preserving decolorization. IEEE T Image Process 27:5464– 74. Xu L, Lu C, Xu Y, Jia J (2011). Image smoothing via L0 gradient minimization. In: ACM T Graphic, vol. 30. ACM. Zhang X, Liu S (2018). Contrast preserving image decolorization combining global features and local semantic features. The Visual Computer 34:1099– 108. Zhao H, Zhang H, Jin X (2018). Efficient image decolorization with a multimodal contrastpreserving measure. Comput Graph 70:251–60. 27

섹션 본문 42문단 · 25,667자

(제목 없음)

1In 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 and get the class centers. Each center can represent a distinctive color in the image. Then the class centers are sorted according to their brightness measured by Euclidean norm. By assuming that the decolorized grayscale image is a linear combination of the three channels of the color image, we propose an optimization problem by forcing the sorted class centers to correspond to specified grayscale values satisfying uniform distribution. Numerically, the problem is solved by quadratic programming. Experiments on two popular data sets demonstrate that the proposed method is competitive with the state-of-the-art decolorization method.

INTRODUCTION

2Image decolorization, also known as color-togray, aims to convert a color image into a grayscale one. It is widely used in single-channel image and video processing, digital printing, and photography. Decolorization maps 3D color space into 1D space, such that the information loss is inevitable. Hence the main focus of decoloration is preserving the salient features such as edges and contrast.

3The existing decolorization methods can be roughly categorized into global and local methods. Local methods treat the pixels with the same color differently in order to enhance local chrominance edges. Bala and Eschbach (2004) enhanced the color edges by adding high-frequency components of chromaticity to the lightness channel. Neumann et al. (2007) introduced an efficient gradient-based color to gray transformation algorithm based on Coloroid color space. Smith et al. (2008) proposed a twostep decolorization method that combines a global mapping based on perceived lightness with local chromatic contrast enhancement. Gooch et al. (2005) proposed to minimize the differences between the chrominance and luminance values of pixel pairs. Jin et al. (2014) proposed a variational approach by maximizing variance. These local methods are good at enhancing local contrast; however, the disadvantage is that they may occasionally distort the appearance of constant color regions Kim et al. (2009).

4Global methods apply a constant mapping function on all the image pixels such that pixels of the same color are mapped into the same grayscale value. Rasche et al. (2005) used a linear color mapping function to obtain the optimal conversion by imposing constraints on different color pixel pairs. Grundland and Dodgson (2007) proposed a parametric piecewise linear mapping algorithm for image decolorization by adjusting the grayscale value with the chrominance. Kim et al. (2009) proposed a non-linear global mapping function for decolorization and estimated the parameters by minimizing the color differences. Lu et al. (2012a) employed a bimodal energy function to raise a more flexible contrast preserving constraint. Then Lu et al. (2012b) proposed a real-time decolorization algorithm by imposing constraints on weights based on the model in Lu et al. (2012a). The limitation of global methods is that they cannot fully capture the details in a globally unified manner, which may lead to local contrast loss.

5Many methods use both global and local information. Lu et al. (2014) improved their model in Lu et al. (2012a) by introducing local and nonlocal constraints. Du et al. (2015) proposed a saliencyguided decolorization method using region-based optimization, in which the saliency combines both the local and global features of the images. Wang et al. (2018) proposed a global mapping to achieve a fast computation on color order, and then a local decolorization algorithm is designed on the basis of the global linear mapping so that both color and spatial information are preserved. Zhao et al. (2018) proposed a new multimodal contrast-preserving measure with a multimodal Gaussian distribution to relax the constraint of color contrast, which preserves both the local color contrast and the non-local color contrast. Ji et al. (2016) introduced a new bandpass filter for color-to-gray conversion. Liu et al. (2015;2017a; proposed several effective methods for image decolorization. Liu et al. (2015) proposed a gradient correlation similarity measurebased decolorization model (GcsDecolor). Liu et al. (2017a) proposed a semiparametric decolorization method (SPDecolor) by decomposing the first-order and the two-order color space. presented a weighted projection maximum function to model the decolorization procedure. Liu et al. (2017b) introduced the Log-Euclidean metric for decolorization.

6Recently, deep learning was introduced to image decolorization. Hou et al. (2017) proposed a convolutional neural network for image decolorization with a perceptual loss. Zhang and Liu (2018) proposed a contrast preserving image decolorization method based on convolutional neural network which combining global features and local semantic features. Liu and Zhang (2019) designed a new convolutional neural network framework combining both local features and exposure features of the color image. Liu and Leung (2018) proposed a variable augmented neural network for decolorization.

7Clustering of the color image is included in some methods Lau et al. (2012); Du et al. (2015). Lau et al. (2012) proposed to cluster the image and then construct a graph based on each segment for decolorization. The method is semi-local because it operates on clusters, modifying local contrasts between clusters. Du et al. (2015) proposed to use the clustered superpixels to define region contrast saliency in their decolorization energy. It contributes to the region contrast preserving in the decolorization process. Experimentally, these methods work well on some test images. However, the overall performance on large datasets is still limited.

8In this paper, we propose a novel smoothing and clustering guided decolorization method to reduce contrast loss in the global method. As is known, we cannot assign different gray values for different colors if the number of different colors is larger than the number of all the gray values. However, there are usually not many distinctive colors in a specific image since many pixels have similar colors. This observation motivates us to assign distinctive gray values for only distinctive colors. Our method has three steps. Firstly, the color image is smoothed by L 0 smoothing method such that the colors are largely reduced. Then the smoothed image is segmented into several regions by using a revised fast fuzzy C-means method. The class centers represent distinctive colors, which are sorted according to their Euclidean norm. Then we form an optimization problem by requiring that the class centers are mapped into grayscale values satisfying uniform distribution. The parametric linear mapping is adopted for color-to-gray conversion. Experiments and comparisons are conducted on two popular datasets to verify the effectiveness of our method.

OUR METHOD

9We describe in this section our decolorization method. In Fig. 1, we show the flowchart of our method by displaying all the main intermediate steps.

10The proposed method includes three steps: smoothing, clustering, and decolorization. In the following, we show the details of each step.

SMOOTHING

11Smoothing is a preprocess for many image problems. In our method, the aim of using smoothing is to reduce the colors of the given color image. As we know, RGB color space is 3D and contains 256 3 colors generally. Natural images usually contain tens of thousands of colors. Through the smoothing step, the number of colors can be largely reduced, which is useful for accelerating the next clustering step. There exist many smoothing methods in the literature; some representative methods are Xu et al. (2011);Min et al. (2014); Ham et al. (2017). Xu et al. (2011) proposed an L 0 gradient minimization method for image smoothing, which can preserve sharp edges globally ( L 0 smoothing for short)). Min et al. (2014) proposed a fast global image smoothing method based on weighted least squares (WLS for short). Ham et al. (2017) proposed a novel SD (for static/dynamic) filter for image smoothing, which jointly leverages structural information from guidance and input images (SDF for short). We choose L 0 smoothing method Xu et al. (2011) as a baseline in this step. Noting that choosing other smoothing techniques also works. The influence of different smoothing methods in our method will be quantitatively evaluated in the experimental section.

12The L 0 smoothing method can be described as follows. Assume I 0 is the given image. L 0 smoothing aims to solve the following problem:

13where x ∈ Ω and Ω is the 2D image region. The first term is the L 0 regularization term, which requires that the number of pixels with non-zero gradient is as small as possible. The second term is the fidelity term, which requires that the smoothing result is close to the given image. L 0 smoothing leads to cartoon-like images with sharp edges. In the decolorization process, these sharp edges are the key features that should be preserved. In Fig. 2, we show the L 0 smoothing result of a natural image in Cadík's dataset Cadík (2008). It can be seen that the main content and sharp edges are preserved in Fig. 2b, while the colors are reduced from 40582 to 15577. That is, 62% of the colors are reduced. For cartoon-like images, the smoothing effect is not so obvious. See Fig. 1, for example. After smoothing, the colors reduce from 2783 to 2114. However, cartoon images are much easier to segment than natural images since the number of colors in cartoon images is usually small.

CLUSTERING

14Image clustering aims to partition an image into several disjoint regions such that pixels in the same region share some uniform characteristics such as intensity, color, and texture. Fuzzy c-means (FCM) clustering method Bezdek et al. (1984) is a widely used method for image clustering. The standard FCM model for partitioning image I into N class is given by

15where Ω is the image region, {c i } N i=1 are the class centers and {u i } N i=1 are membership functions satisfying some constraints. The computational complexity of the FCM algorithm increases as the image size increases. Szilagyi et al. (2003) proposed a faster enhanced FCM algorithm for magnetic resonance (MR) image segmentation. The basic idea is constructing a new image based on the given MR image and then performing the FCM in the range domain of the new image. Since they consider gray images, the range domain is 1D. In this paper, we generalize their idea to color images. The range domain of a color image is 3D. Assume that the range domain contains L different colors. The variable in the range domain is denoted as ξ r ∈ [0, 255] 3 , r = 1, ..., L where r is the index. Then we minimize the following energy function:

16where v r is the number of pixels with the same color ξ r , which can be seen as the weight of ξ r , j denotes color channel, c i denotes the i-th class center vector. The numerical algorithm is similar to the FCM algorithm, so we omit the details. The revised method is much faster than the standard FCM for color image clustering, so we call this method as fast FCM (FFCM). In Fig. 3, we compare the clustering results of FCM and FFCM. Note that for FCM, we show ∑ N i c i u i (x) as the final clustering results. For FFCM, we let the membership value of pixel x in class i as u ir where I(x) = ξ r . Then the membership functions

17can be defined for each pixel x such that the final clustering is given by ∑ N i c iũi (x). Visually, the result of FCM and FFCM are similar; see Fig. 3a and Fig. 3b. The result of FFCM on the smoothed image in Fig. 3c Actually, as a preprocessing step for our proposed decolorization method, FCM and FFCM yield similar final decolorization results; see Table 1 in the experimental section. However, with FFCM, the algorithm is much faster than using FCM.

CLUSTERING-GUIDED DECOLORIZATION

18Our motivation is that we expect the distinctive colors can be decolorized into distinctive gray values. For example, in Fig. 1, the image is segmented into four classes. The color values of the four cluster centers are displayed in Fig. 1d. These four colors can be seen as distinctive colors in the given color image. Our aim is to assign four distinctive gray values to these four colors. Intuitively, the four distinctive gray values should be equally distributed in [0,255]. Actually, it has been proved that the uniformly distributed gray image has the best contrast Bertalmio et al. (2007). Hence we choose the four gray values as 255, 170, 85, 0, see Fig. 1f. The remaining problem is how to correspond the four colors to the four gray values. As an output of the FFCM clustering method, the class centers have no order in Fig. 1d. So we sort the colors according to the brightness of the colors. We choose to measure the brightness of the colors by calculating the Euclidean norm of the color vector. Then we get the sorted colors in Fig. 1e, where brightness decreases from top to bottom. Then we have constructed the correspondence of the four colors in Fig. 1d with the four gray values in Fig. 1f.

19Let us go back to our decolorization problem. Following the existing global decolorization methods, we assume that the decolorized gray image g can be represented by a linear combination of the three channels of the color image, i.e.,

20where R, G, B are the red, green and blue channels of the given color image I, and w i , i = 1, 2, 3 are three scalar weights. The decolorization problem is to find the optimal weights. Assume the class number is N > 1. After clustering, we get N sorted colors which can be formulated as an N × 3 matrix A. Each row of A denotes a color vector. As stated above, we expect that the sorted colors correspond to uniformly distributed gray values in [0,255] one by one. The gray value vector can be written as

21where a is the maximum integer less than 255/N. For example, in Fig To force the correspondence of the colors in matrix A with the gray values in vector b, based on equation (4), we propose to optimize the weight w = [w 1 , w 2 , w 3 ] T by solving the following least square problem with constraints:

22This minimization problem can be easily solved by quadratic programming with the MATLAB routine "quadprog". Then the final decolorization result g is given by formula (4) with the optimal weights determined by (6).

23As an example, in Fig. 1 By calling "quadprog" in MATLAB with inputs A, b and constraints, we get the solution w = 0.5111, 0.0000, 0.4889 T .

24Finally, the output gray image is given by the linear combination of the three channels of the color image with weights 0.5111, 0 and 0.4889, which is shown in Fig. 1g. It is obvious that distinctive colors in Fig. 1a is also distinctive in the gray image Fig. 1g.

25Remark that in our method the colors of the class centers are ordered according to their brightness measured by Euclidean distance. If their brightness are the same, no ordering is possible. In this case, we omit the color ordering step. The minimization problem in (6) can also be solved by quadratic programming. For example, we construct an RGB image with only red (255,0,0), green (0,255,0), and blue (0,0,255) colors in

EXPERIMENTAL RESULTS

26In this section, we conduct extensive experiments to evaluate our method and compare it with some representative local and global decolorization approaches using the benchmarking Cadík's dataset Cadík (2008) For methods CIE-Y, Gooch05 and Smith08, their results on Cadík's dataset are provided in Cadík (2008), while their results on COLOR250 are provided in Lu et al. (2014). The results of Lu12, Gcs17, Du15, SP17 and Wpm17 are either provided by the authors or generated by their source codes with default parameters. Our method is performed under Windows 10 and MATLAB R2018a with Intel Core i7-8500 CPU@1.80GHz @1.99GHZ and 32GB memory.

SENSITIVITY STUDY

27In this subsection, we test the sensitivity of the proposed method in terms of the parameters, noise, structure and video sequence images.

28In our method, there are three parameters. The default parameters are given as follows. In the L 0 smoothing step, λ is the regularization parameter that controls the smoothness of the resulted image. The larger λ is, the smoother the result is. The cluster number is the only parameter in the clustering step. We let N varies from 2 to 10 empirically. Then for each test image, we get nine decolorization result images. To choose the best decolorization result in the nine images, we use the E-score measure. Note that there is a threshold integer τ in the E-score calculation, which denotes the color or grayscale difference of pixel pairs. We set τ = 9 and select the decolorization image with the highest E-score as our final result.

29Let us study the sensitivity of our method to the parameters. Firstly, we test the influence of class number N. In Fig. 5, we show the clustering and decolorization results of image Fig. 1a in Cadík's dataset with different N varies from 2 to 10. The results of N = 2 and N = 3 are similar, where the black regions cannot be distinguished. The results of the others seem similar. By careful observation, we find that the results are quite good for N = 4, 8, 10, which have good contrast and all the distinctive colors have distinct gray values. The E-scores are reported below each gray image. When N = 4, the decolorized image has the highest E-score and good visual quality, which is chosen as the final result of the proposed method.

30Next, we test the sensitivity of parameters λ , τ and noise in our method. In Fig. 6 and Fig. 7, we test our method on two images in Cadík's dataset with different parameter pairs (λ , µ). We set λ = 0.1, 0.01, 0.001 and τ = 9, 10, 20, such that there are nine pairs of parameters. In Figs. 6-7, the decolorization results in the first rows are the results of the clean color images, while the second rows are the results of the noisy color images which are contaminated by Gaussian noise with zero mean and standard deviation 20. All the decolorization images in Fig. 6 seem quite similar in terms of contrast. In Fig. 7, for the clean color image, the results are different in contrast and dynamic range. Figs. 7cdfgij are similar and have a high dynamic range; however, the dark regions are not distinctive. While Figs. 7beh have low dynamic range but good region contrast. We also find that for the noisy color image in Fig. 7, our decolorization results are quite robust to both parameters and noise.

31In the structure of the proposed method, there are three steps: smoothing, clustering and decolorization. In the first two steps, there are many choices. We test some different combinations on Cadík's dataset. Table 1. From Table 1, we find that FCM without smoothing is the slowest; meanwhile, its average E-score is the lowest. Both L 0 +FFCM and WLS+FFCM are about four times faster than NONE+FCM. SDF+FFCM is about 2.7 times faster than NONE+FCM. The average E-scores of the decolorization results are quite similar. Among all, L 0 +FFCM has a little higher average E-score than others. We remark that the computational time reported in Table 1 is the total computational time of our method which includes all the preprocessing steps and the calculation of the E-score for each candidate decolorized image. Our method is designed for a single image decolor. It has limitations in processing color video sequences since the relation between frames is not considered. We test a video in Fig. 8 in which the decolorization results of six frames are displayed. The difference images of the decolorized results in the adjacent frames are shown in the last row. From the results, it is easy to see that the first three frames are almost consistent and the last three frames are almost consistent for each color. However, the difference between the third and fourth frames is obvious.

QUANTITATIVE EVALUATION

32In the following experiments on Cadík's dataset and Color250 dataset, we use the default parameters λ = 0.01, N = 2, ..., 10, τ = 9 if not specified. For quantitative assessment, we compare the E-score measure of the decolorization results of each method. We let the threshold τ in E-score varies from 1 to 40, as suggested by Lu et al. (2014). The E-score curves of the two test datasets are shown in Fig. 9a and Fig. 9b, respectively. Higher E-score means better image quality. For Cadík's dataset, when τ ∈ [0, 20), our method gives the highest E-score. It indicates that our method can preserve the low contrast (the color difference is not very prominent) in the color image better than others. Actually, there are many low contrast regions in color images with abundant colors. When τ ≥ 20, Gcs17 has the highest E-score and our method is second best. For COLOR250 dataset, when τ ∈ [0, 32], our method gains the highest E-score among all, see Fig. 9b. Gcs17 have a very close E-score as ours, which are higher than others.

USER STUDY

33We use all the 24 images in Cadík's dataset for the user study. In this study, we invited 20 participants (8 males and 12 females) at the age of 20-41 with no eye-sight deficiency, who are students or teachers in the university. In the experiments, six methods are mainly compared: Cadik08, Lu12, Gcs15, Du15, Wpm17 and ours. For Cadik08, we choose the best results according to the ranking of scores (see Cadík (2008)) involving seven decolorization methods. Note that averagely the last five methods have the top five E-score values as shown in Fig. 9.

34The user experiment consists of two parts: preference experiment and accuracy experiment. In the preference experiment, two decolorized images were displayed at two sides of the color image every time. Observers were instructed to select the decolorized image that they preferred. The two images are the results of our method and one of the five methods in Cadik08, Lu12, Gcs15, Du15, and Wpm17. Each participant is asked to choose 24 × 5 = 120 image pairs. In the accuracy experiment, every time, five decolorized images obtained by Cadik08, Lu12, Gcs15, Du15, and Wpm17, and our method were displayed along with the color original in the third.

35Observers were asked to select the decolorized images that best match the original color image in appearance. Results of the user experiment are shown in Fig. 10. We find that the proposed method outperforms the other methods in terms of both preference and accuracy. The preference ratio of our method versus Cadik08, Lu12, Gcs15, Du15, and Wpm17 are 0.556, 0.688, 0.583, 0.609, and 0.608 respectively; see Fig. 10a. All the values are bigger than 0.5, which means that our method is better than others. The preference of Lu12 is the lowest. The accuracy comparison is displayed in Fig. 10b. It's obvious that the ranking from best to worst is: ours, Gcs15, Cadik08, Wpm17, Du15, and Lu12.

QUALITATIVE EVALUATION

36For qualitative evaluation, we list some results of Cadík's dataset in Fig. 11 and some results of COLOR250 dataset in Fig. 12. As can be seen from Figs. 11-12, our results in the last column seem quite competitive with the best of the others. Visually, our results have good contrast. Meanwhile, the distinctiveness of colors is well preserved in the decolorized images by our method.

37Let's show some details. In Figs. 11, the digital "2" in the first row is much more evident in the results of Wpm17 and ours than others. In the second row, the results of Lu12, Gcs15, Wpm17 and our method are similar and are much better than others. In the third row, the color blocks are distinctive in our results, which outperforms others. In the fourth row, the decolorized white flowers are more visually pleasing than dark flowers. Among the white flowers, our method can preserve the details in the flower and leaves better than others; and Wpm17 can preserve better contrast of the flower and the background than others. For the sunrise image in the last row, the results of Gcs15, Wpm17 and our method have better contrast than others.

38In Figs. 12, in the first row, the jacket's color contrast is better preserved by CIE-Y, Gcs15, Du15 and ours. In the second and third rows, the overall contrast of our results seems quite good. In the fourth row, the colors of the three blocks are different; our result is the best among all which preserves the color contrast very well. In the last row, the results of Gcs15 and our methods are better than others since different color blocks are distinctive.

CONCLUSIONS AND FUTURE WORK

39We presented a clustering-guided decolorization method in this paper. The clustering step guided us to find distinctive colors. Then we find the optimal linear combination weights by constructing the correspondence of distinctive colors with specified distinctive gray values. We can get many decolorized images by setting different class numbers. We choose the final decolorized image with the best E-score.

40Color CIE-Y Gooch05 Smith08

41Lu12 Gcs15 Du15 SP17 Wpm17 Ours There are several limitations of our method. 1) E-score is not consistent with the human visual system in some tests. So the final result was chosen by E-score maybe not optimal. 2) The proposed method is time-consuming since it has several steps, including smoothing, clustering, optimization, and E-score calculation. It takes about 9 seconds for decolorizing an image with size 390 times 390, in which E-score calculation takes about 3 seconds.

423) The proposed method lacks consistency between frames for video decolorization. Our future work will focus on overcoming the above limitations which include: designing a new measure which is more consistent with the human visual system; reducing the computational time by optimizing all the steps in our method; and studying consistent video decolorization model.

참고문헌 34건

  1. An efficient perception-based adaptive color to gray transformation Eurographics · 2007 10.2312/compaesth/compaesth07/073-080
  2. MR brain image segmentation using an enhanced fuzzy C-means algorithm 2004 10.1109/iembs.2003.1279866
  3. Real-time contrast preserving decolorization 2012 10.1145/2407156.2407174
  4. Decolorize: Fast, contrast enhancing, color to grayscale conversion Pattern Recognition · Elsevier BV · 2007 10.1016/j.patcog.2006.11.003
  5. FCM: The fuzzy c-means clustering algorithm Computers & Geosciences · Elsevier BV · 1984 10.1016/0098-3004(84)90020-7
  6. Contrast Preserving Decolorization with Perception-Based Quality Metrics International Journal of Computer Vision · Springer Science+Business Media · 2014 10.1007/s11263-014-0732-6
  7. Fast Global Image Smoothing Based on Weighted Least Squares IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2014 10.1109/tip.2014.2366600
  8. GcsDecolor: Gradient Correlation Similarity for Efficient Contrast Preserving Decolorization IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2015 10.1109/tip.2015.2423615
  9. Saliency-Guided Color-to-Gray Conversion Using Region-Based Optimization IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2014 10.1109/tip.2014.2380172
  10. Contrast preserving decolorization 2012 10.1109/iccphot.2012.6215215
  11. Image smoothing via <i>L</i> <sub>0</sub> gradient minimization 2011 10.1145/2024156.2024208
  12. A Variational Approach for Image Decolorization by Variance Maximization SIAM Journal on Imaging Sciences · Society for Industrial and Applied Mathematics · 2014 10.1137/130935197
  13. Color2Gray ACM Transactions on Graphics · Association for Computing Machinery · 2005 10.1145/1073204.1073241
  14. Apparent Greyscale: A Simple and Fast Conversion to Perceptually Accurate Images and Video Computer Graphics Forum · Wiley · 2008 10.1111/j.1467-8659.2008.01116.x
  15. Detail Preserving Reproduction of Color Images for Monochromats and Dichromats IEEE Computer Graphics and Applications · Institute of Electrical and Electronics Engineers · 2005 10.1109/mcg.2005.54
  16. Cluster-based color space optimizations International Conference on Computer Vision · 2011 10.1109/iccv.2011.6126366
  17. Robust color-to-gray via nonlinear global mapping ACM Transactions on Graphics · Association for Computing Machinery · 2009 10.1145/1618452.1618507
  18. Perceptual Color Correction Through Variational Techniques IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2007 10.1109/tip.2007.891777
  19. Perceptual Evaluation of Color‐to‐Grayscale Image Conversions Computer Graphics Forum · Wiley · 2008 10.1111/j.1467-8659.2008.01319.x
  20. Efficient decolorization preserving dominant distinctions The Visual Computer · Springer Science+Business Media · 2015 10.1007/s00371-015-1145-4
  21. Robust Guided Image Filtering Using Nonconvex Potentials IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2017 10.1109/tpami.2017.2669034
  22. Semi-Parametric Decolorization with Laplacian-based Perceptual Quality Metric IEEE Transactions on Circuits and Systems for Video Technology · Institute of Electrical and Electronics Engineers · 2016 10.1109/tcsvt.2016.2555779
  23. Efficient image decolorization with a multimodal contrast-preserving measure Computers & Graphics · Elsevier BV · 2017 10.1016/j.cag.2017.07.009
  24. Deep Feature Consistent Deep Image Transformations: Downscaling, Decolorization and HDR Tone Mapping arXiv (Cornell University) · Cornell University · 2017 10.48550/arxiv.1707.09482
  25. Log-Euclidean Metrics for Contrast Preserving Decolorization IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2017 10.1109/tip.2017.2745104
  26. WpmDecolor: weighted projection maximum solver for contrast-preserving decolorization The Visual Computer · Springer Science+Business Media · 2017 10.1007/s00371-017-1464-8
  27. Contrast preserving image decolorization combining global features and local semantic features The Visual Computer · Springer Science+Business Media · 2018 10.1007/s00371-018-1524-8
  28. Color Contrast-Preserving Decolorization IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2018 10.1109/tip.2018.2855424
  29. Variable augmented neural network for decolorization and multi-exposure fusion Information Fusion · Elsevier BV · 2018 10.1016/j.inffus.2018.05.007
  30. Image Decolorization Combining Local Features and Exposure Features IEEE Transactions on Multimedia · Institute of Electrical and Electronics Engineers · 2019 10.1109/tmm.2019.2903413
  31. Image Smoothing Via L 0 Gradient Minimization International Journal of Scientific Research in Computer Science Engineering and Information Technology · Technoscience Academy · 2018 10.32628/cseit183614
  32. Real-time contrast preserving decolorization 2012 10.1145/2407746.2407780
  33. Robust color-to-gray via nonlinear global mapping 2009 10.1145/1661412.1618507
  34. Spatial Color-to-Grayscale Transform Preserving Chrominance Edge Information Color and Imaging Conference · 2004 10.2352/cic.2004.12.1.art00016