CN105678685A - Picture processing method and apparatus - Google Patents

Picture processing method and apparatus Download PDF

Info

Publication number
CN105678685A
CN105678685A CN201511019142.3A CN201511019142A CN105678685A CN 105678685 A CN105678685 A CN 105678685A CN 201511019142 A CN201511019142 A CN 201511019142A CN 105678685 A CN105678685 A CN 105678685A
Authority
CN
China
Prior art keywords
pixel
color value
blocked
pixel point
pending region
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201511019142.3A
Other languages
Chinese (zh)
Other versions
CN105678685B (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.)
Beijing Xiaomi Technology Co Ltd
Xiaomi Inc
Original Assignee
Xiaomi Inc
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 Xiaomi Inc filed Critical Xiaomi Inc
Priority to CN201511019142.3A priority Critical patent/CN105678685B/en
Publication of CN105678685A publication Critical patent/CN105678685A/en
Application granted granted Critical
Publication of CN105678685B publication Critical patent/CN105678685B/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/04Context-preserving transformations, e.g. by using an importance map

Landscapes

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

Abstract

The invention discloses a picture processing method and apparatus. The picture processing method includes the steps: acquiring a region to be processed, wherein the region to be processed belongs to a shaded region in a picture and the edge of the region to be processed includes the pixel points which are not shaded; utilizing the color values of the pixel points which are not shaded to determine the color values of the central pixel points in the region to be processed; and utilizing the color values of the pixel points which are not shaded and the color values of the central pixel points to determine the color values of the residual pixel points in the region to be processed. The picture processing method enables the picture processing process to be more objective, and is also conductive to realization of smooth transition of the color values of the pixel points, improvement of the restoration effect and avoiding occurrence of the fence phenomenon.

Description

Image processing method and device
Technical field
It relates to image processing field, particularly relate to a kind of image processing method and device.
Background technology
Generally, in order to identify the source of picture or video, it is provided that side can add some significant patterns on the ad-hoc location of picture or video. Such as, when user is by Sohu's video-see video, the upper left corner of video would generally show the significant pattern of Sohu's video, it is possible to the dashed region in exemplary embodiment shown in Figure 1.
The image of picture or the specific location of video to a certain extent, can be caused and block by significant pattern. At present, it is possible to repair, by following correlation technique, the region that flagged property pattern shelters from:
From picture, intercept the rectangular area that flagged property pattern blocks, and replicate next line pixel adjacent bottom rectangular area, say, that by the color value of next line pixel adjacent for bottom, as the color value of bottom pixel point. This repair mode, it is possible to the region that can cause being blocked occurs obvious barrage after repair, and repairing effect is poor, affects user's perception to picture or video.
Summary of the invention
For overcoming Problems existing in correlation technique, the disclosure provides a kind of image processing method and device.
First aspect according to disclosure embodiment, it is provided that a kind of image processing method, including: obtaining pending region, described pending region belongs to the region that is blocked of picture, and the edge in described pending region includes the pixel that is not blocked; The color value of the pixel not being blocked described in utilization, it is determined that the color value of the central pixel point in described pending region; The color value of the pixel not being blocked described in utilization and the color value of described central pixel point, it is determined that the color value of the residual pixel point in described pending region.
Embodiment of the disclosure that the technical scheme of offer can include following beneficial effect: first with the pixel not being blocked being positioned at pending edges of regions, determine the color value of the central pixel point in pending region, and then recycle the pixel and central pixel point that are not blocked, it is determined that go out the color value of the residual pixel point in pending region. Such repair process, whether the color value of central pixel point, or the color value of residual pixel point, based on the color value of the pixel not being blocked all originally existed in picture, the picture processing process more objectivity of disclosure scheme can be made, additionally aid and realize seamlessly transitting of pixel color value, improve repairing effect, it is to avoid barrage occurs.
In the first possible embodiment of disclosure embodiment first aspect, the color value of the pixel not being blocked described in described utilization, determine the color value of the central pixel point in described pending region, including: from the described pixel not being blocked, choose standby pixel; Average by the color value of described standby pixel, it is determined that for the color value of described central pixel point.
The technical scheme that the present embodiment provides can include following beneficial effect: the color value determining central pixel point that can be simple and convenient. It addition, based on the color value of the pixel not being blocked originally existed in picture, it is thus achieved that the color value of central pixel point, also can make the picture processing process more objectivity of disclosure scheme.
In the embodiment that the second of disclosure embodiment first aspect is possible, first pixel belongs to the residual pixel point in described pending region, the color value of the pixel not then being blocked described in described utilization and the color value of described central pixel point, determine the color value of residual pixel point in described pending region, including: from the edge pixel point in described pending region, determine the second pixel, described second pixel is the described central pixel point extended line to described first pixel line, the pixel intersected with the edge in described pending region, determine the weighted value w of described central pixel point1Weighted value w with described second pixel2; Obtain the color value P of described first pixel1=P0*w1+P2*w2, P0For the color value of described central pixel point, P2Color value for described second pixel.
The technical scheme that the present embodiment provides can include following beneficial effect: can be simple and convenient realize seamlessly transitting of pixel color value, contribute to optimizing repairing effect to the region that is blocked.
In conjunction with the embodiment that the second of disclosure embodiment first aspect is possible, in the embodiment that the third is possible, the described weighted value w determining described central pixel point1Weighted value w with described second pixel2, including:
Obtain the distance d between described central pixel point and described first pixel1, and the spacing d of described first pixel and described second pixel2; According to described d1With described d2, it is determined that described w1With described w2If: d1>d2, then arrange and make w1<w2, and w1+w2=1; If d1<d2, then arrange and make w1>w2, and w1+w2=1; If d1=d2, then arrange and make w1=w2, and w1+w2=1.
The technical scheme that the present embodiment provides can include following beneficial effect: generally, the color value between neighbor pixel in picture can seamlessly transit mostly, generally do not have color value sudden change, therefore, in disclosure scheme, can according to the position relationship between the first pixel, central pixel point and the second pixel three, it is determined that go out to represent the central pixel point influence degree w to the first pixel color value1, second pixel influence degree w to the first pixel color value2. According to putting from more near, the principle that weighted value is more big, w is set1And w2
In conjunction with the second or the third possible embodiment of disclosure embodiment first aspect, in the 4th kind of possible embodiment, if the edge in described pending region includes the pixel being blocked, then at the color value P of described first pixel of described acquisition1Before, described method also includes: judge whether described second pixel is the pixel being blocked; If described second pixel is the pixel being blocked, then from the edge pixel point in described pending region, determine the pixel that be not blocked adjacent with described second pixel, and utilize the color value of the pixel not being blocked determined, it is thus achieved that the color value P of described second pixel2
The technical scheme that the present embodiment provides can include following beneficial effect: as a kind of possible embodiment, the edge in pending region potentially includes the pixel that flagged property pattern blocks, corresponding to this, can after determining the second pixel, first judge that the second pixel is whether for the pixel that is blocked, and then obtain the color value of the second pixel according to judged result.If it is judged that represent that the second pixel is the pixel being blocked, the equally possible color value utilized between neighbor pixel does not generally have the principle of sudden change, determine from edge pixel point, the pixel that be not blocked adjacent with the second pixel, and utilize the pixel determined, obtain the color value of the second pixel, use during for the color value of subsequent calculations the first pixel.
Second aspect according to disclosure embodiment, a kind of picture processing device is provided, including: pending region acquisition module, it is configured to obtain pending region, described pending region belongs to the region that is blocked of picture, and the edge in described pending region includes the pixel that is not blocked; Central pixel point color value determines module, the color value of the pixel not being blocked described in being configured to, with, it is determined that the color value of the central pixel point in described pending region; Residual pixel point color value determines module, the color value of the pixel not being blocked described in being configured to, with and the color value of described central pixel point, it is determined that the color value of the residual pixel point in described pending region.
In the first possible embodiment of disclosure embodiment second aspect, described central pixel point color value determines module, is configured to choose standby pixel from the described pixel not being blocked; Average by the color value of described standby pixel, it is determined that for the color value of described central pixel point.
In the embodiment that the second of disclosure embodiment second aspect is possible, first pixel belongs to the residual pixel point in described pending region, then described residual pixel point color value determines that module includes: the second pixel determines module, it is configured to from the edge pixel point in described pending region, determine that the second pixel, described second pixel are the pixel that described central pixel point intersects to the extended line of described first pixel line and the edge in described pending region; Weighted value determines module, is configured to determine that the weighted value w of described central pixel point1Weighted value w with described second pixel2; First pixel color value obtains module, is configured to obtain the color value P of described first pixel1=P0*w1+P2*w2, P0For the color value of described central pixel point, P2Color value for described second pixel.
In conjunction with the embodiment that the second of disclosure embodiment second aspect is possible, in the embodiment that the third is possible, described weighted value determines module, is configured to obtain the distance d between described central pixel point and described first pixel1, and the spacing d of described first pixel and described second pixel2; According to described d1With described d2, it is determined that described w1With described w2If: d1>d2, then arrange and make w1<w2, and w1+w2=1; If d1<d2, then arrange and make w1>w2, and w1+w2=1; If d1=d2, then arrange and make w1=w2, and w1+w2=1.
The second or the third possible embodiment in conjunction with disclosure embodiment second aspect, in the 4th kind of possible embodiment, if the edge in described pending region includes the pixel being blocked, then described residual pixel point color value determines that module also includes: judge module, is configured to obtain module in described first pixel color value and obtains described P1Before, it is judged that whether described second pixel is the pixel being blocked; Second pixel color value obtains module, it is configured to when described judge module judges described second pixel as the pixel being blocked, from the edge pixel point in described pending region, determine the pixel that be not blocked adjacent with described second pixel, and utilize the color value of the pixel not being blocked determined, it is thus achieved that the color value P of described second pixel2
The third aspect according to disclosure embodiment, it is provided that a kind of picture processing device, including: processor;For storing the memorizer of processor executable; Wherein, described processor is configured to: obtain pending region, and described pending region belongs to the region that is blocked of picture, and the edge in described pending region includes the pixel that is not blocked; The color value of the pixel not being blocked described in utilization, it is determined that the color value of the central pixel point in described pending region; The color value of the pixel not being blocked described in utilization and the color value of described central pixel point, it is determined that the color value of the residual pixel point in described pending region.
It should be appreciated that it is only exemplary and explanatory that above general description and details hereinafter describe, the disclosure can not be limited.
Accompanying drawing explanation
Accompanying drawing herein is merged in description and constitutes the part of this specification, it is shown that meets and embodiment of the disclosure, and for explaining the principle of the disclosure together with description.
Fig. 1 is the schematic diagram of the picture that the flagged property pattern according to an exemplary embodiment blocks.
Fig. 2 is the flow chart of a kind of image processing method according to an exemplary embodiment.
Fig. 3 is the flow chart of the method for the color value of determination the first pixel according to an exemplary embodiment.
Fig. 4 is the schematic diagram in the pending region according to an exemplary embodiment.
Fig. 5 is the flow chart of the method for the color value of determination the first pixel according to another exemplary embodiment.
Fig. 6 is the block diagram of a kind of picture processing device according to an exemplary embodiment.
Fig. 7 is the block diagram of a kind of picture processing device according to another exemplary embodiment.
Detailed description of the invention
Here in detail exemplary embodiment being illustrated, its example representation is in the accompanying drawings. When as explained below relates to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element. Embodiment described in following exemplary embodiment does not represent all embodiments consistent with the disclosure. On the contrary, they only with in appended claims describe in detail, the disclosure some in the example of consistent apparatus and method.
Fig. 2 is the flow chart of a kind of image processing method according to an exemplary embodiment. This image processing method can apply to smart machine. For example, smart machine can be smart mobile phone, panel computer, PC, notebook computer etc. This image processing method may comprise steps of:
In step 201, obtaining pending region, described pending region belongs to the region that is blocked of picture, and the edge in described pending region includes the pixel that is not blocked.
Utilize the technical scheme that the disclosure provides, it is possible to the region that property pattern flagged in picture or video is blocked carries out repair process. It is to be appreciated that what video was made up of picture one by one, the region that property pattern flagged in video is blocked carries out repair process, namely according to disclosure scheme, every frame picture that video is included carries out repair process.
After getting the picture that flagged property pattern blocks, it is possible to first extract pending region from picture. In disclosure scheme, pending region belongs to the region that is blocked of picture, and the edge in pending region includes the pixel that is not blocked.
In conjunction with practical application, it is possible to the whole region that is blocked is defined as pending region, i.e. directly can intercept the region that flagged property pattern blocks from picture, it is thus achieved that pending region;Or, it is possible to the region that will be blocked is divided at least two parts, and therefrom selects pending region, and this can not be limited by disclosure scheme. It is to be appreciated that be blocked, regular shape can be presented as in region, for instance, rectangle, circle etc., namely include the region that flagged property pattern blocks; Or, the region that is blocked can also be presented as that this can not be limited by disclosure scheme according to the irregularity shape that the shape of significant pattern is truncated to.
In disclosure scheme, the pixel that the edge in pending region includes not being blocked is it is to be understood that the edge pixel point in pending region is all the pixel not being blocked, i.e. directly from picture, can get the color value of each edge pixel point. Or, the edge in pending region can include two kinds of pixel: the pixel not being blocked, and namely directly can get the color value of this pixel from picture; And the pixel being blocked, namely directly can not get the color value of this pixel from picture, corresponding to this, it is possible to introduce referring to FIG. 5 below illustrated embodiment place, wouldn't describe in detail herein.
In step 202., the color value of the pixel not being blocked described in utilization, it is determined that the color value of the central pixel point in described pending region.
In disclosure scheme, the region that is blocked is carried out repair process it is to be understood that determine the color value of each pixel that the region that is blocked includes respectively.
After getting pending region, it is possible to first determine the central pixel point in pending region, and then utilize the color value of the pixel not being blocked, it is determined that go out the color value of central pixel point.
In a kind of possible embodiment, it is possible to the pixel being never blocked is chosen standby pixel; And the average of the color value by standby pixel, it is determined that centered by the color value of pixel. In conjunction with concrete application, it is possible to all pixels not being blocked are chosen for standby pixel; Or, it is also possible to randomly selecting the standby pixel of predetermined number from all pixels not being blocked, this can not be limited by disclosure embodiment.
The disclosure is when the color value utilizing standby pixel determines the color value of central pixel point, it is possible to calculate the average of the color value of all standby pixels, and using this average color value as central pixel point; Or, it is possible to the color value arranged in sequence to all standby pixels, and using the median color value as central pixel point; Or, it is possible to add up the color value of all standby pixels, will appear from the number of times maximum color value color value as central pixel point. The scheme of the disclosure embodiment color value to determining central pixel point can not limit.
In step 203, the color value of the pixel not being blocked described in utilization and the color value of described central pixel point, it is determined that the color value of the residual pixel point in described pending region.
Such as introduction made above, the region that is blocked is carried out repair process by disclosure scheme, namely to obtain the color value of each pixel that the region that is blocked includes.
After obtaining the color value of central pixel point in step 202., it is possible to use the color value of the pixel not being blocked and the color value of central pixel point, it is determined that go out the color value of residual pixel point in pending region. Disclosure scheme is repaired pending region, it is possible to be presented as the color value obtaining central pixel point, and obtain the color value of residual pixel point. Further, if pending region is the whole region that is blocked, so just achieve the purpose repairing the region that is blocked; If pending region is the whole part being blocked in region, then can refer to disclosure embodiment illustrated in fig. 1, continue other pending regions are carried out repair process, can realize repairing the purpose in the region that is blocked equally.
In the technical scheme that the disclosure provides, first with the pixel not being blocked being positioned at pending edges of regions, determine the color value of the central pixel point in pending region, and then in conjunction with the pixel not being blocked and central pixel point, determine the color value of the residual pixel point in pending region, repair pending region. Such process, whether the color value of central pixel point, or the color value of residual pixel point, based on the color value of the pixel not being blocked all originally existed in picture, make the repair process more objectivity of the disclosure, additionally aid and realize seamlessly transitting of pixel color value, improve repairing effect, it is to avoid barrage occurs.
Below the method determining residual pixel point color value in disclosure scheme is explained.
Fig. 3 is the flow chart of the method for the color value of determination the first pixel according to an exemplary embodiment. First pixel belongs to the residual pixel point in pending region, namely the first pixel can be any one the residual pixel point in pending region. This determines that the method for color value of the first pixel may comprise steps of:
In step 301, from the edge pixel point in described pending region, it is determined that go out the second pixel, described second pixel is the pixel that described central pixel point intersects to the extended line of described first pixel line and the edge in described pending region.
In disclosure scheme, it is possible to use the color value of central pixel point and the color value of the second pixel, it is determined that the color value of the first pixel. Second pixel belongs to the pixel not being blocked, and as a kind of example, the second pixel can be the pixel that central pixel point intersects to the extended line of the first pixel line and the edge in pending region. Fig. 4 is the schematic diagram in the pending region according to an exemplary embodiment, and wherein, central pixel point is point0, the first pixel is point1, and the second pixel determined by extended line is point2.
In step 302, it is determined that the weighted value w of described central pixel point1Weighted value w with described second pixel2
In step 303, it is thus achieved that the color value P of described first pixel1=P0*w1+P2*w2, P0For the color value of described central pixel point, P2Color value for described second pixel.
As a kind of example, the disclosure can utilize the mode of weighted sum, based on the color value P of central pixel point0Color value P with the second pixel2, it is thus achieved that the color value P of the first pixel1. Corresponding to this, it is possible to first determine the weighted value w of central pixel point1, the second pixel weighted value w2, then based on formula P1=P0*w1+P2*w2Obtain the color value P of the first pixel1
In a kind of possible embodiment, it is possible to the distance according to the first pixel to central pixel point, the second pixel, it is determined that w1And w2. For example, it is possible to the distance d first obtained between central pixel point and the first pixel1, the first pixel and the second pixel spacing d2; Further according to d1And d2, it is determined that go out w1And w2If: d1>d2, then arrange and make w1<w2, and w1+w2=1; If d1<d2, then arrange and make w1>w2, and w1+w2=1; If d1=d2, then arrange and make w1=w2, and w1+w2=1. Disclosure embodiment is for w1And w2Value can not limit, as a kind of example, it is possible to according to d1And d2Ratio, it is determined that w1And w2Value.
Generally, the color value between neighbor pixel in picture can seamlessly transit mostly, does not generally have color value sudden change, and therefore, disclosure scheme can according to point from more near, and the principle that weighted value is more big arranges w1And w2.It is to say, the first pixel is the closer in which pixel, then the weighted value of this pixel is just relatively big, and still for schematic diagram shown in Fig. 4, relative point0, point1 are closer to point2, therefore may be configured as w2>w1
Furthermore it is possible to understand ground, make w1+w2=1, help to ensure that the flatness of the first pixel color value, it is to avoid occur that color value is suddenlyd change.
To sum up, just can be simple and convenient realize seamlessly transitting of pixel color value, contribute to optimizing repairing effect to the region that is blocked.
Such as introduction made above, the edge pixel point in pending region can be all the pixel not being blocked, it is also possible to part is the pixel not being blocked. If the edge in pending region includes the pixel being blocked, then can determine the color value of the first pixel according to scheme shown in Fig. 5.
Fig. 5 is the flow chart of the method for the color value of determination the first pixel according to another exemplary embodiment. First pixel belongs to the residual pixel point in pending region, namely the first pixel can be any one the residual pixel point in pending region. This determines that the method for color value of the first pixel may comprise steps of:
In step 501, from the edge pixel point in described pending region, it is determined that go out the second pixel, described second pixel is the pixel that described central pixel point intersects to the extended line of described first pixel line and the edge in described pending region.
In step 502, it is judged that whether described second pixel is the pixel being blocked.
In step 503, if described second pixel is the pixel being blocked, then from the edge pixel point in described pending region, determine the pixel that be not blocked adjacent with described second pixel, and utilize the color value of the pixel not being blocked determined, it is thus achieved that the color value P of described second pixel2
In this programme, it is determined that after going out the second pixel, it is possible to first judge that the second pixel is whether for the pixel that is blocked, and then obtain the color value of the second pixel according to judged result. If it is judged that represent that the second pixel is the pixel not being blocked, then directly can extract the color value of the second pixel from picture, use during for the color value of subsequent calculations the first pixel; If it is judged that represent that the second pixel is the pixel being blocked, then can utilize the pixel not being blocked in the edge pixel point in pending region, it is determined that go out the color value of the second pixel, use during for the color value of subsequent calculations the first pixel.
As a kind of example, it is possible to from the edge pixel in pending region point, it is determined that go out the pixel that be not blocked adjacent with the second pixel, the color value of the pixel not being blocked that recycling is determined, it is thus achieved that the color value of the second pixel. For example, it is possible to the color value of the pixel not being blocked that will determine, it is determined that it is the color value of the second pixel; Or, it is possible to the average of the color value of the pixel not being blocked that will determine, it is determined that be the color value of the second pixel; Or, it is possible to by the color value of the pixel not being blocked determined, the color value that occurrence number is maximum, it is determined that be the color value of the second pixel, etc., this can not be limited by disclosure embodiment.
Corresponding to this, disclosure scheme is repaired pending region, it is possible to be presented as the color value obtaining central pixel point, obtain the color value of residual pixel point and obtain the color value of the pixel that is blocked of pending edges of regions.
In step 504, it is determined that the weighted value w of described central pixel point1Weighted value w with described second pixel2
In step 505, it is thus achieved that the color value P of described first pixel1=P0*w1+P2*w2, P0For the color value of described central pixel point, P2Color value for described second pixel.
In disclosure scheme, it is possible to after determining the second pixel, namely judge whether the second pixel is the pixel being blocked; Or, it is also possible to determining w1And w2Afterwards, then judge whether the second pixel is the pixel being blocked. As long as it is to say, utilizing formula P1=P0*w1+P2*w2Before calculating the color value of the first pixel, completing to judge, this can not be limited by disclosure embodiment.
Fig. 6 is the block diagram of a kind of picture processing device according to an exemplary embodiment. With reference to Fig. 6, this device 600 can include pending region acquisition module 601, central pixel point color value determines module 602 and residual pixel point color value determines module 603.
This pending region acquisition module 601, it is possible to be configured to obtain pending region, described pending region belongs to the region that is blocked of picture, and the edge in described pending region includes the pixel that is not blocked.
This central pixel point color value determines module 602, it is possible to the color value of the pixel not being blocked described in being configured to, with, it is determined that the color value of the central pixel point in described pending region.
This residual pixel point color value determines module 603, it is possible to the color value of the pixel not being blocked described in being configured to, with and the color value of described central pixel point, it is determined that the color value of the residual pixel point in described pending region.
In sum, when the device provided by the disclosure carries out picture processing, central pixel point color value determines that module 602 is first with the pixel not being blocked being positioned at pending edges of regions, it is determined that go out the color value of the central pixel point in pending region; Residual pixel point color value determines that module 603 recycles the pixel and central pixel point not being blocked, it is determined that go out the color value of the residual pixel point in pending region. Such repair process, whether the color value of central pixel point, or the color value of residual pixel point, based on the color value of the pixel not being blocked all originally existed in picture, the picture processing process more objectivity of disclosure scheme can be made, additionally aid and realize seamlessly transitting of pixel color value, improve repairing effect, it is to avoid barrage occurs.
In a kind of possible embodiment, this central pixel point color value determines module 602, it is possible to be configured to choose standby pixel from the described pixel not being blocked; Average by the color value of described standby pixel, it is determined that for the color value of described central pixel point.
In a kind of possible embodiment, first pixel belongs to the residual pixel point in described pending region, then this residual pixel point color value determines that module 603 includes: the second pixel determines module, can be configured to from the edge pixel point in described pending region, determine that the second pixel, described second pixel are the pixel that described central pixel point intersects to the extended line of described first pixel line and the edge in described pending region; Weighted value determines module, it is possible to be configured to determine that the weighted value w of described central pixel point1Weighted value w with described second pixel2; First pixel color value obtains module, it is possible to be configured to obtain the color value P of described first pixel1=P0*w1+P2*w2, P0For the color value of described central pixel point, P2Color value for described second pixel.
In a kind of possible embodiment, this weighted value determines module, it is possible to be configured to obtain the distance d between described central pixel point and described first pixel1, and the spacing d of described first pixel and described second pixel2;According to described d1With described d2, it is determined that described w1With described w2If: d1>d2, then arrange and make w1<w2, and w1+w2=1; If d1<d2, then arrange and make w1>w2, and w1+w2=1; If d1=d2, then arrange and make w1=w2, and w1+w2=1.
In a kind of possible embodiment, the edge in described pending region includes the pixel being blocked, then this residual pixel point color value determines that module 603 also includes: judge module, it is possible to is configured to obtain module in described first pixel color value and obtains described P1Before, it is judged that whether described second pixel is the pixel being blocked; Second pixel color value obtains module, can be configured to when described judge module judges described second pixel as the pixel being blocked, from the edge pixel point in described pending region, determine the pixel that be not blocked adjacent with described second pixel, and utilize the color value of the pixel not being blocked determined, it is thus achieved that the color value P of described second pixel2
About the device in above-described embodiment, the concrete mode that wherein modules performs to operate has been described in detail in about the embodiment of the method, and explanation will be not set forth in detail herein.
Fig. 7 is the block diagram of a kind of picture processing device 700 according to an exemplary embodiment. Such as, device 700 can be mobile phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, armarium, body-building equipment, personal digital assistant etc.
With reference to Fig. 7, device 700 can include following one or more assembly: processes assembly 702, memorizer 704, electric power assembly 706, multimedia groupware 708, audio-frequency assembly 710, the interface 712 of input/output (I/O), sensor cluster 714, and communications component 716.
Process assembly 702 and generally control the integrated operation of device 700, such as with display, call, data communication, the operation that camera operation and record operation are associated. Process assembly 702 and can include one or more processor 720 to perform instruction, to complete all or part of step of above-mentioned image processing method. Additionally, process assembly 702 can include one or more module, it is simple to what process between assembly 702 and other assemblies is mutual. Such as, process assembly 702 and can include multi-media module, with facilitate multimedia groupware 708 and process between assembly 702 mutual.
Memorizer 704 is configured to store various types of data to support the operation at device 700. The example of these data includes any application program for operation on device 700 or the instruction of method, contact data, telephone book data, message, picture, video etc. Memorizer 704 can be realized by any kind of volatibility or non-volatile memory device or their combination, such as static RAM (SRAM), Electrically Erasable Read Only Memory (EEPROM), Erasable Programmable Read Only Memory EPROM (EPROM), programmable read only memory (PROM), read only memory (ROM), magnetic memory, flash memory, disk or CD.
The various assemblies that electric power assembly 706 is device 700 provide electric power. Electric power assembly 706 can include power-supply management system, one or more power supplys, and other generate, manage and distribute, with for device 700, the assembly that electric power is associated.
Multimedia groupware 708 includes the screen providing an output interface between described device 700 and user. In certain embodiments, screen can include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel, screen may be implemented as touch screen, to receive the input signal from user. Touch panel includes one or more touch sensor to sense the gesture on touch, slip and touch panel. Described touch sensor can not only sense the border of touch or sliding action, but also detects the persistent period relevant to described touch or slide and pressure. In certain embodiments, multimedia groupware 708 includes a front-facing camera and/or post-positioned pick-up head. When device 700 is in operator scheme, during such as screening-mode or video mode, front-facing camera and/or post-positioned pick-up head can receive the multi-medium data of outside. Each front-facing camera and post-positioned pick-up head can be a fixing optical lens system or have focal length and optical zoom ability.
Audio-frequency assembly 710 is configured to output and/or input audio signal. Such as, audio-frequency assembly 710 includes a mike (MIC), and when device 700 is in operator scheme, during such as call model, logging mode and speech recognition mode, mike is configured to receive external audio signal. The audio signal received can be further stored at memorizer 704 or send via communications component 716. In certain embodiments, audio-frequency assembly 710 also includes a speaker, is used for exporting audio signal.
I/O interface 712 provides interface for processing between assembly 702 and peripheral interface module, above-mentioned peripheral interface module can be keyboard, puts striking wheel, button etc. These buttons may include but be not limited to: home button, volume button, startup button and locking press button.
Sensor cluster 714 includes one or more sensor, for providing the state estimation of various aspects for device 700. Such as, what sensor cluster 714 can detect device 700 opens/closed mode, the relative localization of assembly, such as described assembly is display and the keypad of device 700, the position change of all right detecting device 700 of sensor cluster 714 or 700 1 assemblies of device, the presence or absence that user contacts with device 700, the variations in temperature of device 700 orientation or acceleration/deceleration and device 700. Sensor cluster 714 can include proximity transducer, is configured to when not having any physical contact object near detection. Sensor cluster 714 can also include optical sensor, such as CMOS or ccd image sensor, for using in imaging applications. In certain embodiments, this sensor cluster 714 can also include acceleration transducer, gyro sensor, Magnetic Sensor, pressure transducer or temperature sensor.
Communications component 716 is configured to facilitate between device 700 and other equipment the communication of wired or wireless mode. Device 700 can access the wireless network based on communication standard, such as WiFi, 2G or 3G, or their combination. In one exemplary embodiment, communications component 716 receives the broadcast singal or the broadcast related information that manage system from external broadcasting via broadcast channel. In one exemplary embodiment, described communications component 716 also includes near-field communication (NFC) module, to promote junction service. Such as, can 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 700 can be realized by one or more application specific integrated circuits (ASIC), digital signal processor (DSP), digital signal processing appts (DSPD), PLD (PLD), field programmable gate array (FPGA), controller, microcontroller, microprocessor or other electronic components, is used for performing above-mentioned image processing method.
In the exemplary embodiment, additionally providing a kind of non-transitory computer-readable recording medium including instruction, for instance include the memorizer 704 of instruction, above-mentioned instruction can have been performed above-mentioned image processing method by the processor 720 of device 700. Such as, described non-transitory computer-readable recording medium can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices etc.
Those skilled in the art, after considering description and putting into practice the disclosure, will readily occur to other embodiment of the disclosure. The application is intended to any modification of the disclosure, purposes or adaptations, and these modification, purposes or adaptations are followed the general principle of the disclosure and include the undocumented known general knowledge in the art of the disclosure or conventional techniques means. Description and embodiments is considered only as exemplary, and the true scope of the disclosure and spirit are pointed out by claim below.
It should be appreciated that the disclosure is not limited to precision architecture described above and illustrated in the accompanying drawings, and various amendment and change can carried out without departing from the scope. The scope of the present disclosure is only limited by appended claim.

Claims (11)

1. an image processing method, it is characterised in that including:
Obtaining pending region, described pending region belongs to the region that is blocked of picture, and the edge in described pending region includes the pixel that is not blocked;
The color value of the pixel not being blocked described in utilization, it is determined that the color value of the central pixel point in described pending region;
The color value of the pixel not being blocked described in utilization and the color value of described central pixel point, it is determined that the color value of the residual pixel point in described pending region.
2. method according to claim 1, it is characterised in that the color value of the pixel not being blocked described in described utilization, it is determined that the color value of the central pixel point in described pending region, including:
Standby pixel is chosen from the described pixel not being blocked;
Average by the color value of described standby pixel, it is determined that for the color value of described central pixel point.
3. method according to claim 1, it is characterised in that the first pixel belongs to the residual pixel point in described pending region, then
The color value of the pixel not being blocked described in described utilization and the color value of described central pixel point, it is determined that the color value of the residual pixel point in described pending region, including:
From the edge pixel point in described pending region, it is determined that go out the second pixel, described second pixel is the pixel that described central pixel point intersects to the extended line of described first pixel line and the edge in described pending region;
Determine the weighted value w of described central pixel point1Weighted value w with described second pixel2;
Obtain the color value P of described first pixel1=P0*w1+P2*w2, P0For the color value of described central pixel point, P2Color value for described second pixel.
4. method according to claim 3, it is characterised in that the described weighted value w determining described central pixel point1Weighted value w with described second pixel2, including:
Obtain the distance d between described central pixel point and described first pixel1, and the spacing d of described first pixel and described second pixel2;
According to described d1With described d2, it is determined that described w1With described w2:
If d1>d2, then arrange and make w1<w2, and w1+w2=1;
If d1<d2, then arrange and make w1>w2, and w1+w2=1;
If d1=d2, then arrange and make w1=w2, and w1+w2=1.
5. the method according to claim 3 or 4, it is characterised in that if the edge in described pending region includes the pixel being blocked, then at the color value P of described first pixel of described acquisition1Before, described method also includes:
Judge whether described second pixel is the pixel being blocked;
If described second pixel is the pixel being blocked, then from the edge pixel point in described pending region, determine the pixel that be not blocked adjacent with described second pixel, and utilize the color value of the pixel not being blocked determined, it is thus achieved that the color value P of described second pixel2
6. a picture processing device, it is characterised in that including:
Pending region acquisition module, is configured to obtain pending region, and described pending region belongs to the region that is blocked of picture, and the edge in described pending region includes the pixel that is not blocked;
Central pixel point color value determines module, the color value of the pixel not being blocked described in being configured to, with, it is determined that the color value of the central pixel point in described pending region;
Residual pixel point color value determines module, the color value of the pixel not being blocked described in being configured to, with and the color value of described central pixel point, it is determined that the color value of the residual pixel point in described pending region.
7. device according to claim 6, it is characterised in that
Described central pixel point color value determines module, is configured to choose standby pixel from the described pixel not being blocked; Average by the color value of described standby pixel, it is determined that for the color value of described central pixel point.
8. device according to claim 6, it is characterised in that the first pixel belongs to the residual pixel point in described pending region, then described residual pixel point color value determines that module includes:
Second pixel determines module, it is configured to from the edge pixel point in described pending region, determine that the second pixel, described second pixel are the pixel that described central pixel point intersects to the extended line of described first pixel line and the edge in described pending region;
Weighted value determines module, is configured to determine that the weighted value w of described central pixel point1Weighted value w with described second pixel2;
First pixel color value obtains module, is configured to obtain the color value P of described first pixel1=P0*w1+P2*w2, P0For the color value of described central pixel point, P2Color value for described second pixel.
9. device according to claim 8, it is characterised in that
Described weighted value determines module, is configured to obtain the distance d between described central pixel point and described first pixel1, and the spacing d of described first pixel and described second pixel2; According to described d1With described d2, it is determined that described w1With described w2If: d1>d2, then arrange and make w1<w2, and w1+w2=1; If d1<d2, then arrange and make w1>w2, and w1+w2=1; If d1=d2, then arrange and make w1=w2, and w1+w2=1.
10. device according to claim 8 or claim 9, it is characterised in that if the edge in described pending region includes the pixel being blocked, then described residual pixel point color value determines that module also includes:
Judge module, is configured to obtain module in described first pixel color value and obtains described P1Before, it is judged that whether described second pixel is the pixel being blocked;
Second pixel color value obtains module, it is configured to when described judge module judges described second pixel as the pixel being blocked, from the edge pixel point in described pending region, determine the pixel that be not blocked adjacent with described second pixel, and utilize the color value of the pixel not being blocked determined, it is thus achieved that the color value P of described second pixel2
11. a picture processing device, it is characterised in that including:
Processor;
For storing the memorizer of processor executable;
Wherein, described processor is configured to:
Obtaining pending region, described pending region belongs to the region that is blocked of picture, and the edge in described pending region includes the pixel that is not blocked;
The color value of the pixel not being blocked described in utilization, it is determined that the color value of the central pixel point in described pending region;
The color value of the pixel not being blocked described in utilization and the color value of described central pixel point, it is determined that the color value of the residual pixel point in described pending region.
CN201511019142.3A 2015-12-29 2015-12-29 Image processing method and device Active CN105678685B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511019142.3A CN105678685B (en) 2015-12-29 2015-12-29 Image processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511019142.3A CN105678685B (en) 2015-12-29 2015-12-29 Image processing method and device

Publications (2)

Publication Number Publication Date
CN105678685A true CN105678685A (en) 2016-06-15
CN105678685B CN105678685B (en) 2019-02-22

Family

ID=56297987

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511019142.3A Active CN105678685B (en) 2015-12-29 2015-12-29 Image processing method and device

Country Status (1)

Country Link
CN (1) CN105678685B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106488139A (en) * 2016-12-27 2017-03-08 深圳市道通智能航空技术有限公司 Image compensation method, device and unmanned plane that a kind of unmanned plane shoots
CN108320265A (en) * 2018-01-31 2018-07-24 努比亚技术有限公司 A kind of image processing method, terminal and computer readable storage medium
CN108551552A (en) * 2018-05-14 2018-09-18 Oppo广东移动通信有限公司 Image processing method, device, storage medium and mobile terminal
CN111080546A (en) * 2019-12-11 2020-04-28 Oppo广东移动通信有限公司 Picture processing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030118211A1 (en) * 2001-12-25 2003-06-26 Canon Kabushiki Kaisha Watermark information extraction apparatus and method of controlling thereof
CN103116688A (en) * 2012-12-13 2013-05-22 中国航空无线电电子研究所 Multi-source abnormal sensor target track correlation method for airborne avionic system
CN103618905A (en) * 2013-12-09 2014-03-05 清华大学深圳研究生院 Content drawing method for station caption area in video

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030118211A1 (en) * 2001-12-25 2003-06-26 Canon Kabushiki Kaisha Watermark information extraction apparatus and method of controlling thereof
CN103116688A (en) * 2012-12-13 2013-05-22 中国航空无线电电子研究所 Multi-source abnormal sensor target track correlation method for airborne avionic system
CN103618905A (en) * 2013-12-09 2014-03-05 清华大学深圳研究生院 Content drawing method for station caption area in video

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
KATRIN MEISINGER 等: "Automatic TV logo removal using statistical based logo detection and frequency selective inpainting", 《2005 13TH EUROPEAN SIGNAL PROCESSING CONFERENCE》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106488139A (en) * 2016-12-27 2017-03-08 深圳市道通智能航空技术有限公司 Image compensation method, device and unmanned plane that a kind of unmanned plane shoots
CN108320265A (en) * 2018-01-31 2018-07-24 努比亚技术有限公司 A kind of image processing method, terminal and computer readable storage medium
CN108320265B (en) * 2018-01-31 2021-09-21 努比亚技术有限公司 Image processing method, terminal and computer readable storage medium
CN108551552A (en) * 2018-05-14 2018-09-18 Oppo广东移动通信有限公司 Image processing method, device, storage medium and mobile terminal
CN108551552B (en) * 2018-05-14 2020-09-01 Oppo广东移动通信有限公司 Image processing method, device, storage medium and mobile terminal
CN111080546A (en) * 2019-12-11 2020-04-28 Oppo广东移动通信有限公司 Picture processing method and device
CN111080546B (en) * 2019-12-11 2024-06-18 Oppo广东移动通信有限公司 Picture processing method and device

Also Published As

Publication number Publication date
CN105678685B (en) 2019-02-22

Similar Documents

Publication Publication Date Title
CN105069786B (en) Line detection method and device
EP3200125B1 (en) Fingerprint template input method and device
CN105488511B (en) The recognition methods of image and device
CN105528606A (en) Region identification method and device
CN104243819A (en) Photo acquiring method and device
CN105427233A (en) Method and device for removing watermark
CN105631797A (en) Watermarking method and device
CN104918107A (en) Video file identification processing method and device
CN105095881A (en) Method, apparatus and terminal for face identification
CN106250831A (en) Image detecting method, device and the device for image detection
CN105118026A (en) Color gamut mode switching method and device
EP3188078A1 (en) Method and device for fingerprint identification
CN106095407A (en) icon arrangement method, device and mobile device
CN104504684A (en) Edge extraction method and device
CN105139378A (en) Card boundary detection method and apparatus
CN104850852A (en) Feature vector calculation method and device
CN104899610A (en) Picture classification method and device
CN106127751A (en) image detecting method, device and system
CN105631803A (en) Method and device for filter processing
CN104506443A (en) Router setting interface display method and device
CN105528765A (en) Method and device for processing image
CN105678685A (en) Picture processing method and apparatus
CN104639952A (en) Method and device for identifying station logo
CN105487773A (en) Screen capturing method and device
CN112927122A (en) Watermark removing method, device and storage 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
GR01 Patent grant
GR01 Patent grant