CN104915975A - Image processing method and system for simulating crayon colored drawing - Google Patents

Image processing method and system for simulating crayon colored drawing Download PDF

Info

Publication number
CN104915975A
CN104915975A CN201510298646.7A CN201510298646A CN104915975A CN 104915975 A CN104915975 A CN 104915975A CN 201510298646 A CN201510298646 A CN 201510298646A CN 104915975 A CN104915975 A CN 104915975A
Authority
CN
China
Prior art keywords
histogram
color
color space
image
gray
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.)
Granted
Application number
CN201510298646.7A
Other languages
Chinese (zh)
Other versions
CN104915975B (en
Inventor
张伟
傅松林
李志阳
胡瑞鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xiamen Meitu Technology Co Ltd
Original Assignee
Xiamen Meitu Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Xiamen Meitu Technology Co Ltd filed Critical Xiamen Meitu Technology Co Ltd
Priority to CN201510298646.7A priority Critical patent/CN104915975B/en
Publication of CN104915975A publication Critical patent/CN104915975A/en
Application granted granted Critical
Publication of CN104915975B publication Critical patent/CN104915975B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses an image processing method and system for simulating a crayon colored drawing. The method includes the followings steps that: the grey-scale image of an image to be processed is obtained through ingeniously utilizing the characteristics of a YIQ color space; histogram statistics is performed on the grey-scale image, and histogram matching is performed according to the result of the histogram statistics, so that a histogram mapping table can be obtained; mapping processing is performed on the grey-scale image according to the histogram mapping table, so that a ground color image can be obtained; edge detection is performed on the grey-scale image, so that an edge image can be obtained; radial fuzzy processing at eight directions is performed on the edge image, so that obtained radial fuzzy images at the eight directions are subjected to superposition processing, so that a line image can be obtained; multiplication processing is performed on the ground color image and the line image, so that a sketch image can be obtained; and finally, a crayon colored drawing rendering can be obtained through the conversion of the YIQ color space. With the image processing method and system for simulating the crayon colored drawing of the invention adopted, the verisimilitude of the crayon colored drawing can be improved, and the original hues of the image to be processed in a color space conversion process and an image processing process can be maintained, and effects can be better.

Description

A kind of image processing method and system simulating wax crayon colored drawing
Technical field
The present invention relates to technical field of image processing, particularly a kind of simulate wax crayon colored drawing image processing method and the system of application the method.
Background technology
Crayon drawing is widely used in a kind of art form in youngsters and children drawing, wax liquid and pigment merge, solidify and make by wax crayon, wax crayon does not have perviousness, rely on adhesion to be fixed on picture, wax crayon colored drawing image is generally suitable for showing as color on a large scale and smears, colored particles is large, color is thinner, wax crayon colored drawing and pencil sketch similar, all belong to hard-tipped pen class drawing, come the body of represented object, structure and space with lines, tone with soft the class such as watercolor, gouache basic styling gimmick of painting unlike, hard-tipped pen class drawing.In prior art, although there is a lot of sketch effect filter to select to be supplied to user, their great majority carry out processing for the tone of color, do not follow the artistic characteristic of hard-tipped pen class painting creation, not by the lines effect simulation of crayon drawing out, effect is poor.
Summary of the invention
The present invention, for solving the problem, provides a kind of image processing method and the system of simulating wax crayon colored drawing, processes respectively and organic synthesis, thus can obtain the wax crayon colored drawing effect having more the sense of reality from lines and tone two aspect.
For achieving the above object, the technical solution used in the present invention is:
Simulate an image processing method for wax crayon colored drawing, it is characterized in that, comprise the following steps:
10. pending image is converted to YIQ color space from rgb color space, and obtains gray-scale map according to the Y channel value of the YIQ color space after conversion;
20. pairs of gray-scale maps carry out statistics with histogram, and carry out Histogram Matching according to statistics with histogram result, obtain Histogram Mapping table;
30. carry out mapping process according to described Histogram Mapping table to described gray-scale map, obtain background color figure;
Gray-scale map described in 40. pairs carries out rim detection, obtains outline map;
Outline map described in 50. pairs carries out the radial blur process in eight directions, and the radial blur figure in eight directions obtained is carried out overlap-add procedure, obtains string diagram;
Background color figure described in 60. couples is multiplied with described string diagram and processes, and obtains sketch map;
70. using the new Y channel value of the color value of described sketch map as described YIQ color space, and according to new Y channel value, image is converted to rgb color space from YIQ color space, obtains wax crayon colored drawing design sketch.
Preferably, in described step 10, the computing formula of the Y channel value of the YIQ color space after conversion is:
Y=0.299*R+0.587*G+0.114*B;
Wherein, R, G, B are respectively the color value of rgb color space corresponding pixel points, and Y is the color value of Y passage in the YIQ color space obtained after calculating.
Preferably, in described step 20, statistics with histogram is carried out to gray-scale map, and carry out Histogram Matching according to statistics with histogram result, obtain Histogram Mapping table, further comprising the steps:
Gray-scale map described in 21. pairs carries out statistics with histogram, obtains actual histogram;
22. according to the characteristic of described gray-scale map, obtains the standard histogram preset;
23. according to above-mentioned standard histogram, carries out Histogram Matching to actual histogram, actual histogram is near the mark histogram, and obtains Histogram Mapping table accordingly.
Preferably, also comprise step 24, correction process is carried out to described Histogram Mapping table, limit the mapping gradient of closing on color range of described Histogram Mapping table.
Preferably, in described step 30, according to described Histogram Mapping table, mapping process is carried out to described gray-scale map and obtain background color figure, mainly by the color value of each pixel in described gray-scale map, replace to the new color value corresponding to this color value in described Histogram Mapping table, obtain background color figure.
Preferably, in described step 50, described outline map is carried out to the radial blur process in eight directions, mainly described outline map is carried out radial blur process towards 0 °, 22.5 °, 45 °, 67.5 °, 90 °, 112.5 °, 135 °, 157.5 ° eight directions, obtain eight radial blur figure.
Preferably, in described step 50, the radial blur figure in obtain eight directions is carried out overlap-add procedure and obtains string diagram, further comprising the steps:
Corresponding to radial blur figure eight radial figure in eight directions described in 51. calculating, computing method are as follows:
Lblur(i=max,p)=Gray(p);
Lblur(i≠max,p)=0;
Wherein, the color value of Gray (p) the p point that is described gray-scale map; The color value of the p point that Lblur (i, p) is the radial blur figure in described i-th direction; Namely, the color value of the pixel of the maximum color value of the radial blur figure in i-th direction is made to equal the color value of the corresponding pixel points of described gray-scale map, and the color value of the rest of pixels point of the radial blur figure in this i-th direction equals 0, thus the radial direction figure that the radial blur figure obtaining i-th direction is corresponding;
Described eight radial figure are carried out a radial blur process along original direction by 52. again, obtain eight unidirectional string diagrams;
Described eight unidirectional string diagrams are carried out overlap-add procedure by 53., obtain final string diagram.
Preferably, in described step 60, obtain sketch map to the described background color figure process that to be multiplied with described string diagram, its computing method are:
Result=color*linecolor/255;
Wherein, color is the color value of corresponding pixel points on background color figure, and linecolor is the color value of corresponding pixel points on string diagram, and Result is the color value of corresponding pixel points in sketch map.
Preferably, in described step 70, according to new Y channel value, image is converted to rgb color space from YIQ color space, its conversion formula is as follows:
Red=Y’+0.956*I+0.621*Q
Green=Y’–0.272*I–1.703*Q
Blue=Y’-1.106*I
Wherein, the new Y channel value of the YIQ color space that Y ' is image, the color value of namely described sketch map; I, Q are initial I channel value and the Q channel value of the YIQ color space of image; Red, Green, Blue are the color value of the red channel of the wax crayon colored drawing design sketch of the RBG color space finally calculated, green channel, blue channel
In addition, present invention also offers a kind of image processing system of simulating wax crayon colored drawing, it is characterized in that, it comprises:
Color space conversion module, pending image is converted to YIQ color space from rgb color space and obtains gray-scale map according to the Y channel value of YIQ color space after conversion by it, and according to the new Y channel value calculated, image is converted to rgb color space from YIQ color space and obtains wax crayon colored drawing design sketch;
Histogram Matching module, it carries out statistics with histogram to gray-scale map, and carries out Histogram Matching according to statistics with histogram result, obtains Histogram Mapping table;
Map processing module, it carries out mapping process according to described Histogram Mapping table to described gray-scale map, obtains background color figure;
Edge detection module, it carries out rim detection to described gray-scale map, obtains outline map;
Linear module, it carries out the radial blur process in eight directions to described outline map, and the radial blur figure in eight directions obtained is carried out overlap-add procedure, obtains string diagram;
Fusion Module, it obtains sketch map to the described background color figure process that to be multiplied with described string diagram, and the color value of this sketch map is namely as the new Y channel value of the YIQ color space of image.
The invention has the beneficial effects as follows:
A kind of image processing method and system simulating wax crayon colored drawing of the present invention, it obtains the gray-scale map of pending image by the characteristic of the ingenious YIQ of utilization color space, and statistics with histogram is carried out to this gray-scale map, Histogram Matching is carried out according to statistics with histogram result, obtain Histogram Mapping table, then according to described Histogram Mapping table, mapping process is carried out to described gray-scale map, obtain background color figure, again rim detection is carried out to described gray-scale map in addition and obtain outline map, and described outline map is carried out to the radial blur process in eight directions, the radial blur figure in obtain eight directions is carried out overlap-add procedure and obtains string diagram, finally sketch map is obtained to the described background color figure process that to be multiplied with described string diagram, wax crayon colored drawing design sketch is converted to finally by YIQ color space, thus improve the authenticity of wax crayon colored drawing effect, and the original tone of pending image can be kept in color space transfer process and in image processing process, better effects if.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, forms a part of the present invention, and schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 is a kind of general flow chart of simulating the image processing method of wax crayon colored drawing of the present invention;
Fig. 2 is a kind of structural representation of simulating the image processing system of wax crayon colored drawing of the present invention;
Fig. 3 is the pending image of the present invention one specific embodiment;
Fig. 4 is the wax crayon colored drawing design sketch that Fig. 3 is corresponding.
Embodiment
In order to make technical matters to be solved by this invention, technical scheme and beneficial effect clearly, understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
As shown in Figure 1, a kind of image processing method of simulating wax crayon colored drawing of the present invention, it comprises the following steps:
10. pending image is converted to YIQ color space from rgb color space, and obtains gray-scale map according to the Y channel value of the YIQ color space after conversion;
20. pairs of gray-scale maps carry out statistics with histogram, and carry out Histogram Matching according to statistics with histogram result, obtain Histogram Mapping table;
30. carry out mapping process according to described Histogram Mapping table to described gray-scale map, obtain background color figure;
Gray-scale map described in 40. pairs carries out rim detection, obtains outline map;
Outline map described in 50. pairs carries out the radial blur process in eight directions, and the radial blur figure in eight directions obtained is carried out overlap-add procedure, obtains string diagram;
Background color figure described in 60. couples is multiplied with described string diagram and processes, and obtains sketch map;
70. using the new Y channel value of the color value of described sketch map as described YIQ color space, and according to new Y channel value, image is converted to rgb color space from YIQ color space, obtains wax crayon colored drawing design sketch.
It should be noted that, each step of the present invention non-required are according to described number order strict implement, and such as described step 40,50 can perform before step 20,30, also can perform side by side with step 20,30; Or also first can perform step 20 and step 40, rear execution step 30 and step 50.
In described step 10, the computing formula of the Y channel value of the YIQ color space after conversion is:
Y=0.299*R+0.587*G+0.114*B;
Wherein, R, G, B are respectively the color value of rgb color space corresponding pixel points, and Y is the color value of Y passage in the YIQ color space obtained after calculating.
In addition, the computing formula of I, Q channel value of the YIQ color space after conversion is:
I=0.596*R-0.275*G-0.321*B;
Q=0.212*R-0.523*G+0.311*B;
The color value of I passage and the color value of Q passage in the YIQ color space that I, Q obtain after being respectively calculating; Wherein, the scope from-134 to 134 of the scope of the scope of Y from 0 to 255, I from-152 to 152, Q.In YIQ space, Y is exactly the gray-scale value (Gray value) of image, I and Q then refers to tone (Chrominance), i.e. the attribute of Description Image color and saturation degree.
The present invention is in image processing process, only correct the numerical value of Y passage, the numerical value of I passage and Q passage remains unchanged in processing procedure He in color space transforming process, namely only changes the gray-scale value of image, the tone of image can't be revised, so colour cast is very little.Compared with other color spaces, YIQ color space has can by the luminance component separation and Extraction advantage out in image, and be the relation of linear transformation between YIQ color space and RGB color space, calculated amount is little, Clustering features is also relatively good, the occasion that intensity of illumination constantly changes can be adapted to, therefore, it is possible to effectively for Color Image Processing, can be used for the identification of the fruit object under the complex background collected under field conditions (factors).
In described step 20, statistics with histogram is carried out to gray-scale map, and carry out Histogram Matching according to statistics with histogram result, obtain Histogram Mapping table, further comprising the steps:
Gray-scale map described in 21. pairs carries out statistics with histogram, obtains actual histogram;
22. according to the characteristic of described gray-scale map, obtains the standard histogram preset; This standard histogram three between shadow region, between interval, the specular of middle tone occupies 0 ~ 64,64 ~ 192,192 ~ 255 3 interval ratios that ratio adds up primarily of the gray-scale map of pending image and determines;
23. according to above-mentioned standard histogram, carries out Histogram Matching to actual histogram, actual histogram is near the mark histogram, and obtains Histogram Mapping table accordingly;
Histogram Mapping table described in 24. pairs carries out correction process, limits the mapping gradient of closing on color range of described Histogram Mapping table, obtains the Histogram Mapping table corrected, avoids because gradient is excessive, causes the background color layer generated to have obvious contrast color lump.
In described step 30, according to described Histogram Mapping table, mapping process is carried out to described gray-scale map and obtain background color figure, mainly by the color value of each pixel in described gray-scale map, replace to the new color value corresponding to this color value in described Histogram Mapping table, obtain background color figure.
In described step 40, rim detection is carried out to described gray-scale map and obtains outline map, the present embodiment does not limit the concrete edge detection algorithm of employing, such as Canny algorithm, Sobel algorithm, Roberts algorithm, SUSAN algorithm etc., complexity and the rim detection effect of algorithms of different are different, can select corresponding algorithm according to real image accuracy of detection.
In described step 50, described outline map is carried out to the radial blur process in eight directions, mainly described outline map is carried out radial blur process towards 0 °, 22.5 °, 45 °, 67.5 °, 90 °, 112.5 °, 135 °, 157.5 ° eight directions, obtain eight radial blur figure; In described step 50, the radial blur figure in obtain eight directions is carried out overlap-add procedure and obtains string diagram, further comprising the steps:
Corresponding to radial blur figure eight radial figure in eight directions described in 51. calculating, computing method are as follows:
Lblur(i=max,p)=Gray(p);
Lblur(i≠max,p)=0;
Wherein, the color value of Gray (p) the p point that is described gray-scale map; The color value of the p point that Lblur (i, p) is the radial blur figure in described i-th direction; Namely, the color value of the pixel of the maximum color value of the radial blur figure in i-th direction is made to equal the color value of the corresponding pixel points of described gray-scale map, and the color value of the rest of pixels point of the radial blur figure in this i-th direction equals 0, thus the radial direction figure that the radial blur figure obtaining i-th direction is corresponding;
Described eight radial figure are carried out a radial blur process along original direction by 52. again, obtain eight unidirectional string diagrams;
Described eight unidirectional string diagrams are carried out overlap-add procedure by 53., obtain final string diagram.
In described step 60, obtain sketch map to the described background color figure process that to be multiplied with described string diagram, its computing method are:
Result=color*linecolor/255;
Wherein, color is the color value of corresponding pixel points on background color figure, and linecolor is the color value of corresponding pixel points on string diagram, and Result is the color value of corresponding pixel points in sketch map.
In described step 70, according to new Y channel value, image is converted to rgb color space from YIQ color space, its conversion formula is as follows:
Red=Y’+0.956*I+0.621*Q;
Green=Y’–0.272*I–1.703*Q;
Blue=Y’-1.106*I;
Wherein, the new Y channel value of the YIQ color space that Y ' is image, the color value of namely described sketch map; I, Q are initial I channel value and the Q channel value of the YIQ color space of image; Red, Green, Blue are the color value of the red channel of the wax crayon colored drawing design sketch of the RBG color space finally calculated, green channel, blue channel.
As shown in Figure 2, present invention also offers a kind of image processing system of simulating wax crayon colored drawing, it comprises:
Color space conversion module A, pending image is converted to YIQ color space from rgb color space and obtains gray-scale map according to the Y channel value of YIQ color space after conversion by it, and according to the new Y channel value calculated, image is converted to rgb color space from YIQ color space and obtains wax crayon colored drawing design sketch;
Histogram Matching module B, it carries out statistics with histogram to gray-scale map, and carries out Histogram Matching according to statistics with histogram result, obtains Histogram Mapping table;
Map processing module C, it carries out mapping process according to described Histogram Mapping table to described gray-scale map, obtains background color figure;
Edge detection module D, it carries out rim detection to described gray-scale map, obtains outline map;
Linear module E, it carries out the radial blur process in eight directions to described outline map, and the radial blur figure in eight directions obtained is carried out overlap-add procedure, obtains string diagram;
Fusion Module F, it obtains sketch map to the described background color figure process that to be multiplied with described string diagram, and the color value of this sketch map is namely as the new Y channel value of the YIQ color space of image.
The present invention obtains the background color figure of wax crayon colored drawing by optimizing histogram, and the string diagram of wax crayon colored drawing is obtained by rim detection, then background color figure is carried out being multiplied with string diagram and obtain the sketch map of pending image, finally by the wax crayon colored drawing design sketch (as shown in Figure 3 and Figure 4) being converted to pending image of YIQ color space, only change for brightness, ensure that the original color of pending image, improve the authenticity of wax crayon colored drawing, better effects if is more natural.
It should be noted that, each embodiment in this instructions all adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually see.For system class embodiment, due to itself and embodiment of the method basic simlarity, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
And, in this article, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.In addition, one of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be ROM (read-only memory), disk or CD etc.
Above-mentioned explanation illustrate and describes the preferred embodiments of the present invention, be to be understood that the present invention is not limited to the form disclosed by this paper, should not regard the eliminating to other embodiments as, and can be used for other combinations various, amendment and environment, and can in invention contemplated scope herein, changed by the technology of above-mentioned instruction or association area or knowledge.And the change that those skilled in the art carry out and change do not depart from the spirit and scope of the present invention, then all should in the protection domain of claims of the present invention.

Claims (10)

1. simulate an image processing method for wax crayon colored drawing, it is characterized in that, comprise the following steps:
10. pending image is converted to YIQ color space from rgb color space, and obtains gray-scale map according to the Y channel value of the YIQ color space after conversion;
20. pairs of gray-scale maps carry out statistics with histogram, and carry out Histogram Matching according to statistics with histogram result, obtain Histogram Mapping table;
30. carry out mapping process according to described Histogram Mapping table to described gray-scale map, obtain background color figure;
Gray-scale map described in 40. pairs carries out rim detection, obtains outline map;
Outline map described in 50. pairs carries out the radial blur process in eight directions, and the radial blur figure in eight directions obtained is carried out overlap-add procedure, obtains string diagram;
Background color figure described in 60. couples is multiplied with described string diagram and processes, and obtains sketch map;
70. using the new Y channel value of the color value of described sketch map as described YIQ color space, and according to new Y channel value, image is converted to rgb color space from YIQ color space, obtains wax crayon colored drawing design sketch.
2. a kind of image processing method of simulating wax crayon colored drawing according to claim 1, is characterized in that: in described step 10, and the computing formula of the Y channel value of the YIQ color space after conversion is:
Y=0.299*R+0.587*G+0.114*B;
Wherein, R, G, B are respectively the color value of rgb color space corresponding pixel points, and Y is the color value of Y passage in the YIQ color space obtained after calculating.
3. a kind of image processing method of simulating wax crayon colored drawing according to claim 1, it is characterized in that: in described step 20, statistics with histogram is carried out to gray-scale map, and carry out Histogram Matching according to statistics with histogram result, obtain Histogram Mapping table, further comprising the steps:
Gray-scale map described in 21. pairs carries out statistics with histogram, obtains actual histogram;
22. according to the characteristic of described gray-scale map, obtains the standard histogram preset;
23. according to above-mentioned standard histogram, carries out Histogram Matching to actual histogram, actual histogram is near the mark histogram, and obtains Histogram Mapping table accordingly.
4. a kind of image processing method of simulating wax crayon colored drawing according to claim 3, is characterized in that: also comprise step 24, carries out correction process to described Histogram Mapping table, limits the mapping gradient of closing on color range of described Histogram Mapping table.
5. a kind of image processing method of simulating wax crayon colored drawing according to claim 1 or 2 or 3 or 4, it is characterized in that: in described step 30, according to described Histogram Mapping table, mapping process is carried out to described gray-scale map and obtain background color figure, mainly by the color value of each pixel in described gray-scale map, replace to the new color value corresponding to this color value in described Histogram Mapping table, obtain background color figure.
6. a kind of image processing method of simulating wax crayon colored drawing according to claim 1 or 2 or 3 or 4, it is characterized in that: in described step 50, described outline map is carried out to the radial blur process in eight directions, mainly described outline map is carried out radial blur process towards 0 °, 22.5 °, 45 °, 67.5 °, 90 °, 112.5 °, 135 °, 157.5 ° eight directions, obtain eight radial blur figure.
7. a kind of image processing method of simulating wax crayon colored drawing according to claim 1 or 2 or 3 or 4, is characterized in that: in described step 50, the radial blur figure in obtain eight directions is carried out overlap-add procedure and obtains string diagram, further comprising the steps:
Corresponding to radial blur figure eight radial figure in eight directions described in 51. calculating, computing method are as follows:
Lblur(i=max,p)=Gray(p);
Lblur(i≠max,p)=0;
Wherein, the color value of Gray (p) the p point that is described gray-scale map; The color value of the p point that Lblur (i, p) is the radial blur figure in described i-th direction; Namely, the color value of the pixel of the maximum color value of the radial blur figure in i-th direction is made to equal the color value of the corresponding pixel points of described gray-scale map, and the color value of the rest of pixels point of the radial blur figure in this i-th direction equals 0, thus the radial direction figure that the radial blur figure obtaining i-th direction is corresponding;
Described eight radial figure are carried out a radial blur process along original direction by 52. again, obtain eight unidirectional string diagrams;
Described eight unidirectional string diagrams are carried out overlap-add procedure by 53., obtain final string diagram.
8. a kind of image processing method of simulating wax crayon colored drawing according to claim 1 or 2 or 3 or 4, is characterized in that: in described step 60, and obtain sketch map to the described background color figure process that to be multiplied with described string diagram, its computing method are:
Result=color*linecolor/255;
Wherein, color is the color value of corresponding pixel points on background color figure, and linecolor is the color value of corresponding pixel points on string diagram, and Result is the color value of corresponding pixel points in sketch map.
9. a kind of image processing method of simulating wax crayon colored drawing according to claim 1 or 2 or 3 or 4, it is characterized in that: in described step 70, according to new Y channel value, image is converted to rgb color space from YIQ color space, its conversion formula is as follows:
Red=Y’+0.956*I+0.621*Q
Green=Y’–0.272*I–1.703*Q
Blue=Y’-1.106*I
Wherein, the new Y channel value of the YIQ color space that Y ' is image, the color value of namely described sketch map; I, Q are initial I channel value and the Q channel value of the YIQ color space of image; Red, Green, Blue are the color value of the red channel of the wax crayon colored drawing design sketch of the RBG color space finally calculated, green channel, blue channel.
10. simulate an image processing system for wax crayon colored drawing, it is characterized in that, it comprises:
Color space conversion module, pending image is converted to YIQ color space from rgb color space and obtains gray-scale map according to the Y channel value of YIQ color space after conversion by it, and according to the new Y channel value calculated, image is converted to rgb color space from YIQ color space and obtains wax crayon colored drawing design sketch;
Histogram Matching module, it carries out statistics with histogram to gray-scale map, and carries out Histogram Matching according to statistics with histogram result, obtains Histogram Mapping table;
Map processing module, it carries out mapping process according to described Histogram Mapping table to described gray-scale map, obtains background color figure;
Edge detection module, it carries out rim detection to described gray-scale map, obtains outline map;
Linear module, it carries out the radial blur process in eight directions to described outline map, and the radial blur figure in eight directions obtained is carried out overlap-add procedure, obtains string diagram;
Fusion Module, it obtains sketch map to the described background color figure process that to be multiplied with described string diagram, and the color value of this sketch map is namely as the new Y channel value of the YIQ color space of image.
CN201510298646.7A 2015-06-03 2015-06-03 A kind of image processing method and system of simulation wax crayon colored drawing Active CN104915975B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510298646.7A CN104915975B (en) 2015-06-03 2015-06-03 A kind of image processing method and system of simulation wax crayon colored drawing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510298646.7A CN104915975B (en) 2015-06-03 2015-06-03 A kind of image processing method and system of simulation wax crayon colored drawing

Publications (2)

Publication Number Publication Date
CN104915975A true CN104915975A (en) 2015-09-16
CN104915975B CN104915975B (en) 2018-08-10

Family

ID=54085011

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510298646.7A Active CN104915975B (en) 2015-06-03 2015-06-03 A kind of image processing method and system of simulation wax crayon colored drawing

Country Status (1)

Country Link
CN (1) CN104915975B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106651991A (en) * 2016-09-12 2017-05-10 广州市久邦数码科技有限公司 Intelligent graph plastering realization method and system for doing the same
CN108682040A (en) * 2018-05-21 2018-10-19 努比亚技术有限公司 A kind of sketch image generation method, terminal and computer readable storage medium
CN108846872A (en) * 2018-07-09 2018-11-20 苏州浪潮智能软件有限公司 A kind of image processing method and device
CN109697707A (en) * 2018-12-29 2019-04-30 深圳美图创新科技有限公司 Freehandhand-drawing watercolor style method for drafting and device
CN110070499A (en) * 2019-03-14 2019-07-30 北京字节跳动网络技术有限公司 Image processing method, device and computer readable storage medium
CN110555799A (en) * 2019-09-26 2019-12-10 北京百度网讯科技有限公司 Method and apparatus for processing video
CN113012185A (en) * 2021-03-26 2021-06-22 影石创新科技股份有限公司 Image processing method, image processing device, computer equipment and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110070495B (en) * 2019-02-20 2021-09-17 北京字节跳动网络技术有限公司 Image processing method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103440674A (en) * 2013-06-13 2013-12-11 厦门美图网科技有限公司 Method for rapidly generating crayon special effect of digital image
CN103793930A (en) * 2014-01-27 2014-05-14 汉王科技股份有限公司 Pencil drawing image generation method and device
CN104077792A (en) * 2014-07-04 2014-10-01 厦门美图网科技有限公司 Image processing method with cartoon effect

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103440674A (en) * 2013-06-13 2013-12-11 厦门美图网科技有限公司 Method for rapidly generating crayon special effect of digital image
CN103793930A (en) * 2014-01-27 2014-05-14 汉王科技股份有限公司 Pencil drawing image generation method and device
CN104077792A (en) * 2014-07-04 2014-10-01 厦门美图网科技有限公司 Image processing method with cartoon effect

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
DAVE RUDOLF ET AL.: "Simulating Wax Crayons", 《PROCEEDINGS OF THE 11TH PACIFIC CONFERENCE ON COMPUTER GRAPHICS AND APPLICATIONS (PG’03)》 *
孙丹丹等: "一种铅笔画仿真新方法", 《计算机工程与应用》 *
张立东等: "基于改进直方图映射和均值移位目标跟踪算法", 《计算机工程》 *
高辉等: "二维彩色图像的蜡笔画风格实现", 《计算机工程与应用》 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106651991A (en) * 2016-09-12 2017-05-10 广州市久邦数码科技有限公司 Intelligent graph plastering realization method and system for doing the same
CN106651991B (en) * 2016-09-12 2023-10-31 广州久邦世纪科技有限公司 Intelligent mapping realization method and system thereof
CN108682040A (en) * 2018-05-21 2018-10-19 努比亚技术有限公司 A kind of sketch image generation method, terminal and computer readable storage medium
CN108846872A (en) * 2018-07-09 2018-11-20 苏州浪潮智能软件有限公司 A kind of image processing method and device
CN109697707A (en) * 2018-12-29 2019-04-30 深圳美图创新科技有限公司 Freehandhand-drawing watercolor style method for drafting and device
CN109697707B (en) * 2018-12-29 2020-09-18 深圳美图创新科技有限公司 Hand-drawn watercolor style drawing method and device
CN110070499A (en) * 2019-03-14 2019-07-30 北京字节跳动网络技术有限公司 Image processing method, device and computer readable storage medium
CN110555799A (en) * 2019-09-26 2019-12-10 北京百度网讯科技有限公司 Method and apparatus for processing video
CN113012185A (en) * 2021-03-26 2021-06-22 影石创新科技股份有限公司 Image processing method, image processing device, computer equipment and storage medium
WO2022199583A1 (en) * 2021-03-26 2022-09-29 影石创新科技股份有限公司 Image processing method and apparatus, computer device, and storage medium
CN113012185B (en) * 2021-03-26 2023-08-29 影石创新科技股份有限公司 Image processing method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN104915975B (en) 2018-08-10

Similar Documents

Publication Publication Date Title
CN104915975A (en) Image processing method and system for simulating crayon colored drawing
CN103021002B (en) Colored sketch image generating method
CN104915976A (en) Image processing method and system for simulating pencil sketch
Thangadurai et al. Computer visionimage enhancement for plant leaves disease detection
CN105261046B (en) A kind of tone moving method of scene adaptive
CN103914699A (en) Automatic lip gloss image enhancement method based on color space
CN103854261B (en) The bearing calibration of colour cast image
CN103093203A (en) Human body re-recognition method and human body re-recognition system
CN108510947A (en) Double screen light-dimming method and display device
CN105118076A (en) Image colorization method based on over-segmentation and local and global consistency
CN102332170A (en) Method and system for generating computer sketch images
Wang et al. Variational single nighttime image haze removal with a gray haze-line prior
CN105761292B (en) One kind is based on color transfer and modified image rendering methods
CN103617596A (en) Image color style transformation method based on flow pattern transition
US10922852B2 (en) Oil painting stroke simulation using neural network
CN105096358A (en) Line enhanced simulation method for pyrography artistic effect
CN103295205B (en) A kind of low-light-level image quick enhancement method based on Retinex and device
CN106971380A (en) A kind of contrast enhancing and application of the visual saliency optimization method in golf course figure
CN110428439A (en) A kind of shadow detection method based on shadow region color saturation property
CN115082328A (en) Method and apparatus for image correction
CN113436284A (en) Image processing method and device, computer equipment and storage medium
US5828819A (en) Apparatus and method for automatically creating a picture in a style having painting-like coloring using an image processing
CN104091366A (en) Three-dimensional intelligent digitalization generation method and system based on two-dimensional shadow information
CN103839245A (en) Retinex night color image enhancement method based on statistical regularities
CN108711160A (en) A kind of Target Segmentation method based on HSI enhancement models

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant