CN108280816A - A kind of gaussian filtering method and mobile terminal - Google Patents
A kind of gaussian filtering method and mobile terminal Download PDFInfo
- Publication number
- CN108280816A CN108280816A CN201711375981.8A CN201711375981A CN108280816A CN 108280816 A CN108280816 A CN 108280816A CN 201711375981 A CN201711375981 A CN 201711375981A CN 108280816 A CN108280816 A CN 108280816A
- Authority
- CN
- China
- Prior art keywords
- pixel
- average
- points
- target
- value
- 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
- 238000000034 method Methods 0.000 title claims abstract description 39
- 238000001914 filtration Methods 0.000 title claims abstract description 29
- 238000004590 computer program Methods 0.000 claims description 10
- 235000013399 edible fruits Nutrition 0.000 claims 1
- 238000004364 calculation method Methods 0.000 abstract description 14
- 238000012545 processing Methods 0.000 abstract description 14
- 230000006870 function Effects 0.000 description 11
- 238000010586 diagram Methods 0.000 description 6
- 230000006854 communication Effects 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000005314 correlation function Methods 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 230000001404 mediated effect Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000013215 result calculation Methods 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 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/10—Image enhancement or restoration using non-spatial domain filtering
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72403—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
- H04M1/7243—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
- H04M1/72439—User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Business, Economics & Management (AREA)
- Multimedia (AREA)
- General Engineering & Computer Science (AREA)
- General Business, Economics & Management (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Image Processing (AREA)
- Telephone Function (AREA)
Abstract
The present invention provides a kind of gaussian filtering method and mobile terminal, the method includes:Obtain multiple pixel averages corresponding with target pixel points;According to the multiple pixel average, Gauss result corresponding with the target pixel points is obtained.By directly acquiring multiple pixel averages corresponding with target pixel points;According to multiple pixel averages, Gauss result corresponding with target pixel points is obtained.The present invention obtains Gauss as a result, reducing the calculation amount of gaussian filtering, shortens the processing time of gaussian filtering, and then improve system performance according to the corresponding multiple pixel averages of target pixel points.
Description
Technical field
The present invention relates to technical field of mobile terminals, more particularly to a kind of gaussian filtering method and mobile terminal.
Background technology
With the development of mobile terminal, people are taken pictures using mobile terminal more and more, and are used upon taking a picture current
Popular U.S. face skin makeup, it is double take the photograph the technologies such as virtualization, landscaping treatment is carried out to photo.
In the prior art, U.S. face skin makeup, double technologies such as virtualization of taking the photograph can be related to gaussian filtering, the realization of gaussian filtering
Journey is simpler, but calculation amount is larger, and processing time is longer, and then is impacted to system performance.
Invention content
A kind of gaussian filtering method of offer of the embodiment of the present invention and mobile terminal, to solve in the prior art since Gauss filters
The calculation amount of wave is larger and then the problem of being impacted to system performance.
In order to solve the above-mentioned technical problem, the invention is realized in this way:A kind of method of gaussian filtering, including:It obtains
Multiple pixel averages corresponding with target pixel points;According to the multiple pixel average, obtain and the target pixel points
Corresponding Gauss result.
In a first aspect, the embodiment of the present invention additionally provides a kind of mobile terminal, the mobile terminal includes:First obtains mould
Block, for obtaining multiple pixel averages corresponding with target pixel points;Second acquisition module, for according to the multiple pixel
Average value obtains Gauss result corresponding with the target pixel points.
Second aspect an embodiment of the present invention provides a kind of mobile terminal, including processor, memory and is stored in described
It is real when the computer program is executed by the processor on memory and the computer program that can run on the processor
Now the step of gaussian filtering method.
The third aspect, an embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage
Computer program is stored on medium, and the step of the gaussian filtering method is realized when the computer program is executed by processor
Suddenly.
The embodiment of the present invention obtains Gauss as a result, reducing height according to the corresponding multiple pixel averages of target pixel points
The calculation amount of this filtering, shortens the processing time of gaussian filtering, and then improve system performance.
Description of the drawings
Fig. 1 is a kind of step flow chart of gaussian filtering method of the embodiment of the present invention one;
Fig. 2 is a kind of step flow chart of gaussian filtering method of the embodiment of the present invention two;
Fig. 3 is that the pixel of the embodiment of the present invention indicates to be intended to;
Fig. 4 is a kind of structure diagram of mobile terminal of the embodiment of the present invention three;
Fig. 5 is a kind of structure diagram of mobile terminal of the embodiment of the present invention four;
Fig. 6 is a kind of structure diagram of mobile terminal of the embodiment of the present invention five.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without creative efforts
Example, shall fall within the protection scope of the present invention.
Embodiment one
Referring to Fig.1, a kind of step flow chart of gaussian filtering method of the embodiment of the present invention one is shown.
Gaussian filtering method provided in an embodiment of the present invention includes the following steps:
Step 101:Obtain multiple pixel averages corresponding with target pixel points.
Each object pixel, which is corresponded to, then to be passed through there are four pixel average since GPU can read the point of non-whole block of pixels
GPU (Graphics Processing Unit, graphics processor) reads the corresponding each pixel average of target pixel points.
In the embodiment of the present invention, with the target pixel points A in computational chart 1x,yGauss result for illustrate.
Table 1:
In table 1, target pixel points Ax,yCorresponding pixel average, respectively Ax-0.5,y-0.5、Ax+0.5,y-0.5、
Ax-0.5,y+0.5And Ax+0.5,y+0.5The pixel value at place reads this corresponding pixel value of four points by GPU respectively.
Step 102:According to multiple pixel averages, Gauss result corresponding with target pixel points is obtained.
By obtaining the corresponding each pixel average of target pixel points and the corresponding weighted value of target pixel points, pass through calculating
Obtain the corresponding Gauss result of target pixel points.
By the way that target pixel points pixel value is adjusted to the Gauss as a result, it is possible to complete to blur to image or grind skin etc.
Reason.
In embodiments of the present invention, according to the corresponding multiple pixel averages of target pixel points, Gauss is obtained as a result, reducing
The calculation amount of gaussian filtering, shortens the processing time of gaussian filtering, and then improve system performance.
Embodiment two
With reference to Fig. 2, a kind of step flow chart of gaussian filtering method of the embodiment of the present invention two is shown.
Gaussian filtering method provided in an embodiment of the present invention includes the following steps:
Step 201:It is flat to read corresponding first pixel average of target pixel points, the second pixel average, third pixel
Mean value and the 4th pixel average.
As shown in figure 3, the pixel for embodiment indicates to be intended to, the first pixel average is adjacent with target pixel points the
The pixel average of one pixel, the second pixel, third pixel and target pixel points;Read positioned at the first pixel,
The pixel value of the pixel of the center of second pixel, third pixel and target pixel points, using the pixel value as
First pixel average.
Second pixel average be adjacent the second pixel of target pixel points, the 4th pixel, the 5th pixel and
The pixel average of target pixel points;It reads and is located at the second pixel, the 4th pixel, the 5th pixel and target pixel points
Center pixel pixel value, using the pixel value as the second pixel average.
Third pixel average is target pixel points and adjacent third pixel, the 6th pixel and the 7th pixel
The pixel average of point and target pixel points;It reads and is located at third pixel, the 6th pixel, the 7th pixel and target
The pixel value of the pixel of the center of pixel, using the pixel value as third pixel average.
4th pixel average is target pixel points and adjacent the 5th pixel, the 7th pixel and the 8th pixel
And the pixel average of target pixel points.It reads and is located at the 5th pixel, the 7th pixel, the 8th pixel and target picture
The pixel value of the pixel of the center of vegetarian refreshments, using the pixel value as the 4th pixel average.
In the embodiment of the present invention, with the target pixel points A in computational chart 1x,yGauss result for illustrate.It needs
Illustrate, pixel region shown in table 1 is only the part in image, for the Gauss result of each pixel in image
Calculating, reference object pixel Ax,yGauss result calculation calculate.
Step 202:Calculate the first pixel average, the second pixel average, third pixel average and the 4th pixel
The sum of average value.
Step 203:Using the product of the sum of the corresponding weighted value of target pixel points and each pixel average as object pixel
The corresponding Gauss result of point.
Normal distribution is a kind of desirable weight distribution pattern.On the figure of normal distribution, normal distribution is a kind of clock
Shape curve, closer to center, value is bigger, and further away from center, value is smaller.Since image is two-dimensional, each picture can be calculated
The weighted value of vegetarian refreshments.
When the Gauss result of the target pixel points of computational chart 1:
Specifically, A is calculatedx-0.5,y-0.5+Ax+0.5,y-0.5+Ax-0.5,y+0.5+Ax+0.5,y+0.5The sum of pixel value, wherein
Ax-0.5,y-0.5、Ax+0.5,y-0.5、Ax-0.5,y+0.5And Ax+0.5,y+0.5For target pixel points Ax,yCorresponding first pixel average,
Two pixel averages, third pixel average and the 4th pixel average.
As target pixel points Ax,yWeighted value be 0.25 when:
Then the corresponding Gauss result of target pixel points is:
0.25*(Ax-0.5,y-0.5+Ax+0.5,y-0.5+Ax-0.5,y+0.5+Ax+0.5,y+0.5)。
It is to the calculating process of the Gauss result of 1 target pixel points of table in compared with prior art:
Gx,y=0.25*Ax,y+0.0625*Ax-1,y-1+0.125*Ax,y-1+0.0625*Ax+1,y-1+0.125*Ax-1,y+
0.125*Ax+1,y+0.0625*Ax-1,y+1+0.125*Ax,y+1+0.0625*Ax+1,y+1。
Calculation amount is reduced to 3 sub-addition operations and 1 multiplication fortune by 9 multiplyings of every pixel and 8 sub-addition operations
It calculates, read volume is greatly reduced, and overall calculation amount has dropped 75% or more, and digital independent amount reduces 55% or more, whole calculation
Method, which takes, becomes original 35% or so, to improve the speed of picture processing, promotes the usage experience of user.
In embodiments of the present invention, by directly acquiring multiple pixel averages corresponding with target pixel points;According to more
A pixel average obtains Gauss result corresponding with target pixel points, it is only necessary to execute simple calculate and can be obtained pixel
Corresponding Gauss is as a result, be not necessarily to execute complicated calculating, therefore can reduce calculation amount, and then promote image U.S. face efficiency, increasing
The usage experience of strong user can reduce the power consumption of mobile terminal in addition, due to the reduction of calculation amount.
Embodiment three
With reference to Fig. 4, a kind of structure diagram of mobile terminal of the embodiment of the present invention three is shown.
Mobile terminal provided in an embodiment of the present invention includes:
First acquisition module 301, for obtaining multiple pixel averages corresponding with target pixel points;
Second acquisition module 302, for according to the multiple pixel average, obtaining corresponding with the target pixel points
Gauss result.
In embodiments of the present invention, according to the corresponding multiple pixel averages of target pixel points, Gauss is obtained as a result, reducing
The calculation amount of gaussian filtering, shortens the processing time of gaussian filtering, and then improve system performance.
Example IV
With reference to Fig. 5, a kind of structure diagram of mobile terminal of the embodiment of the present invention four is shown.
Mobile terminal provided in an embodiment of the present invention includes:
First acquisition module 401, for obtaining multiple pixel averages corresponding with target pixel points;
Second acquisition module 402, for according to the multiple pixel average, obtaining corresponding with the target pixel points
Gauss result.
Preferably, first acquisition module 401 is specifically used for:It is flat to read corresponding first pixel of the target pixel points
Mean value, the second pixel average, third pixel average and the 4th pixel average.
Preferably, first pixel average is first pixel adjacent with the target pixel points, the second pixel
The pixel average of point, third pixel and the target pixel points;
First acquisition module 401 includes:
First reading submodule 4011, for reading positioned at first pixel, second pixel, the third
The pixel value of the pixel of the center of pixel and the target pixel points, using the pixel value as first picture
Plain average value;Second pixel average is the second adjacent pixel of the target pixel points, the 4th pixel, the 5th picture
The pixel average of vegetarian refreshments and the target pixel points;
First acquisition module 401 includes:
Second reading submodule 4012, for reading positioned at second pixel, the 4th pixel, the described 5th
The pixel value of the pixel of the center of pixel and the target pixel points, using the pixel value as second picture
Plain average value;The third pixel average be the target pixel points with adjacent third pixel, the 6th pixel and
The pixel average of 7th pixel and the target pixel points;
First acquisition module 401 includes:
Third reading submodule 4013, for reading positioned at the third pixel, the 6th pixel, the described 7th
The pixel value of the pixel of the center of pixel and the target pixel points, using the pixel value as the third picture
Plain average value;4th pixel average be the target pixel points with adjacent the 5th pixel, the 7th pixel and
The pixel average of 8th pixel and the target pixel points.
First acquisition module 401 includes:
4th reading submodule 4014 is read positioned at the 5th pixel, the 7th pixel, the 8th pixel
The pixel value of the pixel of the center of point and the target pixel points, puts down the pixel value as the 4th pixel
Mean value.
Preferably, second acquisition module 402 includes:
First computational submodule 4021, for calculating first pixel average, the second pixel average, third pixel
The sum of average value and the 4th pixel average;
Second computational submodule 4022 is used for the corresponding weighted value of the target pixel points and each pixel average
The sum of product as the corresponding Gauss result of target pixel points.
Mobile terminal provided in an embodiment of the present invention can realize that mobile terminal is realized in the embodiment of the method for Fig. 1 to Fig. 2
Each process, to avoid repeating, which is not described herein again.
In embodiments of the present invention, by directly acquiring multiple pixel averages corresponding with target pixel points;According to more
A pixel average obtains Gauss result corresponding with target pixel points, it is only necessary to execute simple calculate and can be obtained pixel
Corresponding Gauss is as a result, be not necessarily to execute complicated calculating, therefore can reduce calculation amount, and then promote image U.S. face efficiency, increasing
The usage experience of strong user.
Embodiment five
A kind of hardware architecture diagram of Fig. 6 mobile terminals of embodiment five to realize the present invention,
The mobile terminal 500 includes but not limited to:It is radio frequency unit 501, network module 502, audio output unit 503, defeated
Enter unit 504, sensor 505, display unit 506, user input unit 507, interface unit 508, memory 509, processor
The components such as 510 and power supply 511.It will be understood by those skilled in the art that mobile terminal structure shown in Fig. 6 is not constituted
Restriction to mobile terminal, mobile terminal may include than illustrating more or fewer components, either combine certain components or
Different component arrangements.In embodiments of the present invention, mobile terminal include but not limited to mobile phone, tablet computer, laptop,
Palm PC, car-mounted terminal, wearable device and pedometer etc..
Processor 510, for obtaining multiple pixel averages corresponding with target pixel points;It is flat according to the multiple pixel
Mean value obtains Gauss result corresponding with the target pixel points.
In embodiments of the present invention, by directly acquiring multiple pixel averages corresponding with target pixel points;According to more
A pixel average obtains Gauss result corresponding with target pixel points, it is only necessary to execute simple calculate and can be obtained block of pixels
Corresponding target pixel value without executing complicated calculating, therefore can reduce calculation amount, to promote image U.S. face efficiency,
Enhance the usage experience of user.
It should be understood that the embodiment of the present invention in, radio frequency unit 501 can be used for receiving and sending messages or communication process in, signal
Send and receive, specifically, by from base station downlink data receive after, to processor 510 handle;In addition, by uplink
Data are sent to base station.In general, radio frequency unit 501 includes but not limited to antenna, at least one amplifier, transceiver, coupling
Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 501 can also by radio communication system and network and other set
Standby communication.
Mobile terminal has provided wireless broadband internet to the user by network module 502 and has accessed, and such as user is helped to receive
Send e-mails, browse webpage and access streaming video etc..
It is that audio output unit 503 can receive radio frequency unit 501 or network module 502 or in memory 509
The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 503 can also be provided and be moved
The relevant audio output of specific function that dynamic terminal 500 executes is (for example, call signal receives sound, message sink sound etc.
Deng).Audio output unit 503 includes loud speaker, buzzer and receiver etc..
Input unit 504 is for receiving audio or video signal.Input unit 504 may include graphics processor
(Graphics Processing Unit, GPU) 5041 and microphone 5042, graphics processor 5041 is in video acquisition mode
Or the image data of the static images or video obtained by image capture apparatus (such as camera) in image capture mode carries out
Reason.Treated, and picture frame may be displayed on display unit 506.Through graphics processor 5041, treated that picture frame can be deposited
Storage is sent in memory 509 (or other storage mediums) or via radio frequency unit 501 or network module 502.Mike
Wind 5042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be
The format output of mobile communication base station can be sent to via radio frequency unit 501 by being converted in the case of telephone calling model.
Mobile terminal 500 further includes at least one sensor 505, 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 5061, and proximity sensor can close when mobile terminal 500 is moved in one's ear
Display panel 5061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, size and the direction of gravity are can detect that when static, can be used to identify mobile terminal posture (ratio
Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes
Sensor 505 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet
Meter, thermometer, infrared sensor etc. are spent, details are not described herein.
Display unit 506 is for showing information input by user or being supplied to the information of user.Display unit 506 can wrap
Display panel 5061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be used
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 5061.
User input unit 507 can be used for receiving the number or character information of input, and generate the use with mobile terminal
Family is arranged and the related key signals input of function control.Specifically, user input unit 507 include touch panel 5071 and
Other input equipments 5072.Touch panel 5071, also referred to as touch screen collect user on it or neighbouring touch operation
(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 5071 or in touch panel 5071
Neighbouring operation).Touch panel 5071 may include both touch detecting apparatus and touch controller.Wherein, touch detection
Device detects the touch orientation of user, and detects the signal that touch operation is brought, and transmits a signal to touch controller;Touch control
Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 510, receiving area
It manages the order that device 510 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc.
Type realizes touch panel 5071.In addition to touch panel 5071, user input unit 507 can also include other input equipments
5072.Specifically, other input equipments 5072 can include but is not limited to physical keyboard, function key (such as volume control button,
Switch key etc.), trace ball, mouse, operating lever, details are not described herein.
Further, touch panel 5071 can be covered on display panel 5061, when touch panel 5071 is detected at it
On or near touch operation after, send processor 510 to determine the type of touch event, be followed by subsequent processing device 510 according to touch
The type for touching event provides corresponding visual output on display panel 5061.Although in figure 6, touch panel 5071 and display
Panel 5061 is to realize the function that outputs and inputs of mobile terminal as two independent components, but in some embodiments
In, can be integrated by touch panel 5071 and display panel 5061 and realize the function that outputs and inputs of mobile terminal, it is specific this
Place does not limit.
Interface unit 508 is the interface that external device (ED) is connect with mobile terminal 500.For example, external device (ED) may include having
Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end
Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module
Mouthful etc..Interface unit 508 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and
By one or more elements that the input received is transferred in mobile terminal 500 or can be used in 500 He of mobile terminal
Transmission data between external device (ED).
Memory 509 can be used for storing software program and various data.Memory 509 can include mainly storing program area
And storage data field, wherein storing program area can storage program area, application program (such as the sound needed at least one function
Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 509 may include high-speed random access memory, 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 510 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 509, and calls and is stored in storage
Data in device 509 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place
Reason device 510 may include one or more processing units;Preferably, processor 510 can integrate application processor and modulatedemodulate is mediated
Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main
Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 510.
Mobile terminal 500 can also include the power supply 511 (such as battery) powered to all parts, it is preferred that power supply 511
Can be logically contiguous by power-supply management system and processor 510, to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
In addition, mobile terminal 500 includes some unshowned function modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 510, and memory 509 is stored in
On memory 509 and the computer program that can be run on the processor 510, the computer program are executed by processor 510
Each process of the above-mentioned gaussian filtering embodiments of the method for Shi Shixian, and identical technique effect can be reached, to avoid repeating, here
It repeats no more.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium
Calculation machine program, the computer program realize each process of above-mentioned gaussian filtering embodiment of the method, and energy when being executed by processor
Reach identical technique effect, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium, such as only
Read memory (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation
RAM), magnetic disc or CD etc..
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements include not only 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 this
There is also other identical elements in the process of element, method, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art
Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal (can be mobile phone, computer, service
Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited in above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form belongs within the protection of the present invention.
Claims (10)
1. a kind of gaussian filtering method, which is characterized in that the method includes:
Obtain multiple pixel averages corresponding with target pixel points;
According to the multiple pixel average, Gauss result corresponding with the target pixel points is obtained.
2. according to the method described in claim 1, it is characterized in that, the acquisition multiple pixels corresponding with target pixel points are flat
The step of mean value, including:
Read corresponding first pixel average of the target pixel points, the second pixel average, third pixel average and
4th pixel average.
3. according to the method described in claim 2, it is characterized in that, first pixel average is and the target pixel points
The pixel average of adjacent the first pixel, the second pixel, third pixel and the target pixel points;
First pixel average is read, including:
It reads positioned at first pixel, second pixel, the third pixel and the target pixel points
The pixel value of the pixel of center, using the pixel value as first pixel average;
Second pixel average is the second adjacent pixel of the target pixel points, the 4th pixel, the 5th pixel
And the pixel average of the target pixel points;
Second pixel average is read, including:
It reads positioned at second pixel, the 4th pixel, the 5th pixel and the target pixel points
The pixel value of the pixel of center, using the pixel value as second pixel average;
The third pixel average is the target pixel points and adjacent third pixel, the 6th pixel and the 7th
The pixel average of pixel and the target pixel points;
The third pixel average is read, including:
It reads positioned at the third pixel, the 6th pixel, the 7th pixel and the target pixel points
The pixel value of the pixel of center, using the pixel value as the third pixel average;
4th pixel average is the target pixel points and adjacent the 5th pixel, the 7th pixel and the 8th picture
The pixel average of vegetarian refreshments and the target pixel points.
The 4th pixel average is read, including:
It reads positioned at the 5th pixel, the 7th pixel, the 8th pixel and the target pixel points
The pixel value of the pixel of center, using the pixel value as the 4th pixel average.
4. according to the method described in claim 2, it is characterized in that, described according to the multiple pixel average, acquisition and institute
The step of stating target pixel points corresponding Gauss result, including:
Calculate first pixel average, the second pixel average, third pixel average and the 4th pixel average it
With;
Using the product of the sum of the corresponding weighted value of the target pixel points and each pixel average as target pixel points pair
The Gauss result answered.
5. a kind of mobile terminal, which is characterized in that the mobile terminal includes:
First acquisition module, for obtaining multiple pixel averages corresponding with target pixel points;
Second acquisition module, for according to the multiple pixel average, obtaining Gauss knot corresponding with the target pixel points
Fruit.
6. mobile terminal according to claim 5, which is characterized in that first acquisition module is specifically used for:For reading
Take corresponding first pixel average of the target pixel points, the second pixel average, third pixel average and the 4th picture
Plain average value.
7. mobile terminal according to claim 6, which is characterized in that
First pixel average is first pixel adjacent with the target pixel points, the second pixel, third pixel
The pixel average of point and the target pixel points;
First acquisition module includes:
First reading submodule, for read positioned at first pixel, second pixel, the third pixel with
And the pixel value of the pixel of the center of the target pixel points, it is averaged the pixel value as first pixel
Value;
Second pixel average is the second adjacent pixel of the target pixel points, the 4th pixel, the 5th pixel
And the pixel average of the target pixel points;
First acquisition module includes:Second reading submodule, for reading positioned at second pixel, the 4th picture
The pixel value of the pixel of the center of vegetarian refreshments, the 5th pixel and the target pixel points, by the pixel value
As second pixel average;
The third pixel average is the target pixel points and adjacent third pixel, the 6th pixel and the 7th
The pixel average of pixel and the target pixel points;
First acquisition module includes:
Third reading submodule, for read positioned at the third pixel, the 6th pixel, the 7th pixel with
And the pixel value of the pixel of the center of the target pixel points, it is averaged the pixel value as the third pixel
Value;
4th pixel average is the target pixel points and adjacent the 5th pixel, the 7th pixel and the 8th picture
The pixel average of vegetarian refreshments and the target pixel points.
First acquisition module includes:
4th reading submodule reads and is located at the 5th pixel, the 7th pixel, the 8th pixel and institute
The pixel value for stating the pixel of the center of target pixel points, using the pixel value as the 4th pixel average.
8. mobile terminal according to claim 7, which is characterized in that second acquisition module includes:
First computational submodule, for calculate first pixel average, the second pixel average, third pixel average with
And the 4th the sum of pixel average;
Second computational submodule, for multiplying the corresponding weighted value of the target pixel points and the sum of each pixel average
Product is used as the corresponding Gauss result of target pixel points.
9. a kind of mobile terminal, which is characterized in that including processor, memory and be stored on the memory and can be described
The computer program run on processor is realized when the computer program is executed by the processor as in Claims 1-4
The step of any one of them gaussian filtering method.
10. a kind of computer readable storage medium, which is characterized in that store computer journey on the computer readable storage medium
Sequence, the computer program realize gaussian filtering method according to any one of claims 1 to 4 when being executed by processor
Step.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711375981.8A CN108280816B (en) | 2017-12-19 | 2017-12-19 | Gaussian filtering method and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711375981.8A CN108280816B (en) | 2017-12-19 | 2017-12-19 | Gaussian filtering method and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108280816A true CN108280816A (en) | 2018-07-13 |
CN108280816B CN108280816B (en) | 2020-09-18 |
Family
ID=62801843
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711375981.8A Active CN108280816B (en) | 2017-12-19 | 2017-12-19 | Gaussian filtering method and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108280816B (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101464998A (en) * | 2009-01-15 | 2009-06-24 | 浙江大学 | Non-gauss veins noise smooth filtering method for textile industry |
CN104103041A (en) * | 2013-12-24 | 2014-10-15 | 北京华科创智健康科技股份有限公司 | Ultrasonic image mixed noise self-adaptive suppression method |
CN104166991A (en) * | 2014-07-28 | 2014-11-26 | 西安电子科技大学 | Level set image segmentation method based on self-adaptive parameter |
CN104992419A (en) * | 2015-07-08 | 2015-10-21 | 北京大学深圳研究生院 | Super pixel Gaussian filtering pre-processing method based on JND factor |
US20160148358A1 (en) * | 2014-11-24 | 2016-05-26 | Electronics And Telecommunications Research Institute | Apparatus and method for gaussian filtering |
CN107146231A (en) * | 2017-05-04 | 2017-09-08 | 季鑫 | Retinal image bleeding area segmentation method and device and computing equipment |
-
2017
- 2017-12-19 CN CN201711375981.8A patent/CN108280816B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101464998A (en) * | 2009-01-15 | 2009-06-24 | 浙江大学 | Non-gauss veins noise smooth filtering method for textile industry |
CN104103041A (en) * | 2013-12-24 | 2014-10-15 | 北京华科创智健康科技股份有限公司 | Ultrasonic image mixed noise self-adaptive suppression method |
CN104166991A (en) * | 2014-07-28 | 2014-11-26 | 西安电子科技大学 | Level set image segmentation method based on self-adaptive parameter |
US20160148358A1 (en) * | 2014-11-24 | 2016-05-26 | Electronics And Telecommunications Research Institute | Apparatus and method for gaussian filtering |
CN104992419A (en) * | 2015-07-08 | 2015-10-21 | 北京大学深圳研究生院 | Super pixel Gaussian filtering pre-processing method based on JND factor |
CN107146231A (en) * | 2017-05-04 | 2017-09-08 | 季鑫 | Retinal image bleeding area segmentation method and device and computing equipment |
Also Published As
Publication number | Publication date |
---|---|
CN108280816B (en) | 2020-09-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109451349A (en) | A kind of video broadcasting method, device and mobile terminal | |
CN107566748A (en) | A kind of image processing method, mobile terminal and computer-readable recording medium | |
CN108803963A (en) | A kind of screenshotss method and mobile terminal | |
CN108492246A (en) | A kind of image processing method, device and mobile terminal | |
CN108320263A (en) | A kind of method, device and mobile terminal of image procossing | |
CN107682639B (en) | A kind of image processing method, device and mobile terminal | |
CN108307109A (en) | A kind of high dynamic range images method for previewing and terminal device | |
CN108459815A (en) | A kind of display control method and mobile terminal | |
CN107845057A (en) | One kind is taken pictures method for previewing and mobile terminal | |
CN107895352A (en) | A kind of image processing method and mobile terminal | |
CN108093306A (en) | A kind of barrage display methods and mobile terminal | |
CN108111678A (en) | A kind of information cuing method and mobile terminal | |
CN110213485A (en) | A kind of image processing method and terminal | |
CN107749046A (en) | A kind of image processing method and mobile terminal | |
CN109788402A (en) | A kind of acoustic signal processing method and audio signal processor | |
CN107845074A (en) | A kind of image rendering method and mobile terminal | |
CN108307110A (en) | A kind of image weakening method and mobile terminal | |
CN109671034A (en) | A kind of image processing method and terminal device | |
CN109104578A (en) | A kind of image processing method and mobile terminal | |
CN109005355A (en) | A kind of image pickup method and mobile terminal | |
CN108509141A (en) | A kind of generation method and mobile terminal of control | |
CN108632535A (en) | A kind of image processing method and mobile terminal | |
CN109949809A (en) | A kind of sound control method and terminal device | |
CN108259808A (en) | A kind of video frame compression method and mobile terminal | |
CN108536513A (en) | A kind of picture display direction method of adjustment and mobile terminal |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |