기본 정보
- 저자
- DOI
- 10.1111/cgf.14950
- 저널
- Computer Graphics Forum
- 발행년도
- 2023
- 발행기관
- Wiley
- 피인용수
- 0
- 라이선스
- cc-by-nc
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1111/cgf.14950
- 토픽
- Color Science and Applications
- OpenAlex ID
- W4388044315
평가 내용
- 관련도
- 사업분야
- 필름·전자재료 · (15) 디스플레이 패널재료
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '필름·전자재료 > 디스플레이 패널재료' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
본문 40,931자
본문 펼치기
섹션 본문 73문단 · 39,623자
(제목 없음)
1colorization icon icon contour Arlo's Bitchin' Easter Dolores (c) kuler triad old pixel-based colorization workflow manually refill colors Figure 1: (a) Previous studies on pixel icon colorization [LLW22, SLWW19] require additional manual color refillment to further edit the colorization results.(b) In contrast, our method allows designers to seamlessly colorize the input vector icon and modify the colorization results.(c) Our method allows designers to efficiently colorize icons within a set and evaluate the suitability of the chosen color palette.
Introduction
2With the widespread adoption of the digital technologies, including computers, intelligent appliances, and wearable devices, the role of icons has become increasingly important.These icons possess the ability to bridge the language barrier, allowing people who speak different language to comprehend their meaning without the need multaneously regulates the icon contours from the content input and the color combinations from the color reference icons.Li et al. [LLW22] employed an encoder-decoder network for icon colorization and used conditional normalizing flow to enable the network to generate different results based on user-specified styles.Although these approaches have achieved impressive icon colorization results, they are limited to pixel icons.Therefore, if designers wish to modify the icon shape or colors after the colorization process, they need to manually refill the colorization results back to the icon contours for further editing (Figure 1(a)), which is a time-consuming and labor-intensive task.As a result, most previous works for colorizing pixel icons cannot be seamlessly integrated into the standard icon design workflow.
3In this paper, we propose a palette-based colorization method for vector icons directly.Our method takes an input icon in scalable vector graphics (SVG) format and a five-color palette.The goal is to predict harmonious colors for each path in the input icon.Our method involves two main steps: generating a colorization template and performing palette-based color transfer.To generate the colorization template, we propose a vector icon colorization network trained using a novel combination of a MRF-based loss and a color harmonic loss functions.This network generates a colorization template that captures the likelihood of colorization for each path, ensuring the resulting color combinations align with human perception of color harmony.In the final step, we sample colorization candidates from the colorization template and transfer color from the palette to the icon by optimizing the relative luminance between paths.It is important to note that we choose to use a fivecolor palette based on the interview results with the icon designers.Our color transfer step operates independently of the colorization template generation, enabling it to accommodate arbitrary numbers of colors in the color palette.
4We conducted a user study to evaluate the results obtained by our method and baseline methods.The study result demonstrates that the results of our method obtained the highest score compared to other baseline methods.In the feedback provided by the participants, it was noted that our colorization results were preferred due to the clarity of the icon and the ease of distinguishing the foreground and background.These findings highlight the major advantage of our vector icon colorization method.Moreover, the seamlessly integration into the standard icon design pipeline providing designers two key benefits.First, they can explore a diverse range of colorization results for a single icon using different color palettes.Meanwhile, they can efficiently evaluate the suitability of a color palette for a set of icons.
The major contributions and novelties of this paper include:
5• To the best of our knowledge, we present the first vector icon colorization method that directly predicts harmonious colors for each path.• We propose a novel MRF-based loss and a color harmony loss to train the vector icon colorization network.• We conducted a user study to demonstrate the benefit of our method operating directly on vector icon.
Color Harmony Evaluation
6The evaluation of color aesthetics is an essential subject with a long history.Jacobson and Ostwald [JO48] considered that harmony equals order.Moon and Spencer [MS44] built a harmony classification.Itten [Itt70] drew up basic color theory and developed applications of the color wheel.One well-known theory is the harmonic template on hue provided by Matsuda [Mat95] and Tokumaru et al. [TMI02].They devised eight types of harmonic templates based on the color wheel.Each type except type N is defined as one or two contiguous gray blocks.When color combinations fall entirely into the gray area, they are defined as harmonious color combinations.Based on these templates, Cohen-Or et al.
7[COSG * 06] proposed a color harmonization method that quantized image colors into histograms and increased image coordination.Zaeimi and Ghoddosian citezaeimi2020color combined these templates and Munsell color system [Coc14] to advance an optimized color harmony algorithm.
8In addition to the traditional color theorem, many studies analyze the harmony of colors through model training.Ou and Luo [OL06] investigated the harmony of two colors.They proposed essential factors that affect color harmony, such as any two colors equal in hue and chroma that differ only in luminance are harmonious.Ou et al. [OCLM11] predicted the overall harmony of the threecolor combination.O'Donovan et al. [OAH11] utilized an extensive online dataset to study color compatibility.Kita et al. [KM16] inherited this compatibility research and further studied the palette expansion while maintaining color harmony.
9Our study uses online icons as target data.Through the designer's works, we aim to extract color-matching principles more suitable for icon coloring.At the same time, we adopt the widely used harmonic templates [Mat95,TMI02] as the basis for judging color blending, encouraging the model to generate harmonious color combinations.
Reference-Based Colorization
10The task of colorizing nature images usually starts with a grayscale image.Lin et al. [LRFH13] used factor graphs for pattern coloring.Kim et al. [KYKL14] implemented a rule-driven approach to colorize segmented images.Icons are also a type of line art.But compared to sketches, they are more minimalist, more abstract, and even smaller.Sun et al. [SLWW19] first proposed the work of icon coloring.They used two discriminators to compute the structural and stylistic similarity of content and color reference icons.Han et al. [HZZ20] created a GAN network based on three conditions, adding a mask to limit the scope of the icon content to avoid mixing with the background.Li et al. [LLW22] adopted an encoder-decoder architecture and applied normalizing flow so that the same style can generate various color combinations.Although these works' results are appealing, since they are based on pixel icons, these methods are challenging to apply directly to vector graphics.Our goal is to extend icon coloring work to vector formats.
Image Recoloring
11We define image recoloring as recoloring from color images, not gray-scale images or sketches.A common practice in natural image recolor work is to add color features from one image to another [RAGS01, TJT05, HSGL11, WYX11].Some work focused on luminance adjustment [BPD06, LFUS06, BPCD11], some are based on the principle of harmony, ignoring brightness [COSG * 06, LZNH15].
12In the absence of image references, some works are devoted to extracting the primary colors from the original image and presenting the picture in the form of a palette.Csurka et al. [ZXST17] regarded each color as a linear combination of some primary colors.Unlike real pictures, the area that icons can effectively segment is relatively small, and the segmented content does not necessarily contain substantive meaning.We refer to the traditional color transformation method proposed by Chang et al. [CFL * 15].Our task is palette-driven.We calculate luminance separately from chroma to transform color within icons' simple lines.
Applications of Vector Graphics
13Vector graphics is a sequence of parameters.The advantage is that this format can be scaled infinitely, ensuring the con-tent is not distorted and is more precise than raster images.] treated strokes as a vector format and expanded from sketches to generate realistic drawings in vector format.In addition to simulating stroke generation, there is more and more research on how to convert raster graphics directly into vector graphics or the converting between raster and vector space [LHES19, RGLM21, WL21, SC21].
14Apart from the synthesis of vector graphics, how to analyze the characteristics of vector graphics is also an essential topic.In recognition of vector graphics, Li et al.This paper refers to the method proposed by Jiang et al. [JLS * 21] for analyzing vector context to recognize the composition of vector icons.Different from previous studies, the task of pattern recognition is often performed on objects with distinct features.For example, Jiang et al. [JLS * 21] implemented object detection on floor plans and diagrams with standard format.However, icons are abstract expressions, which means that the elements of an icon do not necessarily have substance.Therefore, in addition to analyzing the independent features of each path element, we add group features to increase the recognition ability of the model for icon representations.
Overview
15Inspired by the standard icon design workflow, we develop our algorithm to consist of two steps: generating a colorization template (Figure 2) and performing palette-based color transfer (Figure 4).In the template generation phase, we use SVG icons as training input, extracting the graph node (yellow block) and edge features and using the GNN model to predict each path's color.The training flow is considered a classification task.For the predicted colors, we use the unary loss to judge the correctness of the output colors and the pairwise loss to compare the relationship between each path pair (blue blocks).We also use two terms to control the diversity (purple block) and harmony (orange block) of predicted colors, which balance the coordination of the output color combination.
16In the color transfer phase, designers are asked to input an SVG icon contour and a five-color palette.Given the selected icon and palette, our colorization model (green block) will output a color template, representing the proper color combination of the input icon.Then, we transfer the chroma and luminance according to the selected palette, filter harmonious combinations and provide diverse colorization results.We propose a novel MRF-based loss that include the unary loss and pairwise loss.Additionally, we introduce a novel color harmony loss and a color diversity loss to enhance the harmonious of the resulting colorizations.
Generating Colorization Templates
17Our goal is to generate a colorization template for an SVG icon consisting of N paths represented as P = {p 1 , p 2 , ..., p N }, where each path consists of a series of cubic Bézier curve.The colorization template is designed to adhere to the principles of color harmony.Specifically, we define the colorization template of P: L P = {l 1 , l 2 , ..., l N }, which comprises probabilities indicating the likelihood of assigning a particular color to each path.To predict the color of each path, we use the CIE Lab color space, known for its close approximation to human visual perception.To avoid generating identical colors for all paths, we adopt the technique used in Zhang et al. [ZIE16].Specifically, we approach the problem as a classification task, separately predicting L and ab values.We discretize L, ab into ten bins each, resulting in L having 10 classes, ab having 26 classes each.To ensure that the predicted colors fall within reasonable regions, we treat ab as a two-dimensional plane with 26 × 26 classes, accounting for different chroma ranges displayed at various luminance levels.
Data Preprocessing
18Given an SVG icon, we normalize the icon size to 512 × 512.We represent the input vector P as an icon graph G P = (V, E), where the node set V = {v 1 , v 2 , ..., v N } represents the path element in the icon, and E = {e 1 , e 2 , ..., e N(N−1) } represents the set of edges that connecting path elements.Our icon graphs are fully-connected and directed.
Node Features
19To extract the feature of a single path elements, we employ the dualstream GNN proposed in Jiang et al. [JLS * 21] (Figure 2).They used the dual-stream GNN to extract features and took the relationship between each Bézier curve, such as distance and relative angle, as the model input.The feature vector extracted using [JLS * 21] is a 2304-D vector.For more implementation details, please refer to their original paper.Though all colors fall within the sector, there is a region with no color.In contrast, (c) includes all colors, and the sector is more restrictive.We choose the scheme with the strictest conditions as the best matching one, and record its starting angle as α 0 .
Edge Features
20To capture the relative color similarities between path elements, we take the bounding box of each path element, where L and R represent the top-left and bottom-right coordinates of the bounding box, respectively.We capture the following spatial relationship between two path elements and form a 6 × 1 vector:
21where
22The edge attribute vectors encode the translation between the two path elements and their relative orientation.
Harmony Template
23To preserve the harmonic properties of an input icon, we follow the approach proposed in [COSG * 06] by identifying the best matched harmonic template from the seven templates proposed by [Mat95] and [TMI02].We exclude "type N" because we do not consider black-and-white icons in our work.Each harmonic template Tm and its associated orientation α together define a harmonic scheme, denoted as (m, α).We use the following function to measure the harmony of an icon with respect to a specific scheme (m, α):
24where H and S represent the hue and the saturation channels of a path p, respectively.E Tm(α) denotes the sector border hue of template Tm with orientation α that is closest to the hue of path p.
25The hue distance ∥ • ∥ refers to the arc-length distance on the hue wheel, measured in radians.Any hue that falls within the sectors of Tm is considered to have zero distance from the template.By minimizing Equation 2, we determine the best harmonic scheme (m P , α P ) for the input icon P (Figure 3).For detailed explanation of the optimizing process, please refer to [COSG * 06].Finally, we record (m P , α P ) as the ground truth harmonic properties we intend to preserve.
Network Architecture
26As shown in Figure 2, the colorization template prediction network consists of three parts: (1) node feature extractor, (2) edge feature extractor, and (3) MLP classifier.For the node feature extractor, we use the dual-stream GNN proposed by [JLS * 21].Next, we use two GNN layers to extract the icon graph features, followed by an MLP layer that predicts the probabilities of assigning luminance values and chroma values to each path element.
Loss Function
27Our overall loss function consists of four loss functions:
28+ w harmony L harmony + w diversity L diversity .
29Inspired by previous image segmentation and colorization methods that utilize MRF-based formulations [BJ01, LLW04], we also include a unary term and a pairwise term in our overall loss function.
30Unary loss.The goal of this unary term is to encourage the color of each path to match the color in the training data.We use the cross-entropy loss to evaluate each path's predicted color.
31Pairwise loss.The goal of the pairwise term is to preserve the color similarity between each neighboring paths in the input icon.We measure the similarity between classes using an exponential function.Specifically, the color similarity between the k-th path pair (i, j) in the input icon is defined as:
32where D k is the Euclidean distance between the classes of path i and path j.The color similarity between the predicted colors of a path pair (i, j) is defined as:
33where ŷi ab and ŷi L denote the predicted probabilities of ab and L values for path i, respectively.Overall, we measure the distance between all pairs of paths of both L and ab as our loss function:
34where E is the number of path pairs.Color Harmony loss.The goal of the harmony term is to ensure that the predicted color combinations of the icon P maintain its harmonic properties as defined by the harmonic scheme (m P , α P ).
35To achieve this, we calculate the hue distance between the predicted color combinations and the best-matched harmonic scheme we identified in the preprocessing stage using:
36where the hue value is derived from the predicted Lab values: L, â, and b.Since the accumulated angular distance can be relatively large compared to other terms, we use the natural logarithm to balance its influence and control strength.Diversity loss.Given that the paths of the input icon often consist of basic geometric primitives with distinct semantic meanings, it is crucial to ensure that our model does not always assign identical colors for paths that have similar shapes.To encourage diverse color assignments, we use the negative mean of the predicted standard deviation for a and b, which is a common statistical method for measuring diversity:
37where ā and b represent the mean values of a and b across paths in an icon.It is important to note that if the weight of the this term (w diversity ) is too large, the model may lean towards extreme color values.This could result in an overemphasis on colors such as green, red, blue, and yellow, as these combinations maximize the standard deviation.
Palette-based Color Transfer
38The goal of this step is to obtain various colorization candidates of Puser using the desired five-color color palette C for designers to choose from.Specifically, we will generate colorization candidates using the inferred colorization template L Puser on the userprovided SVG icon Puser.We denote each colorization candidate as I = {I 0 , I 1 , ..., In}, where I i = (L i , a i , b i ) represent the Lab colors of path i.And we also use I L i , I a i , and I b i to represent the Lab components of I i , respectively.
Gnarly Brown
39Figure 4: Given a user-provided SVG icon contour and a five-color palette, our colorization model generates a colorization template, denoted as L Puser .To explore different colorization possibilities, we sample various colorization candidates from L Puser .Next, we perform palette-based color transfer to each colorization candidates.We further perform an filtering process to exclude candidates that do not exhibit harmonious color combinations.Finally, we selected K colorization results that effectively capture the diversity of the colorization space.
Generate Colorization Candidates
40To generate a variety of colorization candidates for Puser, we sample predicted Lab values from the L Puser .For each path i, we sort the likelihoods l i of possible Lab values and select a subset of Lab values based on a pre-defined threshold.This yields a set of sampled Lab values denoted as ψ i = {(Lab) 0 i , (Lab) 1 i , ..., (Lab) ki i }, where k i is the number of sampled Lab values for path i.We repeat this sampling process for all paths in Puser, resulting in a collection of candidate Lab values for each path: Ψ = {ψ 0 , ψ 1 , ..., ψn}.Finally, we generate the final colorization candidates by enumerating all possible combinations from these candidate Lab values, denoted as Ω = ψ 0 × ψ 1 × ... × ψn.
Color Transfer
41For each colorization candidate in Ω, we proceed by selecting the closest color from the color palette C for each path (C i ) based on the hue distance metric.We then optimize the final colorization results Î by minimizing the following objective function:
42where n is the number of paths, and we set λ = 1000.The first term penalizes the deviation of the current color values from the corresponding palette colors.The second term is designed to enhance the distinction between assigned colors for individual paths by increasing the disparities in their luminance values.This term is motivated by the objective of ensuring that paths with the same corresponding palette colors yield colorization results that maintain harmony and recognition [OL06].Additionally, we aim to preserve the relative luminance relationships between paths during color transfer process [RAGS01,TJT05,CFL * 15].For example, if path i is predicted to be lighter than path j, it is crucial that after recoloring, path i remains lighter than path j.
Candidate Filtering and Selection
43After color transfer, we observed that not all colorization align with existing harmonic templates.Therefore, we exclude colorization results that do not match any of the existing harmonic templates.
44In order to enhance designers' workflow, it is crucial to avoid overwhelming them with an excessive number of colorization results, as it may lead to confusion.Based on our interview with designers, we discovered that owners often struggle to express their specific needs or preference accurately.Additionally, designers often face challenges in meeting the owners' requirement in a single attempt, often necessitating multiple iterations.To mitigate the communication burden between designers and owners, we propose offering a range of colorization results that designers can directly present to owners for selection.To determine the final colorization results, we use the following selection process.First, we select the colorization result from the set of candidates in Ω that has the the highest likelihoods for every paths.Next, we calculate the L2 distances between the selected colorization result and the remaining candidates.The candidate with the largest distance is then chosen as the subsequent colorization result.We iterate this process K times, allowing designers to specify the desired number of K.This approach enable us to present a diverse set of colorization results.
Datasets
45Vector icons.We collected 13, 132 icons from Flaticon † , a public website of icon creations by designers.All icons are in SVG format with flat colors and no borders.To prepare the dataset, we extracted the contour of each icon and set the stroke color as black with a width to six.For training, validation, and testing, we splitted the data in an 8:1:1 ratio.Palettes.We use the Kuler dataset provided by O'Donovan et al. [OAH11] to demonstrate the colorization results.Each palette consists of a theme name and five distinct RGB colors.
Implementation Details
46Our model was trained using a GeForce RTX 1080 Ti GPU on Ubuntu 20.04.1.We employed PyTorch framework with batch size 8.The training lasted for 50 epochs, took approximately 1.5 hours.We use Adam optimizer and set the learning rate as 2.5 × 10 −4 .We set the weights of unary, pairwise, diversity, and harmony terms are set to 0.2, 0.8, 0.01, and 0.01, respectively.: Given an icon contour and a desired palette, our method generate numbers of colorization results.This enables designers to explore and evaluate various colorization possibilities for the given icon and palette pair.
Performance
47In the test phase, our model predicts the probability of each color for each path.It takes about 28 seconds for 1313 icons and an average of about 0.02 seconds per icon.The color transfer process for two icons, one with 5 path elements and the other with 12 path elements:
48• For colorizing a single icon (solving Equation 10), the processing time was 1.2 and 3 seconds.• Filtering a thousand colorization results using harmonic templates took 27 seconds and 1.5 minutes.• Providing k different colorization results to users took 0.2 and 0.3 seconds.
Results
49In Figure 5 and Figure 6, we present the colorization results generated by our method.Our method can be used in the scenario where designers aim to colorize an icon set comprises multiple icons us-ing multiple color palettes.We present the coloring results in Figure 5 to designers, who have provided valuable feedback on our approach.They mentioned that our method allows them to quickly and easily identify the optimal palette for an icon set, thus significantly reducing their workload in searching suitable color palettes.
50As mentioned in Section 5.3, communication between designers and owners incurs significant costs.Multiple transmission and modification rounds are often required to capture the owners' demands effectively.In response to this situation, we propose to provide a series of colorization results that designers can directly present to owners for selection.Figure 6 shows examples of diverse colorization candidates.Designers can adjust the number of candidates for different situations.Owners can select their preferred icons from these options to facilitate the elucidation of requirements.Designers can subsequently utilize the chosen icons directly for color modifications.
Evaluation
51We compare our colorization results to several iconic line art colorization works, including Comic [FHOO17], MUNIT [HLBK18], AdvIcon [SLWW19], SCFT [LKL * 20], SGA [LGK * 22], and Icon-Flow [LLW22].For each method, we use the implementations provided by the authors.Given that previous studies may not directly focus on icon colorization, we finetune each method using the pixel icon dataset provided by Sun et al. [SLWW19].In addition, previous works require another image as a color reference, while we use the color palette directly.We select some icons as color references for comparison baselines to present the coloring results.Then, we use k-means to take five representative colors from these reference icons as our palette input.Figure 7 shows all coloring results.Regarding the quantitatively assessing color harmony, a notable challenge emerges due to the inherent inconsistency of color distribution between the colorization results of our method (sparse set of colors) and traditional "pixel-based" methods.Although we try to compute the harmony distance using selected representative colors (following [CFL * 15]), we discovered that this approach fails to fully capture the perceptual image harmony, mainly due to the presence of noisy colors in the colorization results.
User Study
52We conducted an anonymous questionnaire to evaluate the colorization results of our method compared to several baseline methods.The questionnaire consists of 12 questions using the 12 examples shown in Figure 7.Each question presents an icon contour and a palette, along with seven options: our coloring results and the results of six baseline methods.Prior to the questionnaire, we explained that the colorization results were drawn based on the given icon contour and the palette without any additional hints or refer-ence standards for good colorization.To prevent visual fatigue, we asked participants to choose the three best colorization results and rank them from good to bad, rather than ranking all seven images at once.Our scoring method award three points for a first place ranking, two points for second place, and one point for third place.Icons that were not selected by the participants were not included in the score calculation.
53In total, we recruited 198 participants, including 68 males, 125 females, and five did not declare their gender.The participants' ages ranged from 15 to 34, with two respondents are over the age of 40.The results of the questionnaire, shown in Figure 8, revealed our method the highest mean score.These observations indicate a general preference for our colorization results among the majority of participants, highlighting the effectiveness of our approach in generating visually appealing colorizations.
Discussion
54In contrast to our method that directly operate on vector icons, the baseline methods require rasterizing the input vector icon into a pixel icon before colorization.As a result, the colorization results obtained by baseline methods are in pixel format.Therefore, designers need to manually refill the resulting colors from the pixel images to the vector icons for further usage.After the user study, we collected the criteria for judging the colorization results from the participants.Some participants highlighted their consideration of the colorization method's ability to preserve the structure of the original icon contour.This include aspects such as whether the contour is complete, whether the hole is preserved, and whether colors of the overlapping paths are blended.Our method preserve these aspects better compared to baseline methods operate on pixel icons.Moreover, some participants expressed their consideration of the harmoniousness of color combinations in the resulting colorizations.Although color harmony is subjective, our method endeavors to maintain it and achieve the closest match to human perception of color compared to baseline methods.
Ablation Study
55We conducted ablation studies to analyze the contributions of different losses in our vector icon colorization method, including pairwise, harmony, and diversity losses (Figure 9).When only the unary term is used, there are challenges in distinguishing the contours of path due to the similarity in predicted luminance and chroma values.By introducing the pairwise loss, our method is able to consider the relative relationship between paths to differentiate the shapes' color clearly (Figure 9(b)).The harmony loss helps align the colorization results with human-preferred color perception, resulting in more visually appealing outcomes (Figure 9(d)).We observe that when only unary and pairwise losses are used to train the colorization model, the icons tend to be biased towards a specific color.For instance, in Figure 9(b), the book is predominantly blue, and the mobile phone appears reddish overall.With the diversity loss, the colorization model can generate various colors, enhancing the overall diversity of the output color combinations.By integrating unary, pairwise, harmony, and diversity losses for training our colorization model, we ensure that the resulting color templates can be used to generate a range of visual appealing colorization results with the reference palette.
Harmony Evaluation
56To validate the effectiveness of introducing the harmony loss in enhancing color combinations, we calculate the hue distance between each color combination in the examples and its best-matched template from Figure 9(b) to Figure 9(e).When we only include the unary and pairwise terms in the loss function, only one example that yields a non-zero hue distance, indicating it does not meet the harmonious criterion.However, due to the limited color variations, the inclusion of the diversity term becomes imperative.Nonetheless, this inclusion results in an amplified hue distance as illustrated in Figure 9(c) (mean hue distance is 7.1 • ).After introducing harmony loss, all resultant color combinations (Figure 9(d)) meet the harmonious criterion (mean hue distance is 0), while simultaneously maintaining color diversity.
Limitations and Future Work
57Distinction of similar shapes.As described in Section 4, we discretized the Lab colors into a fixed number of classes and treat the colorization problem as a classification problem.However, due to the discretization, the pairwise loss cannot preserve the color differences within each class.As a result, our model may assign the same color to paths with similar shapes, leading to difficulties in distinguish these shapes when they overlap with each other.In the future, it is possible to explicitly encourage different color assignments by encoding the overlap relationship in the loss functions.Limited Color Model.Currently, our method supports constant color model, where a single color is assigned to each path in the vector icon.In the future, we plan to extend our colorization method to also support the gradient color model.Furthermore, during our interview with designers, we received feedback suggesting that style transfer on vector icon would be an exciting direction to explore.Designers mentioned that the owner often provide reference images as style sources, rather than providing concrete style descriptions.
58Text-based Vector Icon Colorization.During our interview with designers, they mentioned that owners often express their requirements for colorization in abstract text descriptions rather than providing specific reference color palettes.This observation has led us believe that a promising future direction to explore is the vector icon colorization using text inputs.
59Perceptual Similarity Between Colors.Currently, we use a cross-entropy loss to model the colorization problem because it makes the colorization trackable, as demonstrated in [ZIE16].We believe a more refined formulation considering the perceptual similarity between different colors is a fruitful future work.Match color palettes and harmonic templates.We currently select the colorization results by sequentially performing palette transfer and harmonic filtering rather than incorporating it due to occasional discrepancies observed in the colorization results, where the inclusion of the harmonic template matching term caused excessive deviation from both the predicted color and the color palette.We believe there are still many possible ways to achieve different benefits.For example, adjusting the color to match the palette and harmonic template simultaneously is a potential alternative to transfer colors.
Conclusion
60We present a palette-based colorization method for colorizing vector icons without the need of rasterization.Our method consists of two stages.First, we introduced a colorization model that predicts a color template based on the input icon contour.We simultaneously combine vector icons' local and group features to strengthen the feature descriptions.To encourage colorization results that align with the human perception of color harmony,we design a novel loss function comprises a MRF-based colorization loss and a color harmony loss.In the second stage, we perform color transfer from a desired palette to the color template and generate a diverse range of colorization results.Our method provide valuable support to designers in two ways.First, designers can explore various colorziation results for a single icon using different color palettes.Second, they can efficiently evaluate the suitability of a color palette for a set of icons.We conducted a user study to evaluate the colorization results generated by our method and several baseline methods.The results clearly indicated that the results generated by our method are the most preferred among all the baseline methods.More importantly, our proposed method seamlessly integrates into designers' workflow, allowing them to modify colorization results directly for subsequent icon design tasks, thereby enhancing the ease and efficiency of vector icon colorization.
2 of 11
61Miao Lin et al. / Palette-Based and Harmony-Guided Colorization for Vector Icons
62[CSMS10] used semantics and annotations for palette classification and color transfer.Yoo et al. [YPCL13] used the primary color of the image as the basis for image region segmentation.Wang et al. [WJC13] formulated color adjustment as an interpolation problem and adjusted the color of the image through the sentiment words input by the user.Chang et al. [CFL * 15] computed luminance and ab channels separately and corrected for colors outside the visual range.However, our color references are chosen by the user and do not refer to the color style of the original image.Our requirements are closer to palette-guided recoloring work.Wang et al. [WYW * 10] performed soft segmentation on the image, and the user can apply local refinement according to the block of interest.Instead of using a color transfer function, Cho et al. [CYM-LYC17] obtained realistic recolored images through image feature learning.Zhang et al.
63[LZZ * 18] identified the category of the target object by extracting the keystroke features of the input vector sketch.Xu et al. [XHY * 18] introduced a novel hashing loss for sketch retrieval.Collomosse et al. [CBJ19] learned a search embedding that unifies vector and raster representations.Jiang et al. [JLS * 21] developed a dual-stream GNN architecture that does not require rasterization and realized object detection and classification of vector objects.
MiaoFigure 2 :
64Figure 2: Given an icon contour, our colorization network extracts unary path features and pairwise features to predict the color template.We propose a novel MRF-based loss that include the unary loss and pairwise loss.Additionally, we introduce a novel color harmony loss and a color diversity loss to enhance the harmonious of the resulting colorizations.
𝜶0
65compute the hue distance from each templateBest-matched Template
Figure 3 :
66Figure3: (a) θ is the hue distance between the color without the sector and the sector boundary.(b) Though all colors fall within the sector, there is a region with no color.In contrast, (c) includes all colors, and the sector is more restrictive.We choose the scheme with the strictest conditions as the best matching one, and record its starting angle as α 0 .
Figure 5 :
67Figure5: Given an icon set, designers can use our method to efficiently evaluate the colorization results using different palettes.
MiaoFigure 7 :
68Figure 7: We compare the colorization results obtained by our vector icon colorization methods that operate on pixel icons.
Figure 8 :
69Figure 8: We visualize the mean and the standard deviation of the user study results.In comparison to other baseline methods, our method obtain the highest score.
Figure 9 :
70Figure 9: Ablation studies.(a) Using only the unary term may result in indistinguishable shapes.(b) Consider relationships between paths using pairwise terms.(c) Enhancing color variations by introducing diversity term.(d) Improving the harmony of the resultant color combinations using harmony term.(e) Colorization results using our overall loss function.From (b) to (e), we compute the hue distance between each example's colors and its best matched-template and plot the results on the hue wheel.
Figure 10 :
71Figure10: Due to the color discretization during training, our method is limited in capturing subtle color differences between paths.As a result, when similar shapes overlap, they often become indistinguishable as they are predicted to have the same color.For example, this can be observed in cases such as two overlapping clouds (left), two circles on the medal (middle), and similar shapes on the pumpkin (right).
72Zhang et al. [ZZI * 17] developed a user-guided method to lead image colorization.Another common practice is to use CNNs to complete coloring [ZIE16,ISSI16].Isola et al. [IZZE17] further implemented image-to-image translation tasks in various fields.Unlike images, the initial stages of line art creation are usually not gray-scale images.Stuff like comics, cartoons, and sketches usually only have black lines as input.GAN-based methods are commonly used to generate colors for line characters [HA17, LQLW17].Some works also use another picture or sketch as a reference [ZJLL17, LKL * 20, LGK * 22].These reference images are usually taken from the same category as the input sketch.It is expected that the same parts to get similar color transformations, such as hair color for hair and skin color for skin.Zhang et al. [ZLW * 18] proposed a semi-automatic method where users only need to give Miao Lin et al. / Palette-Based and Harmony-Guided Colorization for Vector Icons 3 of 11 color hints instead of complex images.Ci et al. [CMW * 18] also allowed users to color the entire picture by drawing simple color lines.Kim et al. [KJPY19] did not require the user to choose a color but only to provide simple text prompts.
73Zhang et al. [ZYZ * 17] and Ha and Eck [HE17] first tried to simulate the generation of sketch strokes by sequence modeling.With the introduction of attention mechanism, Carlier et al. [CDAT20] and Ribeiro et al. [RBCP20] used a transformer-based architecture to learn feature representation and interpolation for vector sketches.Zou et al. [ZSQ * 21
참고문헌 47건
- Local color transfer between images using dominant colors Journal of Electronic Imaging · SPIE · 2013 10.1117/1.jei.22.3.033003
- Palette-based photo recoloring ACM Transactions on Graphics · Association for Computing Machinery · 2015 10.1145/2766978
- Color compatibility from large datasets 2011 10.1145/1964921.1964958
- A colour harmony model for two‐colour combinations Color Research & Application · Wiley · 2006 10.1002/col.20208
- Probabilistic color-by-numbers ACM Transactions on Graphics · Association for Computing Machinery · 2013 10.1145/2461912.2461988
- Affective image adjustment with a single word The Visual Computer · Springer Science+Business Media · 2012 10.1007/s00371-012-0755-3
- Additivity of colour harmony Color Research & Application · Wiley · 2010 10.1002/col.20624
- The Munsell Color System: A scientific compromise from the world of art Studies in History and Philosophy of Science Part A · Elsevier BV · 2014 10.1016/j.shpsa.2014.03.004
- Interactive local adjustment of tonal values ACM Transactions on Graphics · Association for Computing Machinery · 2006 10.1145/1141911.1141936
- Learning moods and emotions from color combinations 2010 10.1145/1924559.1924599
- Color transfer between images IEEE Computer Graphics and Applications · Institute of Electrical and Electronics Engineers · 2001 10.1109/38.946629
- Geometric Formulation of Classical Color Harmony* Journal of the Optical Society of America · Optica Publishing Group · 1944 10.1364/josa.34.000046
- Two-scale tone management for photographic look ACM Transactions on Graphics · Association for Computing Machinery · 2006 10.1145/1141911.1141935
- Interactive graph cuts for optimal boundary & region segmentation of objects in N-D images 2002 10.1109/iccv.2001.937505
- Image recoloring using geodesic distance based color harmonization Computational Visual Media · Springer Nature · 2015 10.1007/s41095-015-0013-5
- Color harmonization ACM Transactions on Graphics · Association for Computing Machinery · 2006 10.1145/1141911.1141933
- Let there be color! ACM Transactions on Graphics · Association for Computing Machinery · 2016 10.1145/2897824.2925974
- 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
- IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR'2001) 2001
- PaletteNet: Image Recolorization with Given Color Palette 2017 10.1109/cvprw.2017.143
- Auto-painter: Cartoon image generation from sketch by using conditional Wasserstein generative adversarial networks Neurocomputing · Elsevier BV · 2018 10.1016/j.neucom.2018.05.045
- Two-stage sketch colorization ACM Transactions on Graphics · Association for Computing Machinery · 2018 10.1145/3272127.3275090
- LiveSketch: Query Perturbations for Guided Sketch-Based Visual Search 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · 2019 10.1109/cvpr.2019.00299
- Drawing and Recognizing Chinese Characters with Recurrent Neural Network IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2017 10.1109/tpami.2017.2695539
- Image-to-Image Translation with Conditional Adversarial Networks 2017 10.1109/cvpr.2017.632
- Comicolorization 2017 10.1145/3145749.3149430
- SketchMate: Deep Hashing for Million-Scale Human Sketch Retrieval 2018 10.1109/cvpr.2018.00844
- cGAN-Based Manga Colorization Using a Single Training Image 2017 10.1109/icdar.2017.295
- Style Transfer for Anime Sketches with Enhanced Residual U-net and Auxiliary Classifier GAN 2017 10.1109/acpr.2017.61
- A Learned Representation for Scalable Vector Graphics 2021 IEEE/CVF International Conference on Computer Vision (ICCV) · 2019 10.1109/iccv.2019.00802
- Adversarial Colorization of Icons Based on Contour and Color Conditions Proceedings of the 30th ACM International Conference on Multimedia · 2019 10.1145/3343031.3351041
- Tag2Pix: Line Art Colorization Using Text Tag With SECat and Changing Loss 2019 10.1109/iccv.2019.00915
- Reference-Based Sketch Image Colorization Using Augmented-Self Reference and Dense Semantic Correspondence 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · 2020 10.1109/cvpr42600.2020.00584
- User-Guided Deep Anime Line Art Colorization with Conditional Adversarial Networks Proceedings of the 30th ACM International Conference on Multimedia · 2018 10.1145/3240508.3240661
- Icon Colorization Based On Triple Conditional Generative Adversarial Networks 2022 IEEE International Conference on Visual Communications and Image Processing (VCIP) · 2020 10.1109/vcip49819.2020.9301890
- Im2Vec: Synthesizing Vector Graphics without Vector Supervision 2021 10.1109/cvpr46437.2021.00726
- Example-based image color and tone style enhancement ACM Transactions on Graphics · Association for Computing Machinery · 2011 10.1145/2010324.1964959
- Data-driven image color theme enhancement ACM Transactions on Graphics · Association for Computing Machinery · 2010 10.1145/1882261.1866172
- ClipGen: A Deep Generative Model for Clipart Vectorization and Synthesis IEEE Transactions on Visualization and Computer Graphics · Institute of Electrical and Electronics Engineers · 2021 10.1109/tvcg.2021.3084944
- Stylized Neural Painting 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · 2021 10.1109/cvpr46437.2021.01543
- Recognizing Vector Graphics without Rasterization arXiv (Cornell University) · Cornell University · 2021 10.48550/arxiv.2111.03281
- Learning to cluster for rendering with many lights ACM Transactions on Graphics · Association for Computing Machinery · 2021 10.1145/3478513.3480561
- COMPUTER GRAPHICS forum Computer Graphics Forum · Wiley · 2003 10.1111/1467-8659.00652
- Colorization using optimization 2004 10.1145/1186562.1015780
- Non-rigid dense correspondence with applications for image enhancement ACM Transactions on Graphics · Association for Computing Machinery · 2011 10.1145/2010324.1964965
- DeepSVG: A Hierarchical Generative Network for Vector Graphics Animation arXiv (Cornell University) · Cornell University · 2020 10.48550/arxiv.2007.11301
- Style-Structure Disentangled Features and Normalizing Flows for Diverse Icon Colorization 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · 2022 10.1109/cvpr52688.2022.01096