CN105989575A - Image fuzzy processing method and device - Google Patents
Image fuzzy processing method and device Download PDFInfo
- Publication number
- CN105989575A CN105989575A CN201510092763.8A CN201510092763A CN105989575A CN 105989575 A CN105989575 A CN 105989575A CN 201510092763 A CN201510092763 A CN 201510092763A CN 105989575 A CN105989575 A CN 105989575A
- Authority
- CN
- China
- Prior art keywords
- subimage
- cutting
- original image
- blur
- design sketch
- 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
Abstract
The embodiment of the invention discloses an image fuzzy processing method and device, which are used for finishing fuzzy processing of an image to enable the image to achieve an effect of frosted glass. The method of the embodiment of the invention comprises the steps of cutting an original image, and generating at least two sub images after cutting; performing image fuzzy processing on the at least two sub images after cutting, and respectively obtaining fuzzy effect pictures corresponding to various sub images; and displaying the fuzzy effect pictures corresponding to the various sub images according to the sequence of cutting the original image and generating the various sub images.
Description
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of image blurring treating method and apparatus.
Background technology
Currently in order to image realizes clouded glass effect, need image is carried out image blurring process, at figure
As, in the implementation strategy of Fuzzy Processing, present in prior art, a kind of image blurring processing method is for using
One fixing broad image, as template, stacks this template on the original image, so that original image
Clouded glass effect can be presented.But the image template of superposition can increase image for original image
Size, this is accomplished by taking more memory headroom, if carry out compression of images in the displaying stage simultaneously
Words, also result in the display delay showing image, Presence of an interface display performance defect.
Present in prior art, another kind of image blurring processing method is to use the image of a kind of equivalent specifications
Replace original image, thus reach to imitate clouded glass effect.This method is applicable to picture material change
Multiple the least images, directly replace original image and are made without Fuzzy Processing, but if image is
Dynamic download or generation, then picture material is impossible to immobilize, the same rule directly replaced
Table images just cannot realize the clouded glass effect to original image and imitate, in being in this way only applicable to
Hold the image being basically unchanged.
Summary of the invention
Embodiments provide a kind of image blurring treating method and apparatus, be used for image
Fuzzy Processing, makes image realize clouded glass effect.
For solving above-mentioned technical problem, embodiment of the present invention offer techniques below scheme:
First aspect, the embodiment of the present invention provides a kind of image blurring processing method, including:
Original image is cut, generates at least two subimage after cutting;
At least two subimage after described cutting is carried out image blurring process, respectively obtains corresponding to respectively
The blur effect figure of individual subimage;
Show described corresponding to each according to the order that described original image is carried out cutting each subimage of generation
The blur effect figure of individual subimage.
Second aspect, the embodiment of the present invention also provides for a kind of image blurring processing means, including:
Cutting module, for cutting original image, generates at least two subimage after cutting;
Fuzzy Processing module, at least two subimage after described cutting is carried out image blurring process,
Respectively obtain the blur effect figure corresponding to each subimage;
Display module, for showing according to the order that described original image carries out cutting each subimage of generation
Show the described blur effect figure corresponding to each subimage.
As can be seen from the above technical solutions, the embodiment of the present invention has the advantage that
In embodiments of the present invention, first original image is cut, generate at least two after cutting
Subimage, then carries out image blurring process at least two subimage after cutting, respectively obtains correspondence
In the blur effect figure of each subimage, finally according to original image being carried out cutting each subimage of generation
Order show the blur effect figure corresponding to each subimage.Owing to original image is cut at least two
Individual subimage, it is possible to directly the subimage after cutting is carried out respectively image blurring process, and without
Obscuring original image, multiple subimages that cutting generates can be carried out flexibly according to actual needs again
Image blurring process, can realize making full use of, finally for device resource idle in terminal unit
Can show according to the order of spanning subgraph picture during display, so the cutting of original image does not interferes with yet
To finally showing result.Owing to need not original image superposition template or directly replacing original image,
Therefore it is not result in the increase in image committed memory space, it is also possible to it is applicable to the image of dynamic download.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, in embodiment being described below
The required accompanying drawing used is briefly described, it should be apparent that, the accompanying drawing in describing below is only this
Some embodiments of invention, to those skilled in the art, it is also possible to obtain according to these accompanying drawings
Other accompanying drawing.
The process blocks schematic diagram of a kind of image blurring processing method that Fig. 1 provides for the embodiment of the present invention;
A kind of implementation that original image is cut signal that Fig. 2-a provides for the embodiment of the present invention
Figure;
The ordering relation schematic diagram of the convolution matrix instruction that Fig. 2-b provides for the embodiment of the present invention;
Fig. 2-c provide for the embodiment of the present invention 5 × 5 convolution matrix schematic diagram;
Fig. 2-d provide for the embodiment of the present invention 6 × 6 convolution matrix schematic diagram;
The schematic diagram that the first lap to convolution matrix that Fig. 2-e provides for the embodiment of the present invention is numbered;
The schematic diagram that the second circle to convolution matrix that Fig. 2-f provides for the embodiment of the present invention is numbered;
Fig. 2-g is the Fuzzy Processing schematic flow sheet in the embodiment of the present invention to original image;
The composition structural representation of a kind of image blurring processing means that Fig. 3-a provides for the embodiment of the present invention;
The composition structural representation of a kind of cutting module that Fig. 3-b provides for the embodiment of the present invention;
The composition structural representation of a kind of Fuzzy Processing module that Fig. 3-c provides for the embodiment of the present invention;
The composition structural representation of the another kind of Fuzzy Processing module that Fig. 3-d provides for the embodiment of the present invention;
The composition structure that Fig. 4 is applied to terminal for the image blurring processing method that the embodiment of the present invention provides is shown
It is intended to.
Detailed description of the invention
Embodiments provide a kind of image blurring treating method and apparatus, be used for image
Fuzzy Processing, makes image realize clouded glass effect.
For making the goal of the invention of the present invention, feature, the advantage can be the most obvious and understandable, below will
In conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Ground describes, it is clear that the embodiments described below are only a part of embodiment of the present invention, and not all
Embodiment.Based on the embodiment in the present invention, the every other enforcement that those skilled in the art is obtained
Example, broadly falls into the scope of protection of the invention.
Term in description and claims of this specification and above-mentioned accompanying drawing " includes " and " having "
And their any deformation, it is intended that cover non-exclusive comprising, in order to comprise a series of unit
Process, method, system, product or equipment are not necessarily limited to those unit, but can include the most clearly
That list or for intrinsic other unit of these processes, method, product or equipment.
It is described in detail individually below.
One embodiment of processing method that the present invention is image blurring, it is right specifically to can apply in terminal unit
During the realization of image display clouded glass effect, referring to shown in Fig. 1, one embodiment of the invention carries
The image blurring processing method of confession, may include steps of:
101, original image is cut, generate at least two subimage after cutting.
In embodiments of the present invention, need during original image is enter into terminal unit to carry out Fuzzy Processing
Image, the picture format of this original image can set according to concrete application scenarios.Such as, at android
It is former that the image that in system, in advance drawing program (onPreDraw) exports is defined in the embodiment of the present invention
Beginning image.After getting original image, first original image is cut, an original image is cut
Being segmented at least two subimage, each subimage constitutes the subset of original image, cuts original image
Cut and generate the order of each subimage to be the generation of each subimage when original image is cut successively the most suitable
Sequence.
In some embodiments of the invention, before cutting original image, the embodiment of the present invention carries
The image blurring processing method of confession can also comprise the steps: the original image for needing Fuzzy Processing
Carrying out size amendment, such as, the general size of usual image is fixing, for picture size is not
Standard-sized, the API that can call Android system carries out uniform sizes amendment, to ensure that needs are cut
The size of the original image cut is all to cut according to fixed dimension.
It should be noted that in embodiments of the present invention, getting original image needs to carry out Fuzzy Processing,
But it is not directly original image to be carried out Fuzzy Processing after getting original image, but first enters
Row cutting, an original image is cut at least two subimage, can be such as two or three,
Or four subimages, such as, refer to as shown in Fig. 2-a, for the embodiment of the present invention provide to original graph
As carrying out a kind of implementation schematic diagram cut, one of them original image is cut into multiple subgraphs
Picture, it is possible to each subimage is carried out serial number 1,2,3,4 ..., in order to accurate recording each
The genesis sequence of subimage.The number of sub-images specifically cut out can in conjunction with concrete application scenarios and
The cutting mode used determines, is illustrated the most respectively.
In some embodiments of the invention, original image is cut by step 101, after being cut
At least two subimage, specifically may include steps of:
101 ', according to the ordering relation of convolution matrix instruction, original image is cut successively, and preserve
At least two subimage generated after cutting.
Wherein, convolution matrix also referred to as circles round character matrix, and in convolution matrix, the order of each element is pressed
It is incremented by successively according to from outer ring to inner ring spiral, refers to as shown in Fig. 2-b, provide for the embodiment of the present invention
The ordering relation schematic diagram of convolution matrix instruction, wherein, after original image is cut, can be according to
In Fig. 2-b, the ordering relation of instruction sequentially generates multiple subimage.This order according to convolution matrix instruction
Original image can be cut by relation successively, can be obtained by multiple subimages after having cut, its
During the matrix size difference of middle convolution matrix, the number of the subimage that cutting obtains is the most different, concrete,
Step 101 ' specifically can further comprise the steps:
A1, according to convolution matrix matrix size original image is cut into and matrix size same number
Multiple subimages;
A2, according to the position inteerelated order of each element in convolution matrix, multiple subimages are numbered respectively.
Wherein, for step A1, the matrix size of convolution matrix directly determines the subimage being cut to
Number, the subimage number that i.e. original image is cut to needs identical with the matrix size holding of convolution matrix,
Such as, refer to shown in Fig. 2-c, the convolution matrix schematic diagram of 5 × 5 provided for the embodiment of the present invention,
Int i=5, the ordering relation of this convolution matrix instruction of 5 × 5 is to illustrate according to the circle shown in Fig. 2-c,
And for example, refer to shown in Fig. 2-d, the convolution matrix schematic diagram of 6 × 6 provided for the embodiment of the present invention,
Int i=6, the ordering relation of this convolution matrix instruction of 6 × 6 is to illustrate according to the circle shown in Fig. 2-d.
Original image is cut into multiple subimages of matrix size same number after, perform step A2 according to
In convolution matrix, multiple subimages are numbered by the position inteerelated order of each element respectively, in, circle round matrix
In the position inteerelated order of each element refer to according in convolution matrix instruction from outer ring to inner ring spiral successively
The sequence of positions of each element place ranks in the order being incremented by rather than convolution matrix.
Following cutting as a example by the convolution matrix of 6 × 6 to original image illustrates, according to convolution square
The matrix size 6 × 6 of battle array understands, and original image can be cut into 36 subimages, after being cut
Subimage number be 36 pieces.The number order of each subimage can be by following convolution algorithm model
Get.
1, matrix decomposition of this being circled round is circle one by one, refers to shown in Fig. 2-d, and 1-20 can see
Becoming a circle, 21-32 is a circle, and 33-36 is also a circle.
2, after convolution matrix is divided into 3 circles, more each circle is decomposed into four impartial ordered series of numbers.Please
Refering to shown in Fig. 2-e, the signal that the first lap to convolution matrix provided for the embodiment of the present invention is numbered
Figure, 1,2,3,4,5 is an ordered series of numbers, and 6,7,8,9,10 is an ordered series of numbers, 11,12,13,
14,15 is an ordered series of numbers, and 16,17,18,19,20 is an ordered series of numbers.
3, the numbering exporting each subimage can realize with a two-dimensional array storage matrix, the record number of turns,
When the numeral that the ordered series of numbers length of front ring, He Gequan start counting up.Such as i represents the convolution matrix of n*n,
Also being elongated size, current i=6, ordered series of numbers a length of 5 during the 1st circle, the numeral started counting up is the 0, the 2nd
Number of turns row a length of 3, the numeral started counting up is 20;Go out from these regularity summarizations, it is known that elongated for i, vacation
If the current number of turns is count, calculating is from the beginning of 0, and the 1st circle count value is 0, the 2nd circle count
Value is 1, then the long step=i-1-count*2 of ordered series of numbers, refers to, shown in Fig. 2-f, carry for the embodiment of the present invention
The schematic diagram that second circle to convolution matrix of confession is numbered, first numbered 21 of the 2nd circle, the
The long step=6-1-1*2=3 of row of 2 circles.
In convolution model algorithm as exemplified above, can there is general code segment to represent logic, respectively
Use 1,2,3,4 represent right, under, these four ordered series of numbers left, upper, concrete, it is also possible to perform
Following algorithm, naturally it is also possible to make corresponding conversion according to actual application scenarios according to following algorithm,
The present invention does not limits.
102, at least two subimage after cutting is carried out image blurring process, respectively obtain corresponding to respectively
The blur effect figure of individual subimage.
In embodiments of the present invention, after original image cutting is obtained at least two subimage, to cutting
After at least two subimage carry out image blurring process respectively, it is possible to flexibly at least two son
Image carries out image blurring process respectively, respectively obtains the blur effect figure corresponding to each subimage, mould
Stick with paste design sketch and refer to subimage according to the blur effect generated after image blurring process.Wherein to image
The various ways of Fuzzy Processing can be used separately as each subgraph in all subimages that segmentation obtains
Picture, each subimage can obtain the blur effect figure corresponding to this subimage through image blurring process.
Each subimage is carried out image blurring process time can be according to each subimage original image before cutting
In position select concrete fuzzy algorithmic approach, for instance in non-edge subimage can be in edge
Subimage use different fuzzy algorithmic approach, use different moulds for being in the subimage of bottom and upper segment
Stick with paste algorithm.
It should be noted that in embodiments of the present invention, owing to original image is cut at least two
Image, it is possible to directly the subimage after cutting is carried out image blurring process respectively, and without the most right
Original image obscures, and multiple subimages that cutting generates can carry out image flexibly according to actual needs
Fuzzy Processing, can realize making full use of for device resource idle in terminal unit, and such as terminal sets
It is right that central processing unit (Central Processing Unit, CPU) idle in Bei and internal memory may be used to
The image blurring process of each subimage, in the case of the operating system configuration of terminal unit is higher, terminal
Device resource in equipment may also refer to graphic process unit (Graphic Processing Unit, GPU),
The image blurring process to each subimage is can be used for by GPU.
In some embodiments of the invention, step 102 carries out figure at least two subimage after cutting
As Fuzzy Processing, respectively obtain the blur effect figure corresponding to each subimage, specifically can include as follows
Step:
B1, to cutting after at least two subimage parallel carry out Gaussian Blur process, it is right to respectively obtain
Should be in the Gaussian Blur design sketch of each subimage.
Wherein, a kind of attainable mode is that each subimage carries out Gaussian Blur process, and respectively
It is also parallel processing that individual subimage carry out Gaussian Blur to process, and the most each subimage was carrying out Gaussian mode
After paste processes, a Gaussian Blur design sketch, wherein, obscuring described in step 102 can be obtained
Design sketch just can be specially Gaussian Blur design sketch.Owing to an original image has been cut into multiple
Subimage, the Fuzzy Processing of each subimage can be carried out simultaneously, to the equipment in terminal unit
Resource utilization is higher, it is to avoid the idle waste of device resource in terminal unit.
It should be noted that Gaussian Blur design sketch is by each subimage carries out Gaussian Blur respectively
Generating, Gaussian Blur processes can be to use conventional image Gaussian Blur mode, in Gaussian Blur processes,
Can be to each as the meansigma methods of the picture rope value taking peripheral image rope point as rope value of rope point, numerically
This is the mode of a kind of smoothing techniques, is equivalent to create blur effect, intermediate pixel on image
Point loses details.During so calculating the meansigma methods of the pixel value of intermediary image vegetarian refreshments, span (i.e. periphery
The value of the number of pixel) the biggest, blur effect is the strongest.
Illustrate, use Android system with terminal unit, carried by Android system
RenderScript interface can carry out Gaussian Blur process to subimage, and RenderScript interface processes Gauss
Blurred picture is the most efficient, and can make full use of the resource of terminal unit.It should be noted that
The only version more than android2.2 system just supports RenderScript interface, in the embodiment of the present invention
The version of more than android2.2 system can not also be used, only do not used by RenderScript interface
The CPU of terminal unit and internal memory carry out the process of Gaussian Blur algorithm, so the present invention can be reasonable
It is to adapt to any equipment and system, and easily extends.
In other embodiments of the present invention, at least two subimage after cutting is carried out by step 102
Image blurring process, respectively obtains the blur effect figure corresponding to each subimage, specifically can include as
Lower step:
C1, to cutting after at least two image parallel carry out Gaussian Blur process;
If C2 has had subimage to generate Gaussian Blur design sketch, to not yet generating Gaussian Blur effect
The subimage of figure carries out stretch processing or overlap-add procedure, generates the fuzzy design sketch of stretching or superposition obscures
Design sketch.
It is to say, in embodiments of the present invention, the multiple subimages obtained after cutting in step C1 are parallel
Carry out Gaussian Blur process, but during calculating, need the cost time, if cutting generates many
The time of output result that height is image blurring is the most different, in order to the most fault-tolerant, does not allow whole image show
Show inconsistent, perform step C2, can be when the subimage having the most export Gaussian Blur design sketch pair
These subimages not yet exporting Gaussian Blur design sketch perform stretch processing or overlap-add procedure, to ensure
The blur effect figure generated can show on the screen of terminal unit simultaneously.Wherein, to subimage
Stretching refer to the length to subimage or width stretches, thus complete the Fast Modular to subimage
Paste processes, and the superposition to subimage refers to superimposed image template on subimage, thus completes subgraph
The Fast Fuzzy of picture processes.In the most aforementioned citing, by convolution matrix, original image is cut into 36
Subimage, parallel carries out Gaussian Blur process to these 36 subimages, if wherein there being 10 subimages
Carry out Gaussian Blur to process faster, when there being 10 subimages to export Gaussian Blur design sketch, also
There are 26 subimages not export Gaussian Blur design sketch, now these 26 subimages can be drawn
Stretch process or overlap-add procedure, obtain 26 stretchings corresponding to subimage and obscure design sketch or superposition and obscure
Design sketch.The present invention description by such scheme, said method can make full use of idle end
, there is cpu and gpu in end device resource in terminal unit, in the case of equipment allows, uses android
It is the most efficient for carry RenderScript interface carrying out Gaussian Blur picture, and can make full use of mobile phone and set
Standby resource.The present invention can realize the optimization on mapping strategies.It is above-mentioned when carrying out clouded glass bandwagon effect,
It is not that the subimage of the most all segmentations all completes the most all to show after Gaussian Blur processes, but directly
Connect output and be complete the Gaussian Blur design sketch that Gaussian Blur processes, for being not fully complete the son of Gaussian Blur
Image can reach fuzzy purpose by stretching and overlap-add procedure.The most just combine existing superposition
Process and the method for system-computed reaches efficient clouded glass bandwagon effect.
In other embodiments of the present invention, at least two subimage after cutting, including: the first son
Image and the second subimage.Step 102 carries out image blurring process at least two subimage after cutting,
Respectively obtain the blur effect figure corresponding to each subimage, specifically may include steps of:
D1, the first subimage is carried out Gaussian Blur process, obtain the Gaussian mode corresponding to the first subimage
Stick with paste design sketch;
D2, the second subimage is carried out stretch processing or overlap-add procedure, obtain corresponding to the second subimage
Stretching obscure design sketch or superposition blur effect figure.
It is to say, the embodiment of the present invention is after generating multiple subimages, multiple subimages can be carried out
Classification, is divided into two classes: the first subimage and the second subimage, and performs different to this two classes subimage
Image blurring process strategy, wherein, sets forth in step D1 and step D2 and adopts the first subimage
Process with Gaussian Blur, the second subimage is used stretch processing or overlap-add procedure, similar, also may be used
To use Gaussian Blur to process the second subimage, the first subimage is used at stretch processing or superposition
Reason, does not limits.By each subimage being performed different image blurring process strategies, permissible
Realize the flexible Fuzzy Processing to original image, the device resource in terminal unit can be realized comprehensive profit
With, it is particularly possible to use device resource idle in equipment.
103, show corresponding to each height according to the order that original image is carried out cutting each subimage of generation
The blur effect figure of image.
In embodiments of the present invention, after getting corresponding to the blur effect figure of each subimage, according to
Step 101 is cut original image generate the order of each subimage and show each blur effect figure obtained,
The generation that wherein cutting original image generates when the order of each subimage can be to generate each subimage is suitable
Sequence, the order that cutting original image generates each subimage is relevant with the method that cutting uses, such as, cut
Original image generates the ordering relation that the order of each subimage can be convolution matrix instruction, it is also possible to be
To according to the association order of each element number order to each subimage in convolution matrix.Additionally show
Blur effect figure corresponding to each subimage can be that display is arrived in output on the display interface of terminal unit
Show on screen.
In some embodiments of the invention, perform step B1 realize under scene, step 103 according to
The order that original image carries out cutting each subimage of generation shows the fuzzy effect corresponding to each subimage
Fruit figure, including:
Show corresponding to each subimage according to the order that original image is carried out cutting each subimage of generation
Gaussian Blur design sketch.
It is to say, the blur effect figure generated in step 102 refers specifically to Gauss design sketch.
In some embodiments of the invention, realize under scene perform step C1 and C2, step 103
The mould corresponding to each subimage is shown according to the order that original image is carried out cutting each subimage of generation
Stick with paste design sketch, including:
Show corresponding to each subimage according to the order that original image is carried out cutting each subimage of generation
Gaussian Blur design sketch or the fuzzy design sketch of stretching or superposition blur effect figure.
It is to say, the blur effect figure generated in step 102 refers specifically to Gauss design sketch or draws
Stretch blur effect figure or superposition blur effect figure.
In some embodiments of the invention, realize under scene perform step D1 and D2, step 103
The mould corresponding to each subimage is shown according to the order that original image is carried out cutting each subimage of generation
Stick with paste design sketch, including:
Show corresponding to the first subimage according to the order that original image is carried out cutting each subimage of generation
Gaussian Blur design sketch, and obscure design sketch corresponding to the stretching of the second subimage or superposition obscures
Design sketch.
It is to say, the blur effect figure generated in step 102 refers specifically to Gauss design sketch or draws
Stretch blur effect figure or superposition blur effect figure.
Illustrate, the embodiment of the present invention shows in step 103 the fuzzy effect corresponding to each subimage
Really figure can be realized by drawing program (onDraw) in Android system, refers to as shown in Fig. 2-g,
For Fuzzy Processing schematic flow sheet to original image in the embodiment of the present invention, wherein first listen to android
OnPreDraw in system, gets original image, then carries out cutting original image, generates at least two
Individual subimage, the cut subimage in preservation subimage to the internal memory list oneself set up, in internal memory
Processed by Gaussian Blur, then onDraw is arrived in output.
It should be noted that onPreDraw and onDraw is the function that Android system provides, as
External users have only to monitor and heavy duty two functions the most permissible, as described above during can use
False code as follows:
By the above example description to the embodiment of the present invention, first original image is cut,
Generate at least two subimage after cutting, then at least two subimage after cutting is carried out image mould
Paste processes, and respectively obtains the blur effect figure corresponding to each subimage, finally enters according to original image
Row cutting generates the order of each subimage and shows the blur effect figure corresponding to each subimage.Due to former
Beginning image is cut at least two subimage, it is possible to directly carry out the subimage after cutting respectively
Image blurring process, and without obscuring original image, multiple subimages that cutting generates can root again
The most image blurring process is carried out according to being actually needed, permissible for device resource idle in terminal unit
Realization makes full use of, and can show according to the order of spanning subgraph picture when last display, thus original
The cutting of image does not interferes with yet and finally shows result.Owing to need not original image superposition template or
Person directly replaces original image, therefore is not result in the increase in image committed memory space, it is also possible to be applicable to
The image of dynamic download.
It should be noted that for aforesaid each method embodiment, in order to be briefly described, therefore by its all table
Stating as a series of combination of actions, but those skilled in the art should know, the present invention is by being retouched
The restriction of the sequence of movement stated because according to the present invention, some step can use other orders or
Carry out simultaneously.Secondly, those skilled in the art also should know, embodiment described in this description
Belong to preferred embodiment, necessary to involved action and the module not necessarily present invention.
For ease of preferably implementing the such scheme of the embodiment of the present invention, it is also provided below for implementing
State the relevant apparatus of scheme.
Refer to shown in Fig. 3-a, the image blurring processing means of one 300 that the embodiment of the present invention provides, can
To include: cutting module 301, Fuzzy Processing module 302, display module 303, wherein,
Cutting module 301, for cutting original image, generates at least two subimage after cutting;
Fuzzy Processing module 302, for carrying out image blurring place at least two subimage after described cutting
Reason, respectively obtains the blur effect figure corresponding to each subimage;
Display module 303, for according to the order that described original image carries out cutting each subimage of generation
The described blur effect figure corresponding to each subimage of display.
In some embodiments of the invention, described cutting module 301, specifically for referring to according to convolution matrix
Described original image is cut by ordering relation successively that show, and preserves at least two generated after cutting
Subimage.
Further, refer to as shown in Fig. 3-b, described cutting module 301, including:
Cutting submodule 3011, for being cut into described original image according to the matrix size of convolution matrix
Multiple subimages with described matrix size same number;
Numbering submodule 3012, is used for according to the position inteerelated order of each element in convolution matrix the plurality of
Subimage is numbered respectively.
In some embodiments of the invention, described Fuzzy Processing module 302, specifically for described cutting
After at least two subimage parallel carry out Gaussian Blur process, respectively obtain corresponding to each subimage
Gaussian Blur design sketch;
Described display module 303, specifically for according to described original image carries out cutting each subgraph of generation
The order of picture shows the described Gaussian Blur design sketch corresponding to each subimage.
In some embodiments of the invention, refer to as shown in Fig. 3-c, described Fuzzy Processing module 302,
Including:
First processes submodule 3021, for carry out parallel at least two subimage after described cutting
Gaussian Blur processes;
Second processes submodule 3022, if for there being subimage to generate Gaussian Blur design sketch, right
The subimage not yet generating Gaussian Blur design sketch carries out stretch processing or overlap-add procedure, generates stretching die
Stick with paste design sketch or superposition blur effect figure;
Described display module 303, specifically for according to described original image carries out cutting each subgraph of generation
The order of picture show the described Gaussian Blur design sketch corresponding to each subimage or the fuzzy design sketch of stretching,
Or superposition blur effect figure.
In some embodiments of the invention, at least two subimage after described cutting, including: first
Subimage and the second subimage;
Refer to as shown in Fig. 3-d, described Fuzzy Processing module 302, including:
3rd processes submodule 3023, for described first subimage is carried out Gaussian Blur process, obtains
Gaussian Blur design sketch corresponding to described first subimage;
Fourth process submodule 3024, for carrying out at stretch processing or superposition described second subimage
Reason, obtains obscuring design sketch or superposition blur effect figure corresponding to the stretching of described second subimage;
Described display module 303, specifically for according to described original image carries out cutting each subgraph of generation
The order of picture shows the described Gaussian Blur design sketch corresponding to described first subimage, and corresponding to described
The stretching of the second subimage obscures design sketch or superposition blur effect figure.
By the above description to the embodiment of the present invention, original image is cut by first cutting module
Cutting, generate at least two subimage after cutting, then Fuzzy Processing module is at least two after cutting
Subimage carries out image blurring process, respectively obtains the blur effect figure corresponding to each subimage, finally
Display module shows corresponding to each height according to the order that original image carries out cutting each subimage of generation
The blur effect figure of image.Owing to original image is cut at least two subimage, it is possible to directly
Subimage after cutting is carried out image blurring process respectively, and without again original image being obscured,
Multiple subimages that cutting generates can carry out the most image blurring process, according to actual needs for terminal
Device resource idle in equipment can realize making full use of, can be according to spanning subgraph picture when last display
Order show, so the cutting of original image does not interferes with yet finally shows result.Due to not
Need original image superposition template or directly replace original image, therefore being not result in image committed memory
The increase in space, it is also possible to be applicable to the image of dynamic download.
The embodiment of the present invention additionally provides a kind of terminal, as shown in Figure 4, for convenience of description, only illustrates
The part relevant to the embodiment of the present invention, concrete ins and outs do not disclose, and refer to the present invention and implement
Example method part.This terminal can be to include mobile phone, panel computer, PDA (Personal Digital
Assistant, personal digital assistant), POS (Point of Sales, point-of-sale terminal), vehicle-mounted computer etc. appoint
Meaning terminal unit, as a example by terminal is as mobile phone:
Fig. 4 is illustrated that the block diagram of the part-structure of the mobile phone relevant to the terminal of embodiment of the present invention offer.
With reference to Fig. 4, mobile phone includes: radio frequency (Radio Frequency, RF) circuit 410, memorizer 420,
Input block 430, display unit 440, sensor 450, voicefrequency circuit 460, Wireless Fidelity (wireless
Fidelity, WiFi) module 470, the parts such as processor 480 and power supply 490.People in the art
Member is appreciated that the handset structure shown in Fig. 4 is not intended that the restriction to mobile phone, can include than figure
Show more or less of parts, or combine some parts, or different parts are arranged.
Below in conjunction with Fig. 4 each component parts of mobile phone carried out concrete introduction:
RF circuit 410 can be used for receiving and sending messages or in communication process, the reception of signal and transmission, especially,
After the downlink information of base station is received, process to processor 480;It addition, send out designing up data
Give base station.Generally, RF circuit 410 includes but not limited to antenna, at least one amplifier, transmitting-receiving letter
Machine, bonder, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..Additionally,
RF circuit 410 can also be communicated with network and other equipment by radio communication.Above-mentioned radio communication is permissible
Use arbitrary communication standard or agreement, include but not limited to global system for mobile communications (Global System
Of Mobile communication, GSM), general packet radio service (General Packet Radio
Service, GPRS), CDMA (Code Division Multiple Access, CDMA), broadband
CDMA (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution
(Long Term Evolution, LTE), Email, Short Message Service (Short Messaging Service,
SMS) etc..
Memorizer 420 can be used for storing software program and module, and processor 480 is stored in by operation
The software program of memorizer 420 and module, thus perform at the application of various functions and the data of mobile phone
Reason.Memorizer 420 can mainly include storing program area and storage data field, and wherein, storage program area can
Application program needed for storage operating system, at least one function (broadcast by such as sound-playing function, image
Playing function etc.) etc.;Storage data field can store data (the such as audio frequency that the use according to mobile phone is created
Data, phone directory etc.) etc..Additionally, memorizer 420 can include high-speed random access memory, also
Can include nonvolatile memory, for example, at least one disk memory, flush memory device or other
Volatile solid-state part.
Input block 430 can be used for receiving numeral or the character information of input, and produces the use with mobile phone
Family is arranged and function controls relevant key signals input.Specifically, input block 430 can include touch-control
Panel 431 and other input equipments 432.Contact panel 431, also referred to as touch screen, can collect user
Thereon or neighbouring touch operation (such as user uses any applicable object or attached such as finger, stylus
Part operation on contact panel 431 or near contact panel 431), and according to formula set in advance
Drive corresponding attachment means.Optionally, contact panel 431 can include touch detecting apparatus and touch control
Two parts of device processed.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation
The signal brought, transmits a signal to touch controller;Touch controller receives from touch detecting apparatus
Touch information, and it is converted into contact coordinate, then give processor 480, and processor 480 can be received
The order sent also is performed.Furthermore, it is possible to use resistance-type, condenser type, infrared ray and surface
The polytypes such as sound wave realize contact panel 431.Except contact panel 431, input block 430 is all right
Including other input equipments 432.Specifically, other input equipments 432 can include but not limited to secondary or physical bond
In dish, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc.
One or more.
Display unit 440 can be used for showing the information inputted by user or the information being supplied to user and hands
The various menus of machine.Display unit 440 can include display floater 441, optionally, can use liquid crystal
Show device (Liquid Crystal Display, LCD), Organic Light Emitting Diode (Organic Light-Emitting
Diode, OLED) etc. form configure display floater 441.Further, contact panel 431 can cover
Display floater 441, when contact panel 431 detects thereon or after neighbouring touch operation, sends place to
Reason device 480, to determine the type of touch event, is showing according to the type of touch event with preprocessor 480
Show and corresponding visual output is provided on panel 441.Although in the diagram, contact panel 431 and display surface
Plate 441 is to realize input and the input function of mobile phone as two independent parts, but real at some
Execute in example, can be by integrated to contact panel 431 and display floater 441 and realize input and the output of mobile phone
Function.
Mobile phone may also include at least one sensor 450, such as optical sensor, motion sensor and other
Sensor.Specifically, optical sensor can include ambient light sensor and proximity transducer, wherein, environment
Optical sensor can regulate the brightness of display floater 441 according to the light and shade of ambient light, and proximity transducer can
When mobile phone moves in one's ear, close display floater 441 and/or backlight.As the one of motion sensor,
Accelerometer sensor can detect the size of (generally three axles) acceleration in all directions, can examine time static
Measure size and the direction of gravity, can be used for identifying application (such as horizontal/vertical screen switching, the phase of mobile phone attitude
Close game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;Extremely
The gyroscope that can also configure in mobile phone, barometer, drimeter, thermometer, infrared ray sensor etc. other
Sensor, does not repeats them here.
Voicefrequency circuit 460, speaker 461, microphone 462 can provide the audio frequency between user and mobile phone to connect
Mouthful.The signal of telecommunication after the voice data conversion that voicefrequency circuit 460 can will receive, is transferred to speaker 461,
Acoustical signal output is converted to by speaker 461;On the other hand, the sound letter that microphone 462 will be collected
Number be converted to the signal of telecommunication, voicefrequency circuit 460 after receiving, be converted to voice data, then voice data is defeated
After going out processor 480 process, through RF circuit 410 to be sent to such as another mobile phone, or by audio frequency number
According to output to memorizer 420 to process further.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user to receive by WiFi module 470
Sending e-mails, browse webpage and access streaming video etc., it has provided the user wireless broadband interconnection
Net accesses.Although Fig. 4 shows WiFi module 470, but it is understood that, it is also not belonging to hands
Must be configured into of machine, can omit completely as required in not changing the scope of essence of invention.
Processor 480 is the control centre of mobile phone, utilizes each of various interface and the whole mobile phone of connection
Individual part, by running or perform to be stored in the software program in memorizer 420 and/or module, and adjusts
By the data being stored in memorizer 420, perform the various functions of mobile phone and process data, thus opponent
Machine carries out integral monitoring.Optionally, processor 480 can include one or more processing unit;Preferably,
Processor 480 can integrated application processor and modem processor, wherein, application processor is mainly located
Reason operating system, user interface and application program etc., modem processor mainly processes radio communication.
It is understood that above-mentioned modem processor can not also be integrated in processor 480.
Mobile phone also includes the power supply 490 (such as battery) powered to all parts, it is preferred that power supply is permissible
Logically contiguous with processor 480 by power-supply management system, thus realize management by power-supply management system
The functions such as charging, electric discharge and power managed.
Although not shown, mobile phone can also include photographic head, bluetooth module etc., does not repeats them here.
In embodiments of the present invention, the processor 480 included by this terminal also have control perform above by
The image blurring process flow that terminal performs.
Additionally it should be noted that, device embodiment described above is only schematically, wherein said
The unit illustrated as separating component can be or may not be physically separate, shows as unit
The parts shown can be or may not be physical location, i.e. may be located at a place, or also may be used
To be distributed on multiple NE.Some or all of mould therein can be selected according to the actual needs
Block realizes the purpose of the present embodiment scheme.It addition, in the device embodiment accompanying drawing of present invention offer, mould
Annexation between block represents have communication connection between them, specifically can be implemented as one or more
Communication bus or holding wire.Those of ordinary skill in the art are not in the case of paying creative work, i.e.
It is appreciated that and implements.
Through the above description of the embodiments, those skilled in the art is it can be understood that arrive this
Invention can add the mode of required common hardware by software and realize, naturally it is also possible to pass through specialized hardware
Realize including special IC, dedicated cpu, private memory, special components and parts etc..General feelings
Under condition, all functions completed by computer program can realize with corresponding hardware easily, and
And, the particular hardware structure being used for realizing same function can also be diversified, such as analog circuit,
Digital circuit or special circuit etc..But, the most more in the case of software program realize be more
Good embodiment.Based on such understanding, technical scheme is the most in other words to existing skill
The part that art contributes can embody with the form of software product, and this computer software product stores
In the storage medium that can read, such as the floppy disk of computer, USB flash disk, portable hard drive, read only memory (ROM,
Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic
Dish or CD etc., including some instructions with so that computer equipment (can be personal computer,
Server, or the network equipment etc.) perform the method described in each embodiment of the present invention.
In sum, above example only in order to technical scheme to be described, is not intended to limit;
Although being described in detail the present invention with reference to above-described embodiment, those of ordinary skill in the art should
Work as understanding: the technical scheme described in the various embodiments described above still can be modified by it, or to it
Middle part technical characteristic carries out equivalent;And these amendments or replacement, do not make appropriate technical solution
Essence depart from various embodiments of the present invention technical scheme spirit and scope.
Claims (12)
1. an image blurring processing method, it is characterised in that including:
Original image is cut, generates at least two subimage after cutting;
At least two subimage after described cutting is carried out image blurring process, respectively obtains corresponding to respectively
The blur effect figure of individual subimage;
Show described corresponding to each according to the order that described original image is carried out cutting each subimage of generation
The blur effect figure of individual subimage.
Method the most according to claim 1, it is characterised in that described original image is cut,
At least two subimage after being cut, including:
According to the ordering relation of convolution matrix instruction, described original image is cut successively, and preservation is cut
At least two subimage generated after cutting.
Method the most according to claim 2, it is characterised in that described according to matrix instruction of circling round
Described original image is cut by ordering relation successively, including:
Described original image is cut into identical with described matrix size by the matrix size according to convolution matrix
Multiple subimages of number;
According to the position inteerelated order of each element in convolution matrix, the plurality of subimage is numbered respectively.
The most according to the method in any one of claims 1 to 3, it is characterised in that described to described
At least two subimage after cutting carries out image blurring process, respectively obtains corresponding to each subimage
Blur effect figure, including:
To at least two subimage after described cutting parallel carry out Gaussian Blur process, it is right to respectively obtain
Should be in the Gaussian Blur design sketch of each subimage;
Described according to described original image is carried out cutting generate each subimage order show described correspondence
In the blur effect figure of each subimage, including:
Show described corresponding to each according to the order that described original image is carried out cutting each subimage of generation
The Gaussian Blur design sketch of individual subimage.
The most according to the method in any one of claims 1 to 3, it is characterised in that described to described
At least two subimage after cutting carries out image blurring process, respectively obtains corresponding to each subimage
Blur effect figure, including:
To at least two subimage after described cutting parallel carry out Gaussian Blur process;
If there being subimage to generate Gaussian Blur design sketch, to not yet generating Gaussian Blur design sketch
Subimage carries out stretch processing or overlap-add procedure, generates the fuzzy design sketch of stretching or superposition blur effect
Figure;
Described according to described original image is carried out cutting generate each subimage order show described correspondence
In the blur effect figure of each subimage, including:
Show described corresponding to each according to the order that described original image is carried out cutting each subimage of generation
Gaussian Blur design sketch or the stretching of individual subimage obscure design sketch or superposition blur effect figure.
The most according to the method in any one of claims 1 to 3, it is characterised in that after described cutting
At least two subimage, including the first subimage and the second subimage;
Described at least two subimage after described cutting is carried out image blurring process, respectively obtain correspondence
In the blur effect figure of each subimage, including:
Described first subimage is carried out Gaussian Blur process, obtains the height corresponding to described first subimage
This blur effect figure;
Described second subimage is carried out stretch processing or overlap-add procedure, obtains corresponding to described second son
The stretching of image obscures design sketch or superposition blur effect figure;
Described according to described original image is carried out cutting generate each subimage order show described correspondence
In the blur effect figure of each subimage, including:
Show described corresponding to institute according to the order that described original image is carried out cutting each subimage of generation
State the Gaussian Blur design sketch of the first subimage, and the stretching blur effect corresponding to described second subimage
Figure or superposition blur effect figure.
7. an image blurring processing means, it is characterised in that including:
Cutting module, for cutting original image, generates at least two subimage after cutting;
Fuzzy Processing module, at least two subimage after described cutting is carried out image blurring process,
Respectively obtain the blur effect figure corresponding to each subimage;
Display module, for showing according to the order that described original image carries out cutting each subimage of generation
Show the described blur effect figure corresponding to each subimage.
Device the most according to claim 7, it is characterised in that described cutting module, specifically for
According to the ordering relation of convolution matrix instruction, described original image is cut successively, and after preserving cutting
At least two subimage generated.
Device the most according to claim 8, it is characterised in that described cutting module, including:
Cutting submodule, for being cut into described original image and institute according to the matrix size of convolution matrix
State multiple subimages of matrix size same number;
Numbering submodule, is used for according to the position inteerelated order of each element in convolution matrix the plurality of subgraph
As being numbered respectively.
10. according to the device according to any one of claim 7 to 9, it is characterised in that described fuzzy
Processing module, specifically for parallel the carrying out at Gaussian Blur at least two subimage after described cutting
Reason, respectively obtains the Gaussian Blur design sketch corresponding to each subimage;
Described display module, specifically for according to described original image carries out cutting each subimage of generation
Order show the described Gaussian Blur design sketch corresponding to each subimage.
11. according to the device according to any one of claim 7 to 9, it is characterised in that described fuzzy
Processing module, including:
First process submodule, at least two subimage after described cutting parallel carry out Gauss
Fuzzy Processing;
Second processes submodule, if for having had subimage to generate Gaussian Blur design sketch, to not yet
The subimage generating Gaussian Blur design sketch carries out stretch processing or overlap-add procedure, generates the fuzzy effect of stretching
Fruit figure or superposition blur effect figure;
Described display module, specifically for according to described original image carries out cutting each subimage of generation
Order show the described Gaussian Blur design sketch corresponding to each subimage or the fuzzy design sketch of stretching,
Or superposition blur effect figure.
12. according to the device according to any one of claim 7 to 9, it is characterised in that described cutting
After at least two subimage, including the first subimage and the second subimage;
Described Fuzzy Processing module, including:
3rd processes submodule, for described first subimage is carried out Gaussian Blur process, obtains correspondence
Gaussian Blur design sketch in described first subimage;
Fourth process submodule, for described second subimage is carried out stretch processing or overlap-add procedure,
Obtain obscuring design sketch or superposition blur effect figure corresponding to the stretching of described second subimage;
Described display module, specifically for according to described original image carries out cutting each subimage of generation
Order show the described Gaussian Blur design sketch corresponding to described first subimage, with corresponding to described the
The stretching of two subimages obscures design sketch or superposition blur effect figure.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510092763.8A CN105989575B (en) | 2015-03-02 | 2015-03-02 | A kind of image fuzzy processing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510092763.8A CN105989575B (en) | 2015-03-02 | 2015-03-02 | A kind of image fuzzy processing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105989575A true CN105989575A (en) | 2016-10-05 |
CN105989575B CN105989575B (en) | 2019-08-30 |
Family
ID=57038061
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510092763.8A Active CN105989575B (en) | 2015-03-02 | 2015-03-02 | A kind of image fuzzy processing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105989575B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111050152A (en) * | 2019-12-30 | 2020-04-21 | 联想(北京)有限公司 | Image processing method, display device and electronic device |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101350098A (en) * | 2008-08-19 | 2009-01-21 | 黄建军 | Method, system and equipment for processing image |
CN101487694A (en) * | 2009-03-03 | 2009-07-22 | 北京微视新纪元科技有限公司 | Method and apparatus for processing image |
CN103810702A (en) * | 2014-01-17 | 2014-05-21 | 浙江大学 | Blocking noise variance estimation based image accumulation signal to noise ratio calculation method |
CN103914861A (en) * | 2013-01-08 | 2014-07-09 | 腾讯科技(武汉)有限公司 | Picture processing method and device |
CN104134198A (en) * | 2014-07-28 | 2014-11-05 | 厦门美图之家科技有限公司 | Method for carrying out local processing on image |
CN104200459A (en) * | 2014-08-04 | 2014-12-10 | 联想(北京)有限公司 | Information processing method and electronic device |
-
2015
- 2015-03-02 CN CN201510092763.8A patent/CN105989575B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101350098A (en) * | 2008-08-19 | 2009-01-21 | 黄建军 | Method, system and equipment for processing image |
CN101487694A (en) * | 2009-03-03 | 2009-07-22 | 北京微视新纪元科技有限公司 | Method and apparatus for processing image |
CN103914861A (en) * | 2013-01-08 | 2014-07-09 | 腾讯科技(武汉)有限公司 | Picture processing method and device |
CN103810702A (en) * | 2014-01-17 | 2014-05-21 | 浙江大学 | Blocking noise variance estimation based image accumulation signal to noise ratio calculation method |
CN104134198A (en) * | 2014-07-28 | 2014-11-05 | 厦门美图之家科技有限公司 | Method for carrying out local processing on image |
CN104200459A (en) * | 2014-08-04 | 2014-12-10 | 联想(北京)有限公司 | Information processing method and electronic device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111050152A (en) * | 2019-12-30 | 2020-04-21 | 联想(北京)有限公司 | Image processing method, display device and electronic device |
Also Published As
Publication number | Publication date |
---|---|
CN105989575B (en) | 2019-08-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103871051B (en) | Image processing method, device and electronic equipment | |
CN107948543A (en) | A kind of special video effect processing method and processing device | |
CN104134230A (en) | Image processing method, image processing device and computer equipment | |
CN105828068A (en) | Method and device for carrying out occlusion detection on camera and terminal device | |
CN104881844B (en) | Picture combination method and device and terminal equipment | |
CN104519262B (en) | Obtain the method, apparatus and terminal of video data | |
CN107967129A (en) | Display control method and related product | |
CN107025225A (en) | A kind of parallel execution method and apparatus of terminal database | |
CN106330211B (en) | LTE Frequency Band Selection method and apparatus | |
CN106204423A (en) | A kind of picture-adjusting method based on augmented reality, device and terminal | |
CN106961676A (en) | A kind of method for searching network and device | |
CN107302628A (en) | The control method and Related product of application function | |
CN107464290A (en) | Three-dimensional information methods of exhibiting, device and mobile terminal | |
CN106127829A (en) | The processing method of a kind of augmented reality, device and terminal | |
CN106296634A (en) | A kind of method and apparatus detecting similar image | |
CN107766139B (en) | Application management method and device | |
CN108271142A (en) | Wireless Fidelity Wi-Fi scan methods and Related product | |
CN110442297A (en) | Multi-screen display method, split screen display available device and terminal device | |
CN106648460B (en) | Step counting data filtering method and intelligent terminal | |
CN108322897A (en) | Cutting ferrule meal combined method and device | |
CN108037874B (en) | Screenshotss method and Related product | |
CN107330867A (en) | Image combining method, device, computer-readable recording medium and computer equipment | |
CN107256334A (en) | recipe matching method and related product | |
CN106210510A (en) | A kind of photographic method based on Image Adjusting, device and terminal | |
CN105787982A (en) | Method and device for manufacturing e-book |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | 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 |