CN104599235B - A kind of image processing method and device - Google Patents

A kind of image processing method and device Download PDF

Info

Publication number
CN104599235B
CN104599235B CN201510086319.5A CN201510086319A CN104599235B CN 104599235 B CN104599235 B CN 104599235B CN 201510086319 A CN201510086319 A CN 201510086319A CN 104599235 B CN104599235 B CN 104599235B
Authority
CN
China
Prior art keywords
image
fuzziness
color value
fuzzy processing
processing
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.)
Active
Application number
CN201510086319.5A
Other languages
Chinese (zh)
Other versions
CN104599235A (en
Inventor
李超
高琦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Yi Xin Science And Technology Ltd
Original Assignee
Zhejiang Yi Xin Science And Technology Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Yi Xin Science And Technology Ltd filed Critical Zhejiang Yi Xin Science And Technology Ltd
Priority to CN201510086319.5A priority Critical patent/CN104599235B/en
Publication of CN104599235A publication Critical patent/CN104599235A/en
Application granted granted Critical
Publication of CN104599235B publication Critical patent/CN104599235B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4038Image mosaicing, e.g. composing plane images from plane sub-images
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/50Image enhancement or restoration using two or more images, e.g. averaging or subtraction
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20021Dividing image into blocks, subimages or windows

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)

Abstract

Embodiments of the present invention provide a kind of image processing method.This method includes:In response to determining the operation of fuzziness, fuzziness corresponding with the operation of the determining fuzziness is determined;First image is generated according to the determining fuzziness, wherein, fuzziness is different, and the first image of generation is different;The pending area of the second image is covered using described first image to carry out Fuzzy processing to second image.Embodiments of the present invention can realize the different zones of pending image different ambiguity resolutions, realize the flexible and accurate Fuzzy processing of picture, and meet the picture process demand of different levels, so as to improve user experience, in addition, embodiments of the present invention provide a kind of image processing apparatus.

Description

A kind of image processing method and device
Technical field
Embodiments of the present invention are related to image processing field, more specifically, embodiments of the present invention are related to a kind of figure As treating method and apparatus.
Background technology
Background that this section is intended to provide an explanation of the embodiments of the present invention set forth in the claims or context.Herein Description recognizes it is the prior art not because not being included in this part.
In image processing field, there is a kind of image procossing mode of stamp, this mode is by image (example Such as picture or video) on stamp mosaic, to image carry out Fuzzy Processing, so as to meet specific demand.Presently, there are beat Code processing mode, mainly by way of reducing and amplifying the pixel of pending area so that artwork thickens.
Invention content
But the processing that each region of image is directed to for the prior art can only be the original of identical fog-level Cause, therefore it is impossible to meet different privacy requirements.For example, for the different information of image or region, the fuzziness of user will Asking may be different, such as wishes which things others has been able to know that for first area, but is not intended to expose the details of things, And for second area, it is desirable to which others does not know for which things.The prior art can only set all information or region The method of same fuzziness can not be met the needs of users, there are flexibility ratio it is not high, can not achieve the shortcomings that accurately controlling.
Thus, it is also very desirable to a kind of improved image processing method, when enabling to carry out Fuzzy processing to image, It can realize a point pen control, the fog-level in different Fuzzy processing regions is adjusted flexibly, meet the various demands of user.
In the present context, embodiments of the present invention are intended to provide a kind of image processing method and device.
In the first aspect of embodiment of the present invention, provide a method, including:
In response to determining the operation of fuzziness, fuzziness corresponding with the operation of the determining fuzziness is determined;
First image is generated according to the determining fuzziness;Wherein, fuzziness is different, and the first image of generation is different;
The pending area of the second image is covered using described first image to be carried out at blurring to second image Reason.
In the second aspect of embodiment of the present invention, a kind of device is provided, including:
Determination unit is configured to the operation in response to determining fuzziness, determines the operation pair with the determining fuzziness The fuzziness answered;
Generation unit is configured to generate the first image according to the determining fuzziness;Wherein, fuzziness is different, raw Into the first image it is different;
Processing unit is configured to cover the pending area of the second image using described first image with to described second Image carries out Fuzzy processing.
According to the method and apparatus of embodiment of the present invention, can different fuzzinesses be set according to the request of user, and According to determining different fuzzinesses, different mosaic images is generated, to utilize the mosaic image to pending image Different regions or object carry out Fuzzy processing.Due to can be different to the different zones or object implementatio8 of pending image Ambiguity resolution, realize the flexible and accurate Fuzzy processing of picture, and meet different levels picture processing Demand, so as to improve user experience.
Description of the drawings
Detailed description below, above-mentioned and other mesh of exemplary embodiment of the invention are read by reference to attached drawing , feature and advantage will become prone to understand.In the accompanying drawings, if showing the present invention's by way of example rather than limitation Dry embodiment, wherein:
Fig. 1 schematically shows the application scenarios that embodiment of the present invention can be realized wherein;
Fig. 2 schematically shows image processing methods according to an embodiment of the invention;
Fig. 3 schematically shows a kind of flow chart of realization method of the present invention the first image of generation;
Fig. 4 schematically shows the flow charts of another realization method of the present invention the first image of generation;
Fig. 5 shows image processing apparatus according to an embodiment of the invention.
In the accompanying drawings, identical or corresponding label represents identical or corresponding part.
Specific embodiment
The principle and spirit of the invention are described below with reference to several illustrative embodiments.It should be appreciated that provide this A little embodiments are not with any just for the sake of better understood when those skilled in the art and then realize the present invention Mode limits the scope of the invention.On the contrary, these embodiments are provided so that the disclosure is more thorough and complete, and energy It is enough that the scope of the present disclosure is completely communicated to those skilled in the art.
One skilled in the art will appreciate that embodiments of the present invention can be implemented as a kind of system, device, equipment, method Or computer program product.Therefore, the disclosure can be with specific implementation is as follows, i.e.,:Complete hardware, complete software The form that (including firmware, resident software, microcode etc.) or hardware and software combine.
According to the embodiment of the present invention, it is proposed that a kind of image processing method and device.
Herein, it is to be understood that involved term " Fuzzy processing " is represented through specific image procossing Mode is so that the characteristics of image of pending image (such as picture or video) thickens, the specific image procossing mode packet It includes but is not limited to cover another image (such as mosaic) in pending image overlying.
Involved term " fuzziness " is for representing Fuzzy processing so that the characteristics of image of pending image becomes mould The degree of paste.
Involved term " going to characterize " is for representing when fuzziness is maximum values of ambiguity, the portion of pending image Divide or the characteristics of image of whole region is removed.
Involved term " characteristics of image " can characterize the attribute of image, the element of feature, described image for expression Feature includes but not limited to color characteristic, textural characteristics, shape feature, space characteristics etc..
In addition, any number of elements in attached drawing be used to example and it is unrestricted and it is any name be only used for distinguishing, Without any restrictions meaning.
Below with reference to several representative embodiments of the present invention, the principle and spirit of the invention are illustrated in detail.
Summary of the invention
The inventors discovered that in the prior art, the processing for each region for image can only be identical mould The reason of paste degree, therefore it is impossible to meet different privacy requirements.For example, for the different information of image or region, user Fuzziness requirement may be different, such as which things others, which has been able to know that, is wished for first area, but be not intended to expose The details of things, and for second area, it is desirable to others does not know for which things.The prior art is to all image informations Or the method that region can only set same fuzziness, can not meet the needs of users, there are flexibility ratio it is not high, can not achieve it is accurate The shortcomings that control.
Therefore the method that same fuzziness can only be set to all image informations or region for the prior art, can not meet The demand of user, flexibility ratio is not high, can not achieve the shortcomings that accurately controlling, and the present invention provides a kind of image processing method and dresses It puts, can different fuzzinesses be set, and according to determining different fuzzinesses, generate different Marseilles according to the request of user Gram image, to carry out Fuzzy processing to the different region of pending image or object using the mosaic image.Due to Can the different ambiguity resolution of different zones or object implementatio8 to pending image, realize the flexible and accurate of picture Fuzzy processing, and the picture process demand of different levels is met, so as to improve user experience.
After the basic principle for describing the present invention, lower mask body introduces the various nonrestrictive embodiment party of the present invention Formula.
Application scenarios overview
Referring initially to Fig. 1, it is schematically shown that the application scenarios that embodiment of the present invention can be realized wherein.It is described Image processing apparatus 500 can be individual equipment, can also be applied in any electronic equipment 400.For example, the image procossing Device 500 can be the application APP handled dedicated for picture blurization of an installation in the electronic device.More typically Ground, the image processing apparatus 500 can be included in the installation non-expert application for picture blurization processing in the electronic device In program APP (i.e. the non-expert APP for picture blurization processing has picture blur processing function).Shown electronics is set Standby 400 can be existing, researching and developing or research and development in the future any electronic equipments, including but not limited to:It is existing, Research and development or in the future the desktop computers of research and development, laptop computer, mobile terminal (including smart mobile phone, non-smart mobile phone, each Kind tablet computer) etc..It will be understood by those skilled in the art that schematic diagram shown in FIG. 1 be only embodiments of the present invention can be with An example being achieved wherein.The scope of application of embodiment of the present invention is not limited by any aspect of the frame.
Illustrative methods
With reference to the application scenarios of Fig. 1, it is described with reference to Figure 2 according to exemplary embodiment of the invention for image The method of processing.Understand spirit and principles of the present invention it should be noted that above application scene is for only for ease of and show, Embodiments of the present invention are unrestricted in this regard.On the contrary, embodiments of the present invention can be applied to applicable appoint What scene.
Referring to Fig. 2, it is schematically shown that image processing method flow chart according to an embodiment of the invention, this method tool Body can for example include:
S201 in response to determining the operation of fuzziness, determines fuzziness corresponding with the operation of the determining fuzziness.
When the present invention implements, unlike the prior art, voluntarily it can be set or adjusted by user and is fuzzy Degree can be directed to each input operation of user or the fuzziness that each group of input operation setting is different.The input behaviour of user Work can be mouse input, can also be gesture input.User each input operation can be dropped to from mouse lift for The gesture operation of primary input operating process or user are lifted once to input operating process from dropping to.One group defeated Entering operation can include repeatedly inputting operating, and between in input operation for the first time, once input operates to the end, user does not adjust Fuzziness does not carry out other image processing operations.For example, it is grasped determining that the user between the operation of fuzziness inputs twice Make, it may be determined that operated for one group of input.Determining the operation of fuzziness can determine according to the operation of user.For example, one In the possible realization method of kind, user interface can be provided, for the scroll bar for representing fuzziness size to be presented, user is by dragging The mode of dynamic scroll bar determines the size of fuzziness.In the realization method of another possibility, user interface can also be provided, Specific values of ambiguity is inputted by user.In the realization method of another possibility, corresponding different fuzziness, in user circle Different fuzziness design sketch is shown on face, fuzziness is determined with this by user's selection desired effect.Concrete implementation side Formula can be flexile, and the present invention is herein without limiting.
S202 generates the first image according to the determining fuzziness, wherein, fuzziness is different, the first image of generation It is different.
During specific implementation, the fuzziness the first image of generation that the basis determines includes:According to the determining mould Paste degree and the second image generate the first image.Wherein, second image is pending image, and described first image is generation Mosaic image when carrying out Fuzzy processing to second image, will be used described in the described first image covering of generation The pending area of second image.
Referring to Fig. 3, it is schematically shown that a kind of flow chart of realization method of the present invention the first image of generation.In one kind In possible realization method, the fuzziness and the second image that the basis determines generate the first image, include the following steps:
S202A determines the size of base loxel corresponding with the fuzziness according to the fuzziness;The basis is single First lattice are the fundamental unit for generating described first image.
During specific implementation, determining fuzziness is associated with for generating the size of the base loxel of the first image.One As, fuzziness is bigger, and the size of base loxel is bigger.Usually, the size of fuzziness, example are weighed using values of ambiguity Such as, values of ambiguity is bigger, and fuzziness is bigger, the mould when fuzziness of image when values of ambiguity is 10 is just 1 than values of ambiguity Paste degree is big.During specific implementation, when the values of ambiguity of user setting is 1, the base loxel of 10*10 pixels can be used to generate First image.When the values of ambiguity of user setting is 10, the base loxel of 100*100 pixels can be used to generate the first figure Picture.The correspondence of fuzziness and base loxel size can be pre-set.
S202B determines the filling color value of each base loxel, and the filling color value, which is based on calculating, corresponds to the basis The average color of the pixel of the corresponding region of second image of cell and obtain.
During specific implementation, after base loxel size is determined, the location information of each base loxel can be obtained.Institute The location information for stating base loxel is corresponding with the location information of the corresponding region of the second pending image.Then, according to The location information of each base loxel determines the filling color value of each base loxel, and the filling color value, which is based on calculating, to be corresponded to It is obtained in the average color of the pixel of the corresponding region of second image of the base loxel.For example, corresponding one Base loxel, top left corner pixel coordinate are (X0, Y0), lower right corner pixel coordinate is (X1, Y1), the base loxel Fill (the X that color value is corresponding second image1-X0)*(Y0–Y1) a pixel carries out the average color that arithmetic average obtains.According to This analogizes, you can to obtain the filling color value of whole base loxels.
S202C fills corresponding base loxel using the filling color value of each base loxel of acquisition, so as to generate the One image.
Corresponding base loxel is filled, then by all populated using the filling color value of each base loxel of acquisition The base loxel of color value forms the first image.In this way, just the first image is generated by whole base loxels.
S203 covers the pending area of the second image to be obscured to second image using described first image Change is handled.
It should be noted that user can first carry out the operation of determining fuzziness, asking for the second image of processing is then sent It asks, the request of the second image is handled as described in client end response, covering second image using described first image waits to locate Region is managed to carry out Fuzzy processing to second image.User can also first send the request of the second image of processing, then It is determined the operation of fuzziness again.
It should be noted that the pending area of second image is covered with to described second using described first image Image carries out Fuzzy processing and includes:Use the pending area of some or all of covering of the first image second image To carry out Fuzzy processing to second image.For example, generation the first image can the whole based on the second image and give birth to Into then, the first image of extraction covers the corresponding portion of the second image corresponding to the part of the pending area of the second image. It can also be according to the size of the second image pending area, generate and be adapted with the size of the second image pending area The first image.Preferably, described cover the pending area of second image with to described using described first image Two images carry out Fuzzy processing and include:Use the area for the pending area that second image is corresponded in described first image Domain covers the pending area of second image.Wherein, the pending area of the second image according to the input of user operate and It determines.
It, can be for each time or each group of use since the generation of the first image is associated with the fuzziness of setting Family operation sets fuzziness respectively so that the different zones of pending image can carry out the processing of different fuzzinesses, meet and use The demand at family.On the other hand, it is obtained in the case that according to determining fuzziness and the second image the first image of generation, due to the first figure The generation of picture is associated with the tone of the second image, and therefore, treated, and picture keeps harmonious tone with whole picture, brings Better visual processes effect.
In the realization method of another possibility, for the higher anonymity demand of user, such as " it is not intended to completely not People finds out that the specific region of image is " demand, the present invention can provide the part that a kind of method causes image or complete The characteristics of image in portion region is removed, that is, carries out " going to characterize " processing, it is special that described image feature includes color characteristic, texture Sign, shape feature, space characteristics etc..In this realization method, when determining fuzziness is maximum values of ambiguity, described the The characteristics of image of the pending area of two images is removed, and described image feature includes at least color characteristic and/or shape feature.
Referring to Fig. 4, it is schematically shown that the flow chart of another realization method of the present invention the first image of generation.At this In a kind of realization method, the fuzziness and second image that the basis determines generate the first image, including following step Suddenly:
S202A ' calculates the average color of whole pixels of second image as the first color value.
During specific implementation, the average color of whole pixels of the second pending image is calculated, by the average color As the first color value.
S202B ' is split processing to second image, obtains the base loxel of second image.
The size of the base loxel of second image can be preset as needed.Certainly, second image The size of base loxel can also be identical with the size of the base loxel of the first image corresponding during fuzziness maximum.
S202C ' generates the second color value according to the first stochastic parameter of the obtained base loxel of second image; The color characteristic of the corresponding region of second image of base loxel of first parameter with corresponding to second image is not It is related.
During specific implementation, it is split after processing obtains base loxel for the second image, it can be by base loxel The first parameter as random seed at random generation the second color value so that the second color value have certain randomness can repeat again Generation.Wherein, the first parameter and the color of the corresponding region of the second image of the base loxel corresponding to second image Feature is uncorrelated.It should be noted that due to when specialization is gone to handle, it is expected the original image of the second pending image Specific image features are removed, such as removal color characteristic and shape feature, therefore, when generating the second color value, are preferably done Method is that the first parameter chosen is uncorrelated to the color characteristic of the corresponding region of the second image, it is possible thereby to obtain better image Treatment effect.In a kind of possible realization method, first parameter is location parameter.Of course, it is possible to it is arranged as required to Other parameter is as the first parameter.Wherein, the setting of location parameter can be very flexible, it is only necessary to the base unit The location information of lattice is associated.
In the realization method of another possibility, first parameter can also be with the base corresponding to second image The color characteristic of the corresponding region of second image of plinth cell is associated.It but, can in order to obtain better picture treatment effect It is the smaller the better with the first parameter and the relevance of color characteristic chosen by certain algorithm.For example, can pass through by The color characteristic of the location of pixels of the corresponding original image of base loxel carries out certain conversion process so that obtains numerical value tool There are certain randomness and uniqueness.Certainly, the first parameter can also jointly be obtained by location parameter and color parameter.Thus The parameter of acquisition and the second color value have the randomness of bigger, and color characteristic and the shape that can preferably remove image are special Sign.It should be noted that these are only exemplary illustration, it is not intended as limitation of the present invention.Those skilled in the art can root According to needing to set other parameter to obtain the second color value.
During specific implementation, using the first parameter of the base loxel as random seed, 3 random numbers are generated;It utilizes 3 random numbers of generation synthesize the second color value.Below by the first parameter to be illustrated for location parameter.First, one is obtained Base loxel, such as the location parameter of first foundation cell.Assuming that the top left corner apex of first foundation cell is point X, Distance+Xs of the point X at the top of the location parameter Pt=picture width * X to picture of the second image arrives the distance of picture left side edge. Wherein, picture width refers generally to the lateral distance of image, and the unit of picture width and distance may each be pixel.Using Pt as institute State the location parameter of first foundation cell.Usually, the storage location of the pixel of image be according to pixel position from a left side to Right, sequential storage from top to bottom, it is therefore, associated with its storage location according to the location parameter that above-mentioned formula is calculated, Therefore it can greatly reduce calculation amount.It should be noted that these are only a kind of exemplary illustration of calculation position parameter Pt, when So, the distance at the top of other calculations, such as location parameter Pt=picture width * X to picture can also be taken, herein not into Row limits.It should be noted that other can also be used with the relevant numerical value of first foundation cell as the first parameter, and As far as possible so that corresponding first parameter of each base loxel is unique and uniqueness.For example, selection and base unit The associated any position information of lattice and/or colouring information generate the first parameter.For example, utilize pixel a certain in base loxel Transverse and longitudinal coordinate a parameter is obtained by calculation as location parameter.Concrete implementation mode is very flexible, this field skill Art personnel can be set as needed.After location parameter is had chosen, the position of determining first foundation cell is joined Number Pt obtains 3 random numbers rand0, rand1, rand2, corresponds to 3 color values of RGB respectively, then utilize as random seed 3 color values obtain the second color value colorB of corresponding one 24.Wherein, the color value of RGB ranging from (0,255), RGB respectively accounts for 8.Therefore, using Pt as during random seed, the value range of random number is (0,255), this range and RGB face Color value range is identical.In a kind of possible realization method, first random number rand0 is obtained first, if judging rand0 More than 127, then 3 random numbers are regenerated by the use of rand0 as random seed again.It should be noted that reselect use Rand0 is that Pt is a regular parameter in order to prevent as random seed, and processing in this way can obtain the randomness of bigger, Obtain better picture treatment effect.Ultimately generate 3 random numbers are corresponded to 3 color values of RGB, are given birth to by 3 color values Into the color value of one 24, i.e. the second color value.It should be noted that above is the exemplary illustration of the present invention, it is not intended as pair The limitation of the present invention.In specific implementation, other modes can also be used to generate the second color value.But it should be recognized that due to The pixel of image has certain regularity, the first parameter thus chosen, such as location parameter and/or color parameter, can not There is certain regularity with avoiding, although with the mode of generating random number second value, it is possible to the first figure of generation Certain regularity or fluctuation is presented in the whole color range of picture.It therefore, should be as possible so that generation when generating the second color value Color value have larger randomness, and cause generation the first image avoid the occurrence of regularity or fluctuation.The present invention Using location parameter generate 3 random numbers so that obtain by the way of the second color value and, choose the processing side of random seed again Formula is for the randomness of increase the second color value of generation, and avoiding that treated, certain regularity is presented in picture, so as to obtain Better picture treatment effect.
S202D ' is weighted processing to first color value and second color value and obtains third color value.
In one implementation, are weighted by summation process and obtains third for first color value and second color value Color value.
Wherein, third color value colorC can be obtained in the following manner:
ColorC=(colorA*k+colorB)/(k+1) (1)
Wherein, colorC is third color value, and colorA is the first color value, and colorB is the second color value, and k is weight coefficient, Specific value can be set as needed.Preferably, k=3.K can be positive integer or positive decimal, herein not into Row limits.
It should be noted that third color value can also obtain by other weighting processing modes, the present invention to this without It limits.
S202E ' fills the corresponding of the first image using the third color value of the base loxel of every one second image obtained Base loxel, so as to generate the first image.
Wherein, the base loxel of the base loxel of second image and the first image has one-to-one relationship.
It, can be according to aforesaid way reality when determining fuzziness is fuzziness maximum value in a kind of this realization method Now " the going to characterize " of pending image is handled, you can with the characteristics of image for removing the part of image or distinguishing region, example Such as color characteristic, shape feature, so as to meet the particular demands of user.Due to generating filling out for the base loxel of the first image Fill color value i.e. third color value when, the first color value and the second color value is utilized, wherein the first color value and the second pending image Integral color is associated, and the second color value is uncorrelated to the color characteristic of the second image, and therefore, treated, and image can be with original The integral color of image is coordinated, and can remove the specific color characteristic and shape feature of image, reaches preferable image procossing Effect.
In another realization method, when determining fuzziness is maximum values of ambiguity, institute that the basis determines It states fuzziness and second image generates the first image, including:Calculate the average color of whole pixels of second image Value is as the first color value;The first image is generated using first color value.In a kind of this realization method, for user to fuzzy Degree treatment effect requires not being especially high but high to the requirement of real-time processing speed situation, provides a kind of more easy place Reason mode.In a kind of this realization method, the second image is handled according to the integral color of the second pending image.At this moment, The average color of whole pixels of the second image is calculated as the first color value, generates the first image using the first color value, then The pending area of the second image is covered using the first image of generation.So as to not only ensure that real-time processing speed, but also can make The tone of treated image is consistent, but removed shape feature with original image tone, can not resolution image be specifically What, meets the high anonymity demand of user.
Further, method provided by the invention further includes:
The original image of the second image is preserved, the corresponding fuzziness of request for handling the second image each time is preserved and treats The information of processing region;
When receiving the Fuzzy processing request of revocation n-th, according to the request of the second image of preceding N-1 processing of preservation The information of corresponding fuzziness and pending area carries out the original image of second image first N-1 times and obscures successively Change is handled.Wherein, the N is the positive integer more than or equal to 1.
When the request for receiving reduction n-th Fuzzy processing, the request of the second image is handled using the n-th of preservation The information of corresponding fuzziness and pending area is blurred the second image after revocation n-th Fuzzy processing Processing.Wherein, the N is the positive integer more than or equal to 1.
During specific implementation, since demosaicing algorithm has pseudo-randomness, it can repeat to realize identical mosaic effect. Exactly it is to say, for identical original image and the setting of identical fuzziness, the first image of generation is identical. So according to the paintbrush track (corresponding to pending area) and fuzziness of original image and stamp operation, with regard to that can repeatedly generate Image after stamp..Therefore, in the present invention, without preserving mosaic image i.e. the first image generated each time, only need to protect Original image and stamp operation each time are deposited (including operating corresponding fuzziness each time and operating corresponding treat each time Processing region), it is possible to it is cancelled and reduction treatment.Citing illustrates below.It is assumed that according to the second pending image Original image T0, do a stamp and operate to obtain image T1, the stamp that then tries again according to image T1 obtains figure when operating Picture T2, and so on, image Tn is obtained after n-th operation, while preserve the 1st time to the n-th corresponding paintbrush track of operation (corresponding pending area) and fuzziness.When responding the request of revocation Fuzzy processing of user, according to the pre-saved The original image T0 of two images, n-1 stamp operation, obtains image Tn-1 from image T1 successively and revocation can be thus achieved before repeating The operation of n-th Fuzzy processing.When after request is cancelled, receiving reduction Fuzzy processing request, such as will be from image Image Tn is reverted to during Tn-1, then only needs to use the paintbrush track (pending area) when operating using the n-th preserved and mould Paste degree again performs image Tn-1 the operation of n-th Fuzzy processing, regenerates image Tn, you can to realize restoring operation.
It should be noted that in the present invention, the Fuzzy processing carried out can be adjusted that is, the present invention It is further comprising the steps of:Detect the request of adjustment Fuzzy processing, according to the fuzziness after adjustment, to the Fuzzy processing into Row adjustment, specifically, the adjustment can proceed as follows:The Fuzzy processing is cancelled, according to the fuzziness after adjustment, weight Newly carry out the Fuzzy processing.For example, the M times Fuzzy processing has been carried out in user, but to the effect of the Fuzzy processing Fruit is unsatisfied with, and thinks that the corresponding fuzziness of the M times Fuzzy processing is too small, user can be adjusted at the M times blurring at this time Corresponding fuzziness is managed, fuzziness is tuned up;User also needs to the request of input adjustment Fuzzy processing;In the technology of the present invention In scheme, after the request for adjusting the M times Fuzzy processing is received, the M times Fuzzy processing is cancelled, then according to tune The corresponding fuzziness of the M times Fuzzy processing after whole, re-executes the M times Fuzzy processing.
When the present invention implements, the different zones of picture can be directed to or information sets or control different obscure Degree, so as to provide the secret protection of different stage.When the anonymity demand of user is higher, then can utilize " going to characterize " The characteristics of image of processing removal picture so as to farthest be protected to the privacy information of picture, promotes picture and is propagated through Personal secrets degree in journey.
Example devices
After the method for exemplary embodiment of the invention is described, next, with reference to figure 5 to the exemplary reality of the present invention Apply mode, be introduced for the device of image procossing.
A kind of image processing apparatus 500, including:
Determination unit 501 is configured to the operation in response to determining fuzziness, determines the operation with the determining fuzziness Corresponding fuzziness.
Generation unit 502 is configured to generate the first image according to the determining fuzziness;Wherein, fuzziness is different, First image of generation is different.
Processing unit 503 is configured to cover the pending area of the second image using described first image with to described Second image carries out Fuzzy processing.
Wherein, the processing unit is configured specifically for:
Use the second figure described in the region overlay for the pending area that second image is corresponded in described first image The pending area of picture.
Wherein, the pending area of second image is operated according to the input of user and is determined.
Wherein, the generation unit is configured specifically for:
First image is generated according to the determining fuzziness and second image.
Wherein, the generation unit specifically includes:
First foundation cell determination unit is configured to determine base corresponding with the fuzziness according to the fuzziness The size of plinth cell;The base loxel is the fundamental unit for generating described first image;
Color value determination unit is filled, is configured to determine the filling color value of each base loxel, the filling color value base It is obtained in the average color of the pixel of corresponding region for calculating second image corresponding to the base loxel;
First fills unit is configured to single using the corresponding basis of filling color value filling of each base loxel obtained First lattice, so as to generate the first image.
Wherein, when the fuzziness that the determination unit determines is maximum values of ambiguity, the institute of the processing unit processes The characteristics of image for stating the pending area of the second image is removed, and described image feature includes at least color characteristic and/or shape Feature.
Wherein, when the fuzziness that the determination unit determines is maximum values of ambiguity, the generation unit specifically includes:
First color value computing unit is configured to calculate the average color of whole pixels of second image as One color value;
Second base loxel obtaining unit is configured to be split processing to second image, obtains described The base loxel of two images;
Second color value computing unit is configured to according to obtained the first parameter of the base loxel of second image The second color value of random generation;First parameter is corresponding to the second image of the base loxel corresponding to second image The color characteristic in region is uncorrelated;
Third color value computing unit is configured to that first color value and second color value are weighted processing and obtained Third color value;
Second fills unit is configured to fill using the third color value of the base loxel of every one second image obtained The corresponding base loxel of first image, so as to generate the first image.
Wherein, the second color value computing unit includes:
Random number generation unit is configured to, using the first parameter of the base loxel as random seed, generate 3 Random number;
Synthesis unit is configured to synthesize the second color value using 3 random numbers of generation.
Wherein, first parameter is location parameter.
Wherein, when the fuzziness that the determination unit determines is maximum values of ambiguity, the generation unit includes:
First color value computing unit is configured to calculate the average color of whole pixels of second image as One color value;
Third fills unit is configured to generate the first image using first color value.
Described device further includes:
Storage unit is configured to the request correspondence for preserving the original image of the second image, handling the second image each time Fuzziness and pending area information;
Unit is cancelled, is configured to when the request for receiving revocation n-th Fuzzy processing, according to the preceding N-1 of preservation The corresponding fuzziness of request of the second image of secondary processing and the information of pending area, to the original image of second image N-1 Fuzzy processing before carrying out successively;The N is the positive integer more than or equal to 1.
Reduction unit is configured to, when the request for receiving reduction n-th Fuzzy processing, utilize the n-th of preservation The corresponding fuzziness of request of the second image and the information of pending area are handled, after revocation n-th Fuzzy processing Second image carries out Fuzzy processing.The N is the positive integer more than or equal to 1.
Further, described device further includes:
Adjustment unit is configured to, when the request for detecting adjustment Fuzzy processing, cancel the Fuzzy processing, root According to the fuzziness after adjustment, Fuzzy processing is re-started.
It should be noted that although being referred to several units or subelement of image processing apparatus in above-detailed, Be it is this division be only exemplary it is not enforceable.In fact, according to the embodiment of the present invention, above-described two The feature and function of a or more unit can embody in a unit.Conversely, the feature of an above-described unit It can be further divided into being embodied by multiple units with function.
In addition, although the operation of the method for the present invention is described with particular order in the accompanying drawings, this do not require that or The operation that these operations must be performed or have to carry out shown in whole according to the particular order by implying could be realized desired As a result.Additionally or alternatively, it is convenient to omit multiple steps are merged into a step and performed and/or by one by certain steps Step is decomposed into execution of multiple steps.
Although describe spirit and principles of the present invention by reference to several specific embodiments, it should be appreciated that, this Invention is not limited to disclosed specific embodiment, does not also mean that the feature in these aspects cannot to the division of various aspects Combination is this to divide merely to the convenience of statement to be benefited.The present invention is directed to cover appended claims spirit and In the range of included various modifications and equivalent arrangements.

Claims (18)

1. a kind of method, including:
In response to determining the operation of fuzziness, fuzziness corresponding with the operation of the determining fuzziness is determined;The fuzziness For representing Fuzzy processing so that the degree that the characteristics of image of pending image thickens;
First image is generated according to the determining fuzziness and the second image;Wherein, fuzziness is different, the first image of generation Difference, to carry out Fuzzy processing to the different zones of the second image using the first different images;Wherein, the life of the first image Into associated with the integral color of the second image;
The pending area of the second image is covered using described first image to carry out Fuzzy processing to second image;
When determining fuzziness is maximum values of ambiguity, the fuzziness and the second image generation first that the basis determines Image, including:
The average color of whole pixels of second image is calculated as the first color value;
Processing is split to second image, obtains the base loxel of second image;
Second color value is generated according to the first stochastic parameter of the obtained base loxel of second image;First parameter It is uncorrelated to the color characteristic of the corresponding region of the second image of the base loxel corresponding to second image;
Processing is weighted to first color value and second color value and obtains third color value;
The corresponding base loxel of the first image is filled using the third color value of the base loxel of every one second image of acquisition, So as to generate the first image.
2. according to the method described in claim 1, wherein, the pending district that the second image is covered using described first image Domain is included with carrying out Fuzzy processing to second image:
Use the second image described in the region overlay for the pending area that second image is corresponded in described first image Pending area.
3. method according to claim 1 or 2, wherein, the pending area of second image is according to the input of user It operates and determines.
4. according to the method described in claim 1, wherein, the fuzziness and second image that the basis determines generate First image, including:
The size of base loxel corresponding with the fuzziness is determined according to the fuzziness;The base loxel is generation The fundamental unit of described first image;
Determine the filling color value of each base loxel, the filling color value is based on the institute calculated corresponding to the base loxel It states the average color of the pixel of the corresponding region of the second image and obtains;
Using the corresponding base loxel of filling color value filling of each base loxel of acquisition, so as to generate the first image.
5. according to the method described in claim 1, wherein, when determining fuzziness is maximum values of ambiguity, second figure The characteristics of image of the pending area of picture is removed, and described image feature includes at least color characteristic and/or shape feature.
6. according to the method described in claim 1, wherein, the first stochastic parameter of the base loxel that the basis determines The second color value is generated to include:
Using the first parameter of the base loxel as random seed, 3 random numbers are generated;
The second color value is synthesized using 3 random numbers of generation.
7. according to the method described in claim 1, wherein, first parameter is location parameter.
8. it according to the method described in claim 1, further includes:
The original image for preserving the second image, the corresponding fuzziness of request and pending area that handle the second image each time Information;
When the request for receiving revocation n-th Fuzzy processing, according to the request pair of the second image of preceding N-1 processing of preservation The fuzziness and the information of pending area answered, N-1 blurring before being carried out successively to the original image of second image Processing;
When the request for receiving reduction n-th Fuzzy processing, the request that the second image is handled using the n-th of preservation is corresponded to Fuzziness and pending area information, to revocation n-th Fuzzy processing after the second image carry out Fuzzy processing, The N is the positive integer more than or equal to 1.
9. it according to the method described in claim 1, further includes:
When the request for detecting adjustment Fuzzy processing, the Fuzzy processing is cancelled, according to the fuzziness after adjustment, again Carry out Fuzzy processing.
10. a kind of device, including:
Determination unit is configured to the operation in response to determining fuzziness, determines corresponding with the operation of the determining fuzziness Fuzziness;The fuzziness is used to represent Fuzzy processing so that the degree that the characteristics of image of pending image thickens;
Generation unit is configured to generate the first image according to the determining fuzziness and the second image;Wherein, fuzziness is not Together, the first image of generation is different, to carry out Fuzzy processing to the different zones of the second image using the first different images; Wherein, the generation of the first image is associated with the integral color of the second image;
Processing unit is configured to cover the pending area of the second image using described first image with to second image Carry out Fuzzy processing;
Wherein, when the fuzziness that the determination unit determines is maximum values of ambiguity, the generation unit specifically includes:
First color value computing unit is configured to calculate the average color of whole pixels of second image as the first color Value;
Second base loxel obtaining unit is configured to be split processing to second image, obtains second figure The base loxel of picture;
Second color value computing unit is configured to according to obtained the first stochastic parameter of the base loxel of second image Generate the second color value;First parameter and the corresponding region of the second image of the base loxel corresponding to second image Color characteristic it is uncorrelated;
Third color value computing unit is configured to that first color value and second color value are weighted processing and obtain third Color value;
Second fills unit is configured to the third color value filling first using the base loxel of every one second image obtained The corresponding base loxel of image, so as to generate the first image.
11. device according to claim 10, wherein, the processing unit is configured specifically for, and uses first figure Corresponding to the pending area of the second image described in the region overlay of the pending area of second image as in.
12. the device according to claim 10 or 11, wherein, the pending area of second image is according to the defeated of user Enter operation and determine.
13. device according to claim 10, wherein, the generation unit includes:
First foundation cell determination unit is configured to determine that basis corresponding with the fuzziness is single according to the fuzziness The size of first lattice;The base loxel is the fundamental unit for generating described first image;
Color value determination unit is filled, is configured to determine the filling color value of each base loxel, the filling color value is based on meter It calculates the average color of the pixel of the corresponding region of second image corresponding to the base loxel and obtains;
First fills unit is configured to the corresponding base unit of filling color value filling using each base loxel obtained Lattice, so as to generate the first image.
14. device according to claim 10, wherein, when the fuzziness that the determination unit determines is maximum values of ambiguity When, the characteristics of image of the pending area of second image of the processing unit processes is removed, and described image feature is extremely Include color characteristic and/or shape feature less.
15. device according to claim 10, wherein, the second color value computing unit includes:
Random number generation unit is configured to, using the first parameter of the base loxel as random seed, generate 3 at random Number;
Synthesis unit is configured to synthesize the second color value using 3 random numbers of generation.
16. device according to claim 10, wherein, first parameter is location parameter.
17. device according to claim 10, further includes:
Storage unit is configured to the original image for preserving the second image, the corresponding mould of request for handling the second image each time The information of paste degree and pending area;
Unit is cancelled, is configured to when the request for receiving revocation n-th Fuzzy processing, according to the preceding N-1 place of preservation The corresponding fuzziness of request of the second image and the information of pending area are managed, to the original image of second image successively N-1 Fuzzy processing before progress;The N is the positive integer more than or equal to 1;
Reduction unit is configured to, when the request for receiving reduction n-th Fuzzy processing, handle using the n-th of preservation The corresponding fuzziness of request of second image and the information of pending area, to second after revocation n-th Fuzzy processing Image carries out Fuzzy processing;The N is the positive integer more than or equal to 1.
18. device according to claim 10, further includes:
Adjustment unit is configured to, when the request for detecting adjustment Fuzzy processing, the Fuzzy processing be cancelled, according to tune Fuzziness after whole, re-starts Fuzzy processing.
CN201510086319.5A 2015-02-17 2015-02-17 A kind of image processing method and device Active CN104599235B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510086319.5A CN104599235B (en) 2015-02-17 2015-02-17 A kind of image processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510086319.5A CN104599235B (en) 2015-02-17 2015-02-17 A kind of image processing method and device

Publications (2)

Publication Number Publication Date
CN104599235A CN104599235A (en) 2015-05-06
CN104599235B true CN104599235B (en) 2018-06-26

Family

ID=53124986

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510086319.5A Active CN104599235B (en) 2015-02-17 2015-02-17 A kind of image processing method and device

Country Status (1)

Country Link
CN (1) CN104599235B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105678714B (en) * 2016-02-05 2020-12-29 网易传媒科技(北京)有限公司 Image processing method and device
CN105791946B (en) * 2016-03-15 2019-03-08 腾讯科技(深圳)有限公司 Image display effect method of adjustment and device
CN107071321B (en) * 2017-04-14 2020-01-14 广东登鸿科技发展有限公司 Video file processing method and device and terminal
CN107180101A (en) * 2017-05-19 2017-09-19 腾讯科技(深圳)有限公司 Method, device and the computer equipment of multidate information displaying
CN111538975B (en) * 2020-04-27 2024-02-23 中国银行股份有限公司 Image processing method and device
CN112887481B (en) * 2021-01-26 2022-04-01 维沃移动通信有限公司 Image processing method and device
CN114449714B (en) * 2021-12-27 2023-08-08 新瑞鹏宠物医疗集团有限公司 Light color adjustment method and device based on visual recognition and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008277879A (en) * 2007-04-25 2008-11-13 Matsushita Electric Ind Co Ltd Imaging device, imaging method, and integrated circuit
CN104052905A (en) * 2013-03-12 2014-09-17 三星泰科威株式会社 Method and apparatus for processing image
CN104063858A (en) * 2013-03-19 2014-09-24 展讯通信(上海)有限公司 Image fuzzy processing method and device
CN104299186A (en) * 2014-09-30 2015-01-21 珠海市君天电子科技有限公司 Method and device for conducting mosaic processing on picture

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008277879A (en) * 2007-04-25 2008-11-13 Matsushita Electric Ind Co Ltd Imaging device, imaging method, and integrated circuit
CN104052905A (en) * 2013-03-12 2014-09-17 三星泰科威株式会社 Method and apparatus for processing image
CN104063858A (en) * 2013-03-19 2014-09-24 展讯通信(上海)有限公司 Image fuzzy processing method and device
CN104299186A (en) * 2014-09-30 2015-01-21 珠海市君天电子科技有限公司 Method and device for conducting mosaic processing on picture

Also Published As

Publication number Publication date
CN104599235A (en) 2015-05-06

Similar Documents

Publication Publication Date Title
CN104599235B (en) A kind of image processing method and device
Swain High capacity image steganography using modified LSB substitution and PVD against pixel difference histogram analysis
Gu et al. A fast image encryption method by using chaotic 3D cat maps
KR101356334B1 (en) Spatio-temporal color luminance dithering techniques
JP2003209678A5 (en)
CN110784619B (en) Novel parallel image encryption method based on chaos
CN107220923A (en) Digital picture feedback encryption method based on image network
JP2014056507A (en) Image processing device, image processing program, computer readable recording medium with the same recorded thereon, and image processing method
CN104915939A (en) Image equalization method and device
CN110232284B (en) Image encryption method and device
JP2020149560A (en) Cnn processing device, cnn processing method, and program
JP7389446B2 (en) Encryption/decryption device, encryption/decryption method, and computer program for executing the method
CN111526003A (en) Data encryption method and device, storage medium and electronic equipment
Liu et al. Dynamic analysis of fractional-order six-order discrete chaotic mapping and its application in information security
CN112989394A (en) Vector geographic data encryption and decryption method and system
JP4381240B2 (en) Image processing apparatus, image display apparatus using the same, image processing method, and program for causing computer to execute the same
Tyagi et al. High capacity steganography protected using Shamir’s threshold scheme and permutation framework
KR101637187B1 (en) Apparatus and method for generating a random nuber using a prefer image
CN115205456A (en) Three-dimensional model construction method and device, electronic equipment and storage medium
CN113726975A (en) Image encryption method, device, medium and electronic equipment based on chaotic system
CN113592922A (en) Image registration processing method and device
Lima et al. Histogram uniformization for digital image encryption
CN109996076A (en) Method, computer system and the device of code rate control
JP7140491B2 (en) Image processing device, image processing method, and program
JP7106144B2 (en) Image analysis device

Legal Events

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