CN105608669A - Pixel blurring method and device - Google Patents
Pixel blurring method and device Download PDFInfo
- Publication number
- CN105608669A CN105608669A CN201510997920.XA CN201510997920A CN105608669A CN 105608669 A CN105608669 A CN 105608669A CN 201510997920 A CN201510997920 A CN 201510997920A CN 105608669 A CN105608669 A CN 105608669A
- Authority
- CN
- China
- Prior art keywords
- pixel
- target pixel
- pixel points
- treat
- fuzzy
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 40
- 238000012545 processing Methods 0.000 abstract description 17
- 238000010586 diagram Methods 0.000 description 9
- 238000004891 communication Methods 0.000 description 8
- 238000005516 engineering process Methods 0.000 description 6
- 238000006073 displacement reaction Methods 0.000 description 5
- 230000003287 optical effect Effects 0.000 description 4
- 230000000712 assembly Effects 0.000 description 3
- 238000000429 assembly Methods 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000005236 sound signal Effects 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 238000013459 approach Methods 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- KLDZYURQCUYZBL-UHFFFAOYSA-N 2-[3-[(2-hydroxyphenyl)methylideneamino]propyliminomethyl]phenol Chemical compound OC1=CC=CC=C1C=NCCCN=CC1=CC=CC=C1O KLDZYURQCUYZBL-UHFFFAOYSA-N 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 201000001098 delayed sleep phase syndrome Diseases 0.000 description 1
- 208000033921 delayed sleep phase type circadian rhythm sleep disease Diseases 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/40—Scaling of whole images or parts thereof, e.g. expanding or contracting
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Image Processing (AREA)
Abstract
The present invention relates to a pixel blurring method and device. The method comprises a step of determining a pixel to be blurred, a step of obtaining a preset number of target pixels adjacent to the pixel to be blurred according to a preset obtainment rule with the pixel to be blurred as a center point, wherein the preset number of target pixels comprise the pixel to be blurred, a step of distributing a corresponding preset weight value for each target pixel point, a step of obtaining the pixel value corresponding to each target pixel, and a step of calculating the blurring pixel of the pixel to be blurred according to the pixel value and the preset weight value corresponding to each target pixel. Through the technical scheme, the accuracy of a blurred pixel can be ensured, and the processing speed is improved.
Description
Technical field
The disclosure relates to technical field of image processing, relates in particular to a kind of pixel blur method and device.
Background technology
During image is processed, existing conventional fuzzy algorithmic approach, as Gaussian Blur, is each by input arrayPixel and Gaussian kernel convolution are by convolution and be used as output pixel value. Two-dimensional Gaussian function is:
The defect of above-mentioned fuzzy algorithmic approach is that processing speed is slow.
Summary of the invention
Disclosure embodiment provides a kind of pixel blur method and device, comprises following technical scheme:
According to the first aspect of disclosure embodiment, a kind of pixel blur method is provided, comprising:
Determine and treat fuzzy pixel;
Treat point centered by vague image vegetarian refreshments by described, according to default obtain Rule with described in treat vague imageThe target pixel points of the preset number of vegetarian refreshments vicinity, wherein, wraps in the target pixel points of described preset numberDescribed in drawing together, treat fuzzy pixel;
For each target pixel points is distributed corresponding default weighted value;
Obtain pixel value corresponding to described each target pixel points;
According to pixel value corresponding to described each target pixel points and default weighted value, treat described in calculating fuzzyFuzzy pixel value corresponding to pixel.
In one embodiment, describedly treat point centered by vague image vegetarian refreshments by described, obtain rule according to defaultObtain and the described target pixel points for the treatment of the contiguous preset number of vague image vegetarian refreshments, comprising:
Treat point centered by vague image vegetarian refreshments by described, obtain N capable × the target pixel points region of M row;
According to each pixel in described target pixel points region and described in treat that position between vague image vegetarian refreshments closesBe to obtain the target pixel points of preset number.
In one embodiment, described is that each target pixel points is distributed corresponding default weighted value, comprising:
Calculate each target pixel points and described in treat the distance between fuzzy pixel;
According to described distance, for each target pixel points is distributed corresponding default weighted value, wherein, described inDistance becomes inverse correlation with described default weighted value.
In one embodiment, described according to pixel value corresponding to described each target pixel points and default powerHeavily value, treats the fuzzy pixel value that fuzzy pixel is corresponding described in calculating, comprising:
The product that calculates pixel value corresponding to each target pixel points and default weighted value, obtains each targetThe weight pixel value of pixel;
Weight pixel value sum corresponding to target pixel points of calculating preset number, obtains total weight pixel value;
Calculate total weight pixel value and described preset number long-pending, described in obtaining, treat fuzzy pixel correspondenceFuzzy pixel value.
In one embodiment, default weighted value corresponding to described each target pixel points isInstituteWeighted value sum corresponding to target pixel points of stating preset number is 1.
In one embodiment, described method also comprises:
Receive the order that arranges of input;
According to described order is set, the described default rule of obtaining is set, described preset number and/or described pre-If weighted value.
According to the second aspect of disclosure embodiment, provide a kind of pixel fuzzy device, comprising:
Determination module, treats fuzzy pixel for determining;
The first acquisition module, for treating point centered by vague image vegetarian refreshments by described, according to the default rule of obtainingObtain and the described target pixel points for the treatment of the contiguous preset number of vague image vegetarian refreshments, wherein, described present countDescribed in comprising, object target pixel points treats fuzzy pixel;
Distribution module, states each target pixel points and distributes corresponding default weighted value described in being used to;
The second acquisition module, for obtaining pixel value corresponding to described each target pixel points;
Computing module, for according to pixel value corresponding to described each target pixel points and default weighted value,Described in calculating, treat the fuzzy pixel value that fuzzy pixel is corresponding.
In one embodiment, described the first acquisition module comprises:
First obtains submodule, for treating point centered by vague image vegetarian refreshments by described, obtain N capable × M rowTarget pixel points region;
Second obtains submodule, for according to the each pixel in described target pixel points region with described in treat mouldStick with paste the position relationship between pixel, obtain the target pixel points of preset number.
In one embodiment, described distribution module comprises:
Calculating sub module, for calculate each target pixel points and described in treat the distance between fuzzy pixelFrom;
Distribution sub module, for according to described distance, is default power corresponding to each target pixel points distributionHeavily value, wherein, described distance becomes inverse correlation with described default weighted value.
In one embodiment, described computing module comprises:
The first calculating sub module, for calculating pixel value corresponding to each target pixel points and default weighted valueProduct, obtain the weight pixel value of each target pixel points;
The second calculating sub module, for calculate weight pixel value corresponding to the target pixel points of preset number itWith, obtain total weight pixel value;
The 3rd calculating sub module, long-pending for calculating total weight pixel value and described preset number, obtain instituteState the fuzzy pixel value for the treatment of that fuzzy pixel is corresponding.
In one embodiment, default weighted value corresponding to described each target pixel points isInstituteWeighted value sum corresponding to target pixel points of stating preset number is 1.
In one embodiment, described device also comprises:
Receiver module, for receiving the order that arranges of input;
Module is set, for according to described order being set, the described default rule of obtaining is set, described defaultNumber and/or described default weighted value.
According to the third aspect of disclosure embodiment, provide a kind of pixel fuzzy device, comprising:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Determine and treat fuzzy pixel;
Treat point centered by vague image vegetarian refreshments by described, according to default obtain Rule with described in treat vague imageThe target pixel points of the preset number of vegetarian refreshments vicinity, wherein, wraps in the target pixel points of described preset numberDescribed in drawing together, treat fuzzy pixel;
For each target pixel points is distributed corresponding default weighted value;
Obtain pixel value corresponding to described each target pixel points;
According to pixel value corresponding to described each target pixel points and default weighted value, treat described in calculating fuzzyFuzzy pixel value corresponding to pixel.
The technical scheme that embodiment of the present disclosure provides can comprise following beneficial effect:
Technique scheme, treats fuzzy pixel for each, uses vicinity points and treats vague imageThe pixel value that vegetarian refreshments is corresponding and default weighted value are weighted its fuzzy pixel value of average computation, like this, and canTo ensure the accuracy of fuzzy pixel value, default weighted value corresponding to each target pixel points is simultaneouslyThe weighted value sum corresponding to target pixel points of preset number is 1, like this, in code, only needsHave displacement and add operation, processing speed is the fastest.
Should be understood that, it is only exemplary and explanatory that above general description and details are hereinafter described, can not limit the disclosure.
Brief description of the drawings
Accompanying drawing is herein merged in description and forms the part of this description, shows and meets these public affairsThe embodiment opening, and be used from and explain principle of the present disclosure with description one.
Fig. 1 is according to the flow chart of the pixel blur method shown in an exemplary embodiment.
Fig. 2 A is according to the flow process of step S102 in the pixel blur method shown in an exemplary embodimentFigure.
Fig. 2 B is according to target pixel points in the pixel blur method shown in an exemplary embodiment and treatsThe schematic diagram of vague image vegetarian refreshments.
Fig. 3 A is according to the flow process of step S103 in the pixel blur method shown in an exemplary embodimentFigure.
Fig. 3 B distributes according to default weighted value in the pixel blur method shown in an exemplary embodimentSchematic diagram.
Fig. 4 is according to the flow process of step S105 in the pixel blur method shown in an exemplary embodimentFigure.
Fig. 5 is according to the flow chart of the another kind of pixel blur method shown in an exemplary embodiment.
Fig. 6 is according to the block diagram of the fuzzy device of a kind of pixel shown in an exemplary embodiment.
Fig. 7 is according to the frame of the first acquisition module in the fuzzy device of pixel shown in an exemplary embodimentFigure.
Fig. 8 is according to the block diagram of distribution module in the fuzzy device of pixel shown in an exemplary embodiment.
Fig. 9 is according to the block diagram of computing module in the fuzzy device of pixel shown in an exemplary embodiment.
Figure 10 is according to the block diagram of the fuzzy device of another kind of pixel shown in an exemplary embodiment.
Figure 11 is according to the block diagram that is applicable to the fuzzy device of pixel shown in an exemplary embodiment.
Detailed description of the invention
Here will at length describe exemplary embodiment, its sample table shows in the accompanying drawings. Retouching belowState while relating to accompanying drawing, unless separately there is expression, the same numbers in different accompanying drawings represents same or analogous wantingElement. Embodiment described in following exemplary embodiment does not represent own consistent with the disclosureEmbodiment. On the contrary, they be only with as that described in detail in appended claims, more of the present disclosureThe example of the consistent apparatus and method in aspect.
Disclosure embodiment provides a kind of pixel blur method, and as shown in Figure 1, the method comprises stepRapid S101-S105:
In step S101, determine and treat fuzzy pixel;
In step S102, to treat point centered by vague image vegetarian refreshments, according to default obtain Rule withTreat the target pixel points of the contiguous preset number of vague image vegetarian refreshments, wherein, the target pixel points of preset numberComprise and treat fuzzy pixel;
To treat point centered by vague image vegetarian refreshments, obtain Rule and treat that vague image vegetarian refreshments is contiguous according to defaultPixel, these pixels together with treating vague image vegetarian refreshments, composition preset number target pixel points.
In step S103, for each target pixel points is distributed corresponding default weighted value;
Wherein, default weighted value corresponding to each target pixel points isThe target picture of preset numberThe weighted value sum that vegetarian refreshments is corresponding is 1.
In step S104, obtain pixel value corresponding to each target pixel points;
In step S105, according to pixel value corresponding to each target pixel points and default weighted value, meterThe fuzzy pixel value that fuzzy pixel is corresponding is treated in calculation.
In this embodiment, treat fuzzy pixel for each, use vicinity points and treat vague imageThe pixel value that vegetarian refreshments is corresponding and default weighted value are weighted its fuzzy pixel value of average computation, like this, and canTo ensure the accuracy of fuzzy pixel value, default weighted value corresponding to each target pixel points is simultaneouslyThe weighted value sum corresponding to target pixel points of preset number is 1, like this, in code, only needsHave displacement and add operation, processing speed is the fastest.
As shown in Figure 2 A, in one embodiment, above-mentioned steps S102 comprises step S201-S202:
In step S201, to treat point centered by vague image vegetarian refreshments, obtain N capable × the target picture of M rowVegetarian refreshments region; Wherein, N and M can equate.
In step S202, according to each pixel in target pixel points region and treat between vague image vegetarian refreshmentsPosition relationship, obtain the target pixel points of preset number.
For example, as shown in Figure 2 B, can be to treat centered by vague image vegetarian refreshments 21, obtain 5 row × 5 rowTarget pixel points region, and according to each pixel in target pixel points region and treat between vague image vegetarian refreshmentsPosition relationship, obtain the target pixel points 22 of preset number, as obtain 13 targets as shown in the figurePixel.
As shown in Figure 3A, in one embodiment, above-mentioned steps S103 comprises step S301-S302:
In step S301, calculate each target pixel points and treat the distance between fuzzy pixel;
In step S302, according to distance, for each target pixel points is distributed corresponding default weighted value,Wherein, distance becomes inverse correlation with default weighted value.
In this embodiment, can calculate each target pixel points and treat the distance between vague image vegetarian refreshments,Be that each target pixel points is distributed default weighted value according to this distance, for example, from treating close to vague image vegetarian refreshments is moreWeighted value can be larger. For example, as shown in 3B, can be every according to the weighted value distribution method as figureIndividual target pixel points value of assigning weight, wherein, default weighted value corresponding to each target pixel points isThe weighted value sum corresponding to target pixel points of preset number is 1. Like this, in code, only needHave displacement and add operation, processing speed is the fastest.
As shown in Figure 4, in one embodiment, above-mentioned steps S105 comprises step S401-S403:
In step S401, calculate taking advantage of of pixel value corresponding to each target pixel points and default weighted valueAmass, obtain the weight pixel value of each target pixel points;
In step S402, calculate the weight pixel value sum corresponding to target pixel points of preset number,Obtain total weight pixel value;
In step S403, calculate total weight pixel value and preset number long-pending, obtain treating fuzzy pictureThe fuzzy pixel value that vegetarian refreshments is corresponding.
In this embodiment, for each fuzzy pixel, target pixel points of use preset number treatedWeighted average, like this, the fuzzy pixel value obtaining is more accurate.
As shown in Figure 5, in one embodiment, said method also comprises step S501-S502:
In step S501, receive the order that arranges of input;
In step S502, according to order is set, the default rule of obtaining is set, preset number and/or pre-If weighted value.
In this embodiment, preset and obtain rule, preset number and default weighted value, enumerate except above-mentionedEmbodiment outside, user can also arrange other default rules of obtaining according to individual demand, preset number andPreset weighted value, thereby meet the different demands of different user.
Following is disclosure device embodiment, can be for carrying out disclosure embodiment of the method.
Fig. 6 is according to the block diagram of the fuzzy device of a kind of pixel shown in an exemplary embodiment, this deviceCan realize and become the some or all of of electronic equipment by software, hardware or both combinations. AsShown in Fig. 6, the fuzzy device of this pixel comprises:
Determination module 61, is configured to determine and treats fuzzy pixel;
The first acquisition module 62, is configured to treat point centered by vague image vegetarian refreshments by described, obtains according to defaultGet Rule with described in treat the target pixel points of the contiguous preset number of vague image vegetarian refreshments, wherein, described inDescribed in comprising, the target pixel points of preset number treats fuzzy pixel;
Distribution module 63, is configured to as described default weight corresponding to each target pixel points distribution of statingValue; Wherein, default weighted value corresponding to each target pixel points isThe order of described preset numberWeighted value sum corresponding to mark pixel is 1.
The second acquisition module 64, is configured to obtain pixel value corresponding to described each target pixel points;
Computing module 65, is configured to the pixel value corresponding according to described each target pixel points and default powerHeavily value, treats the fuzzy pixel value that fuzzy pixel is corresponding described in calculating.
In this embodiment, treat fuzzy pixel for each, use vicinity points and treat vague imageThe pixel value that vegetarian refreshments is corresponding and default weighted value are weighted its fuzzy pixel value of average computation, like this, and canTo ensure the accuracy of fuzzy pixel value, default weighted value corresponding to each target pixel points is simultaneouslyThe weighted value sum corresponding to target pixel points of preset number is 1, like this, in code, only needsHave displacement and add operation, processing speed is the fastest.
As shown in Figure 7, in one embodiment, described the first acquisition module 62 comprises:
First obtains submodule 71, is configured to treat point centered by vague image vegetarian refreshments by described, obtains N capableThe target pixel points region of × M row;
Second obtains submodule 72, is configured to according to each pixel and institute in described target pixel points regionState the position relationship for the treatment of between vague image vegetarian refreshments, obtain the target pixel points of preset number.
For example, as shown in Figure 2 B, can, to treat centered by vague image vegetarian refreshments, obtain the order of 5 row × 5 rowMark pixel region, and according to each pixel in target pixel points region with treat between vague image vegetarian refreshmentsPut relation, obtain the target pixel points of preset number, as obtain 13 target pixel points as shown in the figure.
As shown in Figure 8, in one embodiment, described distribution module 63 comprises:
Calculating sub module 81, be configured to calculate each target pixel points with described in treat fuzzy pixel itBetween distance;
Distribution sub module 82, is configured to according to described distance, for each target pixel points is distributed correspondingDefault weighted value, wherein, described distance becomes inverse correlation with described default weighted value.
In this embodiment, can calculate each target pixel points and treat the distance between vague image vegetarian refreshments,Be that each target pixel points is distributed default weighted value according to this distance, for example, from treating close to vague image vegetarian refreshments is moreWeighted value can be larger. For example, as shown in 3B, can be every according to the weighted value distribution method as figureIndividual target pixel points value of assigning weight, wherein, default weighted value corresponding to each target pixel points isThe weighted value sum corresponding to target pixel points of described preset number is 1. Like this, in codeOnly need to have displacement and add operation, processing speed is the fastest.
As shown in Figure 9, in one embodiment, described computing module 65 comprises:
The first calculating sub module 91, is configured to calculate pixel value corresponding to each target pixel points and defaultThe product of weighted value, obtains the weight pixel value of each target pixel points;
The second calculating sub module 92, is configured to calculate the weight picture corresponding to target pixel points of preset numberElement value sum, obtains total weight pixel value;
The 3rd calculating sub module 93, is configured to calculate total weight pixel value and described preset number long-pending,Described in obtaining, treat the fuzzy pixel value that fuzzy pixel is corresponding.
In this embodiment, for each fuzzy pixel, target pixel points of use preset number treatedWeighted average, like this, the fuzzy pixel value obtaining is more accurate.
As shown in figure 10, in one embodiment, said apparatus also comprises:
Receiver module 101, is configured to receive the order that arranges of input;
Module 102 is set, is configured to according to described order is set, the described default rule of obtaining is set,Described preset number and/or described default weighted value.
In this embodiment, preset and obtain rule, preset number and default weighted value, enumerate except above-mentionedEmbodiment outside, user can also arrange other default rules of obtaining according to individual demand, preset number andPreset weighted value, thereby meet the different demands of different user.
According to the third aspect of disclosure embodiment, provide a kind of pixel fuzzy device, comprising:
Processor;
For the memory of storage of processor executable instruction;
Wherein, processor is configured to:
Determine and treat fuzzy pixel;
Treat point centered by vague image vegetarian refreshments by described, according to default obtain Rule with described in treat vague imageThe target pixel points of the preset number of vegetarian refreshments vicinity, wherein, wraps in the target pixel points of described preset numberDescribed in drawing together, treat fuzzy pixel;
For each target pixel points is distributed corresponding default weighted value;
Obtain pixel value corresponding to described each target pixel points;
According to pixel value corresponding to described each target pixel points and default weighted value, treat described in calculating fuzzyFuzzy pixel value corresponding to pixel.
Above-mentioned processor also can be configured to:
Describedly treat point centered by vague image vegetarian refreshments by described, according to default obtain Rule with described in treat mouldThe target pixel points of sticking with paste the contiguous preset number of pixel, comprising:
Treat point centered by vague image vegetarian refreshments by described, obtain N capable × the target pixel points region of M row;
According to each pixel in described target pixel points region and described in treat that position between vague image vegetarian refreshments closesBe to obtain the target pixel points of preset number.
Above-mentioned processor also can be configured to:
Described is that each target pixel points is distributed corresponding default weighted value, comprising:
Calculate each target pixel points and described in treat the distance between fuzzy pixel;
According to described distance, for each target pixel points is distributed corresponding default weighted value, wherein, described inDistance becomes inverse correlation with described default weighted value.
Above-mentioned processor also can be configured to:
Described according to pixel value corresponding to described each target pixel points and default weighted value, treat described in calculatingThe fuzzy pixel value that fuzzy pixel is corresponding, comprising:
The product that calculates pixel value corresponding to each target pixel points and default weighted value, obtains each targetThe weight pixel value of pixel;
Weight pixel value sum corresponding to target pixel points of calculating preset number, obtains total weight pixel value;
Calculate total weight pixel value and described preset number long-pending, described in obtaining, treat fuzzy pixel correspondenceFuzzy pixel value.
Above-mentioned processor also can be configured to:
Default weighted value corresponding to described each target pixel points isThe target of described preset numberThe weighted value sum that pixel is corresponding is 1.
Above-mentioned processor also can be configured to:
Described method also comprises:
Receive the order that arranges of input;
According to described order is set, the described default rule of obtaining is set, described preset number and/or described pre-If weighted value.
Figure 11 is according to a kind of block diagram for the fuzzy device of pixel shown in an exemplary embodiment, shouldDevice is applicable to electronic equipment. For example, device 1100 can be mobile phone, computer, digital broadcastingTerminal, information receiving and transmitting equipment, game console, tablet device, Medical Devices, body-building equipment, individualDigital assistants etc.
Device 1100 can comprise following one or more assembly: processing components 1102, and memory 1104,Power supply module 1106, multimedia groupware 1108, audio-frequency assembly 1110, the interface of I/O (I/O)1112, sensor cluster 1114, and communications component 1116.
The integrated operation of processing components 1102 common control device 1100, such as with demonstration, call,Data communication, the operation that camera operation and record operation are associated. Processing components 1102 can comprise oneOr multiple processors 1120 carry out instruction, to complete all or part of step of above-mentioned method. In addition,Processing components 1102 can comprise one or more modules, be convenient to processing components 1102 and other assemblies itBetween mutual. For example, processing components 1102 can comprise multi-media module, to facilitate multimedia groupware1108 and processing components 1102 between mutual.
Memory 1104 is configured to store various types of data to be supported in the operation of equipment 1100.The example of these data comprise for device 1100 on operation any application program or the instruction of method,Contact data, telephone book data, message, picture, video etc. Memory 1104 can be by any classThe volatibility of type or non-volatile memory device or their combination realize, as static random access memoryDevice (SRAM), Electrically Erasable Read Only Memory (EEPROM), erasable programmable is read-onlyMemory (EPROM), programmable read only memory (PROM), read-only storage (ROM), magneticMemory, flash memory, disk or CD.
Electric power assembly 1106 provides electric power for installing 1100 various assemblies. Electric power assembly 1106 can wrapDraw together power-supply management system, one or more power supplys, and other and generate, manage and distribute for device 1100The assembly that electric power is associated.
The output interface that provides between described device 1100 and user is provided multimedia groupware 1108Screen. In certain embodiments, screen can comprise liquid crystal display (LCD) and touch panel (TP).If screen comprises touch panel, screen may be implemented as touch-screen, to receive the input from userSignal. Touch panel comprises that one or more touch sensors are with on sensing touch, slip and touch panelGesture. Described touch sensor is the border of sensing touch or sliding action not only, but also detectsDuration and the pressure relevant to described touch or slide. In certain embodiments, multimedia groupPart 1108 comprises a front-facing camera and/or post-positioned pick-up head. When equipment 1100 is in operator scheme,During as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive outside many matchmakersVolume data. Each front-facing camera and post-positioned pick-up head can be a fixing optical lens system or toolThere are focal length and optical zoom ability.
Audio-frequency assembly 1110 is configured to output and/or input audio signal. For example, audio-frequency assembly 1110Comprise a microphone (MIC), when device is 1100 in operator scheme, as call model, record mouldWhen formula and speech recognition mode, microphone is configured to receive external audio signal. The audio frequency letter receivingNumber can be further stored in memory 1104 or be sent via communications component 1116. In some enforcementIn example, audio-frequency assembly 1110 also comprises a loudspeaker, for output audio signal.
I/O interface 1112 is for providing interface between processing components 1102 and peripheral interface module, above-mentioned outsideEnclosing interface module can be keyboard, some striking wheel, button etc. These buttons can include but not limited to: homepageButton, volume button, start button and locking press button.
Sensor cluster 1114 comprises one or more sensors, is used to device 1100 that each side is providedThe state estimation of face. For example, sensor cluster 1114 can detect the opening/closing shape of equipment 1100State, the relative positioning of assembly, for example described assembly is display and the keypad of device 1100, sensorThe position of all right checkout gear 1100 of assembly 1114 or 1100 assemblies of device changes, user and dressPut the existence of 1100 contacts or do not exist, the temperature of device 1100 orientation or acceleration/deceleration and device 1100Degree changes. Sensor cluster 1114 can comprise proximity transducer, be configured to without any thingNear the existence of object detecting when reason contact. Sensor cluster 1114 can also comprise optical sensor, asCMOS or ccd image sensor, for using in imaging applications. In certain embodiments, shouldSensor cluster 1114 can also comprise acceleration transducer, gyro sensor, Magnetic Sensor, pressureSensor or temperature sensor.
Communications component 1116 is configured to be convenient to wired or wireless mode between device 1100 and other equipmentCommunication. Device 1100 wireless networks that can access based on communication standard, as WiFi, 2G or 3G,Or their combination. In one exemplary embodiment, communication component 1116 receives via broadcast channelFrom broadcast singal or the broadcast related information of external broadcasting management system. In one exemplary embodiment,Described communication component 1116 also comprises near-field communication (NFC) module, to promote junction service. For example,Can be based on RF identification (RFID) technology in NFC module, Infrared Data Association (IrDA) technology,Ultra broadband (UWB) technology, bluetooth (BT) technology and other technologies realize.
In the exemplary embodiment, device 1100 can be by one or more application specific integrated circuits(ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), able to programme patrollingCollect device (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessorOr other electronic components realizations, for carrying out said method.
In the exemplary embodiment, also provide a kind of non-provisional computer-readable storage that comprises instructionMedium, for example, comprise the memory 1104 of instruction, and above-mentioned instruction can be by the processor 1120 of device 1100Carry out to complete said method. For example, described non-provisional computer-readable recording medium can be ROM,Random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage equipment etc.
A kind of non-provisional computer-readable recording medium, when the instruction in described storage medium is by installingWhen 1100 processor is carried out, make device 1100 can carry out above-mentioned pixel blur method, described inMethod comprises:
Determine and treat fuzzy pixel;
Treat point centered by vague image vegetarian refreshments by described, according to default obtain Rule with described in treat vague imageThe target pixel points of the preset number of vegetarian refreshments vicinity, wherein, wraps in the target pixel points of described preset numberDescribed in drawing together, treat fuzzy pixel;
For each target pixel points is distributed corresponding default weighted value;
Obtain pixel value corresponding to described each target pixel points;
According to pixel value corresponding to described each target pixel points and default weighted value, treat described in calculating fuzzyFuzzy pixel value corresponding to pixel.
In one embodiment, describedly treat point centered by vague image vegetarian refreshments by described, obtain rule according to defaultObtain and the described target pixel points for the treatment of the contiguous preset number of vague image vegetarian refreshments, comprising:
Treat point centered by vague image vegetarian refreshments by described, obtain N capable × the target pixel points region of M row;
According to each pixel in described target pixel points region and described in treat that position between vague image vegetarian refreshments closesBe to obtain the target pixel points of preset number.
In one embodiment, described is that each target pixel points is distributed corresponding default weighted value, comprising:
Calculate each target pixel points and described in treat the distance between fuzzy pixel;
According to described distance, for each target pixel points is distributed corresponding default weighted value, wherein, described inDistance becomes inverse correlation with described default weighted value.
In one embodiment, described according to pixel value corresponding to described each target pixel points and default powerHeavily value, treats the fuzzy pixel value that fuzzy pixel is corresponding described in calculating, comprising:
The product that calculates pixel value corresponding to each target pixel points and default weighted value, obtains each targetThe weight pixel value of pixel;
Weight pixel value sum corresponding to target pixel points of calculating preset number, obtains total weight pixel value;
Calculate total weight pixel value and described preset number long-pending, described in obtaining, treat fuzzy pixel correspondenceFuzzy pixel value.
In one embodiment, default weighted value corresponding to described each target pixel points isInstituteWeighted value sum corresponding to target pixel points of stating preset number is 1.
In one embodiment, described method also comprises:
Receive the order that arranges of input;
According to described order is set, the described default rule of obtaining is set, described preset number and/or described pre-If weighted value.
Those skilled in the art, considering description and putting into practice after disclosed herein disclosing, will easily expect thisDisclosed other embodiment. The application is intended to contain any modification of the present disclosure, purposes or adaptabilityChange, these modification, purposes or adaptations are followed general principle of the present disclosure and are comprised these public affairsOpen undocumented common practise or conventional techniques means in the art. Description and embodiment only byBe considered as exemplary, true scope of the present disclosure and spirit pointed out by claim below.
Should be understood that, the disclosure is not limited to described above and illustrated in the accompanying drawings accurateStructure, and can carry out various amendments and change not departing from its scope. The scope of the present disclosure is only by instituteAttached claim limits.
Claims (13)
1. a pixel blur method, is characterized in that, comprising:
Determine and treat fuzzy pixel;
Treat point centered by vague image vegetarian refreshments by described, according to default obtain Rule with described in treat vague imageThe target pixel points of the preset number of vegetarian refreshments vicinity, wherein, wraps in the target pixel points of described preset numberDescribed in drawing together, treat fuzzy pixel;
For each target pixel points is distributed corresponding default weighted value;
Obtain pixel value corresponding to described each target pixel points;
According to pixel value corresponding to described each target pixel points and default weighted value, treat described in calculating fuzzyFuzzy pixel value corresponding to pixel.
2. method according to claim 1, is characterized in that, described with the described vague image vegetarian refreshments for the treatment ofCentered by point, according to default obtain Rule with described in treat the order of the contiguous preset number of vague image vegetarian refreshmentsMark pixel, comprising:
Treat point centered by vague image vegetarian refreshments by described, obtain N capable × the target pixel points region of M row;
According to each pixel in described target pixel points region and described in treat that position between vague image vegetarian refreshments closesBe to obtain the target pixel points of preset number.
3. method according to claim 1, is characterized in that, describedly divides for each target pixel pointsThe default weighted value that pairing is answered, comprising:
Calculate each target pixel points and described in treat the distance between fuzzy pixel;
According to described distance, for each target pixel points is distributed corresponding default weighted value, wherein, described inDistance becomes inverse correlation with described default weighted value.
4. method according to claim 1, is characterized in that, described according to described each target pictureThe pixel value that vegetarian refreshments is corresponding and default weighted value, treat the fuzzy pixel that fuzzy pixel is corresponding described in calculatingValue, comprising:
The product that calculates pixel value corresponding to each target pixel points and default weighted value, obtains each targetThe weight pixel value of pixel;
Weight pixel value sum corresponding to target pixel points of calculating preset number, obtains total weight pixel value;
Calculate total weight pixel value and described preset number long-pending, described in obtaining, treat fuzzy pixel correspondenceFuzzy pixel value.
5. method according to claim 1, is characterized in that, described each target pixel points correspondenceDefault weighted value beThe weighted value sum corresponding to target pixel points of described preset number is 1.
6. according to the method described in any one in claim 1 to 5, it is characterized in that, described method alsoComprise:
Receive the order that arranges of input;
According to described order is set, the described default rule of obtaining is set, described preset number and/or described pre-If weighted value.
7. the fuzzy device of pixel, is characterized in that, comprising:
Determination module, treats fuzzy pixel for determining;
The first acquisition module, for treating point centered by vague image vegetarian refreshments by described, according to the default rule of obtainingObtain and the described target pixel points for the treatment of the contiguous preset number of vague image vegetarian refreshments, wherein, described present countDescribed in comprising, object target pixel points treats fuzzy pixel;
Distribution module, states each target pixel points and distributes corresponding default weighted value described in being used to;
The second acquisition module, for obtaining pixel value corresponding to described each target pixel points;
Computing module, for according to pixel value corresponding to described each target pixel points and default weighted value,Described in calculating, treat the fuzzy pixel value that fuzzy pixel is corresponding.
8. device according to claim 7, is characterized in that, described the first acquisition module comprises:
First obtains submodule, for treating point centered by vague image vegetarian refreshments by described, obtain N capable × M rowTarget pixel points region;
Second obtains submodule, for according to the each pixel in described target pixel points region with described in treat mouldStick with paste the position relationship between pixel, obtain the target pixel points of preset number.
9. device according to claim 7, is characterized in that, described distribution module comprises:
Calculating sub module, for calculate each target pixel points and described in treat the distance between fuzzy pixelFrom;
Distribution sub module, for according to described distance, is default power corresponding to each target pixel points distributionHeavily value, wherein, described distance becomes inverse correlation with described default weighted value.
10. device according to claim 7, is characterized in that, described computing module comprises:
The first calculating sub module, for calculating pixel value corresponding to each target pixel points and default weighted valueProduct, obtain the weight pixel value of each target pixel points;
The second calculating sub module, for calculate weight pixel value corresponding to the target pixel points of preset number itWith, obtain total weight pixel value;
The 3rd calculating sub module, long-pending for calculating total weight pixel value and described preset number, obtain instituteState the fuzzy pixel value for the treatment of that fuzzy pixel is corresponding.
11. devices according to claim 7, is characterized in that, described each target pixel points pairThe default weighted value of answering isThe weighted value sum corresponding to target pixel points of described preset number is1。
12. according to the device described in any one in claim 7 to 11, it is characterized in that described deviceAlso comprise:
Receiver module, for receiving the order that arranges of input;
Module is set, for according to described order being set, the described default rule of obtaining is set, described defaultNumber and/or described default weighted value.
13. 1 kinds of fuzzy devices of pixel, is characterized in that, comprising:
Processor;
For the memory of storage of processor executable instruction;
Wherein, described processor is configured to:
Determine and treat fuzzy pixel;
Treat point centered by vague image vegetarian refreshments by described, according to default obtain Rule with described in treat vague imageThe target pixel points of the preset number of vegetarian refreshments vicinity, wherein, wraps in the target pixel points of described preset numberDescribed in drawing together, treat fuzzy pixel;
For each target pixel points is distributed corresponding default weighted value;
Obtain pixel value corresponding to described each target pixel points;
According to pixel value corresponding to described each target pixel points and default weighted value, treat described in calculating fuzzyFuzzy pixel value corresponding to pixel.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510997920.XA CN105608669A (en) | 2015-12-25 | 2015-12-25 | Pixel blurring method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510997920.XA CN105608669A (en) | 2015-12-25 | 2015-12-25 | Pixel blurring method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105608669A true CN105608669A (en) | 2016-05-25 |
Family
ID=55988585
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510997920.XA Pending CN105608669A (en) | 2015-12-25 | 2015-12-25 | Pixel blurring method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105608669A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109035158A (en) * | 2018-06-25 | 2018-12-18 | 东软集团股份有限公司 | Image fuzzy processing method, device, storage medium and electronic equipment |
CN110827205A (en) * | 2018-08-14 | 2020-02-21 | 现代摩比斯株式会社 | Apparatus and method for processing image blur |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5424783A (en) * | 1993-02-10 | 1995-06-13 | Wong; Yiu-Fai | Clustering filter method for noise filtering, scale-space filtering and image processing |
EP1289309A1 (en) * | 2001-08-31 | 2003-03-05 | STMicroelectronics S.r.l. | Noise filter for Bayer pattern image data |
CN1766927A (en) * | 2004-05-20 | 2006-05-03 | 豪威科技有限公司 | Method and system for locally adapting image processing filter |
CN101763627A (en) * | 2008-12-12 | 2010-06-30 | 新奥特(北京)视频技术有限公司 | Method and device for realizing Gaussian blur |
CN104156922A (en) * | 2014-08-12 | 2014-11-19 | 广州市久邦数码科技有限公司 | Image processing method and image processing system |
CN104503672A (en) * | 2014-12-05 | 2015-04-08 | 深圳天珑无线科技有限公司 | Method for setting fuzzy wallpaper and mobileequipment |
-
2015
- 2015-12-25 CN CN201510997920.XA patent/CN105608669A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5424783A (en) * | 1993-02-10 | 1995-06-13 | Wong; Yiu-Fai | Clustering filter method for noise filtering, scale-space filtering and image processing |
EP1289309A1 (en) * | 2001-08-31 | 2003-03-05 | STMicroelectronics S.r.l. | Noise filter for Bayer pattern image data |
CN1766927A (en) * | 2004-05-20 | 2006-05-03 | 豪威科技有限公司 | Method and system for locally adapting image processing filter |
CN101763627A (en) * | 2008-12-12 | 2010-06-30 | 新奥特(北京)视频技术有限公司 | Method and device for realizing Gaussian blur |
CN104156922A (en) * | 2014-08-12 | 2014-11-19 | 广州市久邦数码科技有限公司 | Image processing method and image processing system |
CN104503672A (en) * | 2014-12-05 | 2015-04-08 | 深圳天珑无线科技有限公司 | Method for setting fuzzy wallpaper and mobileequipment |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109035158A (en) * | 2018-06-25 | 2018-12-18 | 东软集团股份有限公司 | Image fuzzy processing method, device, storage medium and electronic equipment |
CN109035158B (en) * | 2018-06-25 | 2021-03-26 | 东软集团股份有限公司 | Image blurring processing method, image blurring processing device, storage medium and electronic equipment |
CN110827205A (en) * | 2018-08-14 | 2020-02-21 | 现代摩比斯株式会社 | Apparatus and method for processing image blur |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106651955B (en) | Method and device for positioning target object in picture | |
CN109348125B (en) | Video correction method, video correction device, electronic equipment and computer-readable storage medium | |
CN105809704A (en) | Method and device for identifying image definition | |
CN103955481B (en) | image display method and device | |
CN105607883A (en) | Instant message processing method and device | |
CN104519282A (en) | Image shooting method and device | |
CN106355573A (en) | Target object positioning method and device in pictures | |
CN104598131A (en) | Method and device for adjusting page display mode | |
CN105516586A (en) | Picture shooting method, device and system | |
CN105427233A (en) | Method and device for removing watermark | |
CN106021092A (en) | Method and device for determining starting duration of application program | |
CN104182127A (en) | Icon movement method and device | |
CN105631467A (en) | Method and device for displaying picture | |
CN106339695A (en) | Face similarity detection method, device and terminal | |
CN105139033A (en) | Classifier construction method and device and image processing method and device | |
CN104123720A (en) | Image repositioning method, device and terminal | |
CN104168422A (en) | Image processing method and device | |
CN105975961A (en) | Human face recognition method, device and terminal | |
CN104464674B (en) | Liquid crystal display method of adjustment and device | |
CN105208284A (en) | Photographing reminding method and device | |
CN105843503A (en) | Application starting method and device as well as terminal equipment | |
CN105357449A (en) | Shooting method and device, and image processing method and apparatus | |
CN107657608B (en) | Image quality determination method and device and electronic equipment | |
CN104010129A (en) | Image processing method, device and terminal | |
WO2021103994A1 (en) | Model training method and apparatus for information recommendation, electronic device and medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160525 |
|
RJ01 | Rejection of invention patent application after publication |