CN106023276A - Pencil drawing making method and pencil drawing making device based on image processing - Google Patents
Pencil drawing making method and pencil drawing making device based on image processing Download PDFInfo
- Publication number
- CN106023276A CN106023276A CN201610316742.4A CN201610316742A CN106023276A CN 106023276 A CN106023276 A CN 106023276A CN 201610316742 A CN201610316742 A CN 201610316742A CN 106023276 A CN106023276 A CN 106023276A
- Authority
- CN
- China
- Prior art keywords
- input picture
- pencil
- pencil drawing
- tone
- texture
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/001—Texturing; Colouring; Generation of texture or colour
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Image Generation (AREA)
- Facsimile Image Signal Circuits (AREA)
Abstract
Embodiments of the invention put forward a pencil drawing making method and a pencil drawing making device based on image processing. The method comprises the following steps: processing an input image to get a contour map of the input image; performing histogram matching on the tone map of the input image and a tone fitting curve of a pencil drawing of a category to which the input image belongs to generate a matched tone map, generating a corresponding noise map based on the matched tone map, segmenting the noise map into multiple regions, forming textures in different directions on the multiple regions, and combining the textures of the multiple regions into a texture map of the input image; and getting a pencil drawing corresponding to the input image according to the contour map and the texture map. A pencil drawing generated by the method and the device put forward by the embodiments of the invention is closer to a real hand-made pencil drawing. The user experience is improved.
Description
Technical field
The present invention relates to technical field of image processing, in particular to a kind of pencil drawing of converting input images into
Pencil drawing method for drafting and device.
Background technology
The drafting of pencil drawing is one, the non-photorealistic rendering field technique direction with actual application value, can pass through
Inductive learning artist draws the actual step of pencil drawing, builds the technology utilizing computer simulation to generate pencil drawing.Artist is painting
First composition thinking is determined during pencil drawing processed, and through deliberating repeatedly so that composition is proper, equilibrium.Secondly, at the good wheel of planning
The profile of object is drawn in the case of the information such as the shape of exterior feature, ratio, structure.Again, the light and shade information of foundation object is from entirety
Carrying out to local is moulded, fills, and makes picture full mellow and full.Finally, carry out the integrated regulation such as tone, space, texture, primary and secondary,
Obtain the pencil drawing of molding.
In prior art, although propose the method that a lot of pencil drawing is drawn, but in the tone of pencil drawing and texture processing
Aspect existing defects, the grain effect causing the pencil drawing of generation is unnatural, and impact generates the whole structure of pencil drawing.
Summary of the invention
In view of this, the purpose of the embodiment of the present invention is to provide a kind of pencil drawing drafting side improving pencil drawing texture
Method, is applied to user terminal, and described pencil drawing method for drafting includes:
Input picture is carried out image procossing and obtains the profile diagram of described input picture;
The tone matched curve of the tone illustration of described input picture with the pencil drawing of described input picture place class is carried out
Histogram Matching, generates the tone illustration after coupling, the tone illustration after described coupling generate corresponding noise pattern, by described noise
Figure is divided into multiple region, forms the texture of different directions on the plurality of region respectively, by the texture in the plurality of region
Constitute the texture maps of described input picture;
The pencil drawing that described input picture is corresponding is obtained according to described profile diagram and described texture maps.
Another preferred embodiment of the present invention also provides for a kind of pencil drawing drawing apparatus, is applied to user terminal, described pencil
Picture drawing apparatus includes:
Profile diagram acquisition module, obtains the profile diagram of described input picture for input picture carries out image procossing;
Texture maps acquisition module, for the pencil drawing by the tone illustration of described input picture with described input picture place class
Tone matched curve carry out Histogram Matching, generate the tone illustration after coupling, the tone illustration after described coupling generate correspondence
Noise pattern, described noise pattern is divided into multiple region, the plurality of region is formed the texture of different directions respectively, by
The texture in the plurality of region constitutes the texture maps of described input picture;
Pencil drawing drafting module, for obtaining, according to described profile diagram and described texture maps, the lead that described input picture is corresponding
Stroke.
Compared with prior art, the pencil drawing method for drafting of embodiment of the present invention offer and device, according to input picture pair
Tone illustration corresponding described in the type answered instructs noise map generalization, noise pattern carries out subarea processing and in zones of different
Obtain the texture that direction is different.Use the texture maps that aforesaid way obtains with the pencil drawing tone of artist's drafting in actual life more
Add consistent, the manual pencil drawing that the pencil drawing of generation is more nearly in reality, improve Consumer's Experience.
For making the above-mentioned purpose of the present invention, feature and advantage to become apparent, preferred embodiment cited below particularly, and coordinate
Appended accompanying drawing, is described in detail below.
Accompanying drawing explanation
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below by embodiment required use attached
Figure is briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, and it is right to be therefore not construed as
The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, it is also possible to according to this
A little accompanying drawings obtain other relevant accompanying drawings.
Fig. 1 is the schematic flow sheet of the pencil drawing method for drafting that first embodiment of the invention provides.
Fig. 2 is the sub-step schematic diagram of step S110 in flow chart shown in Fig. 1.
Fig. 3 is the dissimilar pencil drawing that provides of first embodiment of the invention and tone Nogata corresponding to the type pencil drawing
Figure.
Fig. 4 be the generation under different control coefrficients that provides of first embodiment of the invention there is different bright-dark degree
Noise pattern.
Fig. 5 be first embodiment of the invention provide Graph Cuts algorithm segmentation image be 5 area schematic and band
The texture maps in direction.
Fig. 6 is the schematic flow sheet of the method generating drawing with colored pencil that first embodiment of the invention provides.
Fig. 7 is the structure function block diagram of a kind of pencil drawing drawing apparatus that second embodiment of the invention provides.
Fig. 8 is the structure function block diagram of the another kind of pencil drawing drawing apparatus that second embodiment of the invention provides.
Main element symbol description
Detailed description of the invention
Below in conjunction with accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Ground describes, it is clear that described embodiment is only a part of embodiment of the present invention rather than whole embodiments.Generally exist
Can arrange and design with various different configurations with the assembly of the embodiment of the present invention that illustrates described in accompanying drawing herein.Cause
This, be not intended to limit claimed invention to the detailed description of the embodiments of the invention provided in the accompanying drawings below
Scope, but it is merely representative of the selected embodiment of the present invention.Based on embodiments of the invention, those skilled in the art are not doing
The every other embodiment obtained on the premise of going out creative work, broadly falls into the scope of protection of the invention.
It should also be noted that similar label and letter represent similar terms, therefore, the most a certain Xiang Yi in following accompanying drawing
Individual accompanying drawing is defined, then need not it be defined further and explains in accompanying drawing subsequently.Meanwhile, the present invention's
In description, term " first ", " second " etc. are only used for distinguishing and describe, and it is not intended that indicate or hint relative importance.
First embodiment
Refer to the flow chart that Fig. 1, Fig. 1 are the pencil drawing method for drafting that present pre-ferred embodiments provides, described pencil
Picture method for drafting comprises the following steps.
Step S110, carries out image procossing and obtains the profile diagram of described input picture input picture.
In the present embodiment, described pencil drawing method for drafting is applied on user terminal, and described user terminal can include,
But it is not limited to, smart mobile phone, PC (personal computer, PC), panel computer, personal digital assistant
(personal digital assistant, PDA), mobile internet surfing equipment (mobile Internet device, MID) etc..
Refer to Fig. 2, in the present embodiment, described step S110 can include following sub-step.
Sub-step S111, is smoothed described input picture.
Specifically, before the simulation realizing pencil drawing is drawn, image being carried out L0 and smooth pretreatment, wherein L0 is smooth pre-
Process is a kind of filtering method being effectively smoothed image, the method can not only effectively reject unnecessary by a narrow margin
Value detailed information, and the marginal information of image can be made to obtain ratio and more completely retain.Image after L0 processes is entering
When quadrat outline strokes line drawing and drafting, can obtain becoming apparent from the profile of smoothness, and meeting of drawing is cleaner.
Sub-step S112, seeks gradient to the described input picture after smoothing processing, obtains the ladder that described input picture is corresponding
Degree figure.
Specifically, for preferably extracting edge, draw and there is pencil style profile, herein contour edge be extracted in image
Gradient map on carry out, gradient map reflects the region changed greatly in image, usually contains edge.The extraction of gradient map, adopts
Realizing to sobel operator with two, its computing formula is as follows
Wherein, GxWith GyIt is to input picture horizontal direction, the gradient of vertical direction respectively.
Sub-step S113, carries out twice convolution and obtains described profile diagram described gradient map.
First, gradient map is carried out respectively 0 degree, 22.5 degree, 45 degree, 67.5 degree, 90 degree, 112.5 degree, 135 degree, 157.5
Convolution on 8 directions of degree, forms the response diagram on 8 directions.
Ri=Li* G (i=1,2 ..., 8)
Wherein, { Li(i=1,2 ..., 8) it is the convolution operator on 8 directions, the Length x Width of convolution operator can
Regulation.{Ri(i=1,2 ..., 8) it is the response diagram on 8 directions.
Then, the Grad on convolution results maximum direction, each direction is chosen as currency, institute as the following formula
Show, thus form the peak response figure on current direction.
Wherein, Mi(P)It is p point pixel maximum response, G(P)It is the Grad of p point pixel, Ri(P)Respond for convolution
Figure, i is i-th direction.
Finally, the convolution again carried out the peak response figure being newly formed on 8 directions obtains lines figure.Carry out twice volume
Long-pending purpose is to elongate edge lines by convolution, is formed to intersect and feels effect.Negate by the result after convolution again is cumulative
To pencil drawing profile diagram S.
S=1-S '
Step S120, by the tone matching of the tone illustration of described input picture Yu the pencil drawing of described input picture place class
Curve carries out Histogram Matching, generates the tone illustration after coupling, the tone illustration after described coupling generate corresponding noise pattern, will
Described noise pattern is divided into multiple region, forms the texture of different directions on the plurality of region respectively, by the plurality of district
The texture in territory constitutes the texture maps of described input picture.
In the present embodiment, by the gray-scale map of input natural image compared with the works of the pencil drawing that artist is drawn
Find that both tones have very big difference.And the distribution of the pencil drawing tone illustration of different content is the most different.To this present embodiment
The mode taking classification to draw forms the tone illustration of pencil drawing.Specifically, the pencil drawing classification to different content is added up, point
Class draws out the tone matched curve figure of correspondence, is carried out directly by the tone matched curve of the gray-scale map of input picture Yu current class
After side's figure coupling, form the tone illustration being suitable for current class picture.The method makes pencil drawing image and the artists institute ultimately produced
The pencil drawing drawn very close on tone.In the present embodiment, the classification of described pencil drawing can include landscape class, build
Build class and figure kind.
Refer to Fig. 3, Fig. 3 and show shown landscape class, Building class, figure kind's pencil drawing picture, respectively to each class
In every width picture carry out hue histogram drafting and be averaging, then carry out the matching of histogram curve, obtain matched curve.
(1) landscape class matched curve
Matched curve can be regarded as Gauss distribution stage by stage, is uniformly distributed, the linking of three equations of exponential
Combination, respectively:
First stage equation:
Second stage equation:
Phase III equation:
The formula of curve is:
Through MATLAB matching, the parameter value obtaining meeting above-mentioned curve is as shown in table 1.
(2) Building class matched curve
Matched curve can be regarded as Gauss distribution stage by stage, is uniformly distributed, the Poisson distribution function three of transition form
The linking combination of individual equation, respectively:
First stage equation:
Second stage equation:
Phase III equation: can regard as Poisson distributionInvert about the longitudinal axis, and it is flat to prolong horizontal direction
Move 255 units to obtain.
The formula of curve is:
Through MATLAB matching, the parameter value obtaining meeting above-mentioned curve is listed in Table 1.
(3) figure kind's matched curve
Fit curve equation is identical with Building class, and simply parameter arranges difference, as shown in table 1.
Table 1 different content pencil drawing fit curve equation parameter
In the present embodiment, step S120 includes noise map generalization and noise pattern is carried out process obtains texture maps.
In the present embodiment, the tone illustration of input picture is used to instruct the described noise pattern of generation.Specifically, a width is generated
The random noise figure Rnoise identical with described input picture size dimension, by each pixel in random noise figure R_noise
β power carry out the tone illustration J after Histogram Matching is pressed close in matching, reach the purpose that tone illustration instructs noise pattern to generate.Specifically,
Following exponential equation formula is used to realize.
R_noiseβ≈J
Wherein, R_noise is gray value noise pattern between 0~1, J be carry out being formed after Histogram Matching with picture
The tone illustration of drawn pencil drawing bright-dark degree of family coupling.
Rnoiseβ≈ J is converted into logarithmic form
β(i)lnRnoise(i)≈lnJ(i)
Wherein i is current pixel.
Above formula can be optimized and obtain
Wherein,In order to keep the smooth of whole picture, not sudden change.Empirically value λ is set to 0.2.Normal linearity equation can be changed into, then utilize conjugate gradient method to standard
Linear equation solves.Obtain β " after, obtain final noise pattern, view picture noise pattern and β through above formula " relation can not
Segmentation, and β " main tried to achieve by tone illustration J, therefore reach the purpose that tone illustration instructs the formation of noise field.Described noise
The computing formula of figure can be expressed as
Noise_map=R_noiseβ”
Producing of noise pattern is most important to the texture of the pencil drawing ultimately formed, a noise meeting original input image
Formation the texture of pencil drawing can be made the most many, more press close to pencil drawing texture drawn by artist.
In order to control the overall depth degree of noise pattern more flexibly, the present embodiment is also provided with control coefrficient α, then makes an uproar
Sound spectrogram can reach formula by table below and calculate:
Noise_map=R_noiseαβ”
Refer to the noise pattern that the depth that Fig. 4, Fig. 4 show that different control coefrficient α generates is different, in figure, α value is from a left side
To the right side from top to bottom be respectively 0.3,0.8,1.0,2.0, the span of α can be (0 ,+∞].Although in principle along with control
The increase of factor alpha, tone also becomes increasingly deeper, but the value of α also needs suitably, does not also have what meaning if value is too big.
In the present embodiment by the noise pattern process obtained is obtained described texture maps.
In the present embodiment, use Graph Cuts algorithm to segment the image into suitable region and (be broken generally into 5 districts
Territory), form different grain direction for each region.Noise pattern utilize LIC line integral convolution algorithm formed herein respectively
Single grain direction figure, the angle of texture lines choose 0 degree, 30 degree ,-30 degree, 60 degree, 90 degree.
Refer to Fig. 5, be 5 area schematic and last band direction stricture of vagina for utilizing Graph Cuts algorithm segmentation image
Reason figure result.As can be seen from the figure corresponding region is assigned with the texture of different directions, and grain effect is more natural.
Step S130, obtains, according to described profile diagram and described texture maps, the pencil drawing that described input picture is corresponding.
Specifically, it is thus achieved that the mode of pencil drawing can be directly to be overlapped with described texture maps by described profile diagram, when
So, it is thus achieved that the mode of pencil drawing can also is that and is overlapped after being weighted with described texture maps by described profile diagram.
Refer to Fig. 6, in this specific embodiment, described pencil drawing method for drafting can also utilize the pencil drawing obtained to obtain
To drawing with colored pencil, the step forming described drawing with colored pencil includes:
Step S140, is transformed into input picture in yuv space.
Step S150, substitutes described input picture Y in yuv space by pencil drawing corresponding for described input picture and divides
Amount.
Step S160, the input picture after replacing is transformed into rgb space and obtains drawing with colored pencil.
Second embodiment
Refer to Fig. 7, Fig. 7 is the high-level schematic functional block diagram that the embodiment of the present invention provides pencil drawing drawing apparatus 200.Described
Pencil drawing drawing apparatus 200 includes profile diagram acquisition module 210, texture maps acquisition module 220 and pencil drawing drafting module 230.
Described profile diagram acquisition module 210, obtains the wheel of described input picture for input picture carries out image procossing
Wide figure.
Described texture maps acquisition module 220, for by the tone illustration of described input picture and described input picture place class
The tone matched curve of pencil drawing carry out Histogram Matching, generate the tone illustration after coupling, by the tone illustration after described coupling
Generate corresponding noise pattern, described noise pattern is divided into multiple region, the plurality of region is formed different directions respectively
Texture, be made up of the texture maps of described input picture the texture in the plurality of region.
In the present embodiment, described texture maps acquisition module 220 may include that
Generate submodule 221, for generating the random noise figure that a width is identical with described input picture size dimension.
Calculating sub module 222, for the pencil of the tone illustration according to described input picture with described input picture place class
The tone matched curve drawn carries out Histogram Matching, obtains pencil drawing bright-dark degree corresponding with the classification of described input picture coupling
Tone illustration, the tone illustration after described coupling be calculated the secondary number formulary that described random noise figure is corresponding.
Obtaining submodule 223, obtaining described noise pattern for random noise figure being carried out the power operation of described number formulary.
Segmentation submodule 224, is used for using image segmentation algorithm that described noise pattern is divided into multiple region.
Texture obtains submodule 225, uses line integral convolution algorithm to calculate with to each region in the plurality of region
Obtain the texture in the single direction in each region.
Texture maps generates submodule 226, for being made up of the texture maps of described input picture the texture in the plurality of region.
Described pencil drawing drafting module 230, for obtaining described input picture according to described profile diagram and described texture maps
Corresponding pencil drawing.
In the present embodiment, described pencil drawing drawing apparatus can be also used for drawing colored pencil drawing.Drawing colour
Pencil drawing time, refer to Fig. 8, described pencil drawing drawing apparatus 200 can also include:
Color space conversion module 240, for being transformed into input picture in yuv space.
Pencil drawing substitutes luminance channel module 250, for pencil drawing corresponding for described input picture is substituted described input
Image Y-component in yuv space.
Drawing with colored pencil generation module 260, the input picture after replacing is transformed into rgb space and obtains colored pencil
Draw.
In sum, the pencil drawing method for drafting of embodiment of the present invention offer and device, according to the class that input picture is corresponding
Tone illustration corresponding described in type instructs noise map generalization, noise pattern is carried out subarea processing and in zones of different the side of obtaining
To different textures.The pencil drawing tone more one that the texture maps using aforesaid way to obtain is drawn with artist in actual life
Cause, the manual pencil drawing that the pencil drawing of generation is more nearly in reality, improve Consumer's Experience.
In several embodiments provided herein, it should be understood that disclosed equipment and method, it is also possible to pass through
Other mode realizes.Apparatus embodiments described above is only schematically, such as, and the flow chart in accompanying drawing and block diagram
Show the equipment of multiple embodiments according to the present invention, the architectural framework in the cards of method and computer program product,
Function and operation.In this, each square frame in flow chart or block diagram can represent a module, program segment or the one of code
Part, a part for described module, program segment or code comprises holding of one or more logic function for realizing regulation
Row instruction.It should also be noted that at some as in the implementation replaced, the function marked in square frame can also be to be different from
The order marked in accompanying drawing occurs.Such as, two continuous print square frames can essentially perform substantially in parallel, and they are the most also
Can perform in the opposite order, this is depending on involved function.It is also noted that every in block diagram and/or flow chart
The combination of the square frame in individual square frame and block diagram and/or flow chart, can be with function or the special base of action performing regulation
System in hardware realizes, or can realize with the combination of specialized hardware with computer instruction.
It addition, each functional module in each embodiment of the present invention can integrate one independent portion of formation
Point, it is also possible to it is modules individualism, it is also possible to two or more modules are integrated to form an independent part.
If described function is using the form realization of software function module and as independent production marketing or use, permissible
It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is the most in other words
The part contributing prior art or the part of this technical scheme can embody with the form of software product, this meter
Calculation machine software product is stored in a storage medium, including some instructions with so that a computer equipment (can be individual
People's computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.
And aforesaid storage medium includes: USB flash disk, portable hard drive, read only memory (ROM, Read-Only Memory), random access memory are deposited
The various media that can store program code such as reservoir (RAM, Random Access Memory), magnetic disc or CD.
It should be noted that in this article, the relational terms of such as first and second or the like is used merely to a reality
Body or operation separate with another entity or operating space, and deposit between not necessarily requiring or imply these entities or operating
Relation or order in any this reality.And, term " includes ", " comprising " or its any other variant are intended to
Comprising of nonexcludability, so that include that the process of a series of key element, method, article or equipment not only include that those are wanted
Element, but also include other key elements being not expressly set out, or also include for this process, method, article or equipment
Intrinsic key element.In the case of there is no more restriction, statement " including ... " key element limited, it is not excluded that
Including process, method, article or the equipment of described key element there is also other identical element.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for the skill of this area
For art personnel, the present invention can have various modifications and variations.All within the spirit and principles in the present invention, that is made any repaiies
Change, equivalent, improvement etc., should be included within the scope of the present invention.It should also be noted that similar label and letter exist
Figure below represents similar terms, therefore, the most a certain Xiang Yi accompanying drawing is defined, is then not required in accompanying drawing subsequently
It is defined further and explains.
The above, the only detailed description of the invention of the present invention, but protection scope of the present invention is not limited thereto, and any
Those familiar with the art, in the technical scope that the invention discloses, can readily occur in change or replace, should contain
Cover within protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with scope of the claims.
Claims (10)
1. a pencil drawing method for drafting based on image procossing, it is characterised in that described method includes:
Input picture is carried out image procossing and obtains the profile diagram of described input picture;
The tone matched curve of the tone illustration of described input picture Yu the pencil drawing of described input picture place class is carried out Nogata
Figure coupling, generates the tone illustration after coupling, the tone illustration after described coupling generate corresponding noise pattern, divided by described noise pattern
It is slit into multiple region, the plurality of region is formed the texture of different directions respectively, be made up of the texture in the plurality of region
The texture maps of described input picture;
The pencil drawing that described input picture is corresponding is obtained according to described profile diagram and described texture maps.
2. pencil drawing method for drafting as claimed in claim 1, it is characterised in that the described tone illustration by described input picture with
The tone matched curve of described input picture place class carries out Histogram Matching, generates the tone illustration after coupling, by described coupling
After tone illustration generate the step of corresponding noise pattern and include:
Generate the random noise figure identical with described input picture size dimension;
Tone illustration according to described input picture is carried out directly with the tone matched curve of the pencil drawing of described input picture place class
Side's figure coupling, obtains the tone illustration of the pencil drawing light and shade intensity of variation coupling corresponding with described input picture classification, by described
Tone illustration after joining is calculated the secondary number formulary that the described each pixel of random noise figure is corresponding;
Pixel each to random noise figure carries out the power operation of described number formulary and obtains described noise pattern.
3. pencil drawing method for drafting as claimed in claim 2, it is characterised in that described pixel each to random noise figure is carried out
The power operation of described number formulary obtains the step of described noise pattern and also includes:
The control coefrficient using non-negative carries out overall control to described number formulary, and obtaining gray value can make an uproar with described in integrated regulation
Sound spectrogram.
4. pencil drawing method for drafting as claimed in claim 1, it is characterised in that form difference on the plurality of region respectively
The texture in direction, is made up of the step of the texture maps of described input picture the texture in the plurality of region, including:
Use image segmentation algorithm, based on input picture, described noise pattern is divided into multiple region;
Line integral convolution algorithm is used to be calculated the one direction texture in each region in each region in the plurality of region;
The texture maps of described input picture it is made up of the texture in the plurality of region.
5. pencil drawing method for drafting as claimed in claim 1, it is characterised in that: the class of described input picture includes personage, builds
Build and landscape;
Landscape class correspondence tone matched curve isWherein, t1=0.012, t2=0.42, t3=0.52, μd
=60, σd=3, ua=62, ub=249, σb=2;
Building class correspondence tone matched curve isWherein, t1=0.02, t2=0.42, t3=0.51, μd=20, σd=21, ua
=26, ub=235, σb=15;
Figure kind's correspondence tone matched curve isWherein, t1=0.01, t2=0.42, t3=0.55, μd=39, σd=21,
ua=38, ub=245, σb=8.
6. pencil drawing method for drafting as claimed in claim 1, it is characterised in that described method also includes:
Input picture is transformed in yuv space;
Pencil drawing corresponding for described input picture is substituted described input picture Y-component in yuv space;
Input picture after replacing is transformed into rgb space and obtains drawing with colored pencil.
7. a pencil drawing drawing apparatus based on image procossing, it is characterised in that described device includes:
Profile diagram acquisition module, obtains the profile diagram of described input picture for input picture carries out image procossing;
Texture maps acquisition module, for the color by the tone illustration of described input picture with the pencil drawing of described input picture place class
Adjust matched curve to carry out Histogram Matching, generate the tone illustration after coupling, the tone illustration after described coupling generate corresponding making an uproar
Sound spectrogram, is divided into multiple region by described noise pattern, forms the texture of different directions on the plurality of region respectively, by described
The texture in multiple regions constitutes the texture maps of described input picture;
Pencil drawing drafting module, for obtaining, according to described profile diagram and described texture maps, the pencil that described input picture is corresponding
Draw.
8. pencil drawing drawing apparatus as claimed in claim 7, it is characterised in that described texture maps acquisition module includes:
Generate submodule, for generating the random noise figure that a width is identical with described input picture size dimension;
Calculating sub module, for the tone of the tone illustration according to described input picture with the pencil drawing of described input picture place class
Matched curve carries out Histogram Matching, obtains the pencil drawing light and shade intensity of variation coupling corresponding with the classification of described input picture
Tone illustration, is calculated, by the tone illustration after described coupling, the secondary number formulary that the described each pixel of random noise figure is corresponding;
Obtaining submodule, the power operation carrying out described number formulary for pixel each to random noise figure obtains described noise pattern.
9. pencil drawing drawing apparatus as claimed in claim 8, it is characterised in that described texture maps acquisition module also includes:
Segmentation submodule, is used for using image segmentation algorithm, based on input picture, described noise pattern is divided into multiple region;
Texture obtains submodule, uses line integral convolution algorithm to be calculated each with to each region in the plurality of region
Unidirectional texture in region;
Texture maps generates submodule, for being made up of the texture maps of described input picture the texture in the plurality of region.
10. pencil drawing drawing apparatus as claimed in claim 7, it is characterised in that described device also includes:
Color space conversion module, for being transformed into input picture in yuv space;
Pencil drawing substitutes luminance channel module, exists for pencil drawing corresponding for described input picture is substituted described input picture
Y-component in yuv space;
Drawing with colored pencil generation module, the input picture after replacing is transformed into rgb space and obtains drawing with colored pencil.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610316742.4A CN106023276B (en) | 2016-05-13 | 2016-05-13 | Pencil drawing method for drafting and device based on image procossing |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610316742.4A CN106023276B (en) | 2016-05-13 | 2016-05-13 | Pencil drawing method for drafting and device based on image procossing |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106023276A true CN106023276A (en) | 2016-10-12 |
CN106023276B CN106023276B (en) | 2019-06-21 |
Family
ID=57100717
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610316742.4A Active CN106023276B (en) | 2016-05-13 | 2016-05-13 | Pencil drawing method for drafting and device based on image procossing |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106023276B (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106652009A (en) * | 2016-11-18 | 2017-05-10 | 中山大学 | Color sketch simulation method |
CN106846390A (en) * | 2017-02-27 | 2017-06-13 | 迈吉客科技(北京)有限公司 | A kind of method and device of image procossing |
CN107085859A (en) * | 2017-05-03 | 2017-08-22 | 中山大学 | A kind of color lead painting style lattice method for drafting based on image |
CN109523607A (en) * | 2018-11-14 | 2019-03-26 | 浙江绿浪信息技术有限公司 | Sketch renders real-time implementation system and method |
CN110610504A (en) * | 2019-08-22 | 2019-12-24 | 北京工商大学 | Pencil drawing generation method and device based on skeleton and tone |
CN110675463A (en) * | 2019-08-23 | 2020-01-10 | 河南工业大学 | Local color pencil drawing generation method and device |
CN110807824A (en) * | 2019-11-08 | 2020-02-18 | 广东明创软件科技有限公司 | Noise optimization method and device, terminal equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103489204A (en) * | 2013-05-15 | 2014-01-01 | 许昌学院 | Method for automatically drawing two-dimensional color pencil drawings |
KR20150131568A (en) * | 2014-05-15 | 2015-11-25 | 상명대학교서울산학협력단 | Pencil Rendering Framework based on Noise Generalization |
CN105374007A (en) * | 2015-12-02 | 2016-03-02 | 华侨大学 | Generation method and generation device of pencil drawing fusing skeleton strokes and textural features |
-
2016
- 2016-05-13 CN CN201610316742.4A patent/CN106023276B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103489204A (en) * | 2013-05-15 | 2014-01-01 | 许昌学院 | Method for automatically drawing two-dimensional color pencil drawings |
KR20150131568A (en) * | 2014-05-15 | 2015-11-25 | 상명대학교서울산학협력단 | Pencil Rendering Framework based on Noise Generalization |
CN105374007A (en) * | 2015-12-02 | 2016-03-02 | 华侨大学 | Generation method and generation device of pencil drawing fusing skeleton strokes and textural features |
Non-Patent Citations (3)
Title |
---|
CEWU LU等: "Combining Sketch and Tone for Pencil Drawing Production", 《PROCEEDINGS OF THE SYMPOSIUM ON NON-PHOTOREALISTIC ANIMATION AND RENDERING》 * |
徐美婷,杨士颖: "结合轮廓和纹理特征的铅笔画自动生成系统", 《电子测量技术》 * |
钱文华: "基于纹理的非真实感绘制技术研究", 《中国博士学位论文全文数据库 信息科技辑》 * |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106652009A (en) * | 2016-11-18 | 2017-05-10 | 中山大学 | Color sketch simulation method |
CN106652009B (en) * | 2016-11-18 | 2019-09-10 | 中山大学 | A kind of colour sketch analogy method |
WO2018153264A1 (en) * | 2017-02-27 | 2018-08-30 | 迈吉客科技(北京)有限公司 | Image processing method and apparatus |
CN106846390A (en) * | 2017-02-27 | 2017-06-13 | 迈吉客科技(北京)有限公司 | A kind of method and device of image procossing |
CN107085859A (en) * | 2017-05-03 | 2017-08-22 | 中山大学 | A kind of color lead painting style lattice method for drafting based on image |
CN107085859B (en) * | 2017-05-03 | 2019-07-12 | 中山大学 | A kind of color lead painting style lattice method for drafting based on image |
CN109523607A (en) * | 2018-11-14 | 2019-03-26 | 浙江绿浪信息技术有限公司 | Sketch renders real-time implementation system and method |
CN109523607B (en) * | 2018-11-14 | 2023-04-28 | 浙江绿浪信息技术有限公司 | Sketch rendering real-time implementation system and sketch rendering real-time implementation method |
CN110610504A (en) * | 2019-08-22 | 2019-12-24 | 北京工商大学 | Pencil drawing generation method and device based on skeleton and tone |
CN110675463A (en) * | 2019-08-23 | 2020-01-10 | 河南工业大学 | Local color pencil drawing generation method and device |
CN110675463B (en) * | 2019-08-23 | 2023-05-23 | 河南工业大学 | Method and device for generating partial color pencil drawing |
CN110807824A (en) * | 2019-11-08 | 2020-02-18 | 广东明创软件科技有限公司 | Noise optimization method and device, terminal equipment and storage medium |
CN110807824B (en) * | 2019-11-08 | 2023-06-23 | 广东明创软件科技有限公司 | Noise optimization method, device, terminal equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106023276B (en) | 2019-06-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106023276A (en) | Pencil drawing making method and pencil drawing making device based on image processing | |
CN1475969B (en) | Method and system for intensify human image pattern | |
Kazi et al. | Vignette: interactive texture design and manipulation with freeform gestures for pen-and-ink illustration | |
US9449253B2 (en) | Learning painting styles for painterly rendering | |
CN111161137B (en) | Multi-style Chinese painting flower generation method based on neural network | |
CN102449664A (en) | Gradual-change animation generating method and apparatus | |
CN103927727B (en) | Method for converting scalar image into vector image | |
CN1998023A (en) | Method for rendering a region of a composite glyph | |
Ren et al. | Two-stage sketch colorization with color parsing | |
CN104063888B (en) | A kind of wave spectrum artistic style method for drafting based on feeling of unreality | |
CN105488472A (en) | Digital make-up method based on sample template | |
CN104392433B (en) | Image-based digital oil painting canvas automatic generation method | |
Gerl et al. | Interactive example-based hatching | |
CN109064525A (en) | A kind of picture format conversion method, device, equipment and storage medium | |
CN101354743A (en) | Image base for human face image synthesis | |
Li et al. | ColorSketch: A drawing assistant for generating color sketches from photos | |
Tong et al. | Sketch generation with drawing process guided by vector flow and grayscale | |
CN105701173B (en) | A kind of multi-modality images search method based on design patent | |
He | Application of local color simulation method of landscape painting based on deep learning generative adversarial networks | |
CN113887737B (en) | Automatic sample set generation method based on machine learning | |
CN110232724A (en) | A kind of Chinese character style image vector representation method | |
CN113763498A (en) | Portrait simple-stroke region self-adaptive color matching method and system for industrial manufacturing | |
Zhao et al. | A pencil drawing algorithm based on wavelet transform multiscale | |
Zhou et al. | Pencil Drawing Generation Algorithm Based on GMED | |
Liu | An Improved Oil Painting Formation Using Advanced Image Processing |
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 |