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

Simple Primary Colour Editing for Consumer Product Images

관련 필름·전자재료 · (16) CPI(투명 폴리이미드)

기본 정보

저자
  1. Han Gong
  2. Luwen Yu
  3. Stephen Westland
DOI
10.2352/issn.2169-2629.2020.28.43
저널
Color and Imaging Conference
발행년도
2020
발행기관
Society for Imaging Science & Technology
피인용수
3
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.2352/issn.2169-2629.2020.28.43
토픽
Color Science and Applications
OpenAlex ID
W3139252979

평가 내용

관련도
관련
사업분야
필름·전자재료 · (16) CPI(투명 폴리이미드)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '필름·전자재료 > CPI(투명 폴리이미드)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

We present a simple primary colour editing method for consumer product images. We show that by using colour correction and colour blending, we can automate the pain-staking colour editing task and save time for consumer colour preference researchers. To improve the colour harmony between the primary colour and its complementary colours, our algorithm also tunes the other colours in the image. A preliminary experiment has shown some promising results compared with a state-of-the-art method and human editing.

본문 28,637자

본문 펼치기
## Simple Primary Colour Editing for Consumer Product Images Han Gong <sup>1</sup>, Luwen Yu <sup>2</sup>, and Stephen Westland <sup>2</sup> 1School of Computing Sciences, University of East Anglia, UK 2School of Design, University of Leeds, UK ### Abstract We present a simple primary colour editing method for consumer product images. We show that by using colour correction and colour blending, we can automate the pain-staking colour editing task and save time for consumer colour preference researchers. To improve the colour harmony between the primary colour and its complementary colours, our algorithm also tunes the other colours in the image. Preliminary experiment has shown some promising results compared with a state-of-the-art method and human editing. ### 1 Introduction Research and data have been increasingly used to optimise the design process [33]. Previous research shows that product-colour appearance can affect consumers’ purchase decisions while consumers’ product-colour preferences vary from category to category [20, 34]. To understand consumer-product colour preference, the standard marketing images have been manually recoloured using software such as Adobe Photoshop [3] or GIMP [1]. The recolouring process requires researchers (or designers) to manually adjust colours by picking colours and adopting non-binary per-layer masking. However, visible artefacts and incompatible background colours often remain even after very careful editing. We conclude four main requirements from colour preference researchers: Minimum machine processing time . Users would not prefer a slow processing speed as usually colour modifications are applied to multiple products for at least dozens of target colours. Minimum user manipulation time . A high demand of user interaction time would be undesirable. Methods that require multiple user strokes or manual selection of multiple colours would not be ideal. We need a method that only requires a single primary colour specification and takes care of the rest of colour processing automatically. Artefact resiliency . Artefacts, such as JPEG blocks and unnatural edges, are usually introduced after re-colouring. It is expected to preserve all image details except for the primary colour modification. Colour harmony preservation . The chosen colour for change may not fit the product’s existing complementary colours. In some cases, tuning of complementary colours is desirable. Our proposed method in this paper addresses these requirements by providing an alternative design tool which is fully automatic. Existing studies suggested that colour manipulations offer the potential for software to generate recoloured images (target colour images). More promising applications of automatic colour manipulations will lead the trend of generative design systems in colour and design [28, 33]. There have been a number of methods for colour manipulations such as colour transfer [23, 26, 27], colour hint propagation [4, 8–10, 19], or palette editing [7, 24, 35]. However, none of the previous methods is directly applicable to the primary colour editing problem. Rapid digital workflows in practice would also require automatic methods for evaluating and/or comparing colours and designs [5]. In this paper, we propose a simple method which automates primary colour editing at an optimised consumption of user and machine processing time and it preserves colour harmony to some extent. Our method is based on the assumption that simulating colour change as a 2-D colour homography [13] ( _i.e._ as a change of light) usually avoids image processing artefacts [13, 16] such as JPEG blocks, sharp edges, and colour combination conflicts. Our colour editing pipeline is depicted in Figure 1 where the colour editing task is reformulated as a 2-D colour homography colour correction problem. Additionally, we may (D) Gradient Preservation (optional) (A) Intensity Distribution Clustering And Altering in Lab Space (C) Irrelevant Colour Change Suppression Input Image (B) 3x3 Matrix Colour Correction (RGB) Target Colour Figure 1: Primary colour editing pipeline. Given an input image, our method amends the product’s primary colour according to a target colour in 3-4 steps: A) Colour intensities clusters in CIE L*a*b* colour space [29] are computed (left: original distributions; right: primary colour altered distributions); B) Cluster RGB correspondences are used for estimating a colour correction matrix. Note that the L* channel intensities are also used for clustering but are not illustrated on the exemplar graphs; C) An alpha-blending process is applied to remove colour changes, which are less relevant to the primary colour change, from the colour corrected image; D) Some residual colour artefacts can be optionally removed using a gradient preservation method ’regrain’ [26] (see the latter section for visualisation). The a*b* chromaticity gamut images are taken from Wikipedia [2]. apply a gradient preservation step to remove some residual artefacts. Compared with the previous recolouring methods, ours requires minimum user input and its design is relatively simple. ### 2 Related Work Our work is relevant to the colour editing methods in three categories: A) colour transfer; B) colour hint propagation; C) palette-based colour editing. 2.1 Colour transfer Colour transfer is an image editing process which adjusts the colours of a picture to match a target picture’s colour theme. This research was started by Reinhard _et_ _al._ [27] and followed up by the others [23, 25, 26] recently. Most of these methods align the colour distributions in different colour spaces, which usually involve statistics alignment [23, 25, 27] or iterative distribution shifting [26]. 2.2 Colour hint propagation Some methods require user hints, _e.g._ strokes, to guide recolouring of object surfaces. This direction of research was started by Levin _et_ _al._ [19] where they colourise grey-scale images based on user colour stroke and solves for a large and sparse system of linear equations. Their key assumption is that the colours of neighbouring pixels with similar luminance should have similar chromaticities. More recent methods [4, 9, 10] make use of masks, either soft or hard, to assist re-colourisation. Their colour modification model is based on a diagonal colour correction matrix used for white balance, _e.g._ [15] with limits on the range of applicable colour changes. Some others, _e.g._ [8], have used sparse coding/learning that the sparse set of colour samples provide an intrinsic basis for an input image and the coding coefficients capture the linear relationship between all pixels and the samples. This branch of methods require heavy user inputs and therefore not immediately useful for our problem. 2.3 Palette-based colour editing Some methods adopt colour intensity clustering, _e.g._ k-means++ algorithm [6], to initially generate a colour palette of the input image. After palette adjustments, different approaches were applied for manipulating colour changes. Zhang _et al._ [35] decompose the colours of the image into a linear combination of basis colours before reconstructing a new image using the linear coding coefficients. Chang _et_ _al._ [7] adopt a monotonic luminance mapping and radial basis functions (RBFs) for interpolating/mapping chromaticities. This branch of methods are most close to our solution however none of them is optimised for the particular task of rapid primary colour editing for consumer product images. 2.4 Colour homography Our solution is based on the colour homography colour change model. The colour homography theorem [11–13, 16] presents that chromaticities across a change in capture conditions (light color, shading and imaging device) are a homography apart. Suppose that we map an RGB _<u>ρ</u>_ to a corresponding RGI (red-green-intensity) c using a 3 _×_ 3 full-rank matrix _C_ : _<u>ρ</u>_ <sup>⊺</sup> _C_ = _<u>c</u>_ <sup>⊺</sup>     _R_ _G_ _B_ _R_ _G_ _R_ + _G_ + _B_ ⊺ <sup></sup>   = ⊺    1 0 1 0 1 1 0 0 1 (1) The _r_ and _g_ chromaticity coordinates are written as _r_ = _R/_ ( _R_ + _G_ + _B_ ) _,_ _g_ = _G/_ ( _R_ + _G_ + _B_ ). We treat the right-hand-side of Equation 1 as a homogeneous coordinate and we have _<u>c</u>_ _∝_ - _r_ _g_ 1 <sup>�⊺</sup> . When the shading is fixed, it is known that across a change in illumination or a change in device, the corresponding RGBs are approximately related by a 3 _×_ 3 linear transform M that _<u>ρ</u>_ <sup>⊺</sup> _M_ = _<u>ρ</u>_ <sup>_′_</sup> <sup>⊺</sup> where _<u>ρ</u>_ <sup>_′_</sup> is the corresponding RGBs under a second light or captured by a different camera [21, 22]. We have _H_ = _C_ <sup>_−_</sup> <sup>1</sup> _MC_ which maps colours in RGI form between illuminants. Due to different shading, the RGI triple under a second light is written as _<u>c</u>_ <sup>_′_</sup> <sup>⊺</sup> = _αc_ <sup>⊺</sup> _H_, where _α_ denotes the unknown scaling. Without loss of generality we regard <u>c</u> as a homogeneous coordinate _i.e._ assume its third component is 1. Then, [ _r_ <sup>_′_</sup> _g_ <sup>_′_</sup> ] <sup>⊺</sup> = _H_ ([ _r_ _g_ ] <sup>⊺</sup> ) (rg chromaticity coordinates are a homography _H_ () apart). In this paper, we will model the major colour change initially as a colour homography change but without considering the individual scale differences between each RGB correspondences, _i.e._ a 3 _×_ 3 linear transform of colour change is applied. ### 3 Simple Primary Colour Edit- ing Our algorithm starts with the simple observation that a simple 2-D colour homography model allows for a wider range of colour changes (as opposed to a diagonal colour correction matrix) and usually produces fewer colour combination conflicts [13, 16]. In Figure 1, we overview the colour processing pipeline which consists of three major steps and one optional step: A) Clustering: The CIE L*a*b* [29] intensities of an input RGB image are clustered using MeanShift [14]. The primary colour cluster is altered to match the target colour (see the red line) that the cluster centres form the before-and-after sparse colour intensities correspondences; B) Colour correction: The L*a*b* colour correspondences are converted to RGB space before being used to estimate a 2-D colour homography matrix (without considering scale differences); C) Irrelevant colour change suppression: a soft alpha-blending mask is computed to suppress aggressive colour changes irrelevant to the primary colour change; D) Gradient preservation (optional): a gradient preservation step can be applied to remove more residual artefacts. We also note that the computational cost can be reduced by using downsampled thumbnail images for model parameter estimation. We provide the algorithm details in the following sub-sections. 3.1 Intensity clustering and altering To estimate a reliable colour change model, the first step is to extract the predominant colours which best capture the input image’s colour theme. We adopt MeanShift [14] clustering to extract at most 5 predominant colours ( _i.e._ cluster centres) from the input image. The intention of not collecting too many colours is to avoid noise and reduce computational cost. The cluster number of 5 is only an empirical value, _e.g._ 6 also works. Clearly, a fixed set of MeanShift parameters never guarantee a maximum number of 5 colour clusters. We thus propose a simple adaptive MeanShift clustering procedure which gradually increases the initial small kernel bandwidth value as shown in Algorithm 1 where MeanShift is <u>Algorithm 1:</u> <u>Adaptive MeanShift clustering</u> 1 _w_ = 0 _._ 1, _β_ = 1 _._ 5; 2 repeat 3 _C_ = MeanShift ( _w, Alab_ ); 4 _n_ = len ( _C_ ); 5 _w_ = _βw_ ; 6 until _n >_ 5; the MeanShift function with a flat kernel and bandwidth _w_, _C_ is a _n ×_ 3 matrix of cluster centres (each row is a L*a*b* intensity vector), len counts the number of cluster centres _n_, _β_ is a factor controlling the kernel width growth rate in each iteration. Given the obtained predominant colours, we construct the sparse colour correspondences to be supplied for colour change model estimation. Since we aim to only change the one primary colour if possible, the remaining of target predominant colours are kept the same as the original predominant colours except that the only primary colour is modified as the target primary colour. Through this, we construct a target predominant colour set denoted as _D_ (see also Figure 1 (A) for illustration). 3.2 Colour Homography colour change Given the source and target colour sets _C_ and _D_, we make use of a simple 2-D colour homography matrix to achieve primary colour change while minimising colour artefacts. A full colour homography change is an optimised chromaticity mapping in RGB space. However, since the brightness of colour matters in this application, we omit the shading factor _α_ and only estimate a 3 _×_ 3 linear matrix transform (which is still a homography matrix) using weighted leastsquares as the follows: _M_ = ( _C_ <sup>⊺</sup> _WC_ + _kI_ 3 _×_ 3) <sup>_−_</sup> <sup>1</sup> _C_ <sup>⊺</sup> _WD_ (2) where _k_ = 10 <sup>_−_</sup> <sup>3</sup> is a regularisation term, _W_ is a diagonal matrix whose diagonal elements are the associated normalised weights of all the predominant colours ( _i.e._ cluster centre sizes), _I_ 3 _×_ 3 is a 3 _×_ 3 identity matrix. Denoting the ’flatten’ RGB intensities of the input image as a _N_ _×_ 3 matrix _A_ ( _N_ is the number of pixels), we can compute its primary-colourchanged RGB intensities as _B_ = _AM_ . An intermediate processed example can be found in Figure 1 (B). 3.3 Irrelevant colour change suppression Some of the colour changes after the 3 _×_ 3 linear transform may look aggressive, _e.g._ the pink ring of the ’Tide’ logo in Figure 1 (B). We adopt an alphablending procedure to address this as the follows: _B_ <sup>_′_</sup> = (1 _−_ diag <u>(</u> _<u>d</u>_ <u>))</u> _B_ + diag <u>(</u> _<u>d</u>_ <u>)</u> _A_ (3) where _B_ <sup>_′_</sup> is the modified RGB colour output, _<u>d</u>_ is an N-vector denoting per-pixel scaling factors (in the range of [0 _,_ 1]) and diag () places an N-vector along the diagonal of an _N_ _× N_ diagonal matrix. Our intuition is to smoothly reduce the impact of the colour changes that are irrelevant to the primary colour and control this by _<u>d</u>_ . We measure the irrelevance by the a*b* chromaticity difference ∆ _E_ between each colour (row) in _B_ <sup>_′_</sup> and the target primary colour: where ∆ _Emax_ is an upper threshold value. The individual ∆ _E_ <sup>_′_</sup> is assigned as the corresponding element of _<u>d</u>_ . The processing result can be sensitive to ∆ _Emax_ and thus ∆ _Emax_ must be carefully chosen. An exemplar visualisation of _<u>d</u>_ in its image grid form is shown in Figure 2 (A). Aiming at obtaining a blending result which preserves the edge details of the original image, we look for the optimum ∆ _Emax_ which minimises Equation 6. ∆min _Emax_ <sup>Σ</sup> <sup>_c∈{a∗,b∗}_</sup> <sup>entropy</sup> <sup>(</sup> <sup>_|_</sup> <sup>edge</sup> <sup>(</sup> <sup>_IB′,c_</sup> <sup>)</sup> <sup>_−_</sup> <sup>edge</sup> <sup>(</sup> <sup>_IA,c_</sup> <sup>)</sup> <sup>_|_</sup> <sup>)</sup> (6) where _||_ is the operator to output per element absolute value of a matrix, _c_ indicates an intensity channel of a* or b*, _IB′,∗_ and _IA,∗_ indicate the grid images of the ’unflatten’ intensity matrix _B_ <sup>_′_</sup> and _A_ respectively, edge is a binary edge detector using the Sobel approximation [32] to the derivative (without edgethinning), entropy is a function which measures the ∆ _E_ = �∆ _a∗_ <sup>2</sup> + ∆ _b∗_ <sup>2</sup> (4) where ∆ _a∗_ and ∆ _b∗_ are the errors in a*b* channels. A higher ∆ _E_ indicates a higher degree of irrelevance but this value can be sometimes too big. Thus, we further cap and normalise ∆ _E_ as ∆ _E_ <sup>_′_</sup> : ∆ _E_ <sup>_′_</sup> = - 1 ∆ _E_ _>_ ∆ _Emax_ (5) ∆ _E/_ ∆ _Emax_ Otherwise amount of information – entropy [31] – as defined in Equation 7. entropy <u>(</u> _<u>p</u>_ ) = _−_ _i_ _pi_ log _pi_ (7) this optional step improves the result by removing some JPEG block artefacts. Target Colour Input Image 70 50 where _<u>p</u>_ is a normalised input vector (summed up to 1) which, in our case, is a ’flattened’ error-ofedge image ( _e.g._ Figure 2 (C)), _i_ is an element index. When the entropy of the error of two edge images is low, it indicates a higher similarity of edge features between two intensity images. However, we do not have a closed-form solution for its global minima. In practice, a suitable local minima in a reasonable range usually serves the purpose. We thus propose a brutal search for a local minima solution of ∆ _Emax_ in the range of [10 _,_ 210] with an interval precision of 20. A visualised example of _<u>d</u>_ and its plot of ∆ _Emax_ search are shown in Figure 2. Input Image Output w/o Regrain Output with Regrain Figure 3: Example of the ’regrain’ [26] artefact cleansing. 3.5 Acceleration Our colour manipulation pipeline requires the solution of 10 key model parameters, namely _M_ and ∆ _Emax_ . Using full-resolution images is not necessary and we therefore adopt thumbnail images (32 _×_ 32) for solving for _M_ and ∆ _Emax_ and apply the estimated parameters to a full-resolution input image to get a full-resolution output. ### 4 Evaluation In this section, we present the result comparison and some useful discussions about our method’s practical use-cases. 4.1 Results We compare our method with a state-of-the-art palette-based re-colouring method [7] and the manually edited results produced by a professional colour preference researcher. Figure 4 shows some visual result comparisons. We found that our outputs are mostly comparable to the manually edited results which take 2-5 minutes’ labour time per image. Most of the human labour time is spent on masking the image (for primary colour pixels). Once the mask is completed, the remaining recolouring time takes about 1 minute. All the results in Figure 4 have been produced without the ’regrain’ step enabled. Our method also has some failure cases as shown in Figure 5. These failures were caused by the initial step of colour clustering. When the input image only has one colour, the MeanShift clustering algorithm can mishandle the primary colour extraction. Lowering the maximum cluster number ( _i.e._ 5 in Algorithm 1) Input Image 1 0 (A) Colour Change Irrelevance Map 0.640.64 0.620.62 0.600.6 0.580.58 110 30 50 70 90 110 130 150 170 1902 3 4 5 6 7 8 9 10 (B) Entropy plot 70 50 (C) Edge Differences of a* (thumbnail) Figure 2: Visualisations of the alpha blending. A) Visualised alpha blending mask used in the irrelevant colour change suppression step. B) The associated entropy plot (horizontal ticks: ∆ _Emax_ ). C) Visualisation of binary edge difference in channel a* when ∆ _Emax_ = 70 or ∆ _Emax_ = 50 (more different). The bottom-right number indicates the value of ∆ _Emax_ . See also Figure 1 (A) for the input image and the target primary colour. 3.4 Artefact cleansing As the previous alpha blending step has attempted the minimisation of edge artefacts, mostly users can get an artefact-free output image. However, for some rare cases, we also adopt an optional artefact cleansing step called ’regrain’ which was first proposed in [26]. It provides strong gradient preservation but also has side effects which may cause minor undesired blurs along edges. Please refer to the cited paper for the algorithm details. Figure 3 shows an example where Input Chang 2015 [7] Ours Human Figure 4: Result visual comparison. The target colours are shown at the top right of the input images. The label ’Human’ refers to the column of results manually generated by a professional colour preference researcher. can resolve this issue. That said, we could provide this as an optional parameter for users. Input Image 70 50 A) Partial colour replacement B) Incorrect colour replaced Figure 5: Failure cases. The input images are shown at the bottom right and the target primary colours are shown at the bottom left. A) Only a part of the primary colour was replaced. B) An incorrect primary colour was picked and replaced. Our method provides practical editing efficiency without user interventions. Using the thumbnail acceleration trick, our unoptimised MATLAB implementation (without the regrain step) takes about 1s to process an 1.2 mega-pixel image on a MacBook Pro 2015 laptop (2.5 GHz Quad-Core Intel Core i7 CPU). 4.2 Discussions ’Work to forecast’ has suggested the use of colour to forecast consumer demand or resource-saving levels [30]. Colour has also been suggested as one of the most powerful visual elements in packaging. Thus, choosing an appropriate colour for the design of packaging or product can significantly affect consumer decision-making [18]. This work could be applied as a product-colour predictor for studying product-packaging-colour in consumer purchase behaviour. Or, as an image generation tool, it helps designers/researchers preview the multi-colour options of a product image. We also acknowledge that more rigorous user experiments in controlled lighting/display conditions could still be possibly carried out after the UK Covid19 lockdown [17]. We, therefore, commit to providing our source code to the research community in the hope that its evaluation and more potential use-cases can be further driven by the other cross-discipline communities. ### 5 Conclusion In this paper, we present a simple product recolouring method for assisting consumer colour pref erence research. We show that by using a colour manipulation pipeline, we can automate this primary colour editing task for consumer colour preference researchers. The complementary colours in the product image will also be adjusted to potentially make the primary colour fits better. Future work is required to explore more of its use-cases and strengthen its artefact resiliency. ### 6 Acknowledgment We also thank Dr Qianqian Pan from the University of Leeds for her useful discussions. ### References [1] _GNU_ _Image_ _Manipulation_ _Program_ _(GIMP)_, 2020. [https://www.gimp.org](https://www.gimp.org) [Accessed: 06/04/2020]. [2] _L*a*b* gamut_ [, 2020. https://en.wikipedia.](https://en.wikipedia.org/wiki/CIELAB_color_space) [org/wiki/CIELAB_color_space](https://en.wikipedia.org/wiki/CIELAB_color_space) [Accessed: 06/04/2020]. [3] _PhotoShop_, 2020. [https://www.adobe.com/](https://www.adobe.com/uk/products/photoshop.html) [uk/products/photoshop.html](https://www.adobe.com/uk/products/photoshop.html) [Accessed: 06/04/2020]. [4] Xiaobo An and Fabio Pellacini. Appprop: all-pairs appearance-space edit propagation. In _ACM Transac-_ _tions on Graphics (TOG)_, pages 1–9. 2008. [5] David Anderson, K Blake Perez, Zack Xuereb, Kevin Otto, and Kris Wood. Design processes of design automation practitioners. In _International_ _Design_ _Engineering_ _Technical_ _Conferences_ _and_ _Computers_ _and_ _Information_ _in_ _Engineering_ _Conference_ . American Society of Mechanical Engineers Digital Collection, 2018. [6] David Arthur and Sergei Vassilvitskii. k-means++: The advantages of careful seeding. Technical report, Stanford, 2006. [7] Huiwen Chang, Ohad Fried, Yiming Liu, Stephen Di Verdi, and Adam Finkelstein. Palette-based photo recoloring. _ACM Transactions on Graphics_, 34(4):139– 1, 2015. [8] Xiaowu Chen, Dongqing Zou, Jianwei Li, Xiaochun Cao, Qinping Zhao, and Hao Zhang. Sparse dictionary learning for edit propagation of high-resolution images. In _Proceedings_ _of_ _the_ _IEEE_ _Conference_ _on_ _Computer_ _Vision_ _and_ _Pattern_ _Recognition_, pages 2854–2861, 2014. [9] Xiaowu Chen, Dongqing Zou, Qinping Zhao, and Ping Tan. Manifold preserving edit propagation. _ACM_ _Transactions_ _on_ _Graphics_ _(TOG)_, 31(6):1–7, 2012. [10] Zeev Farbman, Raanan Fattal, and Dani Lischinski. Diffusion maps for edge-aware image editing. _ACM_ _Transactions on Graphics_, 29(6):1–10, 2010. [11] Graham D. Finalyson, Han Gong, and Robert B. Fisher. Color homography. In _Progress_ _in_ _Colour_ _Studies_ . John Benjamins Publishing Company, 2016. [12] Graham D. Finalyson, Han Gong, and Robert B. Fisher. Color homography color correction. In _Color_ _Imaging_ _Conference_ . Society for Imaging Science and Technology, 2016. [13] Graham Finlayson, Han Gong, and Robert B Fisher. Color homography: theory and applications. _IEEE_ _transactions on pattern analysis and machine intelli-_ _gence_, 41(1):20–33, 2019. [14] Keinosuke Fukunaga and Larry Hostetler. The esti mation of the gradient of a density function, with applications in pattern recognition. _IEEE_ _Transactions_ _on information theory_, 21(1):32–40, 1975. [15] Han Gong. Convolutional mean: A simple convolu tional neural network for illuminant estimation. In _British Machine Vision Conference_ . BMVA, 2019. [16] Han Gong, Graham D. Finlayson, and Robert B. Fisher. Recoding color transfer as a color homography. In _British_ _Machine_ _Vision_ _Conference_ . BMVA, 2016. [17] Richard Horton. Offline: Covid-19 and the nhsa na tional scandal. _The Lancet_, 395(10229):1022, 2020. [18] Hannele Kauppinen-R¨ais¨anen. Strategic use of colour in brand packaging. _Packaging_ _Technology_ _and_ _Sci-_ _ence_, 27(8):663–676, 2014. [19] Anat Levin, Dani Lischinski, and Yair Weiss. Col orization using optimization. In _ACM_ _Transactions_ _on Graphics_, pages 689–694. 2004. [20] Dan Luo, Luwen Yu, Stephen Westland, and Nik Ma hon. The influence of colour and image on consumer purchase intentions of convenience food. _Journal_ _of_ _the_ _International_ _Colour_ _Association_, 24:11–23, 2019. [21] L.T. Maloney. Evaluation of linear models of surface spectral reflectance with small numbers of parameters. _Journal_ _of_ _the_ _Optical_ _Society_ _of_ _America_ _A_, 3:1673–1683, 1986. [22] D.H. Marimont and B.A. Wandell. Linear models of surface and illuminant spectra. _Journal of the Optical_ _Society of America A_, 9(11):1905–1913, 92. [23] R. M. H. Nguyen, S. J. Kim, and M. S. Brown. Illu minant aware gamut-based color transfer. _Computer_ _Graphics Forum_, 33(7):319–328, October 2014. [24] Rang MH Nguyen, Brian Price, Scott Cohen, and Michael S Brown. Group-theme recoloring for multiimage color consistency. In _Computer_ _Graphics_ _Fo-_ _rum_, volume 36, pages 83–92. Wiley Online Library, 2017. [25] F Piti´e and A Kokaram. The linear mongekantorovitch linear colour mapping for examplebased colour transfer. In _European Conference on Vi-_ _sual Media Production_ . IET, 2007. [26] Franc¸ois Piti´e, Anil C. Kokaram, and Rozenn Dahyot. Automated colour grading using colour distribution transfer. _Computer Vision And Image Understanding_, 107(1-2):123–137, July 2007. [27] Erik Reinhard, Michael Ashikhmin, Bruce Gooch, and Peter Shirley. Color transfer between images. _IEEE_ _Computer_ _Graphics_ _And_ _Applications_, 21(5):34–41, September 2001. [28] Othman Sbai, Mohamed Elhoseiny, Antoine Bordes, Yann LeCun, and Camille Couprie. Design: Design inspiration from generative networks. In _European_ _Conference on Computer Vision_, pages 0–0, 2018. [29] Janos Schanda. Cie colorimetry. _Colorimetry:_ _Un-_ _derstanding the CIE system_, pages 25–78, 2007. [30] Richard J Schonberger. Reconstituting lean in health care: From waste elimination toward queue-less patient-focused care. _Business_ _Horizons_, 61(1):13– 22, 2018. [31] Claude E Shannon. A mathematical theory of communication. _Bell_ _system_ _technical_ _journal_, 27(3):379–423, 1948. [32] I Sobel and G Feldman. A 3x3 isotropic gradient op erator for image processing, presented at a talk at the stanford artificial project. _Pattern_ _Classification_ _and_ _Scene Analysis_, pages 271–272, 3. [33] Jie Yang, Yun Chen, Stephen Westland, and Kaida Xiao. Predicting visual similarity between colour palettes. _Color Research & Application_, 2020. [34] Luwen Yu, Stephen Westland, Zhenhong Li, Qian qian Pan, Meong Jin Shin, and Seahwa Won. The role of individual colour preferences in consumer purchase decisions. _Color_ _Research_ _&_ _Application_, 43(2):258–267, 2018. [35] Qing Zhang, Chunxia Xiao, Hanqiu Sun, and Feng Tang. Palette-based image recoloring using color decomposition optimization. _IEEE Transactions on Im-_ _age Processing_, 26(4):1952–1964, 2017.

섹션 본문 34문단 · 18,121자

(제목 없음)

1We present a simple primary colour editing method for consumer product images. We show that by using colour correction and colour blending, we can automate the pain-staking colour editing task and save time for consumer colour preference researchers. To improve the colour harmony between the primary colour and its complementary colours, our algorithm also tunes the other colours in the image. Preliminary experiment has shown some promising results compared with a state-of-the-art method and human editing.

Introduction

2Research and data have been increasingly used to optimise the design process [33]. Previous research shows that product-colour appearance can affect consumers' purchase decisions while consumers' product-colour preferences vary from category to category [20,34]. To understand consumer-product colour preference, the standard marketing images have been manually recoloured using software such as Adobe Photoshop [3] or GIMP [1]. The recolouring process requires researchers (or designers) to manually adjust colours by picking colours and adopting non-binary per-layer masking. However, visible artefacts and incompatible background colours often remain even after very careful editing. We conclude four main requirements from colour preference researchers: Minimum machine processing time. Users would not prefer a slow processing speed as usually colour modifications are applied to multiple products for at least dozens of target colours. Minimum user manipulation time. A high demand of user interaction time would be undesirable. Methods that require multiple user strokes or manual selection of multiple colours would not be ideal. We need a method that only requires a single primary colour specification and takes care of the rest of colour processing automatically. Artefact resiliency. Artefacts, such as JPEG blocks and unnatural edges, are usually introduced after re-colouring. It is expected to preserve all image details except for the primary colour modification. Colour harmony preservation.

3The chosen colour for change may not fit the product's existing complementary colours. In some cases, tuning of complementary colours is desirable.

4Our proposed method in this paper addresses these requirements by providing an alternative design tool which is fully automatic. Existing studies suggested that colour manipulations offer the potential for software to generate recoloured images (target colour images). More promising applications of automatic colour manipulations will lead the trend of generative design systems in colour and design [28,33]. There have been a number of methods for colour manipulations such as colour transfer [23,26,27], colour hint propagation [4,[8][9][10]19], or palette editing [7,24,35]. However, none of the previous methods is directly applicable to the primary colour editing problem. Rapid digital workflows in practice would also require automatic methods for evaluating and/or comparing colours and designs [5].

5In this paper, we propose a simple method which automates primary colour editing at an optimised consumption of user and machine processing time and it preserves colour harmony to some extent. Our method is based on the assumption that simulating colour change as a 2-D colour homography [13] (i.e. as a change of light) usually avoids image processing artefacts [13,16] such as JPEG blocks, sharp edges, and colour combination conflicts. Our colour editing pipeline is depicted in Figure 1 where the colour editing task is reformulated as a 2-D colour homography colour correction problem. Additionally, we may C lu s t e r C e n t r e R G B C o r r e s p o n d e n c e s Figure 1: Primary colour editing pipeline. Given an input image, our method amends the product's primary colour according to a target colour in 3-4 steps: A) Colour intensities clusters in CIE L*a*b* colour space [29] are computed (left: original distributions; right: primary colour altered distributions); B) Cluster RGB correspondences are used for estimating a colour correction matrix. Note that the L* channel intensities are also used for clustering but are not illustrated on the exemplar graphs; C) An alpha-blending process is applied to remove colour changes, which are less relevant to the primary colour change, from the colour corrected image; D) Some residual colour artefacts can be optionally removed using a gradient preservation method 'regrain' [26] (see the latter section for visualisation). The a*b* chromaticity gamut images are taken from Wikipedia [2].

6apply a gradient preservation step to remove some residual artefacts. Compared with the previous recolouring methods, ours requires minimum user input and its design is relatively simple.

Related Work

7Our work is relevant to the colour editing methods in three categories: A) colour transfer; B) colour hint propagation; C) palette-based colour editing.

Colour transfer

8Colour transfer is an image editing process which adjusts the colours of a picture to match a target picture's colour theme. This research was started by Reinhard et al. [27] and followed up by the others [23,25,26] recently. Most of these methods align the colour distributions in different colour spaces, which usually involve statistics alignment [23,25,27] or iterative distribution shifting [26].

Colour hint propagation

9Some methods require user hints, e.g. strokes, to guide recolouring of object surfaces. This direction of research was started by Levin et al. [19] where they colourise grey-scale images based on user colour stroke and solves for a large and sparse system of linear equations. Their key assumption is that the colours of neighbouring pixels with similar luminance should have similar chromaticities. More recent methods [4,9,10] make use of masks, either soft or hard, to assist re-colourisation. Their colour modification model is based on a diagonal colour correction matrix used for white balance, e.g. [15] with limits on the range of applicable colour changes. Some others, e.g. [8], have used sparse coding/learning that the sparse set of colour samples provide an intrinsic basis for an input image and the coding coefficients capture the linear relationship between all pixels and the samples. This branch of methods require heavy user inputs and therefore not immediately useful for our problem.

Palette-based colour editing

10Some methods adopt colour intensity clustering, e.g. k-means++ algorithm [6], to initially generate a colour palette of the input image. After palette adjustments, different approaches were applied for manipulating colour changes. Zhang et al. [35] decompose the colours of the image into a linear combination of basis colours before reconstructing a new image using the linear coding coefficients. Chang et al. [7] adopt a monotonic luminance mapping and radial basis functions (RBFs) for interpolating/mapping chromaticities. This branch of methods are most close to our solution however none of them is optimised for the particular task of rapid primary colour editing for consumer product images.

Colour homography

11Our solution is based on the colour homography colour change model. The colour homography theorem [11][12][13]16] presents that chromaticities across a change in capture conditions (light color, shading and imaging device) are a homography apart. Suppose that we map an RGB ρ to a corresponding RGI (red-green-intensity) c using a 3 × 3 full-rank matrix C:

12The r and g chromaticity coordinates are written as

13We treat the right-hand-side of Equation 1 as a homogeneous coordinate and we have c ∝ r g 1 . When the shading is fixed, it is known that across a change in illumination or a change in device, the corresponding RGBs are approximately related by a 3 × 3 linear transform M that ρ M = ρ where ρ is the corresponding RGBs under a second light or captured by a different camera [21,22]. We have H = C −1 M C which maps colours in RGI form between illuminants. Due to different shading, the RGI triple under a second light is written as c = αc H, where α denotes the unknown scaling. Without loss of generality we regard c as a homogeneous coordinate i.e. assume its third component is 1. Then, [r g ] = H([r g] ) (rg chromaticity coordinates are a homography H() apart). In this paper, we will model the major colour change initially as a colour homography change but without considering the individual scale differences between each RGB correspondences, i.e. a 3 × 3 linear transform of colour change is applied.

Simple Primary Colour Editing

14Our algorithm starts with the simple observation that a simple 2-D colour homography model allows for a wider range of colour changes (as opposed to a diagonal colour correction matrix) and usually produces fewer colour combination conflicts [13,16]. In Figure 1, we overview the colour processing pipeline which consists of three major steps and one optional step: A) Clustering: The CIE L*a*b* [29] intensities of an input RGB image are clustered using MeanShift [14]. The primary colour cluster is altered to match the target colour (see the red line) that the cluster centres form the before-and-after sparse colour intensities correspondences; B) Colour correction: The L*a*b* colour correspondences are converted to RGB space before being used to estimate a 2-D colour homography matrix (without considering scale differences); C) Irrelevant colour change suppression: a soft alpha-blending mask is computed to suppress aggressive colour changes irrelevant to the primary colour change; D) Gradient preservation (optional): a gradient preservation step can be applied to remove more residual artefacts. We also note that the computational cost can be reduced by using downsampled thumbnail images for model parameter estimation. We provide the algorithm details in the following sub-sections.

Intensity clustering and altering

15To estimate a reliable colour change model, the first step is to extract the predominant colours which best capture the input image's colour theme. We adopt MeanShift [14] clustering to extract at most 5 predominant colours (i.e. cluster centres) from the input image. The intention of not collecting too many colours is to avoid noise and reduce computational cost. The cluster number of 5 is only an empirical value, e.g. 6 also works. Clearly, a fixed set of Mean-Shift parameters never guarantee a maximum number of 5 colour clusters. We thus propose a simple adaptive MeanShift clustering procedure which gradually increases the initial small kernel bandwidth value as shown in Algorithm 1 where MeanShift is the MeanShift function with a flat kernel and bandwidth w, C is a n × 3 matrix of cluster centres (each row is a L*a*b* intensity vector), len counts the number of cluster centres n, β is a factor controlling the kernel width growth rate in each iteration.

16Given the obtained predominant colours, we construct the sparse colour correspondences to be supplied for colour change model estimation. Since we aim to only change the one primary colour if possible, the remaining of target predominant colours are kept the same as the original predominant colours except that the only primary colour is modified as the target primary colour. Through this, we construct a target predominant colour set denoted as D (see also Figure 1 (A) for illustration).

Colour Homography colour change

17Given the source and target colour sets C and D, we make use of a simple 2-D colour homography matrix to achieve primary colour change while minimising colour artefacts. A full colour homography change is an optimised chromaticity mapping in RGB space. However, since the brightness of colour matters in this application, we omit the shading factor α and only estimate a 3 × 3 linear matrix transform (which is still a homography matrix) using weighted leastsquares as the follows:

18where k = 10 −3 is a regularisation term, W is a diagonal matrix whose diagonal elements are the associated normalised weights of all the predominant colours (i.e. cluster centre sizes), I 3×3 is a 3 × 3 identity matrix. Denoting the 'flatten' RGB intensities of the input image as a N × 3 matrix A (N is the number of pixels), we can compute its primary-colourchanged RGB intensities as B = AM . An intermediate processed example can be found in Figure 1 (B).

Irrelevant colour change suppression

19Some of the colour changes after the 3 × 3 linear transform may look aggressive, e.g. the pink ring of the 'Tide' logo in Figure 1 (B). We adopt an alphablending procedure to address this as the follows:

20where B is the modified RGB colour output, d is an N-vector denoting per-pixel scaling factors (in the range of [0, 1]) and diag() places an N-vector along the diagonal of an N × N diagonal matrix. Our intuition is to smoothly reduce the impact of the colour changes that are irrelevant to the primary colour and control this by d. We measure the irrelevance by the a*b* chromaticity difference ∆E between each colour (row) in B and the target primary colour:

21where ∆a * and ∆b * are the errors in a*b* channels. A higher ∆E indicates a higher degree of irrelevance but this value can be sometimes too big. Thus, we further cap and normalise ∆E as ∆E :

22where ∆E max is an upper threshold value. The individual ∆E is assigned as the corresponding element of d. The processing result can be sensitive to ∆E max and thus ∆E max must be carefully chosen. An exemplar visualisation of d in its image grid form is shown in Figure 2 (A). Aiming at obtaining a blending result which preserves the edge details of the original image, we look for the optimum ∆E max which minimises Equation 6.

23where || is the operator to output per element absolute value of a matrix, c indicates an intensity channel of a* or b*, I B , * and I A, * indicate the grid images of the 'unflatten' intensity matrix B and A respectively, edge is a binary edge detector using the Sobel approximation [32] to the derivative (without edgethinning), entropy is a function which measures the amount of information -entropy [31] -as defined in Equation 7.

24where p is a normalised input vector (summed up to 1) which, in our case, is a 'flattened' error-ofedge image (e.g. Figure 2 (C)), i is an element index. When the entropy of the error of two edge images is low, it indicates a higher similarity of edge features between two intensity images. However, we do not have a closed-form solution for its global minima. In practice, a suitable local minima in a reasonable range usually serves the purpose. We thus propose a brutal search for a local minima solution of ∆E max in the range of [10,210] with an interval precision of 20. A visualised example of d and its plot of ∆E max search are shown in Figure 2.

Artefact cleansing

25As the previous alpha blending step has attempted the minimisation of edge artefacts, mostly users can get an artefact-free output image. However, for some rare cases, we also adopt an optional artefact cleansing step called 'regrain' which was first proposed in [26]. It provides strong gradient preservation but also has side effects which may cause minor undesired blurs along edges. Please refer to the cited paper for the algorithm details. Figure 3 shows an example where this optional step improves the result by removing some JPEG block artefacts.

Input Image

26Input Image 70 50

27Output w/o Regrain Output with Regrain Target Colour Figure 3: Example of the 'regrain' [26] artefact cleansing.

Acceleration

28Our colour manipulation pipeline requires the solution of 10 key model parameters, namely M and ∆E max . Using full-resolution images is not necessary and we therefore adopt thumbnail images (32 × 32) for solving for M and ∆E max and apply the estimated parameters to a full-resolution input image to get a full-resolution output.

Evaluation

29In this section, we present the result comparison and some useful discussions about our method's practical use-cases.

Results

30We compare our method with a state-of-the-art palette-based re-colouring method [7] and the manually edited results produced by a professional colour preference researcher. Figure 4 shows some visual result comparisons. We found that our outputs are mostly comparable to the manually edited results which take 2-5 minutes' labour time per image. Most of the human labour time is spent on masking the image (for primary colour pixels). Once the mask is completed, the remaining recolouring time takes about 1 minute. All the results in Figure 4 have been produced without the 'regrain' step enabled. Our method also has some failure cases as shown in can resolve this issue. That said, we could provide this as an optional parameter for users.

Input Image

31A) Partial colour replacement 70 50 B) Incorrect colour replaced Our method provides practical editing efficiency without user interventions. Using the thumbnail acceleration trick, our unoptimised MATLAB implementation (without the regrain step) takes about 1s to process an 1.2 mega-pixel image on a MacBook Pro 2015 laptop (2.5 GHz Quad-Core Intel Core i7 CPU).

Discussions

32'Work to forecast' has suggested the use of colour to forecast consumer demand or resource-saving levels [30]. Colour has also been suggested as one of the most powerful visual elements in packaging. Thus, choosing an appropriate colour for the design of packaging or product can significantly affect consumer decision-making [18]. This work could be applied as a product-colour predictor for studying product-packaging-colour in consumer purchase behaviour. Or, as an image generation tool, it helps designers/researchers preview the multi-colour options of a product image.

33We also acknowledge that more rigorous user experiments in controlled lighting/display conditions could still be possibly carried out after the UK Covid-19 lockdown [17]. We, therefore, commit to providing our source code to the research community in the hope that its evaluation and more potential use-cases can be further driven by the other cross-discipline communities.

Conclusion

34In this paper, we present a simple product recolouring method for assisting consumer colour pref-erence research. We show that by using a colour manipulation pipeline, we can automate this primary colour editing task for consumer colour preference researchers. The complementary colours in the product image will also be adjusted to potentially make the primary colour fits better. Future work is required to explore more of its use-cases and strengthen its artefact resiliency.

참고문헌

참고문헌 정보가 없습니다.