CN109300099A - A kind of image processing method, mobile terminal and computer readable storage medium - Google Patents
A kind of image processing method, mobile terminal and computer readable storage medium Download PDFInfo
- Publication number
- CN109300099A CN109300099A CN201810996014.1A CN201810996014A CN109300099A CN 109300099 A CN109300099 A CN 109300099A CN 201810996014 A CN201810996014 A CN 201810996014A CN 109300099 A CN109300099 A CN 109300099A
- Authority
- CN
- China
- Prior art keywords
- image
- sketch
- gray level
- obtains
- normalized
- 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.)
- Pending
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 32
- 238000009877 rendering Methods 0.000 claims abstract description 90
- 238000012545 processing Methods 0.000 claims abstract description 87
- 238000003708 edge detection Methods 0.000 claims abstract description 37
- 238000004364 calculation method Methods 0.000 claims abstract description 33
- 238000000034 method Methods 0.000 claims description 47
- 238000002156 mixing Methods 0.000 claims description 21
- 238000001914 filtration Methods 0.000 claims description 19
- 238000001514 detection method Methods 0.000 claims description 5
- 230000008901 benefit Effects 0.000 claims description 4
- 230000000694 effects Effects 0.000 abstract description 14
- 238000010586 diagram Methods 0.000 description 16
- 230000006870 function Effects 0.000 description 15
- 230000006854 communication Effects 0.000 description 12
- 238000004891 communication Methods 0.000 description 11
- 235000013399 edible fruits Nutrition 0.000 description 3
- 238000010295 mobile communication Methods 0.000 description 3
- 238000010606 normalization Methods 0.000 description 3
- 230000005611 electricity Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000005764 inhibitory process Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000007774 longterm Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000001228 spectrum Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 230000008030 elimination Effects 0.000 description 1
- 238000003379 elimination reaction Methods 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000000149 penetrating effect Effects 0.000 description 1
- 238000009527 percussion Methods 0.000 description 1
- 230000011664 signaling Effects 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/50—Image enhancement or restoration using two or more images, e.g. averaging or subtraction
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T11/00—2D [Two Dimensional] image generation
- G06T11/40—Filling a planar surface by adding surface attributes, e.g. colour or texture
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20212—Image combination
- G06T2207/20221—Image fusion; Image merging
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Image Processing (AREA)
Abstract
The invention discloses a kind of image processing methods, which comprises carries out gray processing processing to original image, obtains gray level image;Image Edge-Detection and default calculation processing are carried out to the gray level image, obtain sketch stroke structural images;The gray level image and true sketch image are subjected to Histogram Matching, and carry out texture rendering, obtains texture rendering image;The sketch stroke structural images and texture rendering image are merged, sketch result images are obtained.In addition, invention additionally discloses a kind of mobile terminal and computer readable storage mediums.In this way, the sketch effect image border profile that image processing method provided by the invention generates is continuous, there is lines sense, be more nearly true sketch image.
Description
Technical field
The present invention relates to technical field of image processing more particularly to a kind of image processing methods, mobile terminal and computer
Readable storage medium storing program for executing.
Background technique
The information that image is presented is visual and clear, and people more and more select to convey information by image, correspondingly, about
The processing technique of image also has been to be concerned by more and more people.In the image processing arts, the stylization processing of image, art effect
The addition of fruit is all favored very much.Sketch image is manifestation mode relatively conventional in Graphic Arts, reality in sketch be with
Pencil is medium, and the art form of personage or scenery is showed with lines, can be divided into linear and draw and fine realistic sketch
Two kinds.Artificial creation for sketch image, must be requested that creator has certain fine arts grounding in basic skills and designed capacity, while personal
Artistic level can also largely effect on the expression effect of final sketch image, therefore simulate and generate sketch image there is important answer
With and recreational value.
In existing sketch image generation method, usually the gradient map of original image is negated, is obtained to the end
Sketch image, and handled for single pixel point, finally obtained sketch image edge contour is discontinuous, lacks lines
Sense.
As it can be seen that the sketch image edge contour that sketch image generation method in the prior art generates is discontinuous, lack line
Item sense.
Summary of the invention
In view of this, the present invention proposes a kind of image processing method, mobile terminal and computer readable storage medium, with solution
Certainly above-mentioned technical problem.
Firstly, to achieve the above object, the present invention proposes a kind of image processing method, which comprises
Gray processing processing is carried out to original image, obtains gray level image;
Image Edge-Detection and default calculation processing are carried out to the gray level image, obtain sketch stroke structural images;
The gray level image and true sketch image are subjected to Histogram Matching, and carry out texture rendering, obtains texture wash with watercolours
Contaminate image;
The sketch stroke structural images and texture rendering image are merged, sketch result images are obtained.
Optionally, described that Image Edge-Detection and default calculation processing are carried out to the gray level image, obtain drawing pencil
Draw structural images, comprising:
Image Edge-Detection is carried out to the gray level image, obtains gradient image;
Default calculation processing is carried out to the gradient image, obtains sketch stroke structural images.
Optionally, described that Image Edge-Detection is carried out to the gray level image, obtain gradient image, comprising:
Image Edge-Detection is carried out to the gray level image using sobel gradient detective operators, obtains gradient image.
Optionally, described that default calculation processing is carried out to the gradient image, obtain sketch stroke structural images, comprising:
The convolution that multiple directions are carried out to the gradient image, generates the multiple directions map of the original image;
The multiple direction map is filtered and is summed respectively using multiple directions filter, obtains filtered figure
As S';
The filtering image to section [0,1], after obtaining normalized is normalized in filtered image S'
S";
Sketch stroke structural images S=(1-S ") is calculated according to the filtering image S " after normalizedα, wherein α ∈
[1,3].
Optionally, the convolution that multiple directions are carried out to the gradient image, generates multiple sides of the original image
To map, comprising:
The convolution that 8 directions are carried out to the gradient image, generates 8 direction maps of the original image.
Optionally, described that the gray level image and true sketch image are subjected to Histogram Matching, and texture rendering is carried out,
Obtain texture rendering image, comprising:
The gray level image and true sketch image are subjected to Histogram Matching, the grayscale image after obtaining Histogram Matching
Picture;
By after the Histogram Matching gray level image and sketch background image carry out texture rendering, obtain texture rendering figure
Picture.
Optionally, the gray level image and sketch background image by after the Histogram Matching carries out texture rendering, obtains
Image is rendered to texture, comprising:
By the gray level image I after the Histogram Matching1" and sketch background image I3Section [0,1] is normalized to respectively,
Gray level image I after obtaining normalized1" ' and normalized after sketch background image I3';
According to the gray level image I after the normalized1" ' and normalized after sketch background image I3' calculate
Obtain texture rendering image T=(I3')N, wherein N=(1-I1”')β, β ∈ [1,3].
Optionally, described to merge the sketch stroke structural images and texture rendering image, obtain sketch result
Image, comprising:
The sketch stroke structural images and texture rendering image are merged, blending image is obtained;
The blending image is normalized to section [0,1], and to the blending image normalized to after section [0,1]
It carries out numerical value and zooms to section [0,255], obtain sketch result images.
Further, to achieve the above object, the present invention also provides a kind of mobile terminal, the mobile terminal includes storage
Device, at least one processor and at least one journey that is stored on the memory and can be executed at least one described processor
Sequence realizes the step in the above method when at least one described program is executed by least one described processor.
Further, to achieve the above object, the present invention also provides a kind of computer readable storage medium, the computers
Readable storage medium storing program for executing is stored at least one executable program of computer, at least one described program is executed by the computer
When so that the computer is executed the step in the above method.
Compared to the prior art, image processing method proposed by the invention carries out gray processing processing to original image, obtains
To gray level image;Image Edge-Detection and default calculation processing are carried out to the gray level image, obtain sketch stroke structure chart
Picture;The gray level image and true sketch image are subjected to Histogram Matching, and carry out texture rendering, obtains texture rendering figure
Picture;The sketch stroke structural images and texture rendering image are merged, sketch result images are obtained.In this way, of the invention
The sketch effect image border profile that the image processing method of offer generates is continuous, has lines sense, is more nearly true element
Trace designs picture.
Detailed description of the invention
Fig. 1 is the hardware structural diagram for realizing a kind of mobile terminal of each embodiment of the present invention;
Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention;
Fig. 3 is a kind of flow diagram of image processing method provided in an embodiment of the present invention;
Fig. 4 is a kind of true sketch image schematic diagram provided in an embodiment of the present invention;
Fig. 5 is a kind of sketch background image schematic diagram provided in an embodiment of the present invention;
Fig. 6 is a kind of original image schematic diagram provided in an embodiment of the present invention;
Fig. 7 is the sketch effect image of the original image shown in fig. 6 obtained using existing image procossing mode;
Fig. 8 is that the sketch effect for the original image shown in fig. 6 that image processing method obtains is provided using the embodiment of the present invention
Fruit image;
Fig. 9 is another original image schematic diagram provided in an embodiment of the present invention;
Figure 10 is the sketch effect image of the original image shown in Fig. 9 obtained using existing image procossing mode;
Figure 11 is that the sketch effect for the original image shown in Fig. 9 that image processing method obtains is provided using the embodiment of the present invention
Fruit image;
Figure 12 is the flow diagram of another image processing method provided in an embodiment of the present invention;
Figure 13 is the flow diagram of another image processing method provided in an embodiment of the present invention;
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, it is only using the suffix for indicating such as " module ", " component " or " unit " of element
Be conducive to explanation of the invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix
Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as mobile phone, plate
Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable
Media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer etc. move
The fixed terminals such as dynamic terminal, and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special
Except element for moving purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware structural diagram of its mobile terminal of each embodiment to realize the present invention, the shifting
Dynamic terminal 100 may include: RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit
103, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit
108, the components such as memory 109, processor 110 and power supply 111, the number of the processor 110 are at least one.Ability
Field technique personnel are appreciated that mobile terminal structure shown in Fig. 1 does not constitute the restriction to mobile terminal, and mobile terminal can
To include perhaps combining certain components or different component layouts than illustrating more or fewer components.
It is specifically introduced below with reference to all parts of the Fig. 1 to mobile terminal:
Radio frequency unit 101 can be used for receiving and sending messages or communication process in, signal sends and receivees, specifically, by base station
Downlink information receive after, to processor 110 handle;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, penetrating
Frequency unit 101 can also be communicated with network and other equipment by wireless communication.Any communication can be used in above-mentioned wireless communication
Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division
Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102
Sub- mail, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, and it is not belonging to must be configured into for mobile terminal, it completely can be according to need
It to omit within the scope of not changing the essence of the invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100
When under the isotypes such as formula, speech recognition mode, broadcast reception mode, by radio frequency unit 101 or WiFi module 102 it is received or
The audio data stored in memory 109 is converted into audio signal and exports to be sound.Moreover, audio output unit 103
Audio output relevant to the specific function that mobile terminal 100 executes can also be provided (for example, call signal receives sound, disappears
Breath receives sound etc.).Audio output unit 103 may include loudspeaker, buzzer etc..
A/V input unit 104 is for receiving audio or video signal.A/V input unit 104 may include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the image data of the static images or video obtained in image capture mode by image capture apparatus (such as camera) carries out
Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited
Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (audio data), and can be audio data by such acoustic processing.Audio that treated (voice) data can
To be converted to the format output that can be sent to mobile communication base station via radio frequency unit 101 in the case where telephone calling model.
Microphone 1042 can be implemented various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition)
The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear
Display panel 1061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, it can detect that size and the direction of gravity when static, can be used to identify the application of mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, infrared sensor, details are not described herein.
Display unit 106 is for showing information input by user or being supplied to the information of user.Display unit 106 can wrap
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode can be used
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 1061.
User input unit 107 can be used for receiving the number or character information of input, and generate the use with mobile terminal
Family setting and the related key signals input of function control.Specifically, user input unit 107 may include touch panel 1071 with
And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect the touch operation of user on it or nearby
(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 1071 or in touch panel 1071
Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
It is converted into contact coordinate, then gives processor 110, and order that processor 110 is sent can be received and executed.In addition, can
To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap
It includes but is not limited in physical keyboard, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc.
It is one or more, specifically herein without limitation.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel
1061 be the function that outputs and inputs of realizing mobile terminal as two independent components, but in certain embodiments, it can
The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically
It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example,
External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing
Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and by least one element that the input received is transferred in mobile terminal 100 or can use
In transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storing software program and various data.Memory 109 can mainly include storing program area
The storage data area and, wherein storing program area can (such as the sound of application program needed for storage program area, at least one function
Sound playing function, image player function etc.) etc.;Storage data area can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 109 may include high-speed random access memory, it can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part by running or execute the software program and/or module that are stored in memory 109, and calls and is stored in storage
Data in device 109 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place
Managing device 110 may include at least one processing unit;Preferably, processor 110 can integrate application processor and modulation /demodulation processing
Device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is mainly located
Reason wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111
Can be logically contiguous by power-supply management system and processor 110, to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
Embodiment to facilitate the understanding of the present invention, the communications network system that mobile terminal of the invention is based below into
Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system architecture diagram provided in an embodiment of the present invention, the communication network system
System is the LTE system of universal mobile communications technology, which includes UE (User Equipment, the use of successively communication connection
Family equipment) (the land Evolved UMTS Terrestrial Radio Access Network, evolved UMTS 201, E-UTRAN
Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation
204。
Specifically, UE201 can be above-mentioned terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 may include MME (Mobility Management Entity, mobility management entity) 2031, HSS
(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way,
Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and
Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and
The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers
Such as the function of home location register (not shown) etc, and preserves some related service features, data rates etc. and use
The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201
Address distribution and other functions, PCRF2036 are strategy and the charging control strategic decision-making of business data flow and IP bearing resource
Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 may include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia
System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art should know the present invention is not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And the following new network system etc., herein without limitation.
Based on above-mentioned 100 hardware configuration of mobile terminal and communications network system, each embodiment of the method for the present invention is proposed.
It is a kind of step flow chart of image processing method provided in an embodiment of the present invention refering to Fig. 3, Fig. 3, such as Fig. 3 institute
Show, which comprises
Step 301 carries out gray processing processing to original image, obtains gray level image.
In the step, the method is to original image I1Gray processing processing is carried out, gray level image I is obtained1'.It is described to image
It carries out gray processing processing and belongs to prior art scope, details are not described herein again.
Step 302 carries out Image Edge-Detection and default calculation processing to the gray level image, obtains sketch stroke knot
Composition picture.
In the step, the method carries out Image Edge-Detection and default calculation processing to the gray level image, obtains
Sketch stroke structural images.Specifically, the method can be first to gray level image I1' Image Edge-Detection is carried out, it obtains original
Then the gradient image G of image carries out default calculation processing to the gradient image G, obtains sketch stroke structural images.
The method can be used predetermined gradient detective operators and carry out Image Edge-Detection, and sobel ladder can be used for example
It spends detective operators and carries out Image Edge-Detection, it should be noted that the predetermined gradient detective operators are also possible to other operators,
Above-mentioned sobel gradient detective operators are only for example, being not limited thereto.
The method carries out default calculation processing to the gradient image, obtains sketch stroke structural images.Specifically, institute
The method of stating can carry out the convolution of multiple directions to the gradient image, generate the multiple directions map of the original image, benefit
With multiple directions filter summation is filtered to the multiple direction map respectively, obtains filtered image S';It will filtering
The filtering image S " to section [0,1], after obtaining normalized is normalized in image S' afterwards;At normalization
Filtering image S " after reason calculates sketch stroke structural images S=(1-S ")α, wherein α ∈ [1,3].
In the embodiment of the present invention, the method carries out the convolution in 8 directions to the gradient image, generates the original graph
8 direction maps of picture.Specifically, the method carries out the convolution in 8 directions to gradient image G, for each of image
Pixel, the convolution in 8 directions accordingly maximum direction be the pixel direction, the directional diagram of the original image of generation
SpectrumThat is:
Wherein, Ci, i=1 ..., 8 meet condition
Then utilization orientation filterThe direction map Ci of the original image is filtered and is summed, is filtered
Image afterwardsFiltered image S' is normalized to section [0,1], is obtained at normalization
Filtering image S " after reason calculates sketch stroke structural images S=(1-S ") α according to the filtering image S " after normalized,
Wherein, α is the value for controlling stroke shade in sketch image, and α value is bigger, and stroke color is deeper in sketch image, α ∈
[1,3], such as α can take 1.5 or 2.0.
It is anisotropic filter,Size can be 3,5,7 or other size,Size it is bigger, precision is got over
Height, correspondingly, computation complexity are also higher.For example, whenSize be 3 when,
In some embodiment of the invention, the gradient image can also be normalized to section in the method
[0,1] then carries out default calculation processing to the gradient image after normalized again, obtains sketch stroke structural images.
The gray level image and true sketch image are carried out Histogram Matching, and carry out texture rendering by step 303, are obtained
Image is rendered to texture.
In the step, the gray level image and true sketch image are carried out Histogram Matching by the method, and carry out line
Reason rendering obtains texture rendering image.The gray level image and true sketch image are carried out Histogram Matching by the method, and
The mode for carrying out texture rendering can specifically include: the gray level image and true sketch image being carried out Histogram Matching, obtained
Gray level image after to Histogram Matching, by the gray level image and sketch background image progress texture wash with watercolours after the Histogram Matching
Dye obtains texture rendering image.The method can be by gray level image I1' and true sketch image I2(as shown in Figure 4 is true
Sketch image) carry out Histogram Matching, the gray level image I after obtaining Histogram Matching1", the grayscale image after the Histogram Matching
As I1" and the true sketch image I2With similar histogram distribution.Then by the gray level image after the Histogram Matching
I1" and sketch background image I3(sketch background image as shown in Figure 5) carries out texture rendering, generates texture and renders image T.Tool
Body, the gray level image I by after the Histogram Matching1" and sketch background image I3Carry out texture rendering may include by
Gray level image I after the Histogram Matching1" and sketch background image I3It is normalized respectively to section [0,1], is obtained
Gray level image I after to normalized1" ' and normalized after sketch background image I3', and according to the normalized
Gray level image I afterwards1" ' and normalized after sketch background image I3' texture rendering image T=(I is calculated3')N,
Wherein, N=(1-I1”')β, β ∈ [1,3].β is the value for controlling the shade of sketch background, and β value is bigger, sketch background
Color is deeper, such as β can be with value 1.5 or 2.0.
Step 304 merges the sketch stroke structural images and texture rendering image, obtains sketch result figure
Picture.
In the step, the method merges the sketch stroke structural images and texture rendering image, obtains element
Retouch result images.The method can wrap the mode that the sketch stroke structural images and texture rendering image merge
It includes and merges the sketch stroke structural images and texture rendering image, obtain blending image, then scheme the fusion
As normalizing to section [0,1], and numerical value is carried out to the blending image normalized to after section [0,1] and zooms to section
[0,255] obtains sketch result images.It is described that by sketch stroke structural images and texture rendering image, be fused to will be described
Sketch stroke structural images and texture rendering image carry out multiplication operation, for example, it is assumed that stroke sketch structural images are S,
It is T that texture, which renders image, then blending image F=S*T.Then blending image F is normalized to section [0,1], and
The blending image normalized to after section [0,1] is subjected to numerical value scaling processing to section [0,255].
Fig. 6 is a kind of original image schematic diagram provided in an embodiment of the present invention, and Fig. 7 is by the prior art to shown in Fig. 6
The sketch image that is handled of original image, Fig. 8 is the image processing method that provides through the embodiment of the present invention to Fig. 6
Shown in the sketch image that is handled of original image.Fig. 9 is the signal of another original image provided in an embodiment of the present invention
Figure, Figure 10 are the sketch image handled by the prior art original image shown in Fig. 9, and Figure 11 is to pass through this hair
The sketch image that the image processing method that bright embodiment provides handles original image shown in Figure 12.
In the present embodiment, described image processing method carries out gray processing processing to original image, obtains gray level image;To institute
It states gray level image and carries out Image Edge-Detection and default calculation processing, obtain sketch stroke structural images;By the grayscale image
As carrying out Histogram Matching with true sketch image, and texture rendering is carried out, obtains texture rendering image;By the sketch stroke
Structural images and texture rendering image are merged, and sketch result images are obtained.In this way, image processing method provided by the invention
The sketch effect image border profile of generation is continuous, has lines sense, is more nearly true sketch image.
Optionally, described to merge the sketch stroke structural images and texture rendering image, obtain sketch result
Image, comprising:
The sketch stroke structural images and texture rendering image are merged, blending image is obtained;
The blending image is normalized to section [0,1], and to the blending image normalized to after section [0,1]
It carries out numerical value and zooms to section [0,255], obtain sketch result images.
It is described that sketch stroke structural images and texture rendering image are fused to the drawing pencil in the embodiment
It draws structural images and texture rendering image carries out multiplication operation, for example, it is assumed that stroke sketch structural images are S, texture wash with watercolours
Dye image is T, then blending image F=S*T.
It is the flow diagram of another image processing method provided in an embodiment of the present invention referring to Figure 12, Figure 12, such as schemes
Shown in 12, which comprises
Step 1201 carries out gray processing processing to original image, obtains gray level image.
In the step, the method is to original image I1Gray processing processing is carried out, gray level image I is obtained1'.It is described to image
It carries out gray processing processing and belongs to prior art scope, details are not described herein again.
Step 1202 carries out Image Edge-Detection to the gray level image, obtains gradient image.
In the step, the method carries out Image Edge-Detection to the gray level image, obtains gradient image, the method
Predetermined gradient operator can be used and carry out Image Edge-Detection, sobel gradient detective operators can be used for example and carry out image side
Edge detection, it should be noted that the predetermined gradient detective operators are also possible to other operators, and above-mentioned sobel gradient detection is calculated
Son is only for example, being not limited thereto.
Step 1203 carries out default calculation processing to the gradient image, obtains sketch stroke structural images.
In the step, the method carries out default calculation processing to the gradient image, obtains sketch stroke structural images.
It is described that the gradient image is carried out presetting calculation processing may include: to carry out the gradient image convolution of multiple directions,
The multiple directions map for generating the original image filters the multiple direction map using multiple directions filter respectively
Wave summation, obtains filtered image S';Filtered image S' is normalized to section [0,1], normalizing is obtained
Change treated filtering image S ";Sketch stroke structural images S=(1- is calculated according to the filtering image S " after normalized
S ") α, wherein α ∈ [1,3].
In the embodiment of the present invention, the method carries out the convolution in 8 directions to the gradient image, generates the original graph
8 direction maps of picture.Specifically, the method carries out the convolution in 8 directions to gradient image G, for each of image
Pixel, the convolution in 8 directions accordingly maximum direction be the pixel direction, the directional diagram of the original image of generation
SpectrumThat is:
Wherein, Ci, i=1 ..., 8 meet condition
Then utilization orientation filterThe direction map Ci of the original image is filtered and is summed, is filtered
Image afterwardsFiltered image S' is normalized to section [0,1], is obtained at normalization
Filtering image S " after reason calculates sketch stroke structural images S=(1-S ") α according to the filtering image S " after normalized,
Wherein, α is the value for controlling stroke shade in sketch image, and α value is bigger, and stroke color is deeper in sketch image, α ∈
[1,3], such as α can take 1.5 or 2.0.
It is anisotropic filter,Size can be 3,5,7 or other size,Size it is bigger, precision is got over
Height, correspondingly, computation complexity are also higher.For example, whenSize be 3 when,
In some embodiment of the invention, the gradient image can also be normalized to section in the method
[0,1] then carries out default calculation processing to the gradient image after normalized again, obtains sketch stroke structural images.
The gray level image and true sketch image are carried out Histogram Matching, and carry out texture rendering by step 1204, are obtained
Image is rendered to texture.
Step 1205 merges the sketch stroke structural images and texture rendering image, obtains sketch result figure
Picture.
The step 1204 and step 1205 and the step 303 and step 304 phase in present invention embodiment shown in Fig. 3
Together, details are not described herein again.
In the present embodiment, described image processing method carries out gray processing processing to original image, obtains gray level image;To institute
It states gray level image and carries out Image Edge-Detection, obtain gradient image;Default calculation processing is carried out to the gradient image, obtains element
Pen draws structural images;The gray level image and true sketch image are subjected to Histogram Matching, and carry out texture rendering, is obtained
Texture renders image;The sketch stroke structural images and texture rendering image are merged, sketch result images are obtained.This
Sample, the sketch effect image border profile that image processing method provided by the invention generates is continuous, has lines sense, is more nearly
True sketch image.
Optionally, described that Image Edge-Detection is carried out to the gray level image, obtain gradient image, comprising:
Image Edge-Detection is carried out to the gray level image using sobel gradient detective operators, obtains gradient image.
Optionally, described that default calculation processing is carried out to the gradient image, obtain sketch stroke structural images, comprising:
The convolution that multiple directions are carried out to the gradient image, generates the multiple directions map of the original image;
The multiple direction map is filtered and is summed respectively using multiple directions filter, obtains filtered figure
As S';
The filtering image to section [0,1], after obtaining normalized is normalized in filtered image S'
S";
Sketch stroke structural images S=(1-S ") is calculated according to the filtering image S " after normalizedα, wherein α ∈
[1,3].
Optionally, the convolution that multiple directions are carried out to the gradient image, generates multiple sides of the original image
To map, comprising:
The convolution that 8 directions are carried out to the gradient image, generates 8 direction maps of the original image.
It is the flow diagram of another image processing method provided in an embodiment of the present invention referring to Figure 13, Figure 13, such as schemes
Shown in 13, which comprises
Step 1301 carries out gray processing processing to original image, obtains gray level image.
In the step, the method is to original image I1Gray processing processing is carried out, gray level image I is obtained1'.It is described to image
It carries out gray processing processing and belongs to prior art scope, details are not described herein again.
Step 1302 carries out Image Edge-Detection and default calculation processing to the gray level image, obtains sketch stroke
Structural images.
The step 1302 is identical as the step 302 in present invention embodiment shown in Fig. 3, and details are not described herein again.
The gray level image and true sketch image are carried out Histogram Matching by step 1303, after obtaining Histogram Matching
Gray level image.
In the step, the gray level image and true sketch image are carried out Histogram Matching by the method, obtain histogram
Gray level image after figure matching.The method can be by gray level image I1' and true sketch image I2(true element as shown in Figure 4
Trace designs picture) carry out Histogram Matching, the gray level image I after obtaining Histogram Matching1", the gray level image after the Histogram Matching
I1" and the true sketch image I2With similar histogram distribution.
Step 1304, by after the Histogram Matching gray level image and sketch background image carry out texture rendering, obtain
Texture renders image.
In the step, the method by after the Histogram Matching gray level image and sketch background image carry out texture wash with watercolours
Dye obtains texture rendering image.Such as by the gray level image I after the Histogram Matching1" and sketch background image I3(such as Fig. 5
Shown in sketch background image) carry out texture rendering, generate texture render image T.
Specifically, the gray level image I by after the Histogram Matching1" and sketch background image I3Carry out texture rendering
It may include by the gray level image I after the Histogram Matching1" and sketch background image I3It is normalized respectively to area
Between [0,1], the gray level image I after obtaining normalized1" ' and normalized after sketch background image I3', and according to institute
Gray level image I after stating normalized1" ' and normalized after sketch background image I3' texture rendering figure is calculated
As T=(I3')N, wherein N=(1-I1”')β, β ∈ [1,3].β is the value for controlling the shade of sketch background, and β value is got over
Greatly, the color of sketch background is deeper, such as β can be with value 1.5 or 2.0.
Step 1305 merges the sketch stroke structural images and texture rendering image, obtains sketch result figure
Picture.
The step 1305 is identical as the step 304 in present invention embodiment shown in Fig. 3, and details are not described herein again.
In the present embodiment, described image processing method carries out gray processing processing to original image, obtains gray level image;To institute
It states gray level image and carries out Image Edge-Detection and default calculation processing, obtain sketch stroke structural images;By the grayscale image
As carrying out Histogram Matching with true sketch image, and texture rendering is carried out, obtains texture rendering image;By the gray level image
Histogram Matching is carried out with true sketch image, the gray level image after obtaining Histogram Matching;After the Histogram Matching
Gray level image and sketch background image carry out texture rendering, obtain texture rendering image.In this way, image procossing provided by the invention
The sketch effect image border profile that method generates is continuous, has lines sense, is more nearly true sketch image.
Optionally, the gray level image and sketch background image by after the Histogram Matching carries out texture rendering, obtains
Image is rendered to texture, comprising:
By the gray level image I after the Histogram Matching1" and sketch background image I3Section [0,1] is normalized to respectively,
Gray level image I after obtaining normalized1" ' and normalized after sketch background image I3';
According to the gray level image I after the normalized1" ' and normalized after sketch background image I3' calculate
Obtain texture rendering image T=(I3')N, wherein N=(1-I1”')β, β ∈ [1,3].
It can be with those of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment method is
It is completed by the relevant hardware of at least one program instruction, at least one described program can store in shifting as shown in Figure 1
It in the memory 109 of dynamic terminal 100, and can be executed by the processor 110, at least one described program is by the processor
110 realize following steps when executing:
Gray processing processing is carried out to original image, obtains gray level image;
Image Edge-Detection and default calculation processing are carried out to the gray level image, obtain sketch stroke structural images;
The gray level image and true sketch image are subjected to Histogram Matching, and carry out texture rendering, obtains texture wash with watercolours
Contaminate image;
The sketch stroke structural images and texture rendering image are merged, sketch result images are obtained.
Optionally, described that Image Edge-Detection and default calculation processing are carried out to the gray level image, obtain drawing pencil
Draw structural images, comprising:
Image Edge-Detection is carried out to the gray level image, obtains gradient image;
Default calculation processing is carried out to the gradient image, obtains sketch stroke structural images.
Optionally, described that Image Edge-Detection is carried out to the gray level image, obtain gradient image, comprising:
Image Edge-Detection is carried out to the gray level image using sobel gradient detective operators, obtains gradient image.
Optionally, described that default calculation processing is carried out to the gradient image, obtain sketch stroke structural images, comprising:
The convolution that multiple directions are carried out to the gradient image, generates the multiple directions map of the original image;
The multiple direction map is filtered and is summed respectively using multiple directions filter, obtains filtered figure
As S';
The filtering image to section [0,1], after obtaining normalized is normalized in filtered image S'
S";
Sketch stroke structural images S=(1-S ") is calculated according to the filtering image S " after normalizedα, wherein α ∈
[1,3].
Optionally, the convolution that multiple directions are carried out to the gradient image, generates multiple sides of the original image
To map, comprising:
The convolution that 8 directions are carried out to the gradient image, generates 8 direction maps of the original image.
Optionally, described that the gray level image and true sketch image are subjected to Histogram Matching, and texture rendering is carried out,
Obtain texture rendering image, comprising:
The gray level image and true sketch image are subjected to Histogram Matching, the grayscale image after obtaining Histogram Matching
Picture;
By after the Histogram Matching gray level image and sketch background image carry out texture rendering, obtain texture rendering figure
Picture.
Optionally, the gray level image and sketch background image by after the Histogram Matching carries out texture rendering, obtains
Image is rendered to texture, comprising:
By the gray level image I after the Histogram Matching1" and sketch background image I3Section [0,1] is normalized to respectively,
Gray level image I after obtaining normalized1" ' and normalized after sketch background image I3';
According to the gray level image I after the normalized1" ' and normalized after sketch background image I3' calculate
Obtain texture rendering image T=(I3')N, wherein N=(1-I1”')β, β ∈ [1,3].
Optionally, described to merge the sketch stroke structural images and texture rendering image, obtain sketch result
Image, comprising:
The sketch stroke structural images and texture rendering image are merged, blending image is obtained;
The blending image is normalized to section [0,1], and to the blending image normalized to after section [0,1]
It carries out numerical value and zooms to section [0,255], obtain sketch result images.
In the present embodiment, the mobile terminal carries out gray processing processing to original image, obtains gray level image;To the ash
It spends image and carries out Image Edge-Detection and default calculation processing, obtain sketch stroke structural images;By the gray level image with
True sketch image carries out Histogram Matching, and carries out texture rendering, obtains texture rendering image;By the sketch stroke structure
Image and texture rendering image are merged, and sketch result images are obtained.In this way, the sketch effect image border profile generated connects
It is continuous, there is lines sense, be more nearly true sketch image.
It can be with those of ordinary skill in the art will appreciate that realizing that all or part of step of above-described embodiment method is
It is completed by the relevant hardware of at least one program instruction, at least one described program can store computer-readable deposits in one
In storage media, which is performed, comprising the following steps:
Gray processing processing is carried out to original image, obtains gray level image;
Image Edge-Detection and default calculation processing are carried out to the gray level image, obtain sketch stroke structural images;
The gray level image and true sketch image are subjected to Histogram Matching, and carry out texture rendering, obtains texture wash with watercolours
Contaminate image;
The sketch stroke structural images and texture rendering image are merged, sketch result images are obtained.
Optionally, described that Image Edge-Detection and default calculation processing are carried out to the gray level image, obtain drawing pencil
Draw structural images, comprising:
Image Edge-Detection is carried out to the gray level image, obtains gradient image;
Default calculation processing is carried out to the gradient image, obtains sketch stroke structural images.
Optionally, described that Image Edge-Detection is carried out to the gray level image, obtain gradient image, comprising:
Image Edge-Detection is carried out to the gray level image using sobel gradient detective operators, obtains gradient image.
Optionally, described that default calculation processing is carried out to the gradient image, obtain sketch stroke structural images, comprising:
The convolution that multiple directions are carried out to the gradient image, generates the multiple directions map of the original image;
The multiple direction map is filtered and is summed respectively using multiple directions filter, obtains filtered figure
As S';
The filtering image to section [0,1], after obtaining normalized is normalized in filtered image S'
S";
Sketch stroke structural images S=(1-S ") is calculated according to the filtering image S " after normalizedα, wherein α ∈
[1,3].
Optionally, the convolution that multiple directions are carried out to the gradient image, generates multiple sides of the original image
To map, comprising:
The convolution that 8 directions are carried out to the gradient image, generates 8 direction maps of the original image.
Optionally, described that the gray level image and true sketch image are subjected to Histogram Matching, and texture rendering is carried out,
Obtain texture rendering image, comprising:
The gray level image and true sketch image are subjected to Histogram Matching, the grayscale image after obtaining Histogram Matching
Picture;
By after the Histogram Matching gray level image and sketch background image carry out texture rendering, obtain texture rendering figure
Picture.
Optionally, the gray level image and sketch background image by after the Histogram Matching carries out texture rendering, obtains
Image is rendered to texture, comprising:
By the gray level image I after the Histogram Matching1" and sketch background image I3Section [0,1] is normalized to respectively,
Gray level image I after obtaining normalized1" ' and normalized after sketch background image I3';
According to the gray level image I after the normalized1" ' and normalized after sketch background image I3' calculate
Obtain texture rendering image T=(I3')N, wherein N=(1-I1”')β, β ∈ [1,3].
Optionally, described to merge the sketch stroke structural images and texture rendering image, obtain sketch result
Image, comprising:
The sketch stroke structural images and texture rendering image are merged, blending image is obtained;
The blending image is normalized to section [0,1], and to the blending image normalized to after section [0,1]
It carries out numerical value and zooms to section [0,255], obtain sketch result images.
In the present embodiment, at least one described program is performed, and is carried out gray processing processing to original image, is obtained gray scale
Image;Image Edge-Detection and default calculation processing are carried out to the gray level image, obtain sketch stroke structural images;By institute
It states gray level image and true sketch image carries out Histogram Matching, and carry out texture rendering, obtain texture rendering image;It will be described
Sketch stroke structural images and texture rendering image are merged, and sketch result images are obtained.In this way, at least one described program
It is performed, the sketch effect image border profile of generation is continuous, has lines sense, is more nearly true sketch image.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the device that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or device.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that a terminal device (can be mobile phone, computer, clothes
Business device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of image processing method, which is characterized in that the described method includes:
Gray processing processing is carried out to original image, obtains gray level image;
Image Edge-Detection and default calculation processing are carried out to the gray level image, obtain sketch stroke structural images;
The gray level image and true sketch image are subjected to Histogram Matching, and carry out texture rendering, obtains texture rendering figure
Picture;
The sketch stroke structural images and texture rendering image are merged, sketch result images are obtained.
2. image processing method as described in claim 1, which is characterized in that described to carry out image border to the gray level image
Detection and default calculation processing, obtain sketch stroke structural images, comprising:
Image Edge-Detection is carried out to the gray level image, obtains gradient image;
Default calculation processing is carried out to the gradient image, obtains sketch stroke structural images.
3. image processing method as claimed in claim 2, which is characterized in that described to carry out image border to the gray level image
Detection, obtains gradient image, comprising:
Image Edge-Detection is carried out to the gray level image using sobel gradient detective operators, obtains gradient image.
4. image processing method as claimed in claim 2, which is characterized in that described to carry out default calculating to the gradient image
Processing, obtains sketch stroke structural images, comprising:
The convolution that multiple directions are carried out to the gradient image, generates the multiple directions map of the original image;
The multiple direction map is filtered and is summed respectively using multiple directions filter, obtains filtered image
S';
The filtering image S " to section [0,1], after obtaining normalized is normalized in filtered image S';
Sketch stroke structural images S=(1-S ") is calculated according to the filtering image S " after normalizedα, wherein α ∈ [1,3].
5. image processing method as claimed in claim 4, which is characterized in that described to carry out multiple directions to the gradient image
Convolution, generate the multiple directions map of the original image, comprising:
The convolution that 8 directions are carried out to the gradient image, generates 8 direction maps of the original image.
6. image processing method as described in claim 1, which is characterized in that described by the gray level image and true sketch map
As carrying out Histogram Matching, and texture rendering is carried out, obtains texture rendering image, comprising:
The gray level image and true sketch image are subjected to Histogram Matching, the gray level image after obtaining Histogram Matching;
By after the Histogram Matching gray level image and sketch background image carry out texture rendering, obtain texture rendering image.
7. image processing method as claimed in claim 6, which is characterized in that the grayscale image by after the Histogram Matching
Picture and sketch background image carry out texture rendering, obtain texture rendering image, comprising:
By the gray level image I after the Histogram Matching1" and sketch background image I3Section [0,1] is normalized to respectively, is obtained
Gray level image I after normalized1" ' and normalized after sketch background image I3';
According to the gray level image I after the normalized1" ' and normalized after sketch background image I3' be calculated
Texture renders image T=(I3')N, wherein N=(1-I1”')β, β ∈ [1,3].
8. image processing method as described in claim 1, which is characterized in that described by the sketch stroke structural images and line
Reason rendering image is merged, and sketch result images are obtained, comprising:
The sketch stroke structural images and texture rendering image are merged, blending image is obtained;
The blending image is normalized to section [0,1], and the blending image normalized to after section [0,1] is carried out
Numerical value zooms to section [0,255], obtains sketch result images.
9. a kind of mobile terminal, which is characterized in that the mobile terminal includes memory, at least one processor and is stored in institute
At least one program stated on memory and can executed at least one described processor, at least one described program by it is described extremely
A few processor realizes the step in the described in any item methods of the claims 1 to 8 when executing.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer executable at least
One program, which is characterized in that at least one described program makes the computer execute above-mentioned power when being executed by the computer
Benefit requires the step in 1~8 described in any item methods.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810996014.1A CN109300099A (en) | 2018-08-29 | 2018-08-29 | A kind of image processing method, mobile terminal and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810996014.1A CN109300099A (en) | 2018-08-29 | 2018-08-29 | A kind of image processing method, mobile terminal and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109300099A true CN109300099A (en) | 2019-02-01 |
Family
ID=65165854
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810996014.1A Pending CN109300099A (en) | 2018-08-29 | 2018-08-29 | A kind of image processing method, mobile terminal and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109300099A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110070499A (en) * | 2019-03-14 | 2019-07-30 | 北京字节跳动网络技术有限公司 | Image processing method, device and computer readable storage medium |
CN110599437A (en) * | 2019-09-26 | 2019-12-20 | 北京百度网讯科技有限公司 | Method and apparatus for processing video |
CN110766755A (en) * | 2019-10-21 | 2020-02-07 | 郑州迈拓信息技术有限公司 | Real-time positioning method for hopper for filling materials of semitrailer |
CN112819691A (en) * | 2021-02-05 | 2021-05-18 | 北京字跳网络技术有限公司 | Image processing method, device, equipment and readable storage medium |
CN113763506A (en) * | 2021-07-28 | 2021-12-07 | 北京印刷学院 | Method for generating artistic stippling image with custom pixels |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101271516A (en) * | 2008-04-02 | 2008-09-24 | 范九伦 | Direction filtering reinforcement method of fingerprint image |
CN101587593A (en) * | 2009-06-19 | 2009-11-25 | 西安交通大学 | A kind of method based on the stylization of true picture sketch |
CN101739555A (en) * | 2009-12-01 | 2010-06-16 | 北京中星微电子有限公司 | Method and system for detecting false face, and method and system for training false face model |
CN104915976A (en) * | 2015-06-03 | 2015-09-16 | 厦门美图之家科技有限公司 | Image processing method and system for simulating pencil sketch |
CN105023253A (en) * | 2015-07-16 | 2015-11-04 | 上海理工大学 | Visual underlying feature-based image enhancement method |
CN105374007A (en) * | 2015-12-02 | 2016-03-02 | 华侨大学 | Generation method and generation device of pencil drawing fusing skeleton strokes and textural features |
US20160125240A1 (en) * | 2014-10-30 | 2016-05-05 | Delta ID Inc. | Systems and methods for secure biometric processing |
CN108022227A (en) * | 2017-12-29 | 2018-05-11 | 努比亚技术有限公司 | A kind of black and white background photo acquisition methods, device and computer-readable recording medium |
-
2018
- 2018-08-29 CN CN201810996014.1A patent/CN109300099A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101271516A (en) * | 2008-04-02 | 2008-09-24 | 范九伦 | Direction filtering reinforcement method of fingerprint image |
CN101587593A (en) * | 2009-06-19 | 2009-11-25 | 西安交通大学 | A kind of method based on the stylization of true picture sketch |
CN101739555A (en) * | 2009-12-01 | 2010-06-16 | 北京中星微电子有限公司 | Method and system for detecting false face, and method and system for training false face model |
US20160125240A1 (en) * | 2014-10-30 | 2016-05-05 | Delta ID Inc. | Systems and methods for secure biometric processing |
CN104915976A (en) * | 2015-06-03 | 2015-09-16 | 厦门美图之家科技有限公司 | Image processing method and system for simulating pencil sketch |
CN105023253A (en) * | 2015-07-16 | 2015-11-04 | 上海理工大学 | Visual underlying feature-based image enhancement method |
CN105374007A (en) * | 2015-12-02 | 2016-03-02 | 华侨大学 | Generation method and generation device of pencil drawing fusing skeleton strokes and textural features |
CN108022227A (en) * | 2017-12-29 | 2018-05-11 | 努比亚技术有限公司 | A kind of black and white background photo acquisition methods, device and computer-readable recording medium |
Non-Patent Citations (1)
Title |
---|
罗志恩等: "一种基于GPU的三维素描风格画的渲染方法", 《硅谷》 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110070499A (en) * | 2019-03-14 | 2019-07-30 | 北京字节跳动网络技术有限公司 | Image processing method, device and computer readable storage medium |
CN110599437A (en) * | 2019-09-26 | 2019-12-20 | 北京百度网讯科技有限公司 | Method and apparatus for processing video |
CN110766755A (en) * | 2019-10-21 | 2020-02-07 | 郑州迈拓信息技术有限公司 | Real-time positioning method for hopper for filling materials of semitrailer |
CN112819691A (en) * | 2021-02-05 | 2021-05-18 | 北京字跳网络技术有限公司 | Image processing method, device, equipment and readable storage medium |
WO2022166907A1 (en) * | 2021-02-05 | 2022-08-11 | 北京字跳网络技术有限公司 | Image processing method and apparatus, and device and readable storage medium |
CN112819691B (en) * | 2021-02-05 | 2023-06-20 | 北京字跳网络技术有限公司 | Image processing method, device, equipment and readable storage medium |
CN113763506A (en) * | 2021-07-28 | 2021-12-07 | 北京印刷学院 | Method for generating artistic stippling image with custom pixels |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107093418A (en) | A kind of screen display method, computer equipment and storage medium | |
CN107172364A (en) | A kind of image exposure compensation method, device and computer-readable recording medium | |
CN109300099A (en) | A kind of image processing method, mobile terminal and computer readable storage medium | |
CN108682040A (en) | A kind of sketch image generation method, terminal and computer readable storage medium | |
CN107682627A (en) | A kind of acquisition parameters method to set up, mobile terminal and computer-readable recording medium | |
CN109711226A (en) | Two-dimensional code identification method, device, mobile terminal and readable storage medium storing program for executing | |
CN107944022A (en) | Picture classification method, mobile terminal and computer-readable recording medium | |
CN106953684A (en) | A kind of method for searching star, mobile terminal and computer-readable recording medium | |
CN107124531A (en) | A kind of image processing method and mobile terminal | |
CN107657583A (en) | A kind of screenshot method, terminal and computer-readable recording medium | |
CN107291334A (en) | A kind of icon font color determines method and apparatus | |
CN107463324A (en) | A kind of image display method, mobile terminal and computer-readable recording medium | |
CN108053371A (en) | A kind of image processing method, terminal and computer readable storage medium | |
CN108230270A (en) | A kind of noise-reduction method, terminal and computer readable storage medium | |
CN107239205A (en) | A kind of photographic method, mobile terminal and storage medium | |
CN108459799A (en) | A kind of processing method of picture, mobile terminal and computer readable storage medium | |
CN107678650A (en) | A kind of image identification method, mobile terminal and computer-readable recording medium | |
CN109672822A (en) | A kind of method for processing video frequency of mobile terminal, mobile terminal and storage medium | |
CN107450796B (en) | A kind of image processing method, mobile terminal and computer readable storage medium | |
CN108182664A (en) | A kind of image processing method, mobile terminal and computer readable storage medium | |
CN108600325A (en) | A kind of determination method, server and the computer readable storage medium of push content | |
CN108182668A (en) | A kind of enlarged drawing processing method, terminal and computer readable storage medium | |
CN107566608A (en) | A kind of system air navigation aid, equipment and computer-readable recording medium | |
CN110064196A (en) | Method for controlling mobile terminal, mobile terminal and computer readable storage medium | |
CN109445660A (en) | A kind of wearable device control method, mobile terminal and wearable device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190201 |