CN105096263A - Image filtering method and device - Google Patents

Image filtering method and device Download PDF

Info

Publication number
CN105096263A
CN105096263A CN201410220193.1A CN201410220193A CN105096263A CN 105096263 A CN105096263 A CN 105096263A CN 201410220193 A CN201410220193 A CN 201410220193A CN 105096263 A CN105096263 A CN 105096263A
Authority
CN
China
Prior art keywords
pixel value
pixel
value
number difference
difference
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
CN201410220193.1A
Other languages
Chinese (zh)
Other versions
CN105096263B (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.)
Guangzhou Ankai Microelectronics Co.,Ltd.
Original Assignee
Anyka Guangzhou Microelectronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Anyka Guangzhou Microelectronics Technology Co Ltd filed Critical Anyka Guangzhou Microelectronics Technology Co Ltd
Priority to CN201410220193.1A priority Critical patent/CN105096263B/en
Publication of CN105096263A publication Critical patent/CN105096263A/en
Application granted granted Critical
Publication of CN105096263B publication Critical patent/CN105096263B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Processing (AREA)

Abstract

The invention provides an image filtering method and device. The method comprises steps: pixel values of pixel points in a preset neighborhood of a pixel point to be processed in an image are compared; The difference of the number of the pixel values more than each pixel value and the number of the pixel values less than each pixel value is calculated to obtain the number difference corresponding to each pixel value; the pixel value of the pixel point to be processed is updated by utilization of the pixel value corresponding to the minimum number difference in the number differences corresponding to pixel values. The image filtering efficiency is raised.

Description

Image filtering method and device
Technical field
The application relates to technical field of image processing, relates to a kind of image filtering method and device in particular.
Background technology
Image may be subject to the interference of noise in the processes such as collection, transmission, thus the quality of meeting effect diagram picture.
Image filtering, namely refers to and to suppress the noise of image under the condition retaining image detail feature, be reduce picture noise, strengthen the important means of picture quality.
Existing a kind of image filtering mode is the method adopting medium filtering, by the pixel value of pixel pending in image, replace by the intermediate value of the pixel value with each pixel in this pending pixel neighborhood of a point, this pending pixel refers to noise in image point.When determining the intermediate value of each pixel value, in prior art, normally first each pixel value is sorted according to numerical values recited, then each pixel value after sequence is split as some groupings, for the pixel value in each grouping, proceed packet fragmentation, until only comprise 3 pixel values in the final grouping obtained, thus the intermediate value in 3 pixel values can be determined.Utilize the intermediate value in the grouping of same level, namely can determine the intermediate value of upper level one grouping belonging to the grouping of same level, then can determine the intermediate value in each pixel value in pending neighborhood of pixel points step by step.
From foregoing description process, existing this image filtering mode, need rank-ordered pixels and grouping etc. is complicated step by step operation, filtering operation amount is caused to increase, when pixel quantity particularly in pending pixel neighborhood of a point is a lot, workload will be very huge, thus can affect the efficiency of image filtering.
Summary of the invention
In view of this, this application provides a kind of image filtering method and device, improve the efficiency of image filtering.
For achieving the above object, the application provides following technical scheme:
A kind of image filtering method, comprising:
The pixel value of each pixel in the default neighborhood of pixel pending in described image is compared;
Calculate the number difference of the pixel value number being greater than each pixel value and the pixel value number being less than each pixel value described, to obtain each pixel value number difference corresponding respectively;
Utilize in the number difference that each pixel value is respectively corresponding, the pixel value that the minimum number difference of numerical value is corresponding, upgrade the pixel value of described pending pixel.
Preferably, describedly utilize in the number difference that each pixel value is respectively corresponding, the pixel value that the minimum number difference of numerical value is corresponding, the pixel value upgrading described pending pixel comprises:
When in the number difference that each pixel value is respectively corresponding, during the corresponding multiple pixel value of the minimum number difference of numerical value, utilize the mean value of described multiple pixel value, replace the pixel value of described pending pixel;
When in the number difference that each pixel value is respectively corresponding, during the corresponding pixel value of the minimum number difference of numerical value, a described pixel value is utilized to replace the pixel value of described pending pixel.
Preferably, the pixel value of each pixel in the default neighborhood of pixel pending in described image compared comprise:
Using a pixel value choosing successively in each pixel value as target pixel value, and compare with other pixel value; Wherein, other pixel value described is the pixel value not comprising described target pixel value in each pixel value;
The pixel value number that described calculating is greater than each pixel value and the number difference of pixel value number being less than each pixel value described, comprise with the number difference obtaining each pixel value corresponding respectively:
Calculate the first number of the pixel value being greater than described target pixel value in each pixel value, and be less than second number of pixel value of described target pixel value;
Calculate the absolute value of the number difference of described first number and described second number, as the number difference of described target pixel value, to obtain each pixel value number difference corresponding respectively.
Preferably, described number difference is specially the absolute value of the difference that number that the pixel value number being greater than each pixel value deducts the pixel value being less than each pixel value described obtains;
Or the pixel value number being less than each pixel value described deducts the absolute value of the difference that the pixel value number that is greater than each pixel value obtains.
A kind of image filtering device, comprising:
Comparing unit, for comparing the pixel value of each pixel in the default neighborhood of pixel pending in described image;
Computing unit, for calculating the number difference of the pixel value number being greater than each pixel value and the pixel value number being less than each pixel value described, obtains the number difference that each pixel value is corresponding respectively;
Filter unit, for utilizing in number difference that each pixel value is respectively corresponding, the pixel value that the minimum number difference of numerical value is corresponding, upgrades the pixel value of described pending pixel.
Preferably, described filter unit comprises:
First filter unit, for when in the number difference that each pixel value is respectively corresponding, during the corresponding multiple pixel value of the minimum number difference of numerical value, utilizes the mean value of described multiple pixel value, replaces the pixel value of described pending pixel;
Second filter unit, for when in the number difference that each pixel value is respectively corresponding, during the corresponding pixel value of the minimum number difference of numerical value, utilizes a described pixel value to replace the pixel value of described pending pixel.
Preferably, described target pixel value and other pixel value, and to compare as target pixel value specifically for a pixel value will choosing successively from each pixel value by described comparing unit; Wherein, other pixel value described is the pixel value not comprising described target pixel value in each pixel value;
Described computing unit comprises:
Counting unit, for calculating the first number of the pixel value being greater than described target pixel value in each pixel value, and is less than second number of pixel value of described target pixel value;
Difference computational unit, for calculating the absolute value of described first number and described second number difference, as the number difference of described target pixel value, to obtain each pixel value number difference corresponding respectively.
A kind of image filtering equipment, comprising:
First comparer, the pixel value for each pixel preset in neighborhood by the pending pixel in described image compares;
Counter, for calculating the number difference of the pixel value number being greater than each pixel value and the pixel value number being less than each pixel value described, obtains the number difference that each pixel value is corresponding respectively;
Second comparer, for comparing the respectively corresponding number difference of each pixel value, determines the pixel value that the minimum number numerical value of numerical value is corresponding;
Wave filter, for the pixel value utilizing described second comparer to determine, upgrades the pixel value of described pending pixel.
Preferably, described wave filter comprises:
First wave filter, for when in the number difference that each pixel value is respectively corresponding, during the corresponding multiple pixel value of the minimum number difference of numerical value, utilizes the mean value of described multiple pixel value, replaces the pixel value of described pending pixel;
Second wave filter, for when in the number difference that each pixel value is respectively corresponding, during the corresponding pixel value of the minimum number difference of numerical value, utilizes a described pixel value to replace the pixel value of described pending pixel.
Preferably, described first comparer, and to compare with other pixel value as target pixel value specifically for a pixel value will choosing successively in each pixel value; Wherein, other pixel value described is the pixel value not comprising described target pixel value in each pixel value;
Then described counter comprises:
Counter, for calculating pixel value first number being greater than described target pixel value in each pixel value, and be less than pixel value second number of described target pixel value;
Subtracter, for calculating the absolute value of described first number and described second number difference, as the number difference of described target pixel value, to obtain each pixel value number difference corresponding respectively.
Known via above-mentioned technical scheme, compared with prior art, this application provides a kind of image filtering method and device, when carrying out filtering to the pending pixel in image, the pixel value of each pixel in the default neighborhood of pending pixel being compared; Calculate the number difference of the pixel value number being greater than each pixel value and the pixel value number being less than each pixel value described, obtain the number difference that each pixel value is corresponding respectively; Pixel value corresponding to the minimum number difference of numerical value is the intermediate value of each pixel value, utilize the pixel value of this intermediate value and renewable described pending pixel, without the need to by each rank-ordered pixels and the step by step complex operations such as grouping, namely the intermediate value in each pixel value can be determined fast, decrease workload, thus improve the efficiency of image filtering.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present application or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only the embodiment of the application, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to the accompanying drawing provided.
The process flow diagram of a kind of image filtering method embodiment that Fig. 1 provides for the embodiment of the present application;
The process flow diagram of a kind of another embodiment of image filtering method that Fig. 2 provides for the embodiment of the present application;
The structural representation of a kind of image filtering device embodiment that Fig. 3 provides for the embodiment of the present application;
The structural representation of a kind of another embodiment of image filtering device that Fig. 4 provides for the embodiment of the present application;
The structural representation of a kind of image filtering equipment embodiment that Fig. 5 provides for the embodiment of the present application;
The structural representation of a kind of another embodiment of image filtering equipment that Fig. 6 provides for the embodiment of the present application.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, be clearly and completely described the technical scheme in the embodiment of the present application, obviously, described embodiment is only some embodiments of the present application, instead of whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not making the every other embodiment obtained under creative work prerequisite, all belong to the scope of the application's protection.
In the embodiment of the present application, the pixel value of each pixel in the default neighborhood of pixel pending in image is compared; Calculate the number difference of the pixel value number being greater than each pixel value and the pixel value number being less than each pixel value described, to obtain each pixel value number difference corresponding respectively; From utilizing number difference that each pixel value is respectively corresponding, the pixel value that the minimum number difference of numerical value is corresponding, the i.e. pixel value of renewable described pending pixel.Pixel value corresponding to the minimum number difference of this numerical value is the intermediate value of each pixel value, and the determination of intermediate value, without the need to sequence and the complex operations such as grouping step by step, makes workload when decreasing medium filtering, improves the efficiency of image filtering.
The process flow diagram of a kind of image filtering method embodiment that Fig. 1 provides for the embodiment of the present application, the method can comprise following step:
101: the pixel value of each pixel in the default neighborhood of pixel pending in described image is compared.
102: the number difference calculating the pixel value number being greater than each pixel value and the pixel value number being less than each pixel value described, to obtain each pixel value number difference corresponding respectively.
103: utilize in the number difference that each pixel value is respectively corresponding, the pixel value that the minimum number difference of numerical value is corresponding, upgrades the pixel value of described pending pixel.
Wherein, this pending pixel refers to the max pixel value in the pixel that its pixel value is greater than in its default neighborhood, and pixel value difference is greater than first threshold, or its pixel value is less than the minimum pixel value in the pixel in its default neighborhood, and pixel value difference is greater than the pixel of Second Threshold, it is also noise spot.
When carrying out image filtering, first pending pixel is determined, for each pixel in image, can judge whether the difference of the max pixel value in the pixel that its pixel value deducts in its default neighborhood is greater than first threshold, or whether the difference that the minimum pixel value of the pixel in its default neighborhood deducts its pixel value is less than Second Threshold, if, then can determine that this pixel is pending pixel, need to carry out noise reduction, the image filtering scheme that namely noise reduction process of pending pixel can provide according to the embodiment of the present application is performed.This first threshold and Second Threshold can be determined the requirement of picture quality according to in practical application, for fixed value or can be set by the user.
Default field refers to the nearby sphere of pending pixel, the region of the 5*5 such as put centered by pending pixel, i.e. the region of 5 every trade pixels and 5 row row pixels composition, and pending pixel is the central point in this region.
This predeterminable area can be determined according to practical situations.
Pending pixel each pixel preset in field does not comprise this pending pixel.Each pixel all has pixel value, and pixel value, according to different practical situations, can select the pixel such as brightness value, the gray-scale value list of feature values to show.
After determining the pixel value of each pixel, namely can compare each pixel value, for any one pixel value, the pixel value number being greater than it and the pixel value number being less than it can be calculated, thus can obtain being greater than its pixel value number and be less than its number difference of pixel value number.
Wherein, this number difference is specially positive integer.
This number difference can be that the pixel value number being greater than each pixel value deducts the absolute value that the pixel value number being less than each pixel value described obtains difference; Or the pixel value number being less than each pixel value described deducts the absolute value that the pixel value number being greater than each pixel value obtains difference.
After calculating number difference corresponding to each pixel value, each number difference can be compared, the pixel value that the minimum number difference of numerical value is corresponding can be obtained.Namely pixel value corresponding to the minimum number difference of this numerical value be the intermediate value of each pixel value, thus utilize this intermediate value, can upgrade the pixel value of pending pixel.
Such as, for one group of pixel value be: 1,2,3,4,5,6,7 is example, and wherein, the pixel value number being greater than pixel value 1 is 6, and the pixel value number being less than pixel value 1 is 0, thus the number difference calculating this pixel value 1 is 6; The pixel value number being greater than pixel value 2 is 5, and the pixel value number being less than pixel value 2 is 1, and the number difference calculating this pixel value 2 is 4; The pixel value number being greater than pixel value 3 is 4, and the pixel value number being less than pixel value 3 is 2, and the number difference calculating this pixel value 3 is 2; The pixel value number being greater than pixel value 4 is 3, and the pixel value number being less than pixel value 4 is 3, and the number difference calculating this pixel value 4 is 0; The pixel value number being greater than pixel value 5 is 2, and the pixel value number being less than pixel value 5 is 4, and the number difference calculating this pixel value 4 is 2; The pixel value number being greater than pixel value 6 is 1, and the pixel value number being less than pixel value 6 is 5, and the number difference calculating this pixel value 6 is 4; The pixel value number being greater than pixel value 7 is 0, and the pixel value number being less than pixel value 7 is 6, and the number difference calculating this pixel value 7 is 6.By can the minimum number difference of a numerical value be relatively 0, thus the pixel value 4 of number difference 0 correspondence be the intermediate value of this group pixel value, and pixel value 4 namely can be utilized to upgrade the pixel value of pending pixel.
The embodiment of the present application is based on medium filtering principle, intermediate value is determined from the pixel value of each pixel in the default field of pending pixel, utilize the pixel value that this intermediate value is corresponding, upgrade the pixel value of pending pixel, to realize image filtering, when determining the intermediate value of the pixel value of each pixel, without the need to sorting to each pixel value and the complex operations such as grouping step by step, namely can determine intermediate value fast, thus the efficiency of image filtering can be improved.
Wherein, the number of the pixel value of each pixel calculated is looked in difference, the corresponding multiple pixel value of number difference possibility that numerical value is minimum, therefore this step 103 utilizes in the number difference that each pixel value is corresponding respectively, the pixel value that the minimum number difference of numerical value is corresponding, the pixel value upgrading described pending pixel can comprise:
When in the number difference that each pixel value is respectively corresponding, during the corresponding multiple pixel value of the minimum number difference of numerical value, utilize the mean value of described multiple pixel value, replace the pixel value of described pending pixel;
When in the number difference that each pixel value is respectively corresponding, during the corresponding pixel value of the minimum number difference of numerical value, a described pixel value is utilized to replace the pixel value of described pending pixel.
During the number difference correspondence pixel value that namely numerical value is minimum, this pixel value is the intermediate value of each pixel value; And during the corresponding multiple pixel value of the minimum number difference of numerical value, then using the intermediate value of the mean value of the plurality of pixel value as each pixel value, thus recycle the pixel value that the intermediate value determined replaces pending pixel, to reduce the noise of pending pixel, realize image filtering.
Fig. 2 shows the process flow diagram of a kind of another embodiment of image filtering method that the embodiment of the present application provides, and the method can comprise following step:
201: using a pixel value choosing successively in each pixel value as target pixel value, and compare with other pixel value.
When determining number difference corresponding to each pixel value, be successively its number difference is calculated respectively to each pixel value, in the present embodiment, can using a pixel value choosing as target pixel value.Target pixel value is compared one by one with other pixel values.
Wherein, other pixel value described is the pixel value not comprising described target pixel value in each pixel value;
202: the first number calculating the pixel value being greater than described target pixel value in each pixel value, and the second number of pixel value being less than described target pixel value.
203: the absolute value calculating the number difference of described first number and described second number, as the number difference of described target pixel value, to obtain each pixel value number difference corresponding respectively.
Target pixel value and other pixel values are compared, the pixel value number being greater than target pixel value can be determined, i.e. the first number; And be less than the pixel value number of target pixel value, i.e. the second number.
Calculate the absolute value of the difference of the first number and the second number, be the number difference of target pixel value.Thus namely can obtain each pixel value as number difference corresponding during target pixel value.
204: utilize in the number difference that each pixel value is respectively corresponding, the pixel value that the minimum number difference of numerical value is corresponding, upgrades the pixel value of described pending pixel.
Pixel value corresponding to the minimum number difference of numerical value is the intermediate value in the combination of each pixel value.
Utilize this intermediate value, utilize medium filtering process, the pixel value namely can treating process pixel value upgrades.
Concrete can comprise:
When in the number difference that each pixel value is respectively corresponding, during the corresponding multiple pixel value of the minimum number difference of numerical value, utilize the mean value of described multiple pixel value, replace the pixel value of described pending pixel;
When in the number difference that each pixel value is respectively corresponding, during the corresponding pixel value of the minimum number difference of numerical value, a described pixel value is utilized to replace the pixel value of described pending pixel.
In the present embodiment, when filtering is carried out to the pending pixel in image, first determine that pending pixel presets the pixel value of each pixel in neighborhood, and in each pixel value, calculate the number difference of the pixel value number being greater than each pixel value and the pixel value number being less than each pixel value described, obtain the number difference that each pixel value is corresponding respectively, thus determine that pixel value corresponding to the minimum number difference of numerical value is the intermediate value of each pixel value, according to medium filtering principle, utilize the filtering that this intermediate value can realize pending pixel.During owing to determining the intermediate value of each pixel value, without the need to sorting to each pixel value, and dividing into groups step by step, making to decrease workload, improve counting yield, thus improve the efficiency of image filtering.
For aforesaid each embodiment of the method, in order to simple description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the application is not by the restriction of described sequence of movement, because according to the application, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in instructions all belongs to preferred embodiment, and involved action and module might not be that the application is necessary.
The structural representation of a kind of image filtering method embodiment that Fig. 3 provides for the embodiment of the present application, this device can comprise:
Comparing unit 301, for comparing the pixel value of each pixel in the default neighborhood of pixel pending in described image.
Computing unit 302, for calculating the number difference of the pixel value number being greater than each pixel value and the pixel value number being less than each pixel value described, obtains the number difference that each pixel value is corresponding respectively.
Filter unit 303, for utilizing in number difference that each pixel value is respectively corresponding, the pixel value that the minimum number difference of numerical value is corresponding, upgrades the pixel value of described pending pixel.
Default field refers to the nearby sphere of pending pixel, the region of the 5*5 such as put centered by pending pixel, i.e. the region of 5 every trade pixels and 5 row row pixels composition, and pending pixel is the central point in this region.
This predeterminable area can be determined according to practical situations.
Pending pixel each pixel preset in field does not comprise this pending pixel.
This number difference can be that the pixel value number being greater than each pixel value deducts the absolute value that the pixel value number being less than each pixel value described obtains difference; Or the pixel value number being less than each pixel value described deducts the absolute value that the pixel value number being greater than each pixel value obtains difference.
Namely pixel value corresponding to the minimum number difference of this numerical value be the intermediate value of each pixel value, thus utilize this intermediate value, can upgrade the pixel value of pending pixel.
In embodiment, based on medium filtering principle, intermediate value is determined from the pixel value of each pixel in the default field of pending pixel, utilize the pixel value that this intermediate value is corresponding, upgrade the pixel value of pending pixel, to realize image filtering, when determining the intermediate value of the pixel value of each pixel, without the need to sorting to each pixel value and the complex operations such as grouping step by step, namely can determine intermediate value fast, thus the efficiency of image filtering can be improved.
Wherein, the number of the pixel value of each pixel calculated is looked in difference, the corresponding multiple pixel value of number difference possibility that numerical value is minimum, and therefore, this filter unit can comprise:
First filter unit, for when in the number difference that each pixel value is respectively corresponding, during the corresponding multiple pixel value of the minimum number difference of numerical value, utilizes the mean value of described multiple pixel value, replaces the pixel value of described pending pixel.
Second filter unit, for when in the number difference that each pixel value is respectively corresponding, during the corresponding pixel value of the minimum number difference of numerical value, utilizes a described pixel value to replace the pixel value of described pending pixel.
During the number difference correspondence pixel value that namely numerical value is minimum, this pixel value is the intermediate value of each pixel value; And during the corresponding multiple pixel value of the minimum number difference of numerical value, then using the intermediate value of the mean value of the plurality of pixel value as each pixel value, thus recycle the pixel value that the intermediate value determined replaces pending pixel, to reduce the noise of pending pixel, realize image filtering.
In yet another embodiment, as shown in Figure 4, described target pixel value and other pixel value specifically for a pixel value will choosing successively from each pixel value as target pixel value, and can compare by the comparing unit 301 in this image filtering device; Wherein, other pixel value described is the pixel value not comprising described target pixel value in each pixel value.
Computing unit 302 can comprise:
Counting unit 401, for calculating the first number of the pixel value being greater than described target pixel value in each pixel value, and is less than second number of pixel value of described target pixel value;
Difference computational unit 402, for calculating the absolute value of described first number and described second number difference, as the number difference of described target pixel value, to obtain each pixel value number difference corresponding respectively.
Wherein, filter unit 303 can comprise:
First filter unit 403, for when in the number difference that each pixel value is respectively corresponding, during the corresponding multiple pixel value of the minimum number difference of numerical value, utilizes the mean value of described multiple pixel value, replaces the pixel value of described pending pixel;
Second filter unit 404, for when in the number difference that each pixel value is respectively corresponding, during the corresponding pixel value of the minimum number difference of numerical value, utilizes a described pixel value to replace the pixel value of described pending pixel.
In the present embodiment, when filtering is carried out to the pending pixel in image, first determine that pending pixel presets the pixel value of each pixel in neighborhood, and in each pixel value, calculate the number difference of the pixel value number being greater than each pixel value and the pixel value number being less than each pixel value described, obtain the number difference that each pixel value is corresponding respectively, thus determine that pixel value corresponding to the minimum number difference of numerical value is the intermediate value of each pixel value, according to medium filtering principle, utilize the filtering that this intermediate value can realize pending pixel.During owing to determining the intermediate value of each pixel value, without the need to sorting to each pixel value, and dividing into groups step by step, making to decrease workload, improve counting yield, thus improve the efficiency of image filtering.
The unit of image filtering device described in above-described embodiment, in actual applications, can adopt that software form realizes, the form of software plus hardware or example, in hardware realize, therefore, as shown in Figure 5, the embodiment of the present application additionally provides the structural representation of a kind of image filtering equipment embodiment, and this image filtering equipment can comprise:
First comparer 501, the pixel value for each pixel preset in neighborhood by the pending pixel in described image compares.
Counter 502, for calculating the number difference of the pixel value number being greater than each pixel value and the pixel value number being less than each pixel value described, obtains the number difference that each pixel value is corresponding respectively;
Second comparer 503, for comparing the respectively corresponding number difference of each pixel value, determines the pixel value that the minimum number numerical value of numerical value is corresponding.
Wave filter 504, for the pixel value utilizing described second comparer to determine, upgrades the pixel value of described pending pixel.
As another embodiment, as shown in Figure 6, the first comparer 501 of this image filtering equipment specifically for a pixel value will choosing successively in each pixel value as target pixel value, and can compare with other pixel value; Wherein, other pixel value described is the pixel value not comprising described target pixel value in each pixel value.
This counter 502 can comprise:
Counter 601, for calculating pixel value first number being greater than described target pixel value in each pixel value, and be less than pixel value second number of described target pixel value;
Subtracter 602, for calculating the absolute value of described first number and described second number difference, as the number difference of described target pixel value, to obtain each pixel value number difference corresponding respectively.
Wave filter 504 can form due to the first wave filter 603 and the second wave filter 604;
First wave filter 603, for when in the number difference that each pixel value is respectively corresponding, during the corresponding multiple pixel value of the minimum number difference of numerical value, utilizes the mean value of described multiple pixel value, replaces the pixel value of described pending pixel;
Second wave filter 604, for when in the number difference that each pixel value is respectively corresponding, during the corresponding pixel value of the minimum number difference of numerical value, utilizes a described pixel value to replace the pixel value of described pending pixel.
The image filtering equipment of the embodiment of the present application, when filtering is carried out to the pending pixel in image, first determine that pending pixel presets the pixel value of each pixel in neighborhood, and in each pixel value, calculate the number difference of the pixel value number being greater than each pixel value and the pixel value number being less than each pixel value described, obtain the number difference that each pixel value is corresponding respectively, thus determine that pixel value corresponding to the minimum number difference of numerical value is the intermediate value of each pixel value, according to medium filtering principle, utilize the filtering that this intermediate value can realize pending pixel.During owing to determining the intermediate value of each pixel value, without the need to sorting to each pixel value, and dividing into groups step by step, making to decrease workload, improve counting yield, thus improve the efficiency of image filtering.
In this instructions, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar portion mutually see.For device disclosed in embodiment, because it corresponds to the method disclosed in Example, so description is fairly simple, relevant part illustrates see method part.
Finally, also it should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
For convenience of description, various unit is divided into describe respectively with function when describing above device.Certainly, the function of each unit can be realized in same or multiple software and/or hardware when implementing the application.
As seen through the above description of the embodiments, those skilled in the art can be well understood to the mode that the application can add required general hardware platform by software and realizes.Based on such understanding, the technical scheme of the application can embody with the form of software product the part that prior art contributes in essence in other words, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform the method described in some part of each embodiment of the application or embodiment.
To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the application.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein when not departing from the spirit or scope of the application, can realize in other embodiments.Therefore, the application can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (10)

1. an image filtering method, is characterized in that, comprising:
The pixel value of each pixel in the default neighborhood of pixel pending in described image is compared;
Calculate the number difference of the pixel value number being greater than each pixel value and the pixel value number being less than each pixel value described, to obtain each pixel value number difference corresponding respectively;
Utilize in the number difference that each pixel value is respectively corresponding, the pixel value that the minimum number difference of numerical value is corresponding, upgrade the pixel value of described pending pixel.
2. method according to claim 1, is characterized in that, describedly utilizes in the number difference that each pixel value is corresponding respectively, the pixel value that the minimum number difference of numerical value is corresponding, and the pixel value upgrading described pending pixel comprises:
When in the number difference that each pixel value is respectively corresponding, during the corresponding multiple pixel value of the minimum number difference of numerical value, utilize the mean value of described multiple pixel value, replace the pixel value of described pending pixel;
When in the number difference that each pixel value is respectively corresponding, during the corresponding pixel value of the minimum number difference of numerical value, a described pixel value is utilized to replace the pixel value of described pending pixel.
3. method according to claim 1, is characterized in that, is compared by the pixel value of each pixel in the default neighborhood of pixel pending in described image and comprises:
Using a pixel value choosing successively in each pixel value as target pixel value, and compare with other pixel value; Wherein, other pixel value described is the pixel value not comprising described target pixel value in each pixel value;
The pixel value number that described calculating is greater than each pixel value and the number difference of pixel value number being less than each pixel value described, comprise with the number difference obtaining each pixel value corresponding respectively:
Calculate the first number of the pixel value being greater than described target pixel value in each pixel value, and be less than second number of pixel value of described target pixel value;
Calculate the absolute value of the number difference of described first number and described second number, as the number difference of described target pixel value, to obtain each pixel value number difference corresponding respectively.
4. method according to claim 1, is characterized in that, described number difference is specially the absolute value of the difference that number that the pixel value number being greater than each pixel value deducts the pixel value being less than each pixel value described obtains;
Or the pixel value number being less than each pixel value described deducts the absolute value of the difference that the pixel value number that is greater than each pixel value obtains.
5. an image filtering device, is characterized in that, comprising:
Comparing unit, for comparing the pixel value of each pixel in the default neighborhood of pixel pending in described image;
Computing unit, for calculating the number difference of the pixel value number being greater than each pixel value and the pixel value number being less than each pixel value described, obtains the number difference that each pixel value is corresponding respectively;
Filter unit, for utilizing in number difference that each pixel value is respectively corresponding, the pixel value that the minimum number difference of numerical value is corresponding, upgrades the pixel value of described pending pixel.
6. device according to claim 5, is characterized in that, described filter unit comprises:
First filter unit, for when in the number difference that each pixel value is respectively corresponding, during the corresponding multiple pixel value of the minimum number difference of numerical value, utilizes the mean value of described multiple pixel value, replaces the pixel value of described pending pixel;
Second filter unit, for when in the number difference that each pixel value is respectively corresponding, during the corresponding pixel value of the minimum number difference of numerical value, utilizes a described pixel value to replace the pixel value of described pending pixel.
7. device according to claim 5, is characterized in that, described target pixel value and other pixel value, and to compare as target pixel value specifically for a pixel value will choosing successively from each pixel value by described comparing unit; Wherein, other pixel value described is the pixel value not comprising described target pixel value in each pixel value;
Described computing unit comprises:
Counting unit, for calculating the first number of the pixel value being greater than described target pixel value in each pixel value, and is less than second number of pixel value of described target pixel value;
Difference computational unit, for calculating the absolute value of described first number and described second number difference, as the number difference of described target pixel value, to obtain each pixel value number difference corresponding respectively.
8. an image filtering equipment, is characterized in that, comprising:
First comparer, the pixel value for each pixel preset in neighborhood by the pending pixel in described image compares;
Counter, for calculating the number difference of the pixel value number being greater than each pixel value and the pixel value number being less than each pixel value described, obtains the number difference that each pixel value is corresponding respectively;
Second comparer, for comparing the respectively corresponding number difference of each pixel value, determines the pixel value that the minimum number numerical value of numerical value is corresponding;
Wave filter, for the pixel value utilizing described second comparer to determine, upgrades the pixel value of described pending pixel.
9. equipment according to claim 8, is characterized in that, described wave filter comprises:
First wave filter, for when in the number difference that each pixel value is respectively corresponding, during the corresponding multiple pixel value of the minimum number difference of numerical value, utilizes the mean value of described multiple pixel value, replaces the pixel value of described pending pixel;
Second wave filter, for when in the number difference that each pixel value is respectively corresponding, during the corresponding pixel value of the minimum number difference of numerical value, utilizes a described pixel value to replace the pixel value of described pending pixel.
10. equipment according to claim 8, is characterized in that, described first comparer, and to compare with other pixel value as target pixel value specifically for a pixel value will choosing successively in each pixel value; Wherein, other pixel value described is the pixel value not comprising described target pixel value in each pixel value;
Then described counter comprises:
Counter, for calculating pixel value first number being greater than described target pixel value in each pixel value, and be less than pixel value second number of described target pixel value;
Subtracter, for calculating the absolute value of described first number and described second number difference, as the number difference of described target pixel value, to obtain each pixel value number difference corresponding respectively.
CN201410220193.1A 2014-05-22 2014-05-22 image filtering method and device Active CN105096263B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410220193.1A CN105096263B (en) 2014-05-22 2014-05-22 image filtering method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410220193.1A CN105096263B (en) 2014-05-22 2014-05-22 image filtering method and device

Publications (2)

Publication Number Publication Date
CN105096263A true CN105096263A (en) 2015-11-25
CN105096263B CN105096263B (en) 2018-10-09

Family

ID=54576615

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410220193.1A Active CN105096263B (en) 2014-05-22 2014-05-22 image filtering method and device

Country Status (1)

Country Link
CN (1) CN105096263B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105894464A (en) * 2016-03-28 2016-08-24 福州瑞芯微电子股份有限公司 Median filtering image processing method and apparatus
CN107833232A (en) * 2017-10-27 2018-03-23 智车优行科技(北京)有限公司 The extracting method and device of image detail, electronic equipment, computer-readable storage medium

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4736439A (en) * 1985-05-24 1988-04-05 The United States Of America As Represented By The Secretary Of The Navy Image preprocessing by modified median filter
JPH06315103A (en) * 1993-04-28 1994-11-08 Nippon Telegr & Teleph Corp <Ntt> Image signal noise eliminating filter
CN101087365A (en) * 2006-06-10 2007-12-12 中兴通讯股份有限公司 A method for filtering image mixed noise
CN101290680A (en) * 2008-05-20 2008-10-22 西安理工大学 Foggy day video frequency image clarification method based on histogram equalization overcorrection restoration
CN101308573A (en) * 2008-06-30 2008-11-19 北京中星微电子有限公司 Method and apparatus for eliminating noise
CN101329726A (en) * 2008-07-30 2008-12-24 电子科技大学 Method for reinforcing fingerprint image based on one-dimensional filtering
CN101404082A (en) * 2008-11-14 2009-04-08 深圳市迅雷网络技术有限公司 Portrait buffing method and apparatus
CN101472055A (en) * 2007-12-24 2009-07-01 深圳迈瑞生物医疗电子股份有限公司 Medium value filtering device and method, and ultrasound imaging system applying the device
CN101771893A (en) * 2010-01-05 2010-07-07 浙江大学 Video frequency sequence background modeling based virtual viewpoint rendering method
CN101908205A (en) * 2010-06-09 2010-12-08 河北师范大学 Magic square coding-based median filter method
CN102360492A (en) * 2011-10-09 2012-02-22 无锡银泰微电子有限公司 Photoelectric navigation system image enhancement method
CN102665034A (en) * 2012-03-16 2012-09-12 江苏华枫物联网科技有限公司 Night effect removal method for camera-collected video
CN102778211A (en) * 2012-07-13 2012-11-14 东华大学 Irregular-shaped spectacle frame superficial area detection device and method
CN103778609A (en) * 2014-01-22 2014-05-07 南京航空航天大学 Binarization image and gray level image efficient denoising method based on pixel continuity judgment

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4736439A (en) * 1985-05-24 1988-04-05 The United States Of America As Represented By The Secretary Of The Navy Image preprocessing by modified median filter
JPH06315103A (en) * 1993-04-28 1994-11-08 Nippon Telegr & Teleph Corp <Ntt> Image signal noise eliminating filter
CN101087365A (en) * 2006-06-10 2007-12-12 中兴通讯股份有限公司 A method for filtering image mixed noise
CN101472055A (en) * 2007-12-24 2009-07-01 深圳迈瑞生物医疗电子股份有限公司 Medium value filtering device and method, and ultrasound imaging system applying the device
CN101290680A (en) * 2008-05-20 2008-10-22 西安理工大学 Foggy day video frequency image clarification method based on histogram equalization overcorrection restoration
CN101308573A (en) * 2008-06-30 2008-11-19 北京中星微电子有限公司 Method and apparatus for eliminating noise
CN101329726A (en) * 2008-07-30 2008-12-24 电子科技大学 Method for reinforcing fingerprint image based on one-dimensional filtering
CN101404082A (en) * 2008-11-14 2009-04-08 深圳市迅雷网络技术有限公司 Portrait buffing method and apparatus
CN101771893A (en) * 2010-01-05 2010-07-07 浙江大学 Video frequency sequence background modeling based virtual viewpoint rendering method
CN101908205A (en) * 2010-06-09 2010-12-08 河北师范大学 Magic square coding-based median filter method
CN102360492A (en) * 2011-10-09 2012-02-22 无锡银泰微电子有限公司 Photoelectric navigation system image enhancement method
CN102665034A (en) * 2012-03-16 2012-09-12 江苏华枫物联网科技有限公司 Night effect removal method for camera-collected video
CN102778211A (en) * 2012-07-13 2012-11-14 东华大学 Irregular-shaped spectacle frame superficial area detection device and method
CN103778609A (en) * 2014-01-22 2014-05-07 南京航空航天大学 Binarization image and gray level image efficient denoising method based on pixel continuity judgment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105894464A (en) * 2016-03-28 2016-08-24 福州瑞芯微电子股份有限公司 Median filtering image processing method and apparatus
CN105894464B (en) * 2016-03-28 2018-08-31 福州瑞芯微电子股份有限公司 A kind of medium filtering image processing method and device
CN107833232A (en) * 2017-10-27 2018-03-23 智车优行科技(北京)有限公司 The extracting method and device of image detail, electronic equipment, computer-readable storage medium
CN107833232B (en) * 2017-10-27 2020-10-09 智车优行科技(北京)有限公司 Image detail extraction method and device, electronic equipment and computer storage medium

Also Published As

Publication number Publication date
CN105096263B (en) 2018-10-09

Similar Documents

Publication Publication Date Title
CN105786860B (en) Data processing method and device in data modeling
CN104899853A (en) Image region dividing method and device
JP6657417B2 (en) Service parameter selection method and related devices
CN109800220B (en) Big data cleaning method, system and related device
CN107545315A (en) Order processing method and device
CN113095512A (en) Federal learning modeling optimization method, apparatus, medium, and computer program product
CN102708183A (en) Method and device for data compression
CN108961316A (en) Image processing method, device and server
CN110110829B (en) Two-dimensional code processing method and device
CN105096263A (en) Image filtering method and device
CN110047077B (en) Image processing method for Ether house consensus mechanism
CN106934679A (en) information matching method and device
CN104424485A (en) Method and device for obtaining specific information based on image recognition
Singh et al. Thresholding Techniques applied for Segmentation of RGB and multispectral images
CN104103037A (en) Image enhancement processing method and device
CN103778220A (en) Decision support method and device based on cloud computing
CN106681803A (en) Task scheduling method and server
CN104243587A (en) Load balancing method and system for message servers
CN104657476A (en) On-line analytical processing method and system
CN113487697A (en) Method and device for generating simple strokes, electronic equipment and storage medium
CN111754061A (en) Method and device for controlling man-machine distribution, server equipment and storage medium
CN108509560B (en) User similarity obtaining method and device, equipment and storage medium
CN106528094A (en) A similarity-based application icon classifying method and system
CN110660029B (en) Image processing method, device, equipment and storage medium
CN112231466A (en) Enterprise matching method and device in matching activities

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
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Image filtering method and device

Effective date of registration: 20190621

Granted publication date: 20181009

Pledgee: Bank of China, Limited by Share Ltd, Guangzhou, Panyu branch

Pledgor: Anyka (Guangzhou) Microelectronics Technology Co., Ltd.

Registration number: 2019440000233

PE01 Entry into force of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20200907

Granted publication date: 20181009

Pledgee: Bank of China Limited by Share Ltd. Guangzhou Panyu branch

Pledgor: ANYKA (GUANGZHOU) MICROELECTRONICS TECHNOLOGY Co.,Ltd.

Registration number: 2019440000233

CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 510663 3rd floor, area C1, innovation building, 182 science Avenue, Guangzhou Science City, Luogang District, Guangzhou City, Guangdong Province

Patentee after: Guangzhou Ankai Microelectronics Co.,Ltd.

Address before: 510663 3rd floor, area C1, innovation building, 182 science Avenue, Guangzhou Science City, Luogang District, Guangzhou City, Guangdong Province

Patentee before: ANYKA (GUANGZHOU) MICROELECTRONICS TECHNOLOGY Co.,Ltd.

CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: 510555 No. 107 Bowen Road, Huangpu District, Guangzhou, Guangdong

Patentee after: Guangzhou Ankai Microelectronics Co., Ltd

Address before: 510663 3rd floor, area C1, innovation building, 182 science Avenue, Guangzhou Science City, Luogang District, Guangzhou City, Guangdong Province

Patentee before: Guangzhou Ankai Microelectronics Co., Ltd