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

Feature-preserving color pencil drawings from photographs

관련 필름·전자재료 · (14) 드라이 필름(포토레지스트)

기본 정보

저자
  1. Dong Wang — College of Mathematics and Informatics, South China Agricultural University, Guangzhou, China
  2. Guiqing Li — School of Computer Science & Engineering, South China University of Technology, Guangzhou, China|||School of Computer Science & Engineering, South China University of Technology, Guangzhou, China
  3. Chengying Gao — School of Data and Computer Science, Sun Yat-sen University, Guangzhou, China
  4. Shengwu Fu — College of Mathematics and Informatics, South China Agricultural University, Guangzhou, China
  5. Yun Liang — College of Mathematics and Informatics, South China Agricultural University, Guangzhou, China
DOI
10.1007/s41095-022-0320-6
저널
Computational Visual Media
발행년도
2023
발행기관
Springer Nature
피인용수
3
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1007/s41095-022-0320-6
토픽
Color Science and Applications
OpenAlex ID
W4382787463

평가 내용

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

초록

Color pencil drawing is well-loved due to its rich expressiveness. This paper proposes an approach for generating feature-preserving color pencil drawings from photographs. To mimic the tonal style of color pencil drawings, which are much lighter and have relatively lower saturation than photographs, we devise a lightness enhancement mapping and a saturation reduction mapping. The lightness mapping is a monotonically decreasing derivative function, which not only increases lightness but also preserves input photograph features. Color saturation is usually related to lightness, so we suppress the saturation dependent on lightness to yield a harmonious tone. Finally, two extremum operators are provided to generate a foreground-aware outline map in which the colors of the generated contours and the foreground object are consistent. Comprehensive experiments show that color pencil drawings generated by our method surpass existing methods in tone capture and feature preservation.

본문 36,979자

본문 펼치기
Color pencil drawing is well-loved due to its rich expressiveness. This paper proposes an approach for generating feature-preserving color pencil drawings from photographs. To mimic the tonal style of color pencil drawings, which are much lighter and have relatively lower saturation than photographs, we devise a lightness enhancement mapping and a saturation reduction mapping. The lightness mapping is a monotonically decreasing derivative function, which not only increases lightness but also preserves input photograph features. Color saturation is usually related to lightness, so we suppress the saturation dependent on lightness to yield a harmonious tone. Finally, two extremum operators are provided to generate a foreground-aware outline map in which the colors of the generated contours and the foreground object are consistent. Comprehensive experiments show that color pencil drawings generated by our method surpass existing methods in tone capture and feature preservation. Introduction Color pencil drawing, a popular kind art, has diverse styles while preserving almost all natural scene details [1]. It has been widely used in animation, advertisement, film, and television. Unfortunately, making real color pencil drawings is not only timeconsuming but also expensive [2], and requires artists to be well trained. Image-based color-pencil-style drawing generation, as an important supplement to manual work, can greatly improve efficiency and reduce production costs. However, it is challenging to generate high-quality results that can both capture the stylistic characteristics of color pencil drawings and preserve the structure and features of the original image. Introduction Color tone computation and object outline detection are two key ingredients for automatically producing color pencil drawings. The former describes visual features such as lightness and saturation, while the latter defines shape features such as contours and feature lines of objects in the scene. Introduction Color tone appears as a harmonic composition of lightness and saturation. Early tone mappings usually established a mathematical relationship between the new tone and the old tone. Because these relationships have no reasonable descriptions, such mappings (Gao et al. [3] and Tong et al. [4]) either fail to capture the pencil drawing style or suffer from structural distortion, as shown in Figs. 1(b) and 1(d). Deep learning models such as Li et al. [5] only inefficiently learn a correct tone mapping between photographs and pencil drawings due to a lack of exact training pairs (see Fig. 1(c)). Introduction Outlines play a key role in highlighting the structural conception of a pencil drawing. Previous pencil drawing approaches employ the gradient operator or DoG (difference of Gaussians) for edge detection, and usually do not consider whether the outline pixels come from the foreground or the background. Outlines (contours) are used to highlight the boundaries of foreground objects in color pencil drawings. So, a good outline for an object should not only describes the shape of the object but also has the same color as the object itself. This becomes a problem for color pencil drawing generation because the colors of the outline and the corresponding object may be incoherent, as the border between the hair and background in Fig. 1(b). Existing deep learningbased algorithms can not solve the problem due to training data from traditional methods, as illustrated by Fig. 1(c). Unfortunately, this issue has not yet received attention. Introduction To address these issues, we present a feature preserving approach to convert photographs into color pencil drawings. First, following Gao et al. and Lu et al. [6], we also model a pencil drawing style using a tone of high lightness and low saturation, as shown by Fig. 2 for several real pencil drawings. Thus, we design a universal tone mapping consisting of lightness mapping and saturation mapping. Given a pixel in the photograph, the former mapping warps its lightness to a larger value, while the latter mapping explicitly reduces the saturation in terms of its new lightness. In addition, to address color inconsistency of object contours, we use extremum operators to generate a foreground-aware outline map in which the outline pixels are located in the foreground. Introduction In summary, our contributions are an approach for generating pencil drawings from photographs comprising a lightness mapping with monotonically decreasing and bounded derivatives, a lightness dependent saturation mapping, and two gray difference operators for correctly detecting outline pixels from the foreground. The lightness mapping is carefully devised to greatly enhance the total lightness of the drawings and preserve features to some extent, while the saturation mapping decreases the saturation of a pixel in a manner proportional to its increase in lightness, to capture the tone of color pencil drawings. Extreme gray difference operators for generating a foreground-aware outline map further guarantee the coherence of soft object contours and feature lines in color and shape. A user study demonstrates that our algorithm distinctly surpass previous approaches in overall appearance, tone, and outline coherence, as well as structure and feature preservation. Related work Pencil drawing generation from real photos is as a type of image style transfer. The core problem is to model the statistics of the given target style [7]. Pencil drawing style modeling usually considers several key ingredients: tone mapping, outline generation, and texture rendering. Our approach focuses on improving the first two; relevant research is summarised below. Tone modeling of pencil drawings Pencil drawing tone modeling adjusts the tone from photographs to that of real pencil drawings. To achieve a tone of high lightness and low saturation, painters usually mix the current color with a high lightness color (such as white) [8]. The combination increases lightness and simultaneously decreases saturation of the current color due to purity reduction. Tone modeling of pencil drawings Lu et al. decomposed the lightness of a pencil drawing into low, medium, and high layers to match a Gaussian distribution, uniform distribution, and Laplace distribution, respectively. Lightness enhancement in this approach comes at the expense of detail. Gao et al. conducted a local maximum filter [9] on the lightness component of the original photo to generate an image with increased lightness. The new image is then blended with the original photo to generate an image with lower saturation and higher lightness compared with original photo. Unfortunately, such a lightness mapping is neither monotonic nor continuous, and can easily yield artifacts in which color regions with low lightness become gray. Tone modeling of pencil drawings Although the acquisition of effective training data pairs is challenging for artistic style tasks due to the difficulty of establishing an accurate spatial correspondence between photographs and artistic images [10], data-driven methods have also been employed to generate pencil drawing tone. Li et al. [11] designed a so-called ArtPDGAN model based on a generative adversarial network [12] to learn pencil drawing tone from artists. Because of the large gap in content between each image training pair, it is not easy to preserve scene details and object structures. Li et al. proposed a deep learning framework to fuse the structural features of pencil drawings such as hatching or stippling into the input photograph. They created training data from pencil-shaded drawings and a tone map by the guided filter described in Ref. [13], which does not have cues concerning the color tone differences between pencil drawings and photographs. Tone modeling of pencil drawings The pencil drawing tone generated by the aforementioned approaches is far from optimal. In particular, the saturation is unsatisfactory. Ma et al. [14] separated the saturation range into low, medium, and high levels and dealt with each level in isolation to avoid regions with high saturation being oversaturated. Although the new saturation may fall into the valid range, the corresponding new color may go outside the color space: HSI space is constrained to a double cone. Chiang et al. [15] divided HSL space into six regions and used lightness variation to find the region in which a color falls. The slope of the characteristic triangle edge for a specific region was employed to adjust the saturation to ensure validity of the new HSL triple. The idea of the correlation between lightness and saturation motivates us to explicitly establish a reasonable saturation mapping, even though the issue they address is to enhance saturation, while we instead need to decrease the saturation. Outline generation Traditional line drawing generation methods can be divided into two categories: gradient operator-based and DoG-based approaches. Outline generation Zhou and Li [16] automatically produced portrait contours in pencil drawing style from portrait photos based on the gradient operator. Son et al. [17] presented a model composed of a contour detector and a contour renderer to obtain a variety of hand-painted outline styles by controlling the details and regions of interest in images. The optimization framework by Bhat et al. [18] unified multiple gradient-based edge detectors to generate line drawings. Lu et al. proposed a gradient-based convolution framework to achieve a piecewise linear effect of pencil outlines. However, the gradient operator may induce double edges for an object feature line, leading to a ghosting effect. Outline generation The DoG operator was first introduced in Ref. [19]. Winnemöller et al. [20] utilized an iterative DoG to extract object contours for image abstraction. Kang et al. [21] proposed a flow-based anisotropic DoG filter to extract image outlines. The technique was further adopted by Spicker et al. [22] to generate depth-aware line drawings. Winnemöller et al. [23] introduced an extended DoG filter to generate diverse line drawing effects. A common issue is that DoG-based edge detection algorithms yield many discontinuous edges. Outline generation In recent years, various data-driven approaches have been proposed for generating line drawings. Gao et al. devised a conventional convolution network to generate outline maps that were trained by using manually selected ideal pencil outlines from the results of the method by Lu et al., and Jin et al. [24] further introduced a hierarchical network to obtain refined outlines. Li et al. [25] gave an image semantic aware sketch line generation technique, fusing segmented boundaries to boost weak boundaries. In the pencil style outline generation model of Li et al., training pairs were obtained by extracting outlines from a set of pencil drawings using the extended DoG filter by Winnemöller et al. The training data for these methods were created using traditional algorithms, so inevitably inherit the defects of these algorithms. To obtain important line drawings for accurately depicting overall object structures, Inoue et al. [26] detected expressive edges and created a clean line drawing using a convolutional neural network. This approach also exhibits the problem of generating many discontinuous lines. Outline generation As a special case of line drawings, portrait generation has been widely investigated. Chen et al. [27] proposed a line synthesis method for portrait generation, which combines a local model and a global model where the local model converts each element (such as nose and mouth) of the face into lines and the global model locates the element position in the image. The idea is further developed by Yi et al. [28,29], where global and local structuredriven GANs are adopted to automatically generate portraits. The local GANs transfer the face elements into the artistic style, while the global GAN fuses the elements together. Methods described in Refs. [30][31][32][33] also achieved similar results. Nevertheless, as object outlines do not exactly match object edges, these approaches also lead to incompatible color outlines when applied to color pencil drawings. Outline generation Although many approaches have been developed for generating line drawings, none addresses the color coherence of the generated outlines. The outlines generated by these methods are usually close to image edges, but it is uncontrollable whether the pixel position of the outline is on the background or the foreground. This results in line color inconsistency with the foreground color, and motivates us to design new operators to constrain line pixels within the foreground area. Overview Given a photograph I, our approach creates its color pencil drawing P in two stages. It first separately conducts a feature-preserving tone mapping to generate a tone map T and a coherent outline mapping to obtain an outline map C from I, and then fuses the two maps into the final result P . The feature-preserving tone mapping is performed in HSL color space from input photograph I to the tone map T . The pipeline of the proposed method is shown in Fig is further processed by texture mapping to generate a textured lightness map T L . Components T L , T S , and I H form the tone map T . In outline mapping, an extreme difference operator on the gray map G of I yields an outline map D. It is then used to blend the white image and I to obtain the coherent color outline map C. Fusing T and C finally creates the color pencil drawing P . We next describe the two maps in detail and then briefly address compositing the maps. Basis Feature-preserving tone mapping generates a tone map T from a photograph I. T has the popular color pencil drawing style of higher lightness and lower saturation compared to I, while preserving the features of I. Tone mapping includes a lightness mapping and a saturation mapping. The former evaluates the lightness of T from I L and the latter calculates the saturation of T from I S . The two mappings are universal in the sense that they are independent of the content of I. Given the HSL triple (h, s, l) of a pixel in I, let (h, s , l ) be the corresponding mapped result in T ; the hue channel remains unchanged during the mapping. Lightness mapping with monotonically decreasing derivative Contrary to the tone mapping of HDR images which compresses a large lightness range into a smaller one with lower lightness, our lightness mapping f (l) : [0, 1] → [0, 1] should be subjective and warps low lightness to higher value. Specifically, it is expected to satisfy the following properties: Lightness mapping with monotonically decreasing derivative (1) Interpolation f (0) = 0 and f (1) = 1 guarantee that T has pixels with 0 or 1 lightness values if black or white pixels exist in I. Lightness mapping with monotonically decreasing derivative (2) Additivity f (l) > l for l ∈ (0, 1) forces an increase in total lightness after mapping. Lightness mapping with monotonically decreasing derivative > 0 is small and positive, guarantees preservation of detailed features in I. We choose the exponential function to formulate this mapping Lightness mapping with monotonically decreasing derivative where σ ∈ (0, 1] is a parameter to control the speed of growth of f (l), and γ = 1 − e −1/σ is a normalized weight to force f (l) to satisfy the interpolation constraint. Figure 4 depicts four shapes of f (l) defined by Eq. (1) for σ = 0.1, 0.2, 0.5, 0.9. It shows that smaller σ leads to a larger increment f (l) − l. However, if σ is set very small (say 0.1), f (l) grows rapidly when l is small and approximates 1 quickly. This implies that f (l) ≈ 1 for all l over a large range (say [0.5, 1]), which inevitably results in loss of detail. On the other hand, large σ helps preserve image detail well, but fails to provide sufficient lightness increment, particularly when l is small. It is not easy to achieve a good balance with fixed σ. Lightness mapping with monotonically decreasing derivative A good mapping should grow faster for small l in order to quickly get high lightness increments while increasing relatively slowly for large l to guarantee monotonicity and boundedness. This motivates us to increase σ as l grows. We therefore introduce a linear relation σ(l) = al + b, 0 < a, b 1. Equation (1) is then written as Lightness mapping with monotonically decreasing derivative where γ = 1−e −1/(a+b) , and a and b are two unknown parameters. Observing Fig. 4(b), we find that the total lightness gain: Lightness mapping with monotonically decreasing derivative where κ is the derivative of f (l) at l = 1 and κ > 0 is given by the user to ensure that function f (l) is monotonic when l ∈ [0, 1]. Once κ is given, we then determine a and b in Eq. Lightness mapping with monotonically decreasing derivative (2) such that f (l) achieves the largest lightness gain. This function satisfies the following proposition: Proposition 1. For 0 < a, b 1 and 0 l 1, we always have: Lightness mapping with monotonically decreasing derivative Proposition 1 implies that f (l) in Eq. (2) satisfies the aforementioned third property if we set κ > 0. For image edges caused by lightness differences, this condition can guarantee that edges in the source image do not vanish in the color pencil drawing. Figure 5 illustrates two optimal solutions of Eq. Lightness mapping with monotonically decreasing derivative (3) for f (l) which respectively correspond to κ = 0.1 (red) and κ = 0.2 (green). We also depict the shape of f (l) in Eq. (1) for σ = 0.2 (blue). It is easy to show that the gain for the red curve is greater than for the blue one. Moreover, the derivative of the blue curve almost vanishes near l = 1 while that of the red one does not. This implies that Eq. (3) is superior to Eq. (1) both in total lightness gain and detail-preserving effect. Lightness dependent saturation mapping In HSL color space, lightness and saturation are two highly correlated quantities. For images, lightness and saturation of almost all pixels are inversely correlated: pixels with high lightness usually have low saturation, and vice versa. This motivates us to establish a saturation mapping dependent on lightness. Moreover, the mapping should not change original image features; the relation between original lightness and original saturation should be preserved. Lightness dependent saturation mapping Let the general form of the saturation mapping be s = g(s, l, l ) where l = f (l) is defined in Eq. (2). It should obey the following three constraints at least: (1) Pixel value (h, s , l ) must fall into the valid range of HSL space. To simplify the mapping model, we assume that the relationship between s and s is linear: Lightness dependent saturation mapping where λ(l, l ) is a proportionality coefficient related to original lightness and new lightness. According to constraint (1), s = 0 when l = 1, so g(s, l, 1) = 0, which implies λ(l, 1) = 0. This, combined with constraint (2), indicates that λ contains the factor 1 − l . Accordingly, the factor 1 − l is also introduced to produce a symmetrical relationship. In addition, constraint (3) suggests 0 λ(l, l ) < 1. This inspires us to define Lightness dependent saturation mapping which leads to the final saturation mapping: Lightness dependent saturation mapping Note that we take 0 0 = 1. With s and l fixed, the greater the new lightness l is, the smaller the generated saturation s becomes. Lightness dependent saturation mapping Equation (6) actually reveals a geometric relationship in HSL space: the old right triangle with right sides s and 1 − l is similar to the new right triangle with right sides s and 1 − l . This guarantees the validity of (h, s , l ), in that the triple can be smoothly converted to RGB space without truncation. Moreover, the similarity preserves original image features. Tone map composition Lightness and saturation mappings act on lightness and saturation components of each pixel in input photograph I respectively to produce a tone map T with higher lightness and lower saturation. The mapping between the HSL triple (I H , I S , I L ) in I and its counterpart (T H , T S , T L ) in T is established via Eq. (7): Tone map composition where T L * is further processed using the method by Lu et al. to generate a textured lightness component T L . Figure 6 illustrates some immediate component maps during the generation of tone map T . Compared to the original component maps, the new saturation is obviously reduced while the new lightness is considerably augmented. Basis Enhanced outlines are a key ingredient of pencil drawings. Outlines include object contours and feature lines inside an object. If an outline includes pixels from different objects or the background, it will exhibit appearance artifacts due to their color difference from those of the corresponding foreground object. In pencil drawing, such artifacts are further magnified because of edge enhancement. Basis To address the issue, we propose a coherent contour generation approach based on the gray map G of photograph I, which is inspired by the following observations: Basis (1) Compared to the difference between adjacent pixels, the difference between the current pixel and its local extreme can better express an image edge. (2) Forcing contour pixels to lie on the foreground object may help address coherence of the object contour. Basis (3) For a feature line inside an object, coherence can be enhanced by selecting pixels with smaller gray values in their local regions. The approach includes two extreme operators: maximal gray difference operator and minimal gray difference operator. Maximal gray difference operator Let p be an arbitrary pixel in G. We use N (p) to denote its local neighborhood (for example, a 5 × 5 patch) and evaluate the difference between the maximal gray level in N (p) and the gray value of p: For object contour pixels within the region of an object, if their gray levels are smaller in their local neighborhood, like feature line pixels, they also will have maximum reinforcement. Thus, the generated feature lines are compatible with the ground truth and the positions of generated object contours are within the region of the corresponding foreground object. This is desirable for color pencil drawings. However, if the object gray value is greater than that of the background gray value, the maximal gray difference operator will strengthen the object contour pixels on the side of the background region. The generated outline will be incompatible with the object in color tone. A minimal gray difference operator is a better substitute to deal with this case. Minimal gray difference operator The minimal difference operator D m is defined as Eq. (9): Minimal gray difference operator Also, D m (p) ∈ [0, 1] holds. A good object outline should not only describe the shape of the object but also have the same color as the object itself. However, two feature lines are extracted for each original feature line, in Fig. 7(b), by the gradient operator, and in Fig. 7(c), by the minimal gray difference operator. The partial or whole contour color of the flower in Fig. 7(b) and in Fig. 7(d), using maximal gray difference operator, is black, which is inconsistent with the flower's color. The ideal result combines the contour in Fig. 7(c) with the feature lines in Fig. 7(d), as shown in Fig. 7(e). Combined gray difference operator In most cases, the object gray value is lower than or almost the same as the background gray value. D M is a good choice for selecting the foreground contour pixels as outlines. Unfortunately, in some cases, the foreground gray value is much larger than that of the background, as shown in Fig. 8. D M is inclined to select the background contour pixels as outlines. In this case, D m can be used to select foreground pixels as outlines. As the pixel gray value of feature lines is always smaller in their local regions, D M is appropriate. Combined gray difference operator Therefore, we need a mask map ρ to indicate which of the two operators to select. Combined gray difference operator ρ(p) = 1 for each pixel p by default. When the foreground gray value is much larger than the background gray, a map ρ like Fig. 8(b) is required. There are many methods to get ρ. In this paper, we regard the salient regions in the input image as the foreground and adopt the approach in Ref. [34] to calculate a saliency map. We then utilize the color transfer method in Ref. [35] to change the foreground color greatly. Comparing the original image and color transferred image, pixels with a large gradient variation lie at the boundary between foreground and background, so can help to generate ρ. Coherent color outline map We assume color pencil drawings are made on white paper. Let I w be a white image with the same resolution as I, i.e., I w (p) = (1, 1, 1) for all p. We then evaluate the pencil drawing color outline map C pixel by pixel: Coherent color outline map This equation indicates that C(p) = I(p) for D(p) = 1, the case when p lies on a strong edge, and C(p) = I w (p) for D(p) = 0, the case when p lies within trivial regions, and C(p) blends the two images for 0 < D(p) < 1, the case when p is located in a weak feature region. Figure 8 presents an example of the generated outline map D (Fig. 8(c)) and color outline map C (Fig. 8(d)) using the combined gray difference operator. The maximal gray difference operator provides feature lines and the minimal gray difference operator provides the flower's contour. The combined gray difference operator combines the advantages of the maximal and minimal gray difference operators. We also compare our outlines with those provided by Chan et al. [36] and sketchKeras [37]. The contour color in their result is generated from the background, which is inconsistent with the real colors of the lotus. Clearly, our contour is located on the side of the foreground, and possesses the color of the flower. Fusion of outline map and tone map To make a color pencil drawing, artists usually first sketch object outlines and then add scene detail. Our color pencil drawing P for I is similarly calculated by fusing the color outline map C and the textured tone map T in RGB color space as Eq. (12): Fusion of outline map and tone map where γ plays the role of enhancing the image outline and is set to 2 in our experiment. Figure 9 illustrates a color pencil drawing generated by our approach. The tone map and outline map are naturally combined to produce a vivid color pencil drawing. Experimental results and discussions This section demonstrates the effectiveness of our framework by comparing it with state-of-the-art methods in terms of overall appearance, tone mapping quality, and outline coherence of the output. Figures 10 and 11 present four examples of generated color pencil drawings and grayscale pencil drawings using each method in turn. The grayscale pencil drawings were obtained by converting color pencil drawing images to grayscale images. Compared with other methods, our results have fewer defects and finer detail. At the same time, the generated style is perceptually closer to real pencil drawings for both color and grayscale output. Further discussions of generated tone and outlines will be provided in We also compared our method with the zero-shot style transfer method of Sheng et al. [38]; see Fig. 12. Their results were generated using a reference image provided by a real color pencil drawing; see Fig. 12(d). Visual comparison It is easy to see that their results (Fig. 12(c)) exhibit blurring of detail and shape distortion artifacts. In comparison, our results ( Fig. 12(b)) look closer in style to the color pencil drawings of Fig. 12(d). User study Even when applied to pairs of real and generated images, quantitative metrics still lack consistency with human perception [39]. A user study was thus adopted for qualitative human assessment of the generated color pencil drawings. We collected 30 photographs, mostly from the aforementioned four papers. Each approach generated a color pencil drawing for each photograph. We then designed a questionnaire to evaluate each result in terms of the following four considerations: (1) Similarity to real pencil drawings in overall visual effect. We divided the 30 photographs into 6 groups with 5 test examples per group and then invited non-art major users to appraise five groups and fine arts users to evaluate one group. Before commencing evaluation, participants were given a group of high-quality real pencil drawings as reference. The user study was conducted on Questionnaire Star (https://www.wjx. cn/), a Chinese public platform. In total, 78 valid ratings were collected from non-art major users, and 13 valid ratings were collected from fine arts users. Figure 13 summarizes the results in pairs of bars, from fine arts users (left bar) and non-art major users (right bar). These histograms indicate our method to be significantly preferred to previous approaches for all considerations. Fig. 14(c). Figure 14(e) shows that the tone of our results not only has the characteristics of high lightness and low saturation, but also preserves details and color better. Tone mapping evaluation The overall tone of these images can be further analyzed by statistics. Figure 15 shows the mean lightness (above) and mean saturation (below) of the images in Fig. 14. The five vertical bars labelled c1-c5 in Fig. 15(a) are respectively the mean lightness and mean saturation components of the five images in Fig. 14(above). Similarly, the five vertical bars in Fig. 15(b) correspond to the five images in Fig. 14(below). Apart from the approach of Li et al., which yields results with mean lightness close to the original values, other methods lead to higher lightness and lower saturation than the original values. While the approaches of Lu et al. and Gao et al. yield results with higher mean lightness, they come at a cost of loss of detail. This is caused by greatly increasing high brightnesses for Lu et al. (Fig. 14(b)), but by greatly increasing the low brightnesses for Gao et al. (Fig. 14(c)). In comparison, our approach constrains rate of change of lightness by limiting the derivatives of the two endpoints of the mapping curve. Our results look better. Finally, we show the robustness of our tone mapping scheme by using images with extreme lightness distributions. Our tone mapping improves all lightness values and reduces all saturation values except 0 and 1. This means, both for high and low lightness regions, the lightness component is always enhanced and the saturation component becomes smaller to meet the tone characteristic of color pencil drawings. In Fig. 16, we present three examples; the first includes both bright and dark regions, the second is almost globally bright and the third one is dark. The results in Fig. 16(c) look satisfactory, especially for low brightness areas with a larger increase in lightness and a larger decrease in saturation. Outline coherence evaluation To show the outlining qualities of our operator, we compare our generated outlines with those of Gao et al. and Li et al. The training data for outline generation by Gao et al. were collected using a gradient operator. Outline pixels may be uncontrollably located either in the background or the foreground. If they belong to the background, the colors of outlines and corresponding objects will not match: see the treetop outline in Fig. 17(b). The training data for outline generation model by Li et al. are provided by extended DoG filtering, which may produce discontinuous edges, as in the feature lines of the corn and the wall in Fig. 17(e). Moreover, the contour colors also differ from those of foreground objects (see the contour colors of the animal and the corn). In contrast, as our outline extraction technique controls outline positions to be in the foreground, its results present more realistic pencil outlines in both shape and color, as can be seen in Figs. 17(c) and 17(f). Outline coherence evaluation Based on low-level features of pixel values, our outline extraction scheme is sensitive to noise. For noise-free images, the gray values usually smoothly change within non-edge regions. However, the differences between gray values of a pixel and its local extrema significantly increase for noisy images. This leads to many non-edge pixels being recognized as outline pixels. Figure 18(b) shows many discontinuities on object contours in the outline map of the noisy image, which was generated from the noise-free image in Fig. 18(a) by adding Gaussian white noise of mean 0 and variance 0.01. Parameters In our method, κ in Eq. (3), the slope at the endpoint of the lightness mapping curve, controls the brightness adjustment and plays an important role in preserving the features of the original image and balancing the total lightness of the generated pencil drawing. A smaller κ forces f (x) to grow faster and consequently leads to larger lightness. Examples with different κ are depicted in Fig. 19. It is easy to observe that as κ increases, the total brightness gradually decreases while saturation and features are gradually strengthened. In our experiments, all results were generated by setting κ = 0.15, which makes a good trade-off between feature preservation of the original image, and the style of high lightness and low saturation of color pencil drawing. Conclusions We have presented a new image style transfer framework for creating color pencil drawings from photographs. Lightness increase mapping with a monotonically decreasing derivative and lightnessdependent saturation mapping were presented to generate a specific color pencil drawing tonality in which lightness is usually much higher and saturation is lower than in photographs. Furthermore, two extremal filters were developed for generating a coherent outline map of the given photograph. A variety of experiments demonstrated that our results are closer to real color pencil drawings than existing solutions. Theoretical analysis has verified that the values in the lightness map, saturation map, and outline map generated by our model naturally fall in the expected bounded range of [0, 1]. Moreover, while the algorithm involves a few parameters, only fixed values are required for the whole framework. Experiments also showed its robustness. Conclusions Because of the difficulty of acquiring effective pairs of photographs and corresponding ground truth pencil drawings, evaluation of generated pencil drawings is still very subjective. Quantitative methods are necessary to provide scientific evaluation criteria. It is also desirable to explore the essential characteristics of pencil drawings and design more competitive texture generation methods to produce highly aesthetic color pencil drawings. In addition, generating the outline map involves a mask which labels a set of pixels on the boundaries separating the foreground objects and background regions. When multiple overlapping objects appear in the original image, our saliencybased approach may fail to obtain correct contour colors along boundaries between objects. Figure 20 shows an example with five people in which the third person is in front of the second and the fourth persons (from left to right). Similarly, the second and fourth persons are in front of the first and fifth people. Our approach cannot determine these complex relationships and readily yields incorrect contour colors as shown in Fig. 20(b): the color of the contour pixels of arms and hands come from their related backgrounds. Image analysis may be of use in generating a multi-level mask in future work. Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. Conclusions The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. Conclusions To view a copy of this licence, visit http:// creativecommons.org/licenses/by/4.0/. Conclusions Other papers from this open access journal are available free of charge from http://www.springer.com/journal/41095. To submit a manuscript, please go to https://www. editorialmanager.com/cvmj.

섹션 본문 65문단 · 35,069자

(제목 없음)

1Color pencil drawing is well-loved due to its rich expressiveness. This paper proposes an approach for generating feature-preserving color pencil drawings from photographs. To mimic the tonal style of color pencil drawings, which are much lighter and have relatively lower saturation than photographs, we devise a lightness enhancement mapping and a saturation reduction mapping. The lightness mapping is a monotonically decreasing derivative function, which not only increases lightness but also preserves input photograph features. Color saturation is usually related to lightness, so we suppress the saturation dependent on lightness to yield a harmonious tone. Finally, two extremum operators are provided to generate a foreground-aware outline map in which the colors of the generated contours and the foreground object are consistent. Comprehensive experiments show that color pencil drawings generated by our method surpass existing methods in tone capture and feature preservation.

Introduction

2Color pencil drawing, a popular kind art, has diverse styles while preserving almost all natural scene details [1]. It has been widely used in animation, advertisement, film, and television. Unfortunately, making real color pencil drawings is not only timeconsuming but also expensive [2], and requires artists to be well trained. Image-based color-pencil-style drawing generation, as an important supplement to manual work, can greatly improve efficiency and reduce production costs. However, it is challenging to generate high-quality results that can both capture the stylistic characteristics of color pencil drawings and preserve the structure and features of the original image.

3Color tone computation and object outline detection are two key ingredients for automatically producing color pencil drawings. The former describes visual features such as lightness and saturation, while the latter defines shape features such as contours and feature lines of objects in the scene.

4Color tone appears as a harmonic composition of lightness and saturation. Early tone mappings usually established a mathematical relationship between the new tone and the old tone. Because these relationships have no reasonable descriptions, such mappings (Gao et al. [3] and Tong et al. [4]) either fail to capture the pencil drawing style or suffer from structural distortion, as shown in Figs. 1(b) and 1(d). Deep learning models such as Li et al. [5] only inefficiently learn a correct tone mapping between photographs and pencil drawings due to a lack of exact training pairs (see Fig. 1(c)).

5Outlines play a key role in highlighting the structural conception of a pencil drawing. Previous pencil drawing approaches employ the gradient operator or DoG (difference of Gaussians) for edge detection, and usually do not consider whether the outline pixels come from the foreground or the background. Outlines (contours) are used to highlight the boundaries of foreground objects in color pencil drawings. So, a good outline for an object should not only describes the shape of the object but also has the same color as the object itself. This becomes a problem for color pencil drawing generation because the colors of the outline and the corresponding object may be incoherent, as the border between the hair and background in Fig. 1(b). Existing deep learningbased algorithms can not solve the problem due to training data from traditional methods, as illustrated by Fig. 1(c). Unfortunately, this issue has not yet received attention.

6To address these issues, we present a feature preserving approach to convert photographs into color pencil drawings. First, following Gao et al. and Lu et al. [6], we also model a pencil drawing style using a tone of high lightness and low saturation, as shown by Fig. 2 for several real pencil drawings. Thus, we design a universal tone mapping consisting of lightness mapping and saturation mapping. Given a pixel in the photograph, the former mapping warps its lightness to a larger value, while the latter mapping explicitly reduces the saturation in terms of its new lightness. In addition, to address color inconsistency of object contours, we use extremum operators to generate a foreground-aware outline map in which the outline pixels are located in the foreground.

7In summary, our contributions are an approach for generating pencil drawings from photographs comprising a lightness mapping with monotonically decreasing and bounded derivatives, a lightness dependent saturation mapping, and two gray difference operators for correctly detecting outline pixels from the foreground. The lightness mapping is carefully devised to greatly enhance the total lightness of the drawings and preserve features to some extent, while the saturation mapping decreases the saturation of a pixel in a manner proportional to its increase in lightness, to capture the tone of color pencil drawings. Extreme gray difference operators for generating a foreground-aware outline map further guarantee the coherence of soft object contours and feature lines in color and shape. A user study demonstrates that our algorithm distinctly surpass previous approaches in overall appearance, tone, and outline coherence, as well as structure and feature preservation.

Related work

8Pencil drawing generation from real photos is as a type of image style transfer. The core problem is to model the statistics of the given target style [7]. Pencil drawing style modeling usually considers several key ingredients: tone mapping, outline generation, and texture rendering. Our approach focuses on improving the first two; relevant research is summarised below.

Tone modeling of pencil drawings

9Pencil drawing tone modeling adjusts the tone from photographs to that of real pencil drawings. To achieve a tone of high lightness and low saturation, painters usually mix the current color with a high lightness color (such as white) [8]. The combination increases lightness and simultaneously decreases saturation of the current color due to purity reduction.

10Lu et al. decomposed the lightness of a pencil drawing into low, medium, and high layers to match a Gaussian distribution, uniform distribution, and Laplace distribution, respectively. Lightness enhancement in this approach comes at the expense of detail. Gao et al. conducted a local maximum filter [9] on the lightness component of the original photo to generate an image with increased lightness. The new image is then blended with the original photo to generate an image with lower saturation and higher lightness compared with original photo. Unfortunately, such a lightness mapping is neither monotonic nor continuous, and can easily yield artifacts in which color regions with low lightness become gray.

11Although the acquisition of effective training data pairs is challenging for artistic style tasks due to the difficulty of establishing an accurate spatial correspondence between photographs and artistic images [10], data-driven methods have also been employed to generate pencil drawing tone. Li et al. [11] designed a so-called ArtPDGAN model based on a generative adversarial network [12] to learn pencil drawing tone from artists. Because of the large gap in content between each image training pair, it is not easy to preserve scene details and object structures. Li et al. proposed a deep learning framework to fuse the structural features of pencil drawings such as hatching or stippling into the input photograph. They created training data from pencil-shaded drawings and a tone map by the guided filter described in Ref. [13], which does not have cues concerning the color tone differences between pencil drawings and photographs.

12The pencil drawing tone generated by the aforementioned approaches is far from optimal. In particular, the saturation is unsatisfactory. Ma et al. [14] separated the saturation range into low, medium, and high levels and dealt with each level in isolation to avoid regions with high saturation being oversaturated. Although the new saturation may fall into the valid range, the corresponding new color may go outside the color space: HSI space is constrained to a double cone. Chiang et al. [15] divided HSL space into six regions and used lightness variation to find the region in which a color falls. The slope of the characteristic triangle edge for a specific region was employed to adjust the saturation to ensure validity of the new HSL triple. The idea of the correlation between lightness and saturation motivates us to explicitly establish a reasonable saturation mapping, even though the issue they address is to enhance saturation, while we instead need to decrease the saturation.

Outline generation

13Traditional line drawing generation methods can be divided into two categories: gradient operator-based and DoG-based approaches.

14Zhou and Li [16] automatically produced portrait contours in pencil drawing style from portrait photos based on the gradient operator. Son et al. [17] presented a model composed of a contour detector and a contour renderer to obtain a variety of hand-painted outline styles by controlling the details and regions of interest in images. The optimization framework by Bhat et al. [18] unified multiple gradient-based edge detectors to generate line drawings. Lu et al. proposed a gradient-based convolution framework to achieve a piecewise linear effect of pencil outlines. However, the gradient operator may induce double edges for an object feature line, leading to a ghosting effect.

15The DoG operator was first introduced in Ref. [19]. Winnemöller et al. [20] utilized an iterative DoG to extract object contours for image abstraction. Kang et al. [21] proposed a flow-based anisotropic DoG filter to extract image outlines. The technique was further adopted by Spicker et al. [22] to generate depth-aware line drawings. Winnemöller et al. [23] introduced an extended DoG filter to generate diverse line drawing effects. A common issue is that DoG-based edge detection algorithms yield many discontinuous edges.

16In recent years, various data-driven approaches have been proposed for generating line drawings. Gao et al. devised a conventional convolution network to generate outline maps that were trained by using manually selected ideal pencil outlines from the results of the method by Lu et al., and Jin et al. [24] further introduced a hierarchical network to obtain refined outlines. Li et al. [25] gave an image semantic aware sketch line generation technique, fusing segmented boundaries to boost weak boundaries. In the pencil style outline generation model of Li et al., training pairs were obtained by extracting outlines from a set of pencil drawings using the extended DoG filter by Winnemöller et al. The training data for these methods were created using traditional algorithms, so inevitably inherit the defects of these algorithms. To obtain important line drawings for accurately depicting overall object structures, Inoue et al. [26] detected expressive edges and created a clean line drawing using a convolutional neural network. This approach also exhibits the problem of generating many discontinuous lines.

17As a special case of line drawings, portrait generation has been widely investigated. Chen et al. [27] proposed a line synthesis method for portrait generation, which combines a local model and a global model where the local model converts each element (such as nose and mouth) of the face into lines and the global model locates the element position in the image. The idea is further developed by Yi et al. [28,29], where global and local structuredriven GANs are adopted to automatically generate portraits. The local GANs transfer the face elements into the artistic style, while the global GAN fuses the elements together. Methods described in Refs. [30][31][32][33] also achieved similar results. Nevertheless, as object outlines do not exactly match object edges, these approaches also lead to incompatible color outlines when applied to color pencil drawings.

18Although many approaches have been developed for generating line drawings, none addresses the color coherence of the generated outlines. The outlines generated by these methods are usually close to image edges, but it is uncontrollable whether the pixel position of the outline is on the background or the foreground. This results in line color inconsistency with the foreground color, and motivates us to design new operators to constrain line pixels within the foreground area.

Overview

19Given a photograph I, our approach creates its color pencil drawing P in two stages. It first separately conducts a feature-preserving tone mapping to generate a tone map T and a coherent outline mapping to obtain an outline map C from I, and then fuses the two maps into the final result P . The feature-preserving tone mapping is performed in HSL color space from input photograph I to the tone map T . The pipeline of the proposed method is shown in Fig is further processed by texture mapping to generate a textured lightness map T L . Components T L , T S , and I H form the tone map T . In outline mapping, an extreme difference operator on the gray map G of I yields an outline map D. It is then used to blend the white image and I to obtain the coherent color outline map C. Fusing T and C finally creates the color pencil drawing P . We next describe the two maps in detail and then briefly address compositing the maps.

Basis

20Feature-preserving tone mapping generates a tone map T from a photograph I. T has the popular color pencil drawing style of higher lightness and lower saturation compared to I, while preserving the features of I. Tone mapping includes a lightness mapping and a saturation mapping. The former evaluates the lightness of T from I L and the latter calculates the saturation of T from I S . The two mappings are universal in the sense that they are independent of the content of I. Given the HSL triple (h, s, l) of a pixel in I, let (h, s , l ) be the corresponding mapped result in T ; the hue channel remains unchanged during the mapping.

Lightness mapping with monotonically decreasing derivative

21Contrary to the tone mapping of HDR images which compresses a large lightness range into a smaller one with lower lightness, our lightness mapping f (l) : [0, 1] → [0, 1] should be subjective and warps low lightness to higher value. Specifically, it is expected to satisfy the following properties:

22(1) Interpolation f (0) = 0 and f (1) = 1 guarantee that T has pixels with 0 or 1 lightness values if black or white pixels exist in I.

23(2) Additivity f (l) > l for l ∈ (0, 1) forces an increase in total lightness after mapping.

24> 0 is small and positive, guarantees preservation of detailed features in I. We choose the exponential function to formulate this mapping

25where σ ∈ (0, 1] is a parameter to control the speed of growth of f (l), and γ = 1 − e −1/σ is a normalized weight to force f (l) to satisfy the interpolation constraint. Figure 4 depicts four shapes of f (l) defined by Eq. (1) for σ = 0.1, 0.2, 0.5, 0.9. It shows that smaller σ leads to a larger increment f (l) − l. However, if σ is set very small (say 0.1), f (l) grows rapidly when l is small and approximates 1 quickly. This implies that f (l) ≈ 1 for all l over a large range (say [0.5, 1]), which inevitably results in loss of detail. On the other hand, large σ helps preserve image detail well, but fails to provide sufficient lightness increment, particularly when l is small. It is not easy to achieve a good balance with fixed σ.

26A good mapping should grow faster for small l in order to quickly get high lightness increments while increasing relatively slowly for large l to guarantee monotonicity and boundedness. This motivates us to increase σ as l grows. We therefore introduce a linear relation σ(l) = al + b, 0 < a, b 1. Equation (1) is then written as

27where γ = 1−e −1/(a+b) , and a and b are two unknown parameters. Observing Fig. 4(b), we find that the total lightness gain:

28where κ is the derivative of f (l) at l = 1 and κ > 0 is given by the user to ensure that function f (l) is monotonic when l ∈ [0, 1]. Once κ is given, we then determine a and b in Eq.

29(2) such that f (l) achieves the largest lightness gain. This function satisfies the following proposition: Proposition 1. For 0 < a, b 1 and 0 l 1, we always have:

30Proposition 1 implies that f (l) in Eq. (2) satisfies the aforementioned third property if we set κ > 0. For image edges caused by lightness differences, this condition can guarantee that edges in the source image do not vanish in the color pencil drawing. Figure 5 illustrates two optimal solutions of Eq.

31(3) for f (l) which respectively correspond to κ = 0.1 (red) and κ = 0.2 (green). We also depict the shape of f (l) in Eq. (1) for σ = 0.2 (blue). It is easy to show that the gain for the red curve is greater than for the blue one. Moreover, the derivative of the blue curve almost vanishes near l = 1 while that of the red one does not. This implies that Eq. (3) is superior to Eq. (1) both in total lightness gain and detail-preserving effect.

Lightness dependent saturation mapping

32In HSL color space, lightness and saturation are two highly correlated quantities. For images, lightness and saturation of almost all pixels are inversely correlated: pixels with high lightness usually have low saturation, and vice versa. This motivates us to establish a saturation mapping dependent on lightness. Moreover, the mapping should not change original image features; the relation between original lightness and original saturation should be preserved.

33Let the general form of the saturation mapping be s = g(s, l, l ) where l = f (l) is defined in Eq. (2). It should obey the following three constraints at least: (1) Pixel value (h, s , l ) must fall into the valid range of HSL space. To simplify the mapping model, we assume that the relationship between s and s is linear:

34where λ(l, l ) is a proportionality coefficient related to original lightness and new lightness. According to constraint (1), s = 0 when l = 1, so g(s, l, 1) = 0, which implies λ(l, 1) = 0. This, combined with constraint (2), indicates that λ contains the factor 1 − l . Accordingly, the factor 1 − l is also introduced to produce a symmetrical relationship. In addition, constraint (3) suggests 0 λ(l, l ) < 1. This inspires us to define

35which leads to the final saturation mapping:

36Note that we take 0 0 = 1. With s and l fixed, the greater the new lightness l is, the smaller the generated saturation s becomes.

37Equation (6) actually reveals a geometric relationship in HSL space: the old right triangle with right sides s and 1 − l is similar to the new right triangle with right sides s and 1 − l . This guarantees the validity of (h, s , l ), in that the triple can be smoothly converted to RGB space without truncation. Moreover, the similarity preserves original image features.

Tone map composition

38Lightness and saturation mappings act on lightness and saturation components of each pixel in input photograph I respectively to produce a tone map T with higher lightness and lower saturation. The mapping between the HSL triple (I H , I S , I L ) in I and its counterpart (T H , T S , T L ) in T is established via Eq. (7):

39where T L * is further processed using the method by Lu et al. to generate a textured lightness component T L . Figure 6 illustrates some immediate component maps during the generation of tone map T . Compared to the original component maps, the new saturation is obviously reduced while the new lightness is considerably augmented.

Basis

40Enhanced outlines are a key ingredient of pencil drawings. Outlines include object contours and feature lines inside an object. If an outline includes pixels from different objects or the background, it will exhibit appearance artifacts due to their color difference from those of the corresponding foreground object. In pencil drawing, such artifacts are further magnified because of edge enhancement.

41To address the issue, we propose a coherent contour generation approach based on the gray map G of photograph I, which is inspired by the following observations:

42(1) Compared to the difference between adjacent pixels, the difference between the current pixel and its local extreme can better express an image edge. (2) Forcing contour pixels to lie on the foreground object may help address coherence of the object contour.

43(3) For a feature line inside an object, coherence can be enhanced by selecting pixels with smaller gray values in their local regions. The approach includes two extreme operators: maximal gray difference operator and minimal gray difference operator.

Maximal gray difference operator

44Let p be an arbitrary pixel in G. We use N (p) to denote its local neighborhood (for example, a 5 × 5 patch) and evaluate the difference between the maximal gray level in N (p) and the gray value of p: For object contour pixels within the region of an object, if their gray levels are smaller in their local neighborhood, like feature line pixels, they also will have maximum reinforcement. Thus, the generated feature lines are compatible with the ground truth and the positions of generated object contours are within the region of the corresponding foreground object. This is desirable for color pencil drawings. However, if the object gray value is greater than that of the background gray value, the maximal gray difference operator will strengthen the object contour pixels on the side of the background region. The generated outline will be incompatible with the object in color tone. A minimal gray difference operator is a better substitute to deal with this case.

Minimal gray difference operator

45The minimal difference operator D m is defined as Eq. (9):

46Also, D m (p) ∈ [0, 1] holds. A good object outline should not only describe the shape of the object but also have the same color as the object itself. However, two feature lines are extracted for each original feature line, in Fig. 7(b), by the gradient operator, and in Fig. 7(c), by the minimal gray difference operator. The partial or whole contour color of the flower in Fig. 7(b) and in Fig. 7(d), using maximal gray difference operator, is black, which is inconsistent with the flower's color. The ideal result combines the contour in Fig. 7(c) with the feature lines in Fig. 7(d), as shown in Fig. 7(e).

Combined gray difference operator

47In most cases, the object gray value is lower than or almost the same as the background gray value. D M is a good choice for selecting the foreground contour pixels as outlines. Unfortunately, in some cases, the foreground gray value is much larger than that of the background, as shown in Fig. 8. D M is inclined to select the background contour pixels as outlines. In this case, D m can be used to select foreground pixels as outlines. As the pixel gray value of feature lines is always smaller in their local regions, D M is appropriate.

48Therefore, we need a mask map ρ to indicate which of the two operators to select.

49ρ(p) = 1 for each pixel p by default. When the foreground gray value is much larger than the background gray, a map ρ like Fig. 8(b) is required. There are many methods to get ρ. In this paper, we regard the salient regions in the input image as the foreground and adopt the approach in Ref. [34] to calculate a saliency map. We then utilize the color transfer method in Ref. [35] to change the foreground color greatly. Comparing the original image and color transferred image, pixels with a large gradient variation lie at the boundary between foreground and background, so can help to generate ρ.

Coherent color outline map

50We assume color pencil drawings are made on white paper. Let I w be a white image with the same resolution as I, i.e., I w (p) = (1, 1, 1) for all p. We then evaluate the pencil drawing color outline map C pixel by pixel:

51This equation indicates that C(p) = I(p) for D(p) = 1, the case when p lies on a strong edge, and C(p) = I w (p) for D(p) = 0, the case when p lies within trivial regions, and C(p) blends the two images for 0 < D(p) < 1, the case when p is located in a weak feature region. Figure 8 presents an example of the generated outline map D (Fig. 8(c)) and color outline map C (Fig. 8(d)) using the combined gray difference operator. The maximal gray difference operator provides feature lines and the minimal gray difference operator provides the flower's contour. The combined gray difference operator combines the advantages of the maximal and minimal gray difference operators. We also compare our outlines with those provided by Chan et al. [36] and sketchKeras [37]. The contour color in their result is generated from the background, which is inconsistent with the real colors of the lotus. Clearly, our contour is located on the side of the foreground, and possesses the color of the flower.

Fusion of outline map and tone map

52To make a color pencil drawing, artists usually first sketch object outlines and then add scene detail. Our color pencil drawing P for I is similarly calculated by fusing the color outline map C and the textured tone map T in RGB color space as Eq. (12):

53where γ plays the role of enhancing the image outline and is set to 2 in our experiment. Figure 9 illustrates a color pencil drawing generated by our approach. The tone map and outline map are naturally combined to produce a vivid color pencil drawing.

Experimental results and discussions

54This section demonstrates the effectiveness of our framework by comparing it with state-of-the-art methods in terms of overall appearance, tone mapping quality, and outline coherence of the output. Figures 10 and 11 present four examples of generated color pencil drawings and grayscale pencil drawings using each method in turn. The grayscale pencil drawings were obtained by converting color pencil drawing images to grayscale images. Compared with other methods, our results have fewer defects and finer detail. At the same time, the generated style is perceptually closer to real pencil drawings for both color and grayscale output. Further discussions of generated tone and outlines will be provided in We also compared our method with the zero-shot style transfer method of Sheng et al. [38]; see Fig. 12. Their results were generated using a reference image provided by a real color pencil drawing; see Fig. 12(d).

Visual comparison

55It is easy to see that their results (Fig. 12(c)) exhibit blurring of detail and shape distortion artifacts. In comparison, our results ( Fig. 12(b)) look closer in style to the color pencil drawings of Fig. 12(d).

User study

56Even when applied to pairs of real and generated images, quantitative metrics still lack consistency with human perception [39]. A user study was thus adopted for qualitative human assessment of the generated color pencil drawings. We collected 30 photographs, mostly from the aforementioned four papers. Each approach generated a color pencil drawing for each photograph. We then designed a questionnaire to evaluate each result in terms of the following four considerations: (1) Similarity to real pencil drawings in overall visual effect. We divided the 30 photographs into 6 groups with 5 test examples per group and then invited non-art major users to appraise five groups and fine arts users to evaluate one group. Before commencing evaluation, participants were given a group of high-quality real pencil drawings as reference. The user study was conducted on Questionnaire Star (https://www.wjx. cn/), a Chinese public platform. In total, 78 valid ratings were collected from non-art major users, and 13 valid ratings were collected from fine arts users. Figure 13 summarizes the results in pairs of bars, from fine arts users (left bar) and non-art major users (right bar). These histograms indicate our method to be significantly preferred to previous approaches for all considerations. Fig. 14(c). Figure 14(e) shows that the tone of our results not only has the characteristics of high lightness and low saturation, but also preserves details and color better.

Tone mapping evaluation

57The overall tone of these images can be further analyzed by statistics. Figure 15 shows the mean lightness (above) and mean saturation (below) of the images in Fig. 14. The five vertical bars labelled c1-c5 in Fig. 15(a) are respectively the mean lightness and mean saturation components of the five images in Fig. 14(above). Similarly, the five vertical bars in Fig. 15(b) correspond to the five images in Fig. 14(below). Apart from the approach of Li et al., which yields results with mean lightness close to the original values, other methods lead to higher lightness and lower saturation than the original values. While the approaches of Lu et al. and Gao et al. yield results with higher mean lightness, they come at a cost of loss of detail. This is caused by greatly increasing high brightnesses for Lu et al. (Fig. 14(b)), but by greatly increasing the low brightnesses for Gao et al. (Fig. 14(c)). In comparison, our approach constrains rate of change of lightness by limiting the derivatives of the two endpoints of the mapping curve. Our results look better. Finally, we show the robustness of our tone mapping scheme by using images with extreme lightness distributions. Our tone mapping improves all lightness values and reduces all saturation values except 0 and 1. This means, both for high and low lightness regions, the lightness component is always enhanced and the saturation component becomes smaller to meet the tone characteristic of color pencil drawings. In Fig. 16, we present three examples; the first includes both bright and dark regions, the second is almost globally bright and the third one is dark. The results in Fig. 16(c) look satisfactory, especially for low brightness areas with a larger increase in lightness and a larger decrease in saturation.

Outline coherence evaluation

58To show the outlining qualities of our operator, we compare our generated outlines with those of Gao et al. and Li et al. The training data for outline generation by Gao et al. were collected using a gradient operator. Outline pixels may be uncontrollably located either in the background or the foreground. If they belong to the background, the colors of outlines and corresponding objects will not match: see the treetop outline in Fig. 17(b). The training data for outline generation model by Li et al. are provided by extended DoG filtering, which may produce discontinuous edges, as in the feature lines of the corn and the wall in Fig. 17(e). Moreover, the contour colors also differ from those of foreground objects (see the contour colors of the animal and the corn). In contrast, as our outline extraction technique controls outline positions to be in the foreground, its results present more realistic pencil outlines in both shape and color, as can be seen in Figs. 17(c) and 17(f).

59Based on low-level features of pixel values, our outline extraction scheme is sensitive to noise. For noise-free images, the gray values usually smoothly change within non-edge regions. However, the differences between gray values of a pixel and its local extrema significantly increase for noisy images. This leads to many non-edge pixels being recognized as outline pixels. Figure 18(b) shows many discontinuities on object contours in the outline map of the noisy image, which was generated from the noise-free image in Fig. 18(a) by adding Gaussian white noise of mean 0 and variance 0.01.

Parameters

60In our method, κ in Eq. (3), the slope at the endpoint of the lightness mapping curve, controls the brightness adjustment and plays an important role in preserving the features of the original image and balancing the total lightness of the generated pencil drawing. A smaller κ forces f (x) to grow faster and consequently leads to larger lightness. Examples with different κ are depicted in Fig. 19. It is easy to observe that as κ increases, the total brightness gradually decreases while saturation and features are gradually strengthened. In our experiments, all results were generated by setting κ = 0.15, which makes a good trade-off between feature preservation of the original image, and the style of high lightness and low saturation of color pencil drawing.

Conclusions

61We have presented a new image style transfer framework for creating color pencil drawings from photographs. Lightness increase mapping with a monotonically decreasing derivative and lightnessdependent saturation mapping were presented to generate a specific color pencil drawing tonality in which lightness is usually much higher and saturation is lower than in photographs. Furthermore, two extremal filters were developed for generating a coherent outline map of the given photograph. A variety of experiments demonstrated that our results are closer to real color pencil drawings than existing solutions. Theoretical analysis has verified that the values in the lightness map, saturation map, and outline map generated by our model naturally fall in the expected bounded range of [0, 1]. Moreover, while the algorithm involves a few parameters, only fixed values are required for the whole framework. Experiments also showed its robustness.

62Because of the difficulty of acquiring effective pairs of photographs and corresponding ground truth pencil drawings, evaluation of generated pencil drawings is still very subjective. Quantitative methods are necessary to provide scientific evaluation criteria. It is also desirable to explore the essential characteristics of pencil drawings and design more competitive texture generation methods to produce highly aesthetic color pencil drawings. In addition, generating the outline map involves a mask which labels a set of pixels on the boundaries separating the foreground objects and background regions. When multiple overlapping objects appear in the original image, our saliencybased approach may fail to obtain correct contour colors along boundaries between objects. Figure 20 shows an example with five people in which the third person is in front of the second and the fourth persons (from left to right). Similarly, the second and fourth persons are in front of the first and fifth people. Our approach cannot determine these complex relationships and readily yields incorrect contour colors as shown in Fig. 20(b): the color of the contour pixels of arms and hands come from their related backgrounds. Image analysis may be of use in generating a multi-level mask in future work. Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made.

63The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder.

64To view a copy of this licence, visit http:// creativecommons.org/licenses/by/4.0/.

65Other papers from this open access journal are available free of charge from http://www.springer.com/journal/41095. To submit a manuscript, please go to https://www. editorialmanager.com/cvmj.

참고문헌 31건

  1. XDoG: An eXtended difference-of-Gaussians compendium including advanced image stylization Computers & Graphics · Elsevier BV · 2012 10.1016/j.cag.2012.03.004
  2. Salient Region Detection via Integrating Diffusion-Based Compactness and Local Contrast IEEE Transactions on Image Processing · Institute of Electrical and Electronics Engineers · 2015 10.1109/tip.2015.2438546
  3. Francisco pacheco's comments on painting in oil Studies in Conservation · Taylor & Francis · 1982 10.1179/sic.1982.27.2.49
  4. Example-based composite sketching of human portraits 2004 10.1145/987657.987673
  5. Coherent line drawing 2007 10.1145/1274871.1274878
  6. Color pencil filter for non-photorealistic rendering applications 2014 10.1109/isce.2014.6884312
  7. Guided Image Filtering IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2012 10.1109/tpami.2012.213
  8. Real-time video abstraction ACM Transactions on Graphics · Association for Computing Machinery · 2006 10.1145/1141911.1142018
  9. Abstract Line Drawings from 2D Images 2007 10.1109/pg.2007.63
  10. Depth-aware coherent line drawings 2015 10.1145/2820903.2820909
  11. StyleBank: An Explicit Representation for Neural Image Style Transfer 2017 10.1109/cvpr.2017.296
  12. ℒ0 Gradient‐Preserving Color Transfer Computer Graphics Forum · Wiley · 2017 10.1111/cgf.13275
  13. PencilArt: A Chromatic Penciling Style Generation Framework Computer Graphics Forum · Wiley · 2018 10.1111/cgf.13334
  14. Avatar-Net: Multi-scale Zero-Shot Style Transfer by Feature Decoration 2018 10.1109/cvpr.2018.00860
  15. A Low-Light Sensor Image Enhancement Algorithm Based on HSI Color Model Sensors · Multidisciplinary Digital Publishing Institute · 2018 10.3390/s18103583
  16. Im2Pencil: Controllable Pencil Illustration From Photographs 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · 2019 10.1109/cvpr.2019.00162
  17. SRNPD: Spatial rendering network for pencil drawing stylization Computer Animation and Virtual Worlds · Wiley · 2019 10.1002/cav.1890
  18. APDrawingGAN: Generating Artistic Portrait Drawings From Face Photos With Hierarchical GANs 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · 2019 10.1109/cvpr.2019.01100
  19. Neural Style Transfer: A Review IEEE Transactions on Visualization and Computer Graphics · Institute of Electrical and Electronics Engineers · 2019 10.1109/tvcg.2019.2921336
  20. Unpaired Image-to-Image Translation Using Cycle-Consistent Adversarial Networks 2017 10.1109/iccv.2017.244
  21. Image-to-Image Translation with Conditional Adversarial Networks 2017 10.1109/cvpr.2017.632
  22. Learning to Trace: Expressive Line Drawing Generation from Photographs Computer Graphics Forum · Wiley · 2019 10.1111/cgf.13817
  23. Line Drawings for Face Portraits From Photos Using Global and Local Structure Based GANs IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2020 10.1109/tpami.2020.2987931
  24. ArtPDGAN: Creating Artistic Pencil Drawing with Key Map Using Generative Adversarial Networks Lecture notes in computer science · Springer Science+Business Media · 2020 10.1007/978-3-030-50436-6_21
  25. Enhancing pencil drawing patterns via using semantic information Multimedia Tools and Applications · Springer Science+Business Media · 2021 10.1007/s11042-021-11028-2
  26. Sketch Generation with Drawing Process Guided by Vector Flow and Grayscale Proceedings of the AAAI Conference on Artificial Intelligence · Association for the Advancement of Artificial Intelligence · 2021 10.1609/aaai.v35i1.16140
  27. Deep image synthesis from intuitive user input: A review and perspectives Computational Visual Media · Springer Nature · 2021 10.1007/s41095-021-0234-8
  28. DualFace: Two-stage drawing guidance for freehand portrait sketching Computational Visual Media · Springer Nature · 2021 10.1007/s41095-021-0227-7
  29. Proceedings. IEEE International Conference on Multimedia and Expo 2002 10.1109/icme.2002
  30. Where do people draw lines? 2008 10.1145/1399504.1360687
  31. Learning to generate line drawings that convey geometry and semantics 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · 2022 10.1109/cvpr52688.2022.00776