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

Color Transfer With Salient Features Mapping via Attention Maps Between Images

관련 수소연료전지 · (5) 연료전지용 수분제어장치(가습기)

기본 정보

저자
  1. Zongsheng Wu — School of Computer Science, Xianyang Normal University, Xianyang, China
  2. Ru Xue — School of Information Engineering, Xizang Minzu University, Xianyang, China
DOI
10.1109/access.2020.3000065
저널
IEEE Access
발행년도
2020
발행기관
Institute of Electrical and Electronics Engineers
피인용수
7
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1109/access.2020.3000065
토픽
Color Science and Applications
OpenAlex ID
W3034007323

평가 내용

관련도
관련
사업분야
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '수소연료전지 > 연료전지용 수분제어장치(가습기)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

Color transfer is a useful image editing technology that transfers the color style of a reference image to a source image. In this paper, a novel automatic perception color transfer method based on salient features mapping was proposed. Firstly, the saliency maps of the reference image and source image are built to predict the human visual attention regions. Secondly, the gradient map is calculated by convolving the image pair with Sobel filter. Thirdly, the saliency map and gradient map are combined to produce a weighted attention map. Fourthly, by thresholding the attention map the reference image and the source image are segmented into regions of salient and non-salient pixels, and mean and standard deviation of these two regions are calculated in the three channels of the YUV space, respectively. Finally, on the salient and non-salient pixels an execution similar to Reinhard's is performed, and the two results are combined to generate the final output. The experiments result show the superiority of our method by its pleasant natural appearance with color similarity and image details preservation, high time efficiency and easy implementation.

본문 39,423자

본문 펼치기
Received May 14, 2020, accepted May 26, 2020, date of publication June 4, 2020, date of current version June 16, 2020. _Digital Object Identifier 10.1109/ACCESS.2020.3000065_ # Color Transfer With Salient Features Mapping via Attention Maps Between Images ZONGSHENG WU 1 AND RU XUE 2 1School of Computer Science, Xianyang Normal University, Xianyang 712000, China 2School of Information Engineering, Xizang Minzu University, Xianyang 712082, China Corresponding author: Ru Xue (joywinjam@163.com) This work was supported in part by the Natural Science Foundation of Tibet Autonomous Region under Grant XZ2018ZR G-64. ABSTRACT Color transfer is a useful image editing technology that transfers the color style of a reference image to a source image. In this paper, a novel automatic perception color transfer method based on salient features mapping was proposed. Firstly, the saliency maps of the reference image and source image are built to predict the human visual attention regions. Secondly, the gradient map is calculated by convolving the image pair with Sobel filter. Thirdly, the saliency map and gradient map are combined to produce a weighted attention map. Fourthly, by thresholding the attention map the reference image and the source image are segmented into regions of salient and non-salient pixels, and mean and standard deviation of these two regions are calculated in the three channels of the YUV space, respectively. Finally, on the salient and nonsalient pixels an execution similar to Reinhard’s is performed, and the two results are combined to generate the final output. The experiments result show the superiority of our method by its pleasant natural appearance with color similarity and image details preservation, high time efficiency and easy implementation. INDEX TERMS Color transfer, color style, salient features, gradient map, image editing. I. INTRODUCTION Color transfer is an image editing technology aiming to transfer the color style of a reference image to a source image, which is widely used in various image and video processing applications, such as image colorization, image enhancement and special effects for videos. Two key issues involved in this topic include the construction of correct color mapping between the reference image and the source image, and the preservation of the source image content after color transfer. Color mapping ensures that the color of the reference image be properly transferred to the source image while keeping the color similarity; and the preservation of color content requires that the structure and texture of the resulting image be consistent with source image after the process. Over the past years, much efforts have been made to address these issues with many results. Color transfer methods can be classified into two main categories: the global color transfer methods and the local ones. The global color transfer methods [1]–[8] take into account all pixels for calculating the color statistics; it is easily used due to its simplicity and high running speed. It usually works under the The associate editor coordinating the review of this manuscript and approving it for publication was Inês Domingues . assumption of similarity of global color distributions between the reference and source images. However, the typical ignorance of spatial relationship could easily cause misleading color mapping and color distortion. To achieve good results for these global methods, a careful choice of image pairs is inevitable. In order to attack the above problems, some local color transfer methods considering the color correspondence and spatial relationship are presented in [9]–[25]. The local color transfer methods are divided into two groups: traditional methods and machine learning methods. Dominant color mapping [9], Gaussian Mixture Models [10]–[12], directive local color transfer methods [13], [14], probabilistic moving least square algorithms [15], [16], local texture-based method [17], etc. belong to the former group. The latter group includes color style changed with neural network [18], deep learning framework [19], and colorization with the SVM algorithm [20]. These local color transfer methods can also be classified as automatic methods [4], [12], [18]–[21] and interactive methods [17], [22]–[25], where the former ones refer to the automatic local color mapping without manual intervention to region matching, and the latter means the allowance of users in defining the correspondence by sketches or rectangles. Compared with global color transfer methods, local methods usually work better in processing the textures and salient regions of an image. However, most local methods still have some disadvantages, such as misleading local color mapping and loss of details, which is worth further studying. To improve the performance of the color transfer, some algorithms based on salient regions and gradient-preserving themes have been proposed. Salient regions refer to parts visually more conspicuous than the surrounding regions [26]. According to the salient regions of human visual attention in images, the color correspondence between image pairs can be built automatically. Xia [21] proposed an automatic perception aligned color transfer algorithm based on saliencyguided manner. Xiao and Ma [6] and Wang _et al._ [7] presented gradient-preserving color transfer method and L0 gradientpreserving color transfer method respectively to preserve the source image color similarity and image details. In this paper, a novel color transfer method with salient features mapping based on the saliency map and the gradient map is proposed to achieve a pleasant natural appearance. Firstly, the saliency maps of the reference image and source image are built to predict the human visual attention regions in the images. Secondly, the gradient map is obtained by a convolution of the image pair with the Sobel filter. Thirdly, a weighted attention map is produced by a combination of saliency map and gradient map. Fourthly, by thresholding the attention map regions of salient and non-salient pixels in the reference and source images are obtained, and mean and standard deviation of these two kinds of pixels in the three channels of the YUV color space are calculated respectively. Finally, color transfer is processed by an approach similar to Reinhard’s for the two kinds of pixels, whose results are added to generate the final output image. The flowchart of our approach is shown in Figure 1. The rest of this paper is organized as follows: The related work of the color transfer methods is reviewed in Section 2. Section 3 describes in detail the proposed color transfer method with salient features preservation based on the saliency map and gradient map. The experimental results and discussions are provided in Section 4. Finally, the conclusions are summarized in the last section. II. RELATED WORK Reinhard _et_ _al._ [1] firstly proposed a global color transfer method based on simple statistics of the mean and standard deviation for all pixies in the image pairs. However, due to the large difference in the characteristics of local regions between images, the performance of this method is much affected by the little similarity and sizes of the reference and source images. In the case of different color distribution, the results may look unnatural, less to say the distortion in the scene details and color distribution. As such, various improved algorithms had been proposed hence after. Pitie _et al._ [3] proposed an N-dimensional probability density function (PDF) transfer method for global color transfer, which ensures the preservation of color distribution. How ever, it easily overstretches pixel values and causes content changes. As such, a softening scheme was used to remedy it. Rabin _et al._ [27] presented a nonlocal Yaroslavsky spatial filter to suppress artifacts while preserving image details. Xiao and Ma [6] proposed a gradient-preserving approach that employed a global histogram matching algorithm forcing the identity of color histograms of the resulting image with the source image. Su _et_ _al._ [28] presented a similar color histogram matching based on the color mapping scheme. Luan _et_ _al._ [29] introduced a deep learning method to map reference image colors to the source image. Liu and Pei [30] proposed a texture-aware emotional color transfer method between images, which can adjust an image with an emotion word or a reference image to guarantee the color gradient and naturalness. Xie _et_ _al._ [31] designed a new color transfer model with an adaptive second-order total generalized variation (TGV) regularizer. Song and Liu [32] proposes a new image appearance transfer method combining both color and texture features, which can obtain sufficient appearance transfer results. Wang _et_ _al._ [7] presented a _L_ 0 gradientpreserving color transfer method which forced the consistence of pixel gradients of the color region in the resulting image with that in the source image and emphasized the similarities between source image pixel colors. The method used similarity-preserving color mapping algorithm to maintain the similarities between pixel color and dominant color. Then the _L_ 0 gradient-preserving algorithm is performed to relax the large gradients of the sparse pixels along color region boundaries and preserve the small gradients of pixels within color regions. To some extent, this method can preserve the image details and color similarity between images. To achieve a more accurate color transfer utilizing meaningful dense correspondence between images, He _et_ _al._ [8] used neural representations for matching and optimized a local linear model for color transfer to satisfy both local and global constraints. Generally speaking, the performance of the global color transfer algorithm depends on the similarities of color distribution between image pairs. Large statistical difference produces the unnatural effect, while the similar color statistics guarantees a perfect result. To overcome the limitation of the global mapping algorithms, some local mapping algorithms were proposed which relied on the color correspondence and spatial relation. In the strategy of these algorithms, the correspondences of representative colors (such as dominant colors in [5], [10], [33], [34], image patch colors in [35], feature point colors in [15]) from the reference image to source image were obtained firstly. Then, the correspondence of the pixel colors between the image pairs was propagated by using techniques such as GMM and radial basis function interpolation. Tai _et al._ [10] proposed a local color transfer method based on their soft color segmentation algorithm. Firstly, the EM algorithm was improved to segment the input images probabilistically and the Gaussian mixture model (GMM) was constructed for them. Then, the color mapping relationship between each Gaussian component in the source image and FIGURE 1. Flowchart of our approach. some Gaussian components in the reference image were obtained. Finally, Reinhard’s method was applied to each Gaussian component pair and combined the intermediate results fractionally according to the probability of each pixel. Jin _et_ _al._ [36] proposed a fused color transfer method for image colorization to solve the spatial color coherency problem. They employed a simple color transfer method with DFT and variance features to obtain the preliminary colorization results with incoherent colors. Fu _et_ _al._ [37] presented a method for transferring colors between portrait images. They used a trained neural network to extract facial masks and encoded the low-frequency colors by vectoring the image pair with the sparse diffusion curves. Also, the high-frequency details in images are represented by the Laplacian of residual colors. Based on the Simple Linear Iterative Clustering (SLIC) color clustering of the input image and the reference image, Fan _et_ _al._ [38] proposed an intention construction model for color transfer with the subjective perception to predict background and saliency regions. Although the above color transfer methods have achieved remarkable performance, there are also some limitations in some scenarios. Global or local color statistics, and interactive manual coloring are mainly considered in these algorithms, and their performance and visual results are distinct. Here the automatic construction of the color mapping relationship is crucial to color transfer. In reality, the human visual system tends to focus on salient objects, regions, and feature edges in the image, and the saliency map presents the visual attention of the human vision to the important regions of images in the perception process. However, the saliency map - driven color mapping approach for color transfer is rarely studied. In addition, the color mapping, based on the salient feature region, qualifies a more natural visual result and easy implementation by discarding the manual selection of the mapping color in the process. In our work of the approach of an automatic correspondence color mapping via attention maps is verified by its pleasant natural results, easy implementation and lower computation cost. In the following part, our algorithm is derived from the idea of color mapping in terms of salient feature region and applied to the global and local color transfer. Experiments results show the preference of our methods to popular approaches. III. ALGORITHM In this section, the framework of our algorithm is described in detail. YUV color space, the algorithms for calculation of saliency map and gradient map, and the proposed color transfer method are introduced, respectively. _A._ _COLOR SPACE CONVERSION_ Since the choice of color space often influence the image processing result, it is important to choose a proper color space for the given task. Though Lab and HSV color spaces are usually used for color transfer, we choose to use the YUV color space in this study. Different from Lab that is defined in log space, YUV model is defined in linear space. Our experiments on different color spaces indicate a preferrence to YUV color space according to its more natural appearance for most images. The comparison results generated by our method using Lab and YUV color space are shown in Figure 2. calculating the normalized Euclidean distance for each pixel using formula (3). _SM (x, y)_ = �� _Im_ - _Igc_ ( _x, y_ )�� (3) FIGURE 2. Color space comparisons in Lab and YUV. The first column images are source images, the second column images are reference images, the third column images are transfer results in Lab, and the fourth column images are transfer results in YUV. The YUV color model imitates human vision. Similar to RGB, YUV color space is also a kind of color-coding method, which was developed to provide compatibility between color and black/white analog television systems. YUV color space is separated into three components, i.e., Y, U and V component. The Y component determines the brightness of the color (i.e., luminance or luma), while the U and V components determine the color itself (i.e., chrominance or chroma). Without UV information, the images can be displayed with the full contents, though it is only gray (black/white). The image is converted from RGB to YUV space according to formula (1) before making color statistics. And after the color transfer operation, the result is converted back to RGB space using formula (2). where _Im_ is the mean value of the input image. _Igc_ ( _x, y_ ) is the corresponding image pixel value in the Gaussian blurred version of the original input image. ∥·∥ is the L2 norm (i.e., the Euclidean distance). The norm of the difference is adopted because we are only interested in the magnitude of the differences. To extend formula (3), we rewrite it to formula (4) and formula (5) for calculating the saliency map of the reference image ( _SMref_ ) and the saliency map of the source image ( _SMsrc_ ), respectively. _SMref_ = _(Y_ - _Ym)_ <sup>2</sup> + _(U_ - _Um)_ <sup>2</sup> + _(V_ - _Vm)_ <sup>2</sup> (4) �2 + - _V_ <sup>′</sup> - _Vm_ <sup>′</sup> �2 (5) _SMsrc_ = - _Y_ <sup>′</sup> - _Ym_ <sup>′</sup> - _Y_ <sup>′</sup> - _Ym_ <sup>′</sup> �2 + - _U_ <sup>′</sup> - _Um_ <sup>′</sup> _m_ <sup>′</sup> <sup>,</sup> <sup>_U_</sup> _m_ <sup>′</sup> _m_ <sup>′</sup> <sup>,</sup> <sup>_V_</sup> _m_ <sup>′</sup>     _Y_ _U_ _V_ _R_ _G_ _B_       where _Y_, _U_, and _V_ are the pixel values in the color channels of the Gaussian blurred reference image. _Ym_, _Um_, and _Vm_ are the mean values of the pixels in the color channels of the original reference image. Similarly, _Y_ <sup>′</sup>, _U_ <sup>′</sup>, _V_ <sup>′</sup>, and _Ym_ <sup>′</sup> <sup>,</sup> <sup>_U_</sup> _m_ <sup>′</sup> <sup>,</sup> <sup>_V_</sup> _m_ <sup>′</sup> <sup>are</sup> corresponding values in the three color channels of the source image. Finally, _SMref_ and _SMsrc_ are normalized. GRADIENT MAP. Image gradient is the changing of gray levels along the horizontal or vertical direction. The changes are encoded by the gray levels of the horizontal or vertical component of the gradient image: the mean gray level means no change, the bright levels mean change from a dark value to bright value, the dark levels mean change from a bright value to dark value. The image gradients and edges are usually extracted by using the Sobel operator in image processing applications. The Sobel operator is an edge detection filter, which results in the image emphasizing edges. The edge is where the pixel values change the most, which is one of the salient features of the image and plays an important role in image feature extraction, object detection, pattern recognition and etc. The Sobel operator is a separable filter that is represented by two 3 × 3 convolution kernels. Both kernels have the same coefficients as they are rotated 90 degrees to each other and can provide maximum value at horizontal or vertical edge orientation. We can get the _x_ - and _y_ - directional gradients of an image by using the Sobel filter to convolve the image. Calculate the _x_ -directional gradients with the Sobel operator in the horizontal ( _x_ ) direction using formula (6). 1 0 1 _._ 140 1− 0 _._ 395 −0 _._ 581 1 2 _._ 032 0 _R_ _G_ _B_     =   = 0 _._ 299 0 _._ 0587 0 _._ 114 −0 _._ 148 −0 _._ 289 −0 _._ 437 0 _._ 615 0 _._ 515 −0 _._ 100   (1)   _Y_ _U_ _V_     (2) _B._ _SALIENCY MAP AND GRADIENT MAP_ The salient regions in the reference image and the source image are utilized for color mapping in our algorithm. To enhance the saliency of the image features, the gradient information and salient information of the reference and source image are combined. The methods for obtaining the saliency map and gradient map are described as follows. SALIENCY MAP. The saliency of an image is the perceptual quality that makes a person, object, or pixel stand out from its neighbors and thus capture our attention. The saliency map of the image is used to predict the human visual attention regions, and many saliency detection methods have been presented. The algorithm proposed by Achanta _et al._ [39] is employed to calculate the saliency hereafter because of its simplicity and effectiveness. For the convenience of calculations, we modified the algorithm by using the YUV color space. Firstly, calculate the mean values of the pixels in the three channels of YUV space, separately. Then perform Gaussian filtering with a 5 × 5 separable binomial kernel on the input image to eliminate fine texture details as well as noise or coding artifacts, and split it into three color channels. Finally, obtain the saliency map by _Gx_ = ������ −1 0 1 −2 0 2 −1 0 1 - _I_ ( _x, y_ ) (6) ������ Calculate the _y-_ directional gradients with the Sobel operator in the vertical ( _y_ ) direction using formula (7). - _I_ ( _x, y_ ) (7) ������ _G_ y = −1 −2 −1 0 0 0 ������ 1 2 1 where _I_ ( _x, y_ ) is the gray grayscale image of the input image. After obtaining the vertical and horizontal gradients, these two components are combined to produce the magnitude of the gradient using formula (8). the salient pixels in the source and reference images in YUV channels. Likewise, the color transfer operation for the non-salient pixels is performed as follows: _Ion_ ( _x, y_ ) = ( _Isn_ ( _x, y_ ) − _msn_ ) <sup>_σsn_</sup> _σrn_ _G_ = ~~�~~ _G_ <sup>2</sup> _x_ + _G_ <sup>2</sup> _y_ (8) Finally, the gradient map _GM_ is obtained by normalizing the _G_ value. _C._ _COLOR TRANSFER ALGORITHM_ In our algorithm, the input images are the reference image _Ir_ and the source image _Is_, and the output of the algorithm is the transferred image _Io_ . Firstly, the input images are converted into YUV color space. Then, we compute the saliency map _SMref_ and _SMsrc_ of the reference image _Ir_ and source image _Is_, respectively. Meanwhile, the gradient map _GMref_ and _GMsrc_ of the reference image _Ir_ and source image _Is_ are calculated. Next, a weighted combination of gradient map and saliency map is used to produce attention maps _Mrw_ and _Msw_ for the reference image and the source image respectively according to formulas (9) and (10). _Mrw_ = 0 _._ 5 <sup>∗</sup> _SMref_ + 0 _._ 5 <sup>∗</sup> _GMref_ (9) _Msw_ = 0 _._ 5 <sup>∗</sup> _SMsrc_ + 0 _._ 5 <sup>∗</sup> _GMsrc_ (10) where _SMref_ and _GMref_ are the saliency map and gradient map of the reference image. _SMsrc_ and _GMsrc_ are the saliency map and gradient map of the source image. After obtaining the weighted attention maps, the pixels in the reference and source image are segmented into salient pixels and non-salient pixels by a small threshold according to formulas (11) through (14). _Iry_ = _Ir_ ( _Mrw_ ≥ _θ_ ) (11) _Irn_ = _Ir_ ( _Mrw_ _< θ_ ) (12) _Isy_ = _Is_ ( _Msw_ ≥ _θ_ ) (13) _Isn_ = _Is_ ( _Msw_ _< θ_ ) (14) where _Iry_ and _Irn_ denote the salient pixels and non-salient pixels in the reference image. _Isy_ and _Isn_ denote the salient pixels and non-salient pixels in the source image. _θ_ is the threshold for segmenting the salient pixels and non-salient pixels, here _θ_ = 0 _._ 01 is determined by experiments. Next, the mean value and standard deviation of the salient pixels and non-salient pixels in three channels of YUV space are calculated separately. A similar method to Reinhard _et al._ [1] is adopted to perform the color transfer. We use the reciprocal of the scaling factor proposed in [1] to scale the difference value between the pixel value and mean value. This method produces results more consistent, aesthetical and pleasing. The color transfer operation for the salient pixels is performed as follows: + _mrn_ (16) _Ioy_ ( _x, y_ ) = ( _Isy_ ( _x, y_ ) − _msy_ ) <sup>_σsy_</sup> where, _msn_ and _mrn_ are the mean value of the non-salient pixels in the source and reference images in YUV space, respectively. Similarly, _σsn_ and _σrn_ denote the standard deviation of the non-salient pixels in the source and reference images of the three channels. The final output result is obtained by adding the color transfer results of the salient pixels and non-salient pixels with formula (17). _Io_ ( _x, y_ ) = _Ioy_ ( _x, y_ ) + _Ion_ ( _x, y_ ) (17) Finally, _Io_ ( _x, y_ ) is clipped to the range [0, 255] and converted from YUV to RGB color space. IV. RESULTS AND DISCUSSION In this section, extensive experiments have been carried out to evaluate the performance of the proposed method. Our algorithm was implemented with Python and OpenCV and run in Windows 7 environment on a laptop with Intel Core i7 2.60 GHz processor and 8GB RAM. _A._ _PERFORMANCE EVALUATION_ In the first experiment, the performance of the proposed method and state-of-the-art automatic color transfer approaches was evaluated on 70 reference-source image pairs as the test examples. Each image pair includes a source image and a reference image. The proposed method was compared with five baseline methods: Pitie _et al._ [4], Xiao and Ma [6], Rabin _et al._ [27], Su _et al._ [28], and Wang _et al._ [7]. Some of these examples we used are the same as that of Wang _et_ _al._ and the comparison results produced by these methods are shown in Figure 3. In the illustrated examples, there are different color distributions between the source and reference images. Nevertheless, our proposed method can achieve good natural results. Moreover, the color similarity and detail features are preserved in the results. From Figure 3, it can be observed that our results in the first and second columns are similar to Wang’s but better than others. The results generated by our method in the third and fourth columns have more natural appearances. Furthermore, the proposed method has more advantages in execution speed. The second experiment evaluated the performance of the color mapping schemes by comparing our method with the color histograms matching [6], probabilistic color mapping [28] and _L_ 0 gradient-preserving scheme [7], separately. These schemes were tested on 50 image pairs. Each image pair generated an intermediate image by conducting only the color mapping step. The results of three representative examples are shown in Figure 4. _σry_ + _mry_ (15) where, _msy_ and _mry_ are the mean value of the salient pixels in the source and reference images in three channels, respectively. Similarly, _σsy_ and _σry_ denote the standard deviation of FIGURE 3. Comparisons of the proposed method with Pitie _et al._ [4] (n = [10,10,3,3,10], _ψ_ = 1), Xiao and Ma [6] ( _λ_ = 1), Rabin _et al._ [27], Su _et al._ [28] and Wang _et al._ [7]. The first row images are reference images; the second row images are source images. FIGURE 4. Color mapping comparisons. Our method is compared with those using color histogram matching (Xiao _et al._ ), probabilistic color mapping (Su _et al._ ), and _L_ 0 gradient-preserving scheme (Wang _et al._ ). In these examples, the results produced by our method appear to have more natural visual effects than the other schemes. Compared with the _L_ 0 gradient-preserving scheme and ours, the visual effect of the results generated by the color histograms matching and probabilistic color mapping scheme is relatively inferior, such as the part in the left column sky, the grass and the sky in the middle column, and the maple leaves in the right column. Moreover, the proposed method has better color similarities than Wang _et_ _al._ about the building color in the left column and the sky color in the middle column. Furthermore, the proposed method has better visual performance than the others in detail preservation. For example, the building in the first column and the leaves in the right column are more distinct in detail. Figure 5 shows more examples of our proposed color transfer method. From this figure, the first row and second row are the global color mapping scenarios, which achieved excellent color transfer effects. The image pairs in the third to fifth row are the local color mapping scenarios. In the third row, the colors of the coconut tree and beach in the reference image are transferred to the corresponding part of the source image correctly. In the examples of the last two rows, the primary FIGURE 5. More examples of our approach. The first column images are source images, the second column images are reference images, and the third column images are transfer results. goal is the local color transfer between the flowers. It can be observed that the colors of the flowers in reference images are transferred to the source images accurately. The results have a natural pleasant appearance. Furthermore, the details of the transfer results are excellent. _B._ _TIME CONSUMPTION_ In addition to the performance of the algorithm, the running speed is also a factor in consideration. In this experiment, 30 image pairs were tested to evaluate the run-time of our proposed method, Xiao and Ma [6], Su _et al._ [28], and Wang _et_ _al._ [7]. We uniformly resized all the images to the size of 800 × 600. The run-time in the form of mean and standard deviation (SD) for all compared methods is shown in Table 1. The mean value of the run-time for all image pairs is shown in the first row, and the standard deviation (SD) is given in the second row. Obviously, the run-time of our proposed method is far less than other methods for color transfer. Because our method is simple to implement, it can run very fast reasonably. The entire color transfer of our proposed method takes about 0.16 seconds to produce the final result for an 800 × 600 input image, while the other methods take much higher time. For example, the method of Wang _et al._ takes more than 8 seconds. Those CNN (convolutional neural network) based TABLE 1. Run-time comparison for color transfer. color transfer methods require higher hardware configuration while consumes more run-time. The experimental results show that the proposed approach has a significant advantage in time consumption compared with the color transfer methods based on the color histograms matching, probabilistic color mapping, and gradientpreserving method. _C._ _LIMITATIONS_ From the experimental results, the proposed method has achieved remarkable performance on image pairs where semantical correspondence is significant, such as the examples in the bottom two rows of Figure 4. Moreover, for most of the image pairs without salient semantic features the visual effect of our method is also slightly better than some traditional methods, though not so remarkably, as shown in Figure 2 and Figure 3. However, for some image pairs where the saliency for one is background, and the other is foreground, the proposed method may produce poor visual effects due to incorrect color mapping. V. CONCLUSION The color transfer between images is a useful image processing technology. Successful color transfers can accurately transfer the color style from the reference image to the source image while preserving the color similarity and the details of the source image. In this paper, we have proposed a novel color transfer method with salient features mapping between the reference and source images based on human visual perception. The color transfer is performed in the YUV color space. It maps the colors of salient feature regions based on the saliency map and the gradient map. Our method is simple and easy to implement with low time cost. Moreover, the proposed method is suitable for most of some scenes of the global and local color transfer, which has good robustness and can achieve a pleasant natural appearance with color similarity and image details retained. Furthermore, the proposed method can be applied to the video content easily because of its easy implementation and high speed. To solve the limitations of the proposed algorithm, we will make efforts to improve it further in future work. REFERENCES [1] E. Reinhard, M. Adhikhmin, B. Gooch, and P. Shirley, ‘‘Color transfer between images,’’ _IEEE Comput. Graph. Appl._, vol. 21, no. 4, pp. 34–41, Jul./Aug. 2001. [2] X. Xiao and L. Ma, ‘‘Color transfer in correlated color space,’’ in _Proc._ _ACM_ _Int._ _Conf._ _Virtual_ _Reality_ _Continuum_ _Appl._ _(VRCIA)_, Hong Kong, 2006, pp. 305–309. [3] F. Pitie, A. C. Kokaram, and R. Dahyot, ‘‘N-dimensional probability density function transfer and its application to color transfer,’’ in _Proc. 10th_ _IEEE_ _Int._ _Conf._ _Comput._ _Vis._ _(ICCV)_, Beijing, China, vol. 2, Oct. 2005, pp. 1434–1439. [4] F. Pitié, A. C. Kokaram, and R. Dahyot, ‘‘Automated colour grading using colour distribution transfer,’’ _Comput._ _Vis._ _Image_ _Understand._, vol. 107, nos. 1–2, pp. 123–137, Jul. 2007. [5] Y.-W. Tai, J. Jia, and C.-K. Tang, ‘‘Soft color segmentation and its applications,’’ _IEEE_ _Trans._ _Pattern_ _Anal._ _Mach._ _Intell._, vol. 29, no. 9, pp. 1520–1537, Sep. 2007. [6] X. Xiao and L. Ma, ‘‘Gradient-preserving color transfer,’’ _Comput. Graph._ _Forum_, vol. 28, no. 7, pp. 1879–1886, Oct. 2009. [7] D. Wang, C. Zou, G. Li, C. Gao, Z. Su, and P. Tan, ‘‘ _L_ 0 gradient-preserving color transfer,’’ _Comput. Graph. Forum_, vol. 36, pp. 93–103, Oct. 2017. [8] M. He, J. Liao, D. Chen, L. Yuan, and P. V. Sander, ‘‘Progressive color transfer with dense semantic correspondences,’’ _ACM_ _Trans._ _Graph._, vol. 38, no. 2, pp. 1–18, Apr. 2019. [9] W. Dong, G. Bao, X. Zhang, and J.-C. Paul, ‘‘Fast local color transfer via dominant colors mapping,’’ in _Proc. ACM SIGGRAPH ASIA Sketches (SA)_, 2010, p. 46. [10] Y.-W. Tai, J. Jia, and C.-K. Tang, ‘‘Local color transfer via probabilistic segmentation by expectation-maximization,’’ in _Proc. IEEE Comput. Soc._ _Conf. Comput. Vis. Pattern Recognit. (CVPR)_, Jun. 2005, pp. 747–754. [11] Y. Xiang, B. Zou, and H. Li, ‘‘Selective color transfer with multi-source images,’’ _Pattern Recognit. Lett._, vol. 30, no. 7, pp. 682–689, May 2009. [12] M. Grogan and R. Dahyot, ‘‘L2 divergence for robust colour transfer,’’ _Comput. Vis. Image Understand._, vol. 181, pp. 39–49, Apr. 2019. [13] L. Florea and C. Florea, ‘‘Directed color transfer for low-light image enhancement,’’ _Digit. Signal Process._, vol. 93, pp. 1–12, Oct. 2019. [14] Z. Li, Z. Tan, L. Cao, H. Chen, L. Jiao, and Y. Zhong, ‘‘Directive local color transfer based on dynamic look-up table,’’ _Signal_ _Process.,_ _Image_ _Commun._, vol. 79, pp. 1–12, Nov. 2019. [15] Y. Hwang, J.-Y. Lee, I. S. Kweon, and S. J. Kim, ‘‘Color transfer using probabilistic moving least squares,’’ in _Proc._ _IEEE_ _Conf._ _Comput._ _Vis._ _Pattern Recognit._, Jun. 2014, pp. 3342–3349. [16] Y. Hwang, J.-Y. Lee, I. S. Kweon, and S. J. Kim, ‘‘Probabilistic moving least squares with spatial constraints for nonlinear color transfer between images,’’ _Comput. Vis. Image Understand._, vol. 180, pp. 1–12, Mar. 2019. [17] B. Arbelot, R. Vergne, T. Hurtut, and J. Thollot, ‘‘Local texture-based color transfer and colorization,’’ _Comput. Graph._, vol. 62, pp. 15–27, Feb. 2017. [18] Q. Chen, J. Xu, and V. Koltun, ‘‘Fast image processing with fully convolutional networks,’’ in _Proc._ _IEEE_ _Int._ _Conf._ _Comput._ _Vis._ _(ICCV)_, Oct. 2017, pp. 2497–2506. [19] D. Liu, Y. Jiang, M. Pei, and S. Liu, ‘‘Emotional image color transfer via deep learning,’’ _Pattern Recognit. Lett._, vol. 110, pp. 16–22, Jul. 2018. [20] L. Cao, L. Jiao, Z. Li, T. Liu, and Y. Zhong, ‘‘Grayscale image coloriza tion using an adaptive weighted average method,’’ _J. Imag. Sci. Technol._, vol. 61, no. 6, 2017, Art. no. 60502. [21] J. Xia, ‘‘Saliency-guided color transfer between images,’’ in _Proc. Adv. Vis._ _Comput._, Berlin, Germany, 2013, pp. 468–475. [22] C. L. Wen, C. H. Hsieh, B. Y. Chen, and M. Ouhyoung, ‘‘Example-based multiple local color transfer by strokes,’’ _Comput. Graph. Forum_, vol. 27, pp. 1765–1772, Oct. 2008. [23] A. Levin, D. Lischinski, and Y. Weiss, ‘‘Colorization using optimization,’’ in _Proc. ACM SIGGRAPH_, 2004, pp. 689–694. [24] S. Liu, H. Sun, and X. Zhang, ‘‘Selective color transferring via ellipsoid color mixture map,’’ _J._ _Vis._ _Commun._ _Image_ _Represent._, vol. 23, no. 1, pp. 173–181, Jan. 2012. [25] M. Grogan, R. Dahyot, and A. Smolic, ‘‘User interaction for image recolouring using £2,’’ in _Proc. 14th Eur. Conf. Vis. Media Prod. (CVMP)_, London, U.K., Dec. 2017, pp. 1–10. [26] R. Achanta, F. Estrada, P. Wils, and S. Süsstrunk, ‘‘Salient region detection and segmentation,’’ in _Proc._ _6th_ _Int._ _Conf._ _Comput._ _Vis._ _Syst._, Berlin, Germany, 2008, pp. 66–75. [27] J. Rabin, J. Delon, and Y. Gousseau, ‘‘Removing artefacts from color and contrast modifications,’’ _IEEE Trans. Image Process._, vol. 20, no. 11, pp. 3073–3085, Nov. 2011. [28] Z. Su, K. Zeng, L. Liu, B. Li, and X. Luo, ‘‘Corruptive artifacts suppression for example-based color transfer,’’ _IEEE Trans. Multimedia_, vol. 16, no. 4, pp. 988–999, Jun. 2014. [29] F. Luan, S. Paris, E. Shechtman, and K. Bala, ‘‘Deep photo style transfer,’’ in _Proc._ _IEEE_ _Conf._ _Comput._ _Vis._ _Pattern_ _Recognit._ _(CVPR)_, Jul. 2017, pp. 4990–4998. [30] S. Liu and M. Pei, ‘‘Texture-aware emotional color transfer between images,’’ _IEEE Access_, vol. 6, pp. 31375–31386, 2018. [31] B. Xie, C. Xu, Y. Han, and R. K. F. Teng, ‘‘Color transfer using adaptive second-order total generalized variation regularizer,’’ _IEEE Access_, vol. 6, pp. 6829–6839, 2018. [32] Z.-C. Song and S.-G. Liu, ‘‘Sufficient image appearance transfer com bining color and texture,’’ _IEEE_ _Trans._ _Multimedia_, vol. 19, no. 4, pp. 702–711, Apr. 2017. [33] H. Chang, O. Fried, Y. Liu, S. DiVerdi, and A. Finkelstein, ‘‘Palette-based photo recoloring,’’ _Acm Trans. Graph._, vol. 34, no. 4, pp. 1–11, 2015. [34] Q. Zhang, C. Xiao, H. Sun, and F. Tang, ‘‘Palette-based image recoloring using color decomposition optimization,’’ _IEEE_ _Trans._ _Image_ _Process._, vol. 26, no. 4, pp. 1952–1964, Apr. 2017. [35] Y. HaCohen, E. Shechtman, D. B. Goldman, and D. Lischinski, ‘‘Non-rigid dense correspondence with applications for image enhancement,’’ _ACM_ _Trans. Graph._, vol. 30, no. 4, pp. 1–10, Jul. 2011. [36] Z. Jin, L. Min, M. K. Ng, and M. Zheng, ‘‘Image colorization by fusion of color transfers based on DFT and variance features,’’ _Comput. Math. Appl._, vol. 77, no. 9, pp. 2553–2567, May 2019. [37] Q. Fu, Y. He, F. Hou, J. Zhang, A. Zeng, and Y.-J. Liu, ‘‘Vectorization based color transfer for portrait images,’’ _Comput.-Aided_ _Des._, vol. 115, pp. 111–121, Oct. 2019. [38] M. Fan, Z. Li, and J. Long, ‘‘Color transfer based on visual saliency,’’ in _Proc._ _Adv._ _Graphic_ _Commun.,_ _Printing_ _Packag._, Singapore, 2019, pp. 227–232. [39] R. Achanta, S. Hemami, F. Estrada, and S. Susstrunk, ‘‘Frequency-tuned salient region detection,’’ in _Proc. IEEE Conf. Comput. Vis. Pattern Recog-_ _nit._, Jun. 2009, pp. 1597–1604. ZONGSHENG WU received the B.S. degree in computer science from the Xi’an University of Technology, Xi’an, Shaanxi, China, in 1998, the M.S. degree in traffic information engineering and control from Chang’an University, in 2012, and the Ph.D. degree in mechanical and electronic engineering from the Xi’an University of Technology, in 2017. He is currently an Assistant Professor with the School of Computer Science, Xianyang Normal University, Xianyang, Shaanxi, China. His main research interests include swarm intelligent optimization, digital image processing, intelligent robot, and robot vision. RU XUE was born in Xi’an, Shaanxi, China, in 1974. She received the B.S. degree in computer science from the Xi’an University of Technology, Xi’an, Shaanxi, China, in 1998, the M.S. degree in communication and information system engineering from Tianjin University, Tianjin, in 2007, and the Ph.D. degree in intelligent transportation and information system engineering from Chang’an University, Xi’an, Shaanxi, in 2014. She has 20 years of teaching and research experience. She is currently a Professor with Xizang Minzu University, Xianyang, Shaanxi, China. Her research interests include computer vision, machine learning, image processing, image steganography, and pattern recognition.

섹션 본문 40문단 · 26,551자

(제목 없음)

1Color transfer is a useful image editing technology that transfers the color style of a reference image to a source image. In this paper, a novel automatic perception color transfer method based on salient features mapping was proposed. Firstly, the saliency maps of the reference image and source image are built to predict the human visual attention regions. Secondly, the gradient map is calculated by convolving the image pair with Sobel filter. Thirdly, the saliency map and gradient map are combined to produce a weighted attention map. Fourthly, by thresholding the attention map the reference image and the source image are segmented into regions of salient and non-salient pixels, and mean and standard deviation of these two regions are calculated in the three channels of the YUV space, respectively. Finally, on the salient and nonsalient pixels an execution similar to Reinhard's is performed, and the two results are combined to generate the final output. The experiments result show the superiority of our method by its pleasant natural appearance with color similarity and image details preservation, high time efficiency and easy implementation.INDEX TERMSColor transfer, color style, salient features, gradient map, image editing. 104884 This work is licensed under a Creative Commons Attribution 4.0 License. For more information, see https://creativecommons.org/licenses/by/4.0/ VOLUME 8, 2020 ZONGSHENG WU received the B.

I. INTRODUCTION

2Color transfer is an image editing technology aiming to transfer the color style of a reference image to a source image, which is widely used in various image and video processing applications, such as image colorization, image enhancement and special effects for videos. Two key issues involved in this topic include the construction of correct color mapping between the reference image and the source image, and the preservation of the source image content after color transfer. Color mapping ensures that the color of the reference image be properly transferred to the source image while keeping the color similarity; and the preservation of color content requires that the structure and texture of the resulting image be consistent with source image after the process.

3Over the past years, much efforts have been made to address these issues with many results. Color transfer methods can be classified into two main categories: the global color transfer methods and the local ones. The global color transfer methods [1]- [8] take into account all pixels for calculating the color statistics; it is easily used due to its simplicity and high running speed. It usually works under the The associate editor coordinating the review of this manuscript and approving it for publication was Inês Domingues . assumption of similarity of global color distributions between the reference and source images. However, the typical ignorance of spatial relationship could easily cause misleading color mapping and color distortion. To achieve good results for these global methods, a careful choice of image pairs is inevitable.

4In order to attack the above problems, some local color transfer methods considering the color correspondence and spatial relationship are presented in [9]- [25]. The local color transfer methods are divided into two groups: traditional methods and machine learning methods. Dominant color mapping [9], Gaussian Mixture Models [10]- [12], directive local color transfer methods [13], [14], probabilistic moving least square algorithms [15], [16], local texture-based method [17], etc. belong to the former group. The latter group includes color style changed with neural network [18], deep learning framework [19], and colorization with the SVM algorithm [20]. These local color transfer methods can also be classified as automatic methods [4], [12], [18]- [21] and interactive methods [17], [22]- [25], where the former ones refer to the automatic local color mapping without manual intervention to region matching, and the latter means the allowance of users in defining the correspondence by sketches or rectangles. Compared with global color transfer methods, local methods usually work better in processing the textures and salient regions of an image. However, most local methods still have some disadvantages, such as misleading local color mapping and loss of details, which is worth further studying.

5To improve the performance of the color transfer, some algorithms based on salient regions and gradient-preserving themes have been proposed. Salient regions refer to parts visually more conspicuous than the surrounding regions [26]. According to the salient regions of human visual attention in images, the color correspondence between image pairs can be built automatically. Xia [21] proposed an automatic perception aligned color transfer algorithm based on saliencyguided manner. Xiao and Ma [6] and Wang et al. [7] presented gradient-preserving color transfer method and L0 gradientpreserving color transfer method respectively to preserve the source image color similarity and image details.

6In this paper, a novel color transfer method with salient features mapping based on the saliency map and the gradient map is proposed to achieve a pleasant natural appearance. Firstly, the saliency maps of the reference image and source image are built to predict the human visual attention regions in the images. Secondly, the gradient map is obtained by a convolution of the image pair with the Sobel filter. Thirdly, a weighted attention map is produced by a combination of saliency map and gradient map. Fourthly, by thresholding the attention map regions of salient and non-salient pixels in the reference and source images are obtained, and mean and standard deviation of these two kinds of pixels in the three channels of the YUV color space are calculated respectively. Finally, color transfer is processed by an approach similar to Reinhard's for the two kinds of pixels, whose results are added to generate the final output image. The flowchart of our approach is shown in Figure 1.

7The rest of this paper is organized as follows: The related work of the color transfer methods is reviewed in Section 2. Section 3 describes in detail the proposed color transfer method with salient features preservation based on the saliency map and gradient map. The experimental results and discussions are provided in Section 4. Finally, the conclusions are summarized in the last section.

II. RELATED WORK

8Reinhard et al. [1] firstly proposed a global color transfer method based on simple statistics of the mean and standard deviation for all pixies in the image pairs. However, due to the large difference in the characteristics of local regions between images, the performance of this method is much affected by the little similarity and sizes of the reference and source images. In the case of different color distribution, the results may look unnatural, less to say the distortion in the scene details and color distribution. As such, various improved algorithms had been proposed hence after.

9Pitie et al. [3] proposed an N-dimensional probability density function (PDF) transfer method for global color transfer, which ensures the preservation of color distribution. How-ever, it easily overstretches pixel values and causes content changes. As such, a softening scheme was used to remedy it. Rabin et al. [27] presented a nonlocal Yaroslavsky spatial filter to suppress artifacts while preserving image details. Xiao and Ma [6] proposed a gradient-preserving approach that employed a global histogram matching algorithm forcing the identity of color histograms of the resulting image with the source image. Su et al. [28] presented a similar color histogram matching based on the color mapping scheme. Luan et al. [29] introduced a deep learning method to map reference image colors to the source image. Liu and Pei [30] proposed a texture-aware emotional color transfer method between images, which can adjust an image with an emotion word or a reference image to guarantee the color gradient and naturalness. Xie et al. [31] designed a new color transfer model with an adaptive second-order total generalized variation (TGV) regularizer. Song and Liu [32] proposes a new image appearance transfer method combining both color and texture features, which can obtain sufficient appearance transfer results. Wang et al. [7] presented a L 0 gradientpreserving color transfer method which forced the consistence of pixel gradients of the color region in the resulting image with that in the source image and emphasized the similarities between source image pixel colors. The method used similarity-preserving color mapping algorithm to maintain the similarities between pixel color and dominant color. Then the L 0 gradient-preserving algorithm is performed to relax the large gradients of the sparse pixels along color region boundaries and preserve the small gradients of pixels within color regions. To some extent, this method can preserve the image details and color similarity between images. To achieve a more accurate color transfer utilizing meaningful dense correspondence between images, He et al. [8] used neural representations for matching and optimized a local linear model for color transfer to satisfy both local and global constraints. Generally speaking, the performance of the global color transfer algorithm depends on the similarities of color distribution between image pairs. Large statistical difference produces the unnatural effect, while the similar color statistics guarantees a perfect result.

10To overcome the limitation of the global mapping algorithms, some local mapping algorithms were proposed which relied on the color correspondence and spatial relation. In the strategy of these algorithms, the correspondences of representative colors (such as dominant colors in [5], [10], [33], [34], image patch colors in [35], feature point colors in [15]) from the reference image to source image were obtained firstly. Then, the correspondence of the pixel colors between the image pairs was propagated by using techniques such as GMM and radial basis function interpolation.

11Tai et al. [10] proposed a local color transfer method based on their soft color segmentation algorithm. Firstly, the EM algorithm was improved to segment the input images probabilistically and the Gaussian mixture model (GMM) was constructed for them. Then, the color mapping relationship between each Gaussian component in the source image and Jin et al. [36] proposed a fused color transfer method for image colorization to solve the spatial color coherency problem. They employed a simple color transfer method with DFT and variance features to obtain the preliminary colorization results with incoherent colors. Fu et al. [37] presented a method for transferring colors between portrait images. They used a trained neural network to extract facial masks and encoded the low-frequency colors by vectoring the image pair with the sparse diffusion curves. Also, the high-frequency details in images are represented by the Laplacian of residual colors. Based on the Simple Linear Iterative Clustering (SLIC) color clustering of the input image and the reference image, Fan et al. [38] proposed an intention construction model for color transfer with the subjective perception to predict background and saliency regions.

12Although the above color transfer methods have achieved remarkable performance, there are also some limitations in some scenarios. Global or local color statistics, and interactive manual coloring are mainly considered in these algorithms, and their performance and visual results are distinct.

13Here the automatic construction of the color mapping relationship is crucial to color transfer. In reality, the human visual system tends to focus on salient objects, regions, and feature edges in the image, and the saliency map presents the visual attention of the human vision to the important regions of images in the perception process. However, the saliency map -driven color mapping approach for color transfer is rarely studied. In addition, the color mapping, based on the salient feature region, qualifies a more natural visual result and easy implementation by discarding the manual selection of the mapping color in the process. In our work of the approach of an automatic correspondence color mapping via attention maps is verified by its pleasant natural results, easy implementation and lower computation cost. In the following part, our algorithm is derived from the idea of color mapping in terms of salient feature region and applied to the global and local color transfer. Experiments results show the preference of our methods to popular approaches.

III. ALGORITHM

14In this section, the framework of our algorithm is described in detail. YUV color space, the algorithms for calculation of saliency map and gradient map, and the proposed color transfer method are introduced, respectively.

A. COLOR SPACE CONVERSION

15Since the choice of color space often influence the image processing result, it is important to choose a proper color space for the given task. Though Lab and HSV color spaces are usually used for color transfer, we choose to use the YUV color space in this study. Different from Lab that is defined in log space, YUV model is defined in linear space. Our experiments on different color spaces indicate a preferrence to YUV color space according to its more natural appearance for most images. The comparison results generated by our method using Lab and YUV color space are shown in Figure 2. The YUV color model imitates human vision. Similar to RGB, YUV color space is also a kind of color-coding method, which was developed to provide compatibility between color and black/white analog television systems. YUV color space is separated into three components, i.e., Y, U and V component. The Y component determines the brightness of the color (i.e., luminance or luma), while the U and V components determine the color itself (i.e., chrominance or chroma). Without UV information, the images can be displayed with the full contents, though it is only gray (black/white).

16The image is converted from RGB to YUV space according to formula (1) before making color statistics. And after the color transfer operation, the result is converted back to RGB space using formula (2). The salient regions in the reference image and the source image are utilized for color mapping in our algorithm.

17To enhance the saliency of the image features, the gradient information and salient information of the reference and source image are combined. The methods for obtaining the saliency map and gradient map are described as follows. SALIENCY MAP. The saliency of an image is the perceptual quality that makes a person, object, or pixel stand out from its neighbors and thus capture our attention. The saliency map of the image is used to predict the human visual attention regions, and many saliency detection methods have been presented. The algorithm proposed by Achanta et al. [39] is employed to calculate the saliency hereafter because of its simplicity and effectiveness. For the convenience of calculations, we modified the algorithm by using the YUV color space. Firstly, calculate the mean values of the pixels in the three channels of YUV space, separately. Then perform Gaussian filtering with a 5 × 5 separable binomial kernel on the input image to eliminate fine texture details as well as noise or coding artifacts, and split it into three color channels. Finally, obtain the saliency map by calculating the normalized Euclidean distance for each pixel using formula (3).

18where I m is the mean value of the input image. I gc (x, y) is the corresponding image pixel value in the Gaussian blurred version of the original input image. · is the L2 norm (i.e., the Euclidean distance). The norm of the difference is adopted because we are only interested in the magnitude of the differences. To extend formula (3), we rewrite it to formula (4) and formula (5) for calculating the saliency map of the reference image (SM ref ) and the saliency map of the source image (SM src ), respectively. The Sobel operator is an edge detection filter, which results in the image emphasizing edges. The edge is where the pixel values change the most, which is one of the salient features of the image and plays an important role in image feature extraction, object detection, pattern recognition and etc. The Sobel operator is a separable filter that is represented by two 3 × 3 convolution kernels. Both kernels have the same coefficients as they are rotated 90 degrees to each other and can provide maximum value at horizontal or vertical edge orientation. We can get the x-and y-directional gradients of an image by using the Sobel filter to convolve the image.

19Calculate the x-directional gradients with the Sobel operator in the horizontal (x) direction using formula (6).

20Calculate the y-directional gradients with the Sobel operator in the vertical (y) direction using formula (7).

21where I (x, y) is the gray grayscale image of the input image. VOLUME 8, 2020 After obtaining the vertical and horizontal gradients, these two components are combined to produce the magnitude of the gradient using formula (8).

22Finally, the gradient map GM is obtained by normalizing the G value.

C. COLOR TRANSFER ALGORITHM

23In our algorithm, the input images are the reference image I r and the source image I s , and the output of the algorithm is the transferred image I o . Firstly, the input images are converted into YUV color space. Then, we compute the saliency map SM ref and SM src of the reference image I r and source image I s , respectively. Meanwhile, the gradient map GM ref and GM src of the reference image I r and source image I s are calculated. Next, a weighted combination of gradient map and saliency map is used to produce attention maps M rw and M sw for the reference image and the source image respectively according to formulas (9) and (10).

24M sw = 0.5 * SM src + 0.5 * GM src (10) where SM ref and GM ref are the saliency map and gradient map of the reference image. SM src and GM src are the saliency map and gradient map of the source image. After obtaining the weighted attention maps, the pixels in the reference and source image are segmented into salient pixels and non-salient pixels by a small threshold according to formulas (11) through (14).

25where I ry and I rn denote the salient pixels and non-salient pixels in the reference image. I sy and I sn denote the salient pixels and non-salient pixels in the source image. θ is the threshold for segmenting the salient pixels and non-salient pixels, here θ = 0.01 is determined by experiments. Next, the mean value and standard deviation of the salient pixels and non-salient pixels in three channels of YUV space are calculated separately. A similar method to Reinhard et al. [1] is adopted to perform the color transfer. We use the reciprocal of the scaling factor proposed in [1] to scale the difference value between the pixel value and mean value. This method produces results more consistent, aesthetical and pleasing.

26The color transfer operation for the salient pixels is performed as follows:

27I oy (x, y) = (I sy (x, y) − m sy ) σ sy σ ry + m ry (15) where, m sy and m ry are the mean value of the salient pixels in the source and reference images in three channels, respectively. Similarly, σ sy and σ ry denote the standard deviation of the salient pixels in the source and reference images in YUV channels. Likewise, the color transfer operation for the non-salient pixels is performed as follows: (16) where, m sn and m rn are the mean value of the non-salient pixels in the source and reference images in YUV space, respectively. Similarly, σ sn and σ rn denote the standard deviation of the non-salient pixels in the source and reference images of the three channels. The final output result is obtained by adding the color transfer results of the salient pixels and non-salient pixels with formula (17).

28Finally, I o (x, y) is clipped to the range [0, 255] and converted from YUV to RGB color space.

IV. RESULTS AND DISCUSSION

29In this section, extensive experiments have been carried out to evaluate the performance of the proposed method. Our algorithm was implemented with Python and OpenCV and run in Windows 7 environment on a laptop with Intel Core i7 2.60 GHz processor and 8GB RAM.

A. PERFORMANCE EVALUATION

30In the first experiment, the performance of the proposed method and state-of-the-art automatic color transfer approaches was evaluated on 70 reference-source image pairs as the test examples. Each image pair includes a source image and a reference image. The proposed method was compared with five baseline methods: Pitie et al. [4], Xiao and Ma [6], Rabin et al. [27], Su et al. [28], and Wang et al. [7].

31Some of these examples we used are the same as that of Wang et al. and the comparison results produced by these methods are shown in Figure 3.

32In the illustrated examples, there are different color distributions between the source and reference images. Nevertheless, our proposed method can achieve good natural results. Moreover, the color similarity and detail features are preserved in the results.

33From Figure 3, it can be observed that our results in the first and second columns are similar to Wang's but better than others. The results generated by our method in the third and fourth columns have more natural appearances. Furthermore, the proposed method has more advantages in execution speed.

34The second experiment evaluated the performance of the color mapping schemes by comparing our method with the color histograms matching [6], probabilistic color mapping [28] and L 0 gradient-preserving scheme [7], separately. These schemes were tested on 50 image pairs. Each image pair generated an intermediate image by conducting only the color mapping step. The results of three representative examples are shown in Figure 4. In these examples, the results produced by our method appear to have more natural visual effects than the other schemes. Compared with the L 0 gradient-preserving scheme and ours, the visual effect of the results generated by the color histograms matching and probabilistic color mapping scheme is relatively inferior, such as the part in the left column sky, the grass and the sky in the middle column, and the maple leaves in the right column. Moreover, the proposed method has better color similarities than Wang et al. about the building color in the left column and the sky color in the middle column. Furthermore, the proposed method has better visual performance than the others in detail preservation. For example, the building in the first column and the leaves in the right column are more distinct in detail. Figure 5 shows more examples of our proposed color transfer method. From this figure, the first row and second row are the global color mapping scenarios, which achieved excellent color transfer effects. The image pairs in the third to fifth row are the local color mapping scenarios. In the third row, the colors of the coconut tree and beach in the reference image are transferred to the corresponding part of the source image correctly. In the examples of the last two rows, the primary goal is the local color transfer between the flowers. It can be observed that the colors of the flowers in reference images are transferred to the source images accurately. The results have a natural pleasant appearance. Furthermore, the details of the transfer results are excellent.

B. TIME CONSUMPTION

35In addition to the performance of the algorithm, the running speed is also a factor in consideration. In this experiment, 30 image pairs were tested to evaluate the run-time of our proposed method, Xiao and Ma [6], Su et al. [28], and Wang et al. [7]. We uniformly resized all the images to the size of 800 × 600. The run-time in the form of mean and standard deviation (SD) for all compared methods is shown in Table 1. The mean value of the run-time for all image pairs is shown in the first row, and the standard deviation (SD) is given in the second row. Obviously, the run-time of our proposed method is far less than other methods for color transfer. Because our method is simple to implement, it can run very fast reasonably.

36The entire color transfer of our proposed method takes about 0.16 seconds to produce the final result for an 800 × 600 input image, while the other methods take much higher time. For example, the method of Wang et al. takes more than 8 seconds. Those CNN (convolutional neural network) based color transfer methods require higher hardware configuration while consumes more run-time.

37The experimental results show that the proposed approach has a significant advantage in time consumption compared with the color transfer methods based on the color histograms matching, probabilistic color mapping, and gradientpreserving method.

C. LIMITATIONS

38From the experimental results, the proposed method has achieved remarkable performance on image pairs where semantical correspondence is significant, such as the examples in the bottom two rows of Figure 4. Moreover, for most of the image pairs without salient semantic features the visual effect of our method is also slightly better than some traditional methods, though not so remarkably, as shown in Figure 2 and Figure 3.

39However, for some image pairs where the saliency for one is background, and the other is foreground, the proposed method may produce poor visual effects due to incorrect color mapping.

V. CONCLUSION

40The color transfer between images is a useful image processing technology. Successful color transfers can accurately transfer the color style from the reference image to the source image while preserving the color similarity and the details of the source image. In this paper, we have proposed a novel color transfer method with salient features mapping between the reference and source images based on human visual perception. The color transfer is performed in the YUV color space. It maps the colors of salient feature regions based on the saliency map and the gradient map. Our method is simple and easy to implement with low time cost. Moreover, the proposed method is suitable for most of some scenes of the global and local color transfer, which has good robustness and can achieve a pleasant natural appearance with color similarity and image details retained. Furthermore, the proposed method can be applied to the video content easily because of its easy implementation and high speed. To solve the limitations of the proposed algorithm, we will make efforts to improve it further in future work.

참고문헌 40건

  1. Salient Region Detection and Segmentation Springer eBooks · Springer Nature · 2008 10.1007/978-3-540-79547-6_7
  2. Palette-based photo recoloring ACM Transactions on Graphics · Association for Computing Machinery · 2015 10.1145/2766978
  3. Corruptive Artifacts Suppression for Example-Based Color Transfer IEEE Transactions on Multimedia · Institute of Electrical and Electronics Engineers · 2014 10.1109/tmm.2014.2305914
  4. Selective color transfer with multi-source images Pattern Recognition Letters · Elsevier BV · 2009 10.1016/j.patrec.2009.01.004
  5. Automated colour grading using colour distribution transfer Computer Vision and Image Understanding · Elsevier BV · 2007 10.1016/j.cviu.2006.11.011
  6. Gradient‐Preserving Color Transfer Computer Graphics Forum · Wiley · 2009 10.1111/j.1467-8659.2009.01566.x
  7. Selective color transferring via ellipsoid color mixture map Journal of Visual Communication and Image Representation · Elsevier BV · 2011 10.1016/j.jvcir.2011.09.006
  8. Color Transfer Using Probabilistic Moving Least Squares 2009 IEEE Conference on Computer Vision and Pattern Recognition · 2014 10.1109/cvpr.2014.427
  9. Fast local color transfer via dominant colors mapping 2010 10.1145/1899950.1899996
  10. Frequency-tuned salient region detection 2009 IEEE Conference on Computer Vision and Pattern Recognition · 2009 10.1109/cvpr.2009.5206596
  11. Removing Artefacts From Color and Contrast Modifications IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2011 10.1109/tip.2011.2142318
  12. Non-rigid dense correspondence with applications for image enhancement 2011 10.1145/1964921.1964965
  13. Soft Color Segmentation and Its Applications IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2007 10.1109/tpami.2007.1168
  14. Color transfer between images IEEE Computer Graphics and Applications · Institute of Electrical and Electronics Engineers · 2001 10.1109/38.946629
  15. Color transfer in correlated color space 2006 10.1145/1128923.1128974
  16. N-dimensional probability density function transfer and its application to color transfer 2005 10.1109/iccv.2005.166
  17. Example‐based Multiple Local Color Transfer by Strokes Computer Graphics Forum · Wiley · 2008 10.1111/j.1467-8659.2008.01321.x
  18. Local Color Transfer via Probabilistic Segmentation by Expectation-Maximization 2005 10.1109/cvpr.2005.215
  19. Sufficient Image Appearance Transfer Combining Color and Texture IEEE Transactions on Multimedia · Institute of Electrical and Electronics Engineers · 2016 10.1109/tmm.2016.2631123
  20. Local texture-based color transfer and colorization Computers & Graphics · Elsevier BV · 2016 10.1016/j.cag.2016.12.005
  21. Palette-Based Image Recoloring Using Color Decomposition Optimization IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2017 10.1109/tip.2017.2671779
  22. Deep Photo Style Transfer 2017 10.1109/cvpr.2017.740
  23. ℒ0 Gradient‐Preserving Color Transfer Computer Graphics Forum · Wiley · 2017 10.1111/cgf.13275
  24. User Interaction for Image Recolouring using £2 2017 10.1145/3150165.3150171
  25. Grayscale Image Colorization Using an Adaptive Weighted Average Method Journal of Imaging Science and Technology · Society for Imaging Science and Technology · 2017 10.2352/j.imagingsci.technol.2017.61.6.060502
  26. Color Transfer Using Adaptive Second-Order Total Generalized Variation Regularizer IEEE Access · Institute of Electrical and Electronics Engineers · 2018 10.1109/access.2018.2789981
  27. Emotional image color transfer via deep learning Pattern Recognition Letters · Elsevier BV · 2018 10.1016/j.patrec.2018.03.015
  28. Texture-Aware Emotional Color Transfer Between Images IEEE Access · Institute of Electrical and Electronics Engineers · 2018 10.1109/access.2018.2844540
  29. Progressive Color Transfer With Dense Semantic Correspondences ACM Transactions on Graphics · Association for Computing Machinery · 2019 10.1145/3292482
  30. Image colorization by fusion of color transfers based on DFT and variance features Computers & Mathematics with Applications · Elsevier BV · 2019 10.1016/j.camwa.2018.12.033
  31. Probabilistic moving least squares with spatial constraints for nonlinear color transfer between images Computer Vision and Image Understanding · Elsevier BV · 2019 10.1016/j.cviu.2018.11.001
  32. <mml:math xmlns:mml="http://www.w3.org/1998/Math/MathML" display="inline" overflow="scroll" id="d1e500" altimg="si5.gif"><mml:msub><mml:mrow><mml:mi mathvariant="script">L</mml:mi></mml:mrow><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub></mml:math> Divergence for robust colour transfer Computer Vision and Image Understanding · Elsevier BV · 2019 10.1016/j.cviu.2019.02.002
  33. Color Transfer Based on Visual Saliency Lecture notes in electrical engineering · Springer Science+Business Media · 2019 10.1007/978-981-13-3663-8_32
  34. Vectorization Based Color Transfer for Portrait Images Computer-Aided Design · Elsevier BV · 2019 10.1016/j.cad.2019.05.005
  35. Directed color transfer for low-light image enhancement Digital Signal Processing · Elsevier BV · 2019 10.1016/j.dsp.2019.06.014
  36. Fast Image Processing with Fully-Convolutional Networks 2017 10.1109/iccv.2017.273
  37. Directive local color transfer based on dynamic look-up table Signal Processing Image Communication · Elsevier BV · 2019 10.1016/j.image.2019.06.010
  38. Colorization using optimization 2004 10.1145/1186562.1015780
  39. Non-rigid dense correspondence with applications for image enhancement ACM Transactions on Graphics · Association for Computing Machinery · 2011 10.1145/2010324.1964965
  40. Saliency-Guided Color Transfer between Images Lecture notes in computer science · Springer Science+Business Media · 2013 10.1007/978-3-642-41914-0_46