CN102663788B - Pen light-colored artistic effect drawing method based on unreality feeling - Google Patents
Pen light-colored artistic effect drawing method based on unreality feeling Download PDFInfo
- Publication number
- CN102663788B CN102663788B CN201210105833.5A CN201210105833A CN102663788B CN 102663788 B CN102663788 B CN 102663788B CN 201210105833 A CN201210105833 A CN 201210105833A CN 102663788 B CN102663788 B CN 102663788B
- Authority
- CN
- China
- Prior art keywords
- image
- color
- input
- edge
- formula
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
Landscapes
- Image Processing (AREA)
Abstract
The invention relates to a pen light-colored artistic effect drawing method based on unreality feeling, belonging to the technical field of information. The method provided by the invention comprises the following steps: obtaining gradient information of an original image, using DoG filter to filter the gradient information along the gradient direction, and obtaining an edge image of the original image through comparison with a threshold valve; computing linear filtering coefficient through variance and mean value of a local window, performing linear filtering on the original image and then performing abstraction through bilateral filtering to obtain color diffusion effect; overlaying the edge image and an color diffusion image to obtain preliminary pen line effect; adopting a light illumination module to transmit color so as to obtain color information of the original image; and enhancing contrast of the image through a contrast enhancing method so as to obtain final pen light-colored artistic effect. The advantages of the method provided by the invention are as follows: the pen light-colored artistic effect drawing method more conforms with aesthetic standard of people, has fast processing speed, good flexibility and wide application scope and is beneficial complementation for imitations of different artistic effects based on the unreality feeling.
Description
Technical field:
The invention discloses the light color artistic effect method for drafting of a kind of pen based on feeling of unreality, relate to the analog simulation method for drafting of the light color artistic effect of pen in computer graphic image processing, belong to areas of information technology.
Background technology:
Along with improving constantly of scientific and technological progress and people's esthetic sentiment, non-photorealistic rendering technology (Non-Photorealistic Rendering) has obtained people's extensive attention, be prevalent in the fields such as films and television programs, advertising, sight spot roaming, Entertainment, institute's role is more and more outstanding.Non-photorealistic rendering is paid attention to the Freehandhand-drawing art feature of graph image, and style is versatile and flexible, and the main target of its drafting often does not need to show the sense of reality of figure, and mainly gives prominence to some artistic speciality of main body in figure.
Non-photorealistic rendering technology stresses to simulate the artistic work with various different-styles, as style works such as oil painting, watercolor, pencil drawing, abstract paintings, the artistic style works that have in reality are too numerous to mention, utilize the light color artistic style works of the coloured pen-and-ink drawing of Computer Simulation tool, being that the useful of non-photorealistic rendering effect supplemented, is an important technology of feeling of unreality art speciality simulation.In known technology, Liu Yingqin (< Shandong Normal University Master's thesis, 2010>) adopts image segmentation technique that still image is played up to the artistic effect into cartoon style; Han Bo (< Xi'an Technology University Master's thesis, 2011>) is studied the color transmission of feeling of unreality, has proposed color transmission Indexes of Evaluation Effect; Kang Lifeng (< Liaoning Normal University Master's thesis, 2009>) is the artistic effect image with watercolor style by the two-dimensional static image processing of input; Zhao Binru (< University of Electronic Science and Technology Master's thesis, 2009>) based on optical illumination model realization the feeling of unreality effect of cartoon style and the stylization of black and white pen, pen-and-ink drawing style adopts profile to extract, and shading and texture synthesis method have been realized monochromatic tree-like trunk; Ai Lichao (< South China Science & Engineering University Master's thesis, 2010>) has designed cartoon style artistic style rendering system; Niu Xiaodong (< Sichuan Teachers University Master's thesis, 2011>) has designed the drawing system of ink and wash style; Money Wenhua (< Yunnan University PhD dissertation, 2010>) has designed the rendering system of pencil drawing, fluid artistic style style; Huang Hua etc. (< Chinese journal of computers >, 2009,32 (10): 2023-2030) have realized real-time sketch stylization artistic effect; Xiao Fu etc. (< Journal of Image and Graphics >, 2009,14 (4): 738-744) simulation has generated the feeling of unreality art image of lines fluctuations, the artistic feeling virtual environment that formation can be roamed; Min Feng etc. (< Journal of Image and Graphics >, 2009,32 (8): 1595-1602) adopt with or figure generate and there is the portrait painting artistic effect of multiple style; The thing people wait (< patent CN200810114120.9>, 2008) to simulate the rule of painter based on water flow structure figure recklessly, automatically generate Chinese ink painting; Huang Hua etc. (< patent CN200910023002.1>, 2009), according to the feature of sketch and human eye vision, generate the artistic effect of sketch stylization; Li Yun sunset etc. (< patent CN2001110210312.1>, 2011) disclose a kind of generation method and system of computer sketch images; Liu Hao etc. (< patent CN200510121488.4>, 2005) have proposed a kind of interactive ink and wash style real-time 3 D romance and real-time animation rendering intent.
Relatively known computing machine pen artistic effect analogy method, the present invention, taking linear filter technology as basis, proposes the light color artistic effect method for drafting of a kind of pen based on feeling of unreality.By literature search, have no the open report identical with the present invention.
Summary of the invention:
The object of the present invention is to provide the more realistic situation of one, have more the light color artistic effect method for drafting of the pen based on feeling of unreality of general and versatility.
The present invention is taking linear filtering as core, there is colored pen-and-ink drawing artistic effect as starting point to produce, still image to input is processed, provide the method for input picture being carried out to DoG edge extracting and obtains pen profile, method with linear filtering and the light color effect of abstract treatment of simulated has been proposed, and color transmission method based on optical illumination model.
The present invention completes according to the following steps:
The light color artistic effect method for drafting of pen technological process based on feeling of unreality is: first, ask for the gradient information of original image, use DoG wave filter to carry out filtering processing along gradient direction, by with the edge image of relatively asking for original image of threshold value; Then, adopt variance and the mean value computation linear filtering coefficient of local window, and original image is carried out to linear filtering processing, adopt on this basis bilateral filtering to carry out abstract, obtain color diffusion effect; Then, edge image and color diffusion image are superposeed, obtain preliminary pen lines effect; In order to obtain the color information of original image, adopt optical illumination model to transmit color; Finally, adopt the method for contrast enhancing to strengthen the contrast of image, obtain the light color artistic effect of final pen; Concrete steps are as follows:
(1) DoG edge extracting
Ask for the gradient of input picture Input, use DoG wave filter to carry out filtering along gradient direction, the output of wave filter is amplified along true edge, the response of accumulating each wave filter obtains F (s):
In formula, l (t) is the value of input picture Input on gradient straight line l, and f (t) is the wave filter that adopts Gaussian function.
By F (s) along gradient direction integration to strengthen the continuity of lines, obtain the image A (x) that lines strengthen:
In formula, G
σ(x) be that standard deviation is the one dimension Gaussian function of σ.
Finally, by A (x) and threshold tau comparison, after binaryzation, obtain the edge image edge of a width black and white:
(2) linear filtering is fuzzy
Input picture Input is adopted to coefficient a
k, b
kcarry out linear filtering, obtain filtering ambiguous result M:
M=a
kInput+b
k,i∈w
k
In formula, δ
kwith
for window w
kinterior average and variance, | w| represents window w
kin number of pixels,
for input picture Input is at window w
kin average.
(3) abstract processing
Filtering ambiguous result M is converted to LAB color space from rgb color space, adopts the neighborhood Sur that the radius size of Blur is x to pixel location to carry out nonlinear diffusion to luminance channel L, obtain the diffusion result L' of L passage:
In formula, Weight is current pixel and the error amount between neighborhood territory pixel around.Adopt the width interval that parameter is Width to carry out quantification treatment to L', obtain abstract result L ":
In formula, coefficient
control quantize number of color number, parameter Q
boundrayit is the marginal information of L'.
By L " be transformed into rgb color space with color channel AB from LAB color space, obtain abstract result image C.
(4) edge strengthens
The edge image edge that abstract result image C is extracted with DoG in proportion coefficient n mixes, and obtains result images G:
G=n*C+(1-n)*edge 0<n<1
(5) color transmission
Edge is strengthened to the result images G obtaining and adopts optical illumination to depart from the method for mapping, be delivered in result images E with reference to the colouring information of image:
E(i,j)=H+G(i,j)cos(α)+Kcos
m(α)
In formula, H parameter is surround lighting, and parameter K and m control the quantity of color transfer, and cos (α) represents to transmit deviation angle, adopts the luminance component of G image to calculate at location of pixels (i, j):
(6) contrast strengthens
Adopt contrast enhancement algorithms to strengthen processing to the result images E of color transmission, obtain the effect image Z that color contrast strengthens:
In formula, Z (x, y) is the pixel value at (x, y) some place after contrast strengthens, E (x, y) be the pixel value of image E at (x, y) some place, E (x', y') be pixel (x, y) pixel in neighborhood, m*n is Size of Neighborhood, a is the inhibition strength factor.
Advantage of the present invention and good effect are:
1, utilize computing machine to process input picture, obtain the light color artistic effect of pen of feeling of unreality, on the basis of simple pen artistic effect, given prominence to certain color information, more meet people's aesthetic conceptions.
2, be calculated as basis with DoG edge extracting and linear filtering, compared with known computer drawing feeling of unreality pen-and-ink drawing effect, reduced the drafting time, improved processing speed.
3, carry out color transmission by optical illumination model, and adopt the method that contrast strengthens to change color contrast effect, to meet the demand of different user to color, there is better dirigibility.
4, having set up the method for drafting of the light color effect of a kind of computer simulation feeling of unreality pen, is useful the supplementing of one that feeling of unreality is simulated different artistic effects, has larger potential demand in films and television programs, game movie and advertising field; For the simulation of pen-and-ink drawing artistic work provides a kind of new method for drafting, also for the computer simulation of the different artistic effects such as batik, embroidery, tie dyeing provides strong technical support.
Brief description of the drawings:
Fig. 1 is Technology Roadmap of the present invention.
Fig. 2 is the static colour image of input.
Fig. 3 is the gray level image that original image is converted to.
Fig. 4 is the edge image that gray level image adopts DoG filtering to obtain.
Fig. 5 is the blurred picture that original image linear filtering obtains.
Fig. 6, for blurred picture is transformed into after LAB color space, carries out filtering diffusion and converts back the result images that rgb color space obtains L passage.
Fig. 7 is the RGB result images obtaining after luminance channel being quantized on the basis of filtering diffusion.
Fig. 8 is the fused images obtaining after edge image that the result images that obtains and DoG filtering obtains merges quantizing.
Fig. 9 adopts optical illumination model to carry out the light color effect image of pen obtaining after color transmission on fused images basis.
Figure 10 is the light color effect image of final pen (a=0.6) obtaining after strengthening by contrast.
Figure 11 is the light color effect image of final pen (a=0.3) obtaining after strengthening by contrast.
Figure 12 is the light color effect image of final pen (a=0.8) obtaining after strengthening by contrast.
Embodiment:
The present embodiment is to carry out the light color artistic effect of pen for a secondary static two dimensional image of input to draw, and its concrete steps are as follows:
(1) DoG edge extracting
Input picture Input is converted to gray level image (as Fig. 3), ask for the gradient of gray level image, use DoG wave filter to carry out filtering along gradient direction, the output of wave filter is amplified along true edge, the response of accumulating each wave filter obtains F (s).
In formula, l (t) is the value of input picture Input on gradient straight line l, and f (t) is the wave filter that adopts Gaussian function.
By F (s) along gradient direction integration to strengthen the continuity of lines, obtain the image A (x) that lines strengthen:
In formula, G
σ(x) be that standard deviation is the one dimension Gaussian function of σ, our established standards is poor is 0.7.
Finally, by A (x) and threshold tau comparison:
Threshold tau in formula is empirical value, conventionally adopts 0.3, obtains the outline map edge (as Fig. 4) of a width black and white after binaryzation.
(2) linear filtering is fuzzy
Input picture Input is adopted to coefficient a
k, b
kcarry out linear filtering, obtain filtering ambiguous result image M (as Fig. 5):
M=a
kInput+b
k,i∈w
k
In formula, δ
kwith
for window w
kinterior average and variance, window w
ksize be empirical value, w
ksize is got 12*12 conventionally, | w| represents window w
kin number of pixels,
for input picture Input is at window w
kin the average of each pixel.
(3) abstract processing
Filtering ambiguous result M is converted to LAB color space from rgb color space, adopt the neighborhood Sur that the radius size of Blur is x to pixel location to carry out nonlinear diffusion to luminance channel L, Blur gets 4.25 conventionally, obtain the diffusion result L' of L passage, L'AB is converted back to rgb color space, obtains spreading result images (as Fig. 6):
Sur in formula gets 5*5 conventionally, and Weight is current pixel and the error amount between neighborhood territory pixel around.
Adopt the width interval that parameter is Width to carry out quantification treatment at LAB color space to L', Width gets 5 conventionally, obtains abstract result L ":
In formula, coefficient
control quantize number of color number, our value is 3, parameter Q
boundrayit is the marginal information of L' passage.
By L " be transformed into rgb color space with color channel AB from LAB color space, obtain abstract result image C (as Fig. 7).
(4) edge strengthens
The edge image edge that abstract result image C is extracted with DoG in proportion coefficient n mixes, and obtains result images G (as Fig. 8).
G=n*C+(1-n)*edge 0<n<1
In formula, scale-up factor n is an empirical value, and we get 0.7 conventionally.
(5) color transmission
Edge is strengthened to the result images G obtaining and adopts optical illumination to depart from the method for mapping, be delivered to (as Fig. 9) in result images E with reference to the colouring information of image:
E(i,j)=H+G(i,j)cos(α)+Kcos
m(α)
In formula, deviation angle when cos α represents each pixel transmission, adopts the luminance component of G image to calculate at location of pixels (i, j):
Surround lighting Parameter H in formula we conventionally to get 120, K value be that 0.7, m value is 2.
(6) contrast strengthens
Adopt image contrast to strengthen algorithm the result images E of color transmission strengthened to processing, obtain the effect image Z (as Figure 10) that color contrast strengthens:
In formula, Z (x, y) is the pixel value at (x, y) some place after contrast strengthens, E (x, y) be the pixel value of image E at (x, y) some place, E (x', y') be pixel (x, y) pixel in neighborhood, m*n is Size of Neighborhood, our value is 9*9; A is the inhibition strength factor, rule of thumb gets 0.6.
Comprise following six major parts: DoG edge extracting, fuzzy, the abstract processing of linear filtering, edge enhancing, color transmission, contrast strengthen.
Claims (1)
1. the light color artistic effect method for drafting of the pen based on feeling of unreality, is characterized in that the concrete steps of this method for drafting are as follows:
(1) DoG edge extracting
Ask for the gradient of input picture Input, use DoG wave filter to carry out filtering along gradient direction, the output of wave filter is amplified along true edge, the response of accumulating each wave filter obtains F (s):
In formula, l (t) is the value of input picture Input on gradient straight line l, and f (t) is the wave filter that adopts Gaussian function;
By F (s) along gradient direction integration to strengthen the continuity of lines, obtain the image A (x) that lines strengthen:
In formula, G
σ(x) be that standard deviation is the one dimension Gaussian function of σ;
Finally, by A (x) and threshold tau comparison, after binaryzation, obtain the edge image edge of a width black and white:
(2) linear filtering is fuzzy
Input picture Input is adopted to coefficient a
k, b
kcarry out linear filtering, obtain filtering ambiguous result M:
M=a
kInput+b
k,i∈w
k
In formula, δ
kwith
for window w
kinterior average and variance, | w| represents window w
kin number of pixels,
for input picture Input is at window w
kin average;
(3) abstract processing
Filtering ambiguous result M is converted to LAB color space from rgb color space, adopts the neighborhood Sur that the radius size of Blur is x to pixel location to carry out nonlinear diffusion to luminance channel L, obtain the diffusion result L' of L passage:
In formula, Weight is current pixel and the error amount between neighborhood territory pixel around; Adopt the width interval that parameter is Width to carry out quantification treatment to L', obtain abstract result L ":
In formula, coefficient
control quantize number of color number, parameter Q
boundrayit is the marginal information of L';
By L " be transformed into rgb color space with color channel AB from LAB color space, obtain abstract result image C;
(4) edge strengthens
The edge image edge that abstract result image C is extracted with DoG in proportion coefficient n mixes, and obtains result images G:
G=n*C+(1-n)*edge 0<n<1;
(5) color transmission
Edge is strengthened to the result images G obtaining and adopts optical illumination to depart from the method for mapping, be delivered in result images E with reference to the colouring information of image:
E(i,j)=H+G(i,j)cos(α)+Kcos
m(α)
In formula, H parameter is surround lighting, and parameter K and m control the quantity of color transfer, and cos α represents to transmit deviation angle, adopts the luminance component of G image to calculate at location of pixels (i, j):
(6) contrast strengthens
Adopt contrast enhancement algorithms to strengthen processing to the result images E of color transmission, obtain the effect image Z that color contrast strengthens:
In formula, Z (x, y) is the pixel value at (x, y) some place after contrast strengthens, E (x, y) be the pixel value of image E at (x, y) some place, E (x', y') be pixel (x, y) pixel in neighborhood, m*n is Size of Neighborhood, a is the inhibition strength factor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210105833.5A CN102663788B (en) | 2012-04-12 | 2012-04-12 | Pen light-colored artistic effect drawing method based on unreality feeling |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210105833.5A CN102663788B (en) | 2012-04-12 | 2012-04-12 | Pen light-colored artistic effect drawing method based on unreality feeling |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102663788A CN102663788A (en) | 2012-09-12 |
CN102663788B true CN102663788B (en) | 2014-09-10 |
Family
ID=46773266
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210105833.5A Expired - Fee Related CN102663788B (en) | 2012-04-12 | 2012-04-12 | Pen light-colored artistic effect drawing method based on unreality feeling |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102663788B (en) |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103679771B (en) * | 2013-11-18 | 2017-05-17 | 深圳市云宙多媒体技术有限公司 | Cartoon style non-realistic rendering method and device |
CN103729866B (en) * | 2013-12-13 | 2017-05-17 | 深圳市云宙多媒体技术有限公司 | Water color style non-photorealistic rendering method and device |
CN104063888B (en) * | 2014-06-19 | 2016-11-02 | 云南大学 | A kind of wave spectrum artistic style method for drafting based on feeling of unreality |
CN105096359A (en) * | 2015-08-05 | 2015-11-25 | 云南大学 | Drawing method of cucurbit pyrography artistic style |
CN105096358A (en) * | 2015-08-05 | 2015-11-25 | 云南大学 | Line enhanced simulation method for pyrography artistic effect |
CN106157313A (en) * | 2016-07-13 | 2016-11-23 | 云南大学 | A kind of lines drawing with coloured chalk artistic style analogy method |
CN107085859B (en) * | 2017-05-03 | 2019-07-12 | 中山大学 | A kind of color lead painting style lattice method for drafting based on image |
CN110874816B (en) * | 2019-11-19 | 2023-07-04 | 抖音视界有限公司 | Image processing method, device, mobile terminal and storage medium |
CN111815659B (en) * | 2020-06-08 | 2024-10-22 | 北京美摄网络科技有限公司 | Image processing method, device, electronic equipment and computer readable storage medium |
CN113781296B (en) * | 2021-09-22 | 2024-05-28 | 亿图软件(湖南)有限公司 | Image watercolor processing method, device, computer equipment and storage medium |
CN114345719B (en) * | 2022-01-17 | 2024-06-11 | 青岛齐林智信自控技术有限公司 | Automatic grading device for casing sleeve shrinkage tube |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6593924B1 (en) * | 1999-10-04 | 2003-07-15 | Intel Corporation | Rendering a non-photorealistic image |
GB0712690D0 (en) * | 2007-06-29 | 2007-08-08 | Imp Innovations Ltd | Imagee processing |
CN101605166A (en) * | 2009-07-08 | 2009-12-16 | 中兴通讯股份有限公司 | A kind of image processing method and portable terminal based on portable terminal |
KR20110137632A (en) * | 2010-06-17 | 2011-12-23 | 삼성전자주식회사 | Display apparatus and method for npr(non photo-realistic randering) process applying thereto |
-
2012
- 2012-04-12 CN CN201210105833.5A patent/CN102663788B/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN102663788A (en) | 2012-09-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102663788B (en) | Pen light-colored artistic effect drawing method based on unreality feeling | |
CN102663766B (en) | Non-photorealistic based art illustration effect drawing method | |
Lu et al. | Combining sketch and tone for pencil drawing production | |
CN103914863B (en) | A kind of coloured image abstract method for drafting | |
Bi et al. | A dynamic mode decomposition based edge detection method for art images | |
CN103218846B (en) | The ink and wash analogy method of Three-dimension Tree model | |
CN102147927B (en) | A kind of disposal route of terrain texture map and treating apparatus | |
CN104063888B (en) | A kind of wave spectrum artistic style method for drafting based on feeling of unreality | |
CN103914862A (en) | Pencil sketch simulating method based on edge tangent stream | |
CN105096358A (en) | Line enhanced simulation method for pyrography artistic effect | |
CN104517313B (en) | The method of ambient light masking based on screen space | |
CN103093417B (en) | Generate method and the device of watercolor style image | |
CN106157313A (en) | A kind of lines drawing with coloured chalk artistic style analogy method | |
CN105096359A (en) | Drawing method of cucurbit pyrography artistic style | |
Li et al. | real-time rendering of 3D animal models in Chinese ink painting style | |
Yoon et al. | Video painting based on a stabilized time-varying flow field | |
Li et al. | Image stylization with enhanced structure on GPU | |
Montesdeoca et al. | Edge-and substrate-based effects for watercolor stylization | |
CN107784626B (en) | Three-dimensional digital concave-convex relief generating method based on single image | |
Seo et al. | Interactive painterly rendering with artistic error correction | |
Zheng et al. | A novel pencil drawing algorithm based on non-symmetry and anti-packing pattern representation model | |
CN103745493B (en) | A kind of shadow generation method in two dimension based on image procossing | |
US20170103563A1 (en) | Method of creating an animated realistic 3d model of a person | |
Xia | Research on Rendering Technology of Ink Painting based on NPR | |
Shui et al. | Automatic Generation System of Computer Oil Painting Based on Red Spirit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20140910 Termination date: 20200412 |