CN105096263B - image filtering method and device - Google Patents

image filtering method and device Download PDF

Info

Publication number
CN105096263B
CN105096263B CN201410220193.1A CN201410220193A CN105096263B CN 105096263 B CN105096263 B CN 105096263B CN 201410220193 A CN201410220193 A CN 201410220193A CN 105096263 B CN105096263 B CN 105096263B
Authority
CN
China
Prior art keywords
pixel value
pixel
value
difference
pending
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410220193.1A
Other languages
Chinese (zh)
Other versions
CN105096263A (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 embodiment of the present application provides a kind of image filtering method and device, the method includes:The pixel value of each pixel in described image in the default neighborhood of pending pixel is compared;The number difference more than the pixel value number of each pixel value and the pixel value number less than each pixel value is calculated, to obtain the corresponding number difference of each pixel value;Using in the corresponding number difference of each pixel value, the corresponding pixel value of number difference of numerical value minimum updates the pixel value of the pending pixel.The embodiment of the present application improves image filtering efficiency.

Description

Image filtering method and device
Technical field
This application involves technical field of image processing, more particularly to a kind of image filtering method and device.
Background technology
Image may be interfered during acquisition, transmission etc. by noise, to influence the quality of image.
Image filtering refers to inhibiting to the noise of image under conditions of retaining image detail feature, be to reduce Picture noise enhances the important means of picture quality.
A kind of existing image filtering mode is the method using medium filtering, i.e., by the picture of pending pixel in image Element value is replaced, the pending pixel with the intermediate value of the pixel value with each pixel in the pending pixel neighborhood of a point It refer to noise in image point.When determining the intermediate value of each pixel value, in the prior art, typically each pixel value is pressed first It is ranked up according to numerical values recited, each pixel value after sequence is then split as several groupings, for the picture in each grouping Element value, continues packet fragmentation, until only including 3 pixel values in obtained final grouping, may thereby determine that out 3 pictures Intermediate value in element value.Utilize the intermediate value in the grouping of same grade, you can to determine one point of upper level belonging to same grade grouping The intermediate value of group, can then determine the intermediate value in each pixel value in pending neighborhood of pixel points step by step.
By foregoing description process it is found that existing this image filtering mode, needs to divide to rank-ordered pixels and step by step The complicated operation such as group, causes filtering operation amount to increase, and there are many pixel quantity in especially pending pixel neighborhood of a point When, workload will be very huge, to influence the efficiency of image filtering.
Invention content
In view of this, this application provides a kind of image filtering method and device, the efficiency of image filtering is improved.
To achieve the above object, the application provides the following technical solutions:
A kind of image filtering method, including:
The pixel value of each pixel in described image in the default neighborhood of pending pixel is compared;
It calculates more than the pixel value number of each pixel value and the pixel value number less than each pixel value Number difference, to obtain the corresponding number difference of each pixel value;
Using in the corresponding number difference of each pixel value, the corresponding pixel value of number difference of numerical value minimum, more The pixel value of the new pending pixel.
Preferably, in the corresponding number difference using each pixel value, the number difference of numerical value minimum corresponds to Pixel value, the pixel value for updating the pending pixel includes:
In the corresponding number difference of each pixel value, when the number difference of numerical value minimum corresponds to multiple pixel values, Using the average value of the multiple pixel value, the pixel value of the pending pixel is replaced;
In the corresponding number difference of each pixel value, when the number difference of numerical value minimum corresponds to a pixel value, The pixel value of the pending pixel is replaced using one pixel value.
Preferably, the pixel value of each pixel in described image in the default neighborhood of pending pixel is compared Relatively include:
Using the pixel value chosen successively in each pixel value as target pixel value, and compared with other pixel values Compared with;Wherein, other pixel values are the pixel value for not including the target pixel value in each pixel value;
It is described to calculate more than the pixel value number of each pixel value and the pixel value less than each pixel value Several number differences includes to obtain the corresponding number difference of each pixel value:
First number of the pixel value in each pixel value more than the target pixel value is calculated, and is less than the target Second number of the pixel value of pixel value;
The number absolute value of the difference for calculating first number and second number, as the target pixel value Number difference, to obtain the corresponding number difference of each pixel value.
Preferably, the number difference is specially subtracted more than the pixel value number of each pixel value each less than described The absolute value for the difference that the number of the pixel value of a pixel value obtains;
Or subtract the pixel value number more than each pixel value less than the pixel value number of each pixel value The absolute value of obtained difference.
A kind of image filtering device, including:
Comparing unit is used for the pixel value of each pixel in described image in the default neighborhood of pending pixel It is compared;
Computing unit, for calculating the pixel value number more than each pixel value and each pixel value less than described in The number difference of pixel value number obtains the corresponding number difference of each pixel value;
Filter unit, for utilizing in the corresponding number difference of each pixel value, the number difference pair of numerical value minimum The pixel value answered updates the pixel value of the pending pixel.
Preferably, the filter unit includes:
First filter unit, for working as in the corresponding number difference of each pixel value, the number difference of numerical value minimum When corresponding multiple pixel values, using the average value of the multiple pixel value, the pixel value of the pending pixel is replaced;
Second filter unit, for working as in the corresponding number difference of each pixel value, the number difference of numerical value minimum When a corresponding pixel value, the pixel value of the pending pixel is replaced using one pixel value.
Preferably, the comparing unit is specifically used for using the pixel value chosen successively from each pixel value as mesh Pixel value is marked, and the target pixel value is compared with other pixel values;Wherein, other pixel values are each pixel Do not include the pixel value of the target pixel value in value;
The computing unit includes:
Counting unit, first number for calculating the pixel value in each pixel value more than the target pixel value, with And second number of the pixel value less than the target pixel value;
Difference computational unit, for calculating first number and second number absolute value of the difference, as the mesh The number difference for marking pixel value, to obtain the corresponding number difference of each pixel value.
A kind of image filtering equipment, including:
First comparator is used for the pixel of each pixel in the pending pixel default neighborhood in described image Value is compared;
Calculator, for calculating more than the pixel value number of each pixel value and the picture less than each pixel value The number difference of element value number, obtains the corresponding number difference of each pixel value;
Second comparator is used for the corresponding number difference of more each pixel value, determines the number number of numerical value minimum It is worth corresponding pixel value;
Filter, the pixel value for being determined using second comparator update the pixel of the pending pixel Value.
Preferably, the filter includes:
First filter, for working as in the corresponding number difference of each pixel value, the number difference pair of numerical value minimum When answering multiple pixel values, using the average value of the multiple pixel value, the pixel value of the pending pixel is replaced;
Second filter, for working as in the corresponding number difference of each pixel value, the number difference pair of numerical value minimum When answering a pixel value, the pixel value of the pending pixel is replaced using one pixel value.
Preferably, the first comparator is specifically used for using the pixel value chosen successively in each pixel value as mesh Pixel value is marked, and is compared with other pixel values;Wherein, it does not include the mesh that other pixel values, which are in each pixel value, Mark the pixel value of pixel value;
Then the calculator includes:
Counter, for calculating first number of pixel value for being more than the target pixel value in each pixel value, Yi Jiyu Less than second number of pixel value of the target pixel value;
Subtracter, for calculating first number and second number absolute value of the difference, as the object pixel The number difference of value, to obtain the corresponding number difference of each pixel value.
It can be seen via above technical scheme that compared with prior art, this application provides a kind of image filtering method and Device, when being filtered to the pending pixel in image, by each pixel in the default neighborhood of pending pixel The pixel value of point is compared;It calculates more than the pixel value number of each pixel value and the picture less than each pixel value The number difference of element value number, obtains the corresponding number difference of each pixel value;The number difference of numerical value minimum is corresponding Pixel value is the intermediate value of each pixel value, is that the pixel value of the pending pixel may be updated using the intermediate value, being not necessarily to will Each rank-ordered pixels and the step by step complex operations such as grouping, you can quickly to determine the intermediate value in each pixel value, reduce Workload, to improve the efficiency of image filtering.
Description of the drawings
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of application for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow chart of image filtering method one embodiment provided by the embodiments of the present application;
Fig. 2 is a kind of flow chart of another embodiment of image filtering method provided by the embodiments of the present application;
Fig. 3 is a kind of structural schematic diagram of image filtering device one embodiment provided by the embodiments of the present application;
Fig. 4 is a kind of structural schematic diagram of another embodiment of image filtering device provided by the embodiments of the present application;
Fig. 5 is a kind of structural schematic diagram of image filtering equipment one embodiment provided by the embodiments of the present application;
Fig. 6 is a kind of structural schematic diagram of another embodiment of image filtering equipment provided by the embodiments of the present application.
Specific implementation mode
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall in the protection scope of this application.
In the embodiment of the present application, by the pixel value of each pixel in image in the default neighborhood of pending pixel It is compared;It calculates more than the pixel value number of each pixel value and the pixel value number less than each pixel value Number difference, to obtain the corresponding number difference of each pixel value;It is poor from the corresponding number of each pixel value of utilization In value, the corresponding pixel value of number difference of numerical value minimum, you can the pixel value of the update pending pixel.The numerical value is most The small corresponding pixel value of number difference is the intermediate value of each pixel value, and the determination of intermediate value is not necessarily to sort and be grouped step by step etc. multiple Miscellaneous operation so that reduce workload when medium filtering, improve the efficiency of image filtering.
Fig. 1 is a kind of flow chart of image filtering method one embodiment provided by the embodiments of the present application, and this method can be with Including following steps:
101:The pixel value of each pixel in described image in the default neighborhood of pending pixel is compared.
102:It calculates more than the pixel value number of each pixel value and the pixel value less than each pixel value Several number difference, to obtain the corresponding number difference of each pixel value.
103:Using in the corresponding number difference of each pixel value, the corresponding pixel of number difference of numerical value minimum Value updates the pixel value of the pending pixel.
Wherein, which refers to the maximum pixel in the pixel that its pixel value is more than in its default neighborhood Value, and pixel value difference is less than the minimum pixel value in the pixel in its default neighborhood more than first threshold or its pixel value, And pixel value difference is more than the pixel namely noise spot of second threshold.
When carrying out image filtering, it is first determined pending pixel can be sentenced for each pixel in image Whether the difference that its disconnected pixel value subtracts the max pixel value in the pixel in its default neighborhood is more than first threshold, Huo Zheqi Whether the difference that the minimum pixel value of the pixel in default neighborhood subtracts its pixel value is less than second threshold, if it is, can To determine the pixel as pending pixel, need to carry out noise reduction, it can be according to the noise reduction process of pending pixel Image filtering scheme provided by the embodiments of the present application executes.The first threshold and second threshold can be according to right in practical application The requirement of picture quality determines, for fixed value or can be set by the user.
Default field refers to the nearby sphere of pending pixel, such as the 5*5 put centered on pending pixel The region of region, i.e. 5 every trade pixels and 5 row row pixels composition, pending pixel are the central point in the region.
The predeterminable area can be determined according to practical situations.
It includes the pending pixel that pending pixel, which presets each pixel in field not,.Each pixel is equal With pixel value, pixel value can select the pixels list of feature values such as brightness value, gray value according to different practical situations Show.
After the pixel value for determining each pixel, you can be compared to each pixel value, for any one picture Element value, can calculate more than its pixel value number and less than its pixel value number, so as to obtain being more than its picture The number difference of element value number and the pixel value number less than it.
Wherein, which is specially positive integer.
The pixel value number that the number difference may be greater than each pixel value is subtracted less than each described pixel value Pixel value number obtain the absolute value of difference;Or it is subtracted more than each less than the pixel value number of each pixel value The pixel value number of a pixel value obtains the absolute value of difference.
After calculating the corresponding number difference of each pixel value, each number difference can be compared, can be obtained The corresponding pixel value of number difference of numerical value minimum.The corresponding pixel value of number difference of numerical value minimum is each pixel value Intermediate value, to utilize the intermediate value, the pixel value of pending pixel can be updated.
For example, being for one group of pixel value:1, for 2,3,4,5,6,7, wherein be more than the pixel value number of pixel value 1 It is 6, the pixel value number for being less than pixel value 1 is 0, and the number difference to which the pixel value 1 be calculated is 6;More than pixel value 2 Pixel value number be 5, be less than pixel value 2 pixel value number be 1, be calculated the pixel value 2 number difference be 4;Greatly It is 4 in the pixel value number of pixel value 3, the pixel value number for being less than pixel value 3 is 2, and the number that the pixel value 3 is calculated is poor Value is 2;Pixel value number more than pixel value 4 is 3, and the pixel value number for being less than pixel value 4 is 3, and the pixel value 4 is calculated Number difference be 0;Pixel value number more than pixel value 5 is 2, and the pixel value number for being less than pixel value 5 is 4, is calculated The number difference of the pixel value 4 is 2;Pixel value number more than pixel value 6 is 1, and the pixel value number for being less than pixel value 6 is 5, The number difference that the pixel value 6 is calculated is 4;Pixel value number more than pixel value 7 is 0, is less than the pixel value of pixel value 7 Number is 6, and the number difference that the pixel value 7 is calculated is 6.By comparing can numerical value minimum number difference be 0, from And 0 corresponding pixel value 4 of number difference is the intermediate value of this group of pixel value, you can to update pending pixel using pixel value 4 The pixel value of point.
The embodiment of the present application is based on medium filtering principle, each pixel out of default field of the pending pixel Intermediate value is determined in pixel value, using the corresponding pixel value of the intermediate value, the pixel value of pending pixel is updated, to realize image Filtering, it is multiple without each pixel value being ranked up and being grouped step by step etc. when determining the intermediate value of the pixel value of each pixel Miscellaneous operation, you can quickly to determine intermediate value, so as to improve the efficiency of image filtering.
Wherein, the number of the pixel value for each pixel being calculated is looked into difference, and the number difference of numerical value minimum can Multiple pixel values can be corresponded to, therefore the step 103 utilizes in the corresponding number difference of each pixel value, minimum of numerical value The corresponding pixel value of number difference, the pixel value for updating the pending pixel may include:
In the corresponding number difference of each pixel value, when the number difference of numerical value minimum corresponds to multiple pixel values, Using the average value of the multiple pixel value, the pixel value of the pending pixel is replaced;
In the corresponding number difference of each pixel value, when the number difference of numerical value minimum corresponds to a pixel value, The pixel value of the pending pixel is replaced using one pixel value.
When i.e. the number difference of numerical value minimum corresponds to a pixel value, which is in each pixel value Value;And the number difference of numerical value minimum is when corresponding to multiple pixel values, then using the average value of multiple pixel value as each pixel The intermediate value of value, to recycle the intermediate value determined to replace the pixel value of pending pixel, to reduce pending pixel Noise realizes image filtering.
Fig. 2 shows a kind of flow chart of another embodiment of image filtering method provided by the embodiments of the present application, the party Method may include following steps:
201:Using the pixel value chosen successively in each pixel value as target pixel value, and with other pixel values into Row compares.
It is that calculate separately its number to each pixel value successively poor when determining the corresponding number difference of each pixel value It is worth, it, can be using a pixel value of selection as target pixel value in the present embodiment.By target pixel value and other pixel values into Row compares one by one.
Wherein, other pixel values are the pixel value for not including the target pixel value in each pixel value;
202:First number of the pixel value in each pixel value more than the target pixel value is calculated, and less than described Second number of the pixel value of target pixel value.
203:The number absolute value of the difference for calculating first number and second number, as the target pixel value Number difference, to obtain the corresponding number difference of each pixel value.
Target pixel value is compared with other pixel values, it may be determined that go out the pixel value more than target pixel value Number, i.e. first number;And the pixel value number less than target pixel value, i.e. second number.
Calculate the absolute value of the difference of first number and second number, as the number difference of target pixel value.To i.e. Corresponding number difference when can obtain each pixel value as target pixel value.
204:Using in the corresponding number difference of each pixel value, the corresponding pixel of number difference of numerical value minimum Value updates the pixel value of the pending pixel.
The corresponding pixel value of number difference of numerical value minimum is the intermediate value in each pixel value combination.
Using the intermediate value, median filter process is utilized, you can be updated with the pixel value to pending pixel value.
May include specifically:
In the corresponding number difference of each pixel value, when the number difference of numerical value minimum corresponds to multiple pixel values, Using the average value of the multiple pixel value, the pixel value of the pending pixel is replaced;
In the corresponding number difference of each pixel value, when the number difference of numerical value minimum corresponds to a pixel value, The pixel value of the pending pixel is replaced using one pixel value.
In the present embodiment, when being filtered to the pending pixel in image, it is first determined go out pending pixel The pixel value of each pixel in default neighborhood, and in each pixel value, calculate the pixel more than each pixel value It is worth the number difference of number and the pixel value number less than each pixel value, obtains corresponding of each pixel value Number difference, so that it is determined that the corresponding pixel value of number difference for going out numerical value minimum is the intermediate value of each pixel value, according to intermediate value The filtering to pending pixel can be realized using the intermediate value in filtering principle.Due to each pixel value of determination intermediate value when, nothing Each pixel value need to be ranked up, and be grouped step by step so that reduced workload, improve computational efficiency, to improve The efficiency of image filtering.
For each method embodiment above-mentioned, for simple description, therefore it is all expressed as a series of combination of actions, but Be those skilled in the art should understand that, the application is not limited by the described action sequence because according to the application, certain A little steps can be performed in other orders or simultaneously.Secondly, it those skilled in the art should also know that, is retouched in specification The embodiment stated belongs to preferred embodiment, necessary to involved action and module not necessarily the application.
Fig. 3 is a kind of structural schematic diagram of image filtering method one embodiment provided by the embodiments of the present application, the device May include:
Comparing unit 301 is used for the picture of each pixel in described image in the default neighborhood of pending pixel Plain value is compared.
Computing unit 302, for calculating the pixel value number more than each pixel value and each pixel less than described in The number difference of the pixel value number of value obtains the corresponding number difference of each pixel value.
Filter unit 303, for utilizing in the corresponding number difference of each pixel value, the number difference of numerical value minimum Corresponding pixel value updates the pixel value of the pending pixel.
Default field refers to the nearby sphere of pending pixel, such as the 5*5 put centered on pending pixel The region of region, i.e. 5 every trade pixels and 5 row row pixels composition, pending pixel are the central point in the region.
The predeterminable area can be determined according to practical situations.
It includes the pending pixel that pending pixel, which presets each pixel in field not,.
The pixel value number that the number difference may be greater than each pixel value is subtracted less than each described pixel value Pixel value number obtain the absolute value of difference;Or it is subtracted more than each less than the pixel value number of each pixel value The pixel value number of a pixel value obtains the absolute value of difference.
The corresponding pixel value of number difference of numerical value minimum is the intermediate value of each pixel value, to utilize the intermediate value, The pixel value of pending pixel can be updated.
In embodiment, it is based on medium filtering principle, the picture of each pixel out of default field of the pending pixel Intermediate value is determined in plain value, using the corresponding pixel value of the intermediate value, updates the pixel value of pending pixel, to realize that image is filtered Wave, when determining the intermediate value of the pixel value of each pixel, without the complexity such as each pixel value being ranked up and being grouped step by step Operation, you can quickly to determine intermediate value, so as to improve the efficiency of image filtering.
Wherein, the number of the pixel value for each pixel being calculated is looked into difference, and the number difference of numerical value minimum can Multiple pixel values can be corresponded to, therefore, which may include:
First filter unit, for working as in the corresponding number difference of each pixel value, the number difference of numerical value minimum When corresponding multiple pixel values, using the average value of the multiple pixel value, the pixel value of the pending pixel is replaced.
Second filter unit, for working as in the corresponding number difference of each pixel value, the number difference of numerical value minimum When a corresponding pixel value, the pixel value of the pending pixel is replaced using one pixel value.
When i.e. the number difference of numerical value minimum corresponds to a pixel value, which is in each pixel value Value;And the number difference of numerical value minimum is when corresponding to multiple pixel values, then using the average value of multiple pixel value as each pixel The intermediate value of value, to recycle the intermediate value determined to replace the pixel value of pending pixel, to reduce pending pixel Noise realizes image filtering.
In yet another embodiment, as shown in figure 4, the comparing unit 301 in the image filtering device can be specifically used for Using the pixel value chosen successively from each pixel value as target pixel value, and by the target pixel value and other pictures Plain value is compared;Wherein, other pixel values are the pixel value for not including the target pixel value in each pixel value.
Computing unit 302 may include:
Counting unit 401, first number for calculating the pixel value in each pixel value more than the target pixel value, And second number of the pixel value less than the target pixel value;
Difference computational unit 402, for calculating first number and second number absolute value of the difference, as described The number difference of target pixel value, to obtain the corresponding number difference of each pixel value.
Wherein, filter unit 303 may include:
First filter unit 403, in the corresponding number difference of each pixel value, the number of numerical value minimum to be poor When value corresponds to multiple pixel values, the average value of the multiple pixel value is utilized, replaces the pixel value of the pending pixel;
Second filter unit 404, in the corresponding number difference of each pixel value, the number of numerical value minimum to be poor When value corresponds to a pixel value, the pixel value of the pending pixel is replaced using one pixel value.
In the present embodiment, when being filtered to the pending pixel in image, it is first determined go out pending pixel The pixel value of each pixel in default neighborhood, and in each pixel value, calculate the pixel more than each pixel value It is worth the number difference of number and the pixel value number less than each pixel value, obtains corresponding of each pixel value Number difference, so that it is determined that the corresponding pixel value of number difference for going out numerical value minimum is the intermediate value of each pixel value, according to intermediate value The filtering to pending pixel can be realized using the intermediate value in filtering principle.Due to each pixel value of determination intermediate value when, nothing Each pixel value need to be ranked up, and be grouped step by step so that reduced workload, improve computational efficiency, to improve The efficiency of image filtering.
Software form reality may be used in practical applications in each unit of above-described embodiment described image filter The existing, form of software plus hardware or example, in hardware are realized, therefore, as shown in figure 5, the embodiment of the present application also provides a kind of figures As the structural schematic diagram of filter apparatus one embodiment, which may include:
First comparator 501 is used for each pixel in the pending pixel default neighborhood in described image Pixel value is compared.
Calculator 502, for calculating the pixel value number more than each pixel value and each pixel value less than described in Pixel value number number difference, obtain the corresponding number difference of each pixel value;
Second comparator 503 is used for the corresponding number difference of more each pixel value, determines the number of numerical value minimum The corresponding pixel value of numerical value.
Filter 504, the pixel value for being determined using second comparator update the picture of the pending pixel Element value.
As another embodiment, as shown in fig. 6, the first comparator 501 of the image filtering equipment can be specifically used for The pixel value chosen successively in each pixel value is compared as target pixel value, and with other pixel values;Wherein, Other pixel values are the pixel value for not including the target pixel value in each pixel value.
The calculator 502 may include:
Counter 601, for calculate in each pixel value be more than the target pixel value first number of pixel value, and With second number of pixel value less than the target pixel value;
Subtracter 602, for calculating first number and second number absolute value of the difference, as the target picture The number difference of element value, to obtain the corresponding number difference of each pixel value.
Filter 504 can be formed due to first filter 603 and second filter 604;
First filter 603, for working as in the corresponding number difference of each pixel value, the number difference of numerical value minimum When corresponding multiple pixel values, using the average value of the multiple pixel value, the pixel value of the pending pixel is replaced;
Second filter 604, for working as in the corresponding number difference of each pixel value, the number difference of numerical value minimum When a corresponding pixel value, the pixel value of the pending pixel is replaced using one pixel value.
The image filtering equipment of the embodiment of the present application, when being filtered to the pending pixel in image, it is first determined Go out the pixel value of each pixel in pending pixel default neighborhood, and in each pixel value, calculates more than each The number difference of the pixel value number of a pixel value and the pixel value number less than each pixel value, obtains each pixel It is worth corresponding number difference, so that it is determined that the corresponding pixel value of number difference for going out numerical value minimum is each pixel value The filtering to pending pixel can be realized using the intermediate value according to medium filtering principle in intermediate value.Due to each pixel of determination It when the intermediate value of value, without being ranked up to each pixel value, and is grouped step by step so that reduce workload, improve calculating effect Rate, to improve the efficiency of image filtering.
Each embodiment is described by the way of progressive in this specification, the highlights of each of the examples are with other The difference of embodiment, just to refer each other for identical similar portion between each embodiment.For device disclosed in embodiment For, since it is corresponded to the methods disclosed in the examples, so description is fairly simple, related place is said referring to method part It is bright.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment including a series of elements includes not only that A little elements, but also include other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or apparatus that includes the element.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this The function of each unit is realized can in the same or multiple software and or hardware when application.
As seen through the above description of the embodiments, those skilled in the art can be understood that the application can It is realized by the mode of software plus required general hardware platform.Based on this understanding, the technical solution essence of the application On in other words the part that contributes to existing technology can be expressed in the form of software products, the computer software product It can be stored in a storage medium, such as ROM/RAM, magnetic disc, CD, including some instructions are used so that a computer equipment (can be personal computer, server either network equipment etc.) executes the certain of each embodiment of the application or embodiment Method described in part.
The foregoing description of the disclosed embodiments enables professional and technical personnel in the field to realize or use the application. Various modifications to these embodiments will be apparent to those skilled in the art, as defined herein General Principle can in other embodiments be realized in the case where not departing from spirit herein or range.Therefore, the application It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest range caused.

Claims (6)

1. a kind of image filtering method, which is characterized in that including:
The pixel value of each pixel in described image in the default neighborhood of pending pixel is compared;Wherein, should Pending pixel refers to the max pixel value in the pixel that its pixel value is more than in its default neighborhood, and pixel value difference is more than The pixel of first threshold or its pixel value are less than the minimum pixel value in the pixel in its default neighborhood, and pixel difference Pixel of the value more than second threshold;
Calculate the number more than the pixel value number of each pixel value and the pixel value number less than each pixel value Difference, to obtain the corresponding number difference of each pixel value;The number difference is specially more than each pixel value Pixel value number subtracts the absolute value of the difference obtained less than the number of the pixel value of each pixel value;
Or it subtracts the pixel value number more than each pixel value less than the pixel value number of each pixel value and obtains Difference absolute value;
Using in the corresponding number difference of each pixel value, the corresponding pixel value of number difference of numerical value minimum updates institute State the pixel value of pending pixel;
In the corresponding number difference using each pixel value, the corresponding pixel value of number difference of numerical value minimum, more Newly the pixel value of the pending pixel includes:
In the corresponding number difference of each pixel value, when the number difference of numerical value minimum corresponds to multiple pixel values, utilize The average value of the multiple pixel value replaces the pixel value of the pending pixel;
In the corresponding number difference of each pixel value, when the number difference of numerical value minimum corresponds to a pixel value, utilize One pixel value replaces the pixel value of the pending pixel.
2. according to the method described in claim 1, it is characterized in that, will be in described image in the default neighborhood of pending pixel Each pixel pixel value be compared including:
The pixel value chosen successively in each pixel value is compared as target pixel value, and with other pixel values; Wherein, other pixel values are the pixel value for not including the target pixel value in each pixel value;
It is described to calculate more than the pixel value number of each pixel value and the pixel value number less than each pixel value Number difference includes to obtain the corresponding number difference of each pixel value:
First number of the pixel value in each pixel value more than the target pixel value is calculated, and is less than the object pixel Second number of the pixel value of value;
The number absolute value of the difference of first number and second number is calculated, the number as the target pixel value is poor Value, to obtain the corresponding number difference of each pixel value.
3. a kind of image filtering device, which is characterized in that including:
Comparing unit, for carrying out the pixel value of each pixel in described image in the default neighborhood of pending pixel Compare;Wherein, which refers to the max pixel value in the pixel that its pixel value is more than in its default neighborhood, and Pixel value difference is less than the minimum pixel in the pixel in its default neighborhood more than the pixel of first threshold or its pixel value Value, and pixel value difference is more than the pixel of second threshold;
Computing unit, for calculating more than the pixel value number of each pixel value and the pixel less than each pixel value It is worth the number difference of number, obtains the corresponding number difference of each pixel value;The number difference is specially more than each The pixel value number of a pixel value subtracts the absolute value of the difference obtained less than the number of the pixel value of each pixel value;
Or it subtracts the pixel value number more than each pixel value less than the pixel value number of each pixel value and obtains Difference absolute value;
Filter unit, for using in the corresponding number difference of each pixel value, the number difference of numerical value minimum to be corresponding Pixel value updates the pixel value of the pending pixel;
The filter unit includes:
First filter unit, in the corresponding number difference of each pixel value, the number difference of numerical value minimum to correspond to When multiple pixel values, using the average value of the multiple pixel value, the pixel value of the pending pixel is replaced;
Second filter unit, in the corresponding number difference of each pixel value, the number difference of numerical value minimum to correspond to When one pixel value, the pixel value of the pending pixel is replaced using one pixel value.
4. device according to claim 3, which is characterized in that the comparing unit is specifically used for will be from each pixel value The pixel value chosen successively is compared as target pixel value, and by the target pixel value with other pixel values;Its In, other pixel values are the pixel value for not including the target pixel value in each pixel value;
The computing unit includes:
Counting unit, first number for calculating the pixel value in each pixel value more than the target pixel value, Yi Ji little In second number of the pixel value of the target pixel value;
Difference computational unit, for calculating first number and second number absolute value of the difference, as the target picture The number difference of element value, to obtain the corresponding number difference of each pixel value.
5. a kind of image filtering equipment, which is characterized in that including:
First comparator, for by the pixel value of each pixel in the pending pixel default neighborhood in described image into Row compares;Wherein, which refers to the max pixel value in the pixel that its pixel value is more than in its default neighborhood, And pixel value difference is less than the minimum image in the pixel in its default neighborhood more than the pixel of first threshold or its pixel value Element value, and pixel value difference is more than the pixel of second threshold;
Calculator, for calculating more than the pixel value number of each pixel value and the pixel value less than each pixel value The number difference of number obtains the corresponding number difference of each pixel value;The number difference is specially to be more than each The pixel value number of pixel value subtracts the absolute value of the difference obtained less than the number of the pixel value of each pixel value;
Or it subtracts the pixel value number more than each pixel value less than the pixel value number of each pixel value and obtains Difference absolute value;
Second comparator is used for the corresponding number difference of more each pixel value, determines the number numerical value pair of numerical value minimum The pixel value answered;
Filter, the pixel value for being determined using second comparator update the pixel value of the pending pixel;
The filter includes:
First filter, in the corresponding number difference of each pixel value, the number difference correspondence of numerical value minimum to be more When a pixel value, using the average value of the multiple pixel value, the pixel value of the pending pixel is replaced;
Second filter, in the corresponding number difference of each pixel value, the number difference of numerical value minimum to correspond to one When a pixel value, the pixel value of the pending pixel is replaced using one pixel value.
6. equipment according to claim 5, which is characterized in that the first comparator is specifically used for will be in each pixel value The pixel value chosen successively is compared as target pixel value, and with other pixel values;Wherein, other pixel values Not include the pixel value of the target pixel value in each pixel value;
Then the calculator includes:
Counter, for calculate in each pixel value be more than the target pixel value first number of pixel value, and with less than Second number of pixel value of the target pixel value;
Subtracter, for calculating first number and second number absolute value of the difference, as the target pixel value Number difference, to obtain the corresponding number difference of each pixel value.
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 CN105096263A (en) 2015-11-25
CN105096263B true 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)

Families Citing this family (2)

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

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101087365A (en) * 2006-06-10 2007-12-12 中兴通讯股份有限公司 A method for filtering image mixed noise
CN101308573A (en) * 2008-06-30 2008-11-19 北京中星微电子有限公司 Method and apparatus for eliminating noise
CN101908205A (en) * 2010-06-09 2010-12-08 河北师范大学 Magic square coding-based median filter 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

Family Cites Families (8)

* 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
CN101472055B (en) * 2007-12-24 2012-10-10 深圳迈瑞生物医疗电子股份有限公司 Medium value filtering device and method, and ultrasound imaging system applying the device
CN101290680B (en) * 2008-05-20 2011-07-06 西安理工大学 Foggy day video frequency image clarification method based on histogram equalization overcorrection restoration
CN101329726B (en) * 2008-07-30 2010-04-14 电子科技大学 Method for reinforcing fingerprint image based on one-dimensional filtering
CN101404082B (en) * 2008-11-14 2011-02-02 深圳市迅雷网络技术有限公司 Portrait buffing method and apparatus
CN101771893B (en) * 2010-01-05 2012-08-08 浙江大学 Video frequency sequence background modeling based virtual viewpoint rendering method
CN102360492A (en) * 2011-10-09 2012-02-22 无锡银泰微电子有限公司 Photoelectric navigation system image enhancement method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101087365A (en) * 2006-06-10 2007-12-12 中兴通讯股份有限公司 A method for filtering image mixed noise
CN101308573A (en) * 2008-06-30 2008-11-19 北京中星微电子有限公司 Method and apparatus for eliminating noise
CN101908205A (en) * 2010-06-09 2010-12-08 河北师范大学 Magic square coding-based median filter 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

Also Published As

Publication number Publication date
CN105096263A (en) 2015-11-25

Similar Documents

Publication Publication Date Title
CN105719611B (en) The show uniformity method of adjustment and device of liquid crystal display
CN109584175B (en) Image processing method and device
CN111429370A (en) Method and system for enhancing images in coal mine and computer storage medium
CN110400260B (en) Image processing method and device
CN105096263B (en) image filtering method and device
CN108961260B (en) Image binarization method and device and computer storage medium
CN103778900A (en) Image processing method and system
CN103049911B (en) Contour detecting stability judging method and image search method
CN109817170A (en) Pixel compensation method, device and terminal device
CN105654051A (en) Video detection method and system
CN112037160A (en) Image processing method, device and equipment
CN103237158A (en) Image processing method, image acquisition system and image processor
CN106709394A (en) Image processing method and device
CN114862897A (en) Image background processing method and device and electronic equipment
CN104103037A (en) Image enhancement processing method and device
CN111429437B (en) Image non-reference definition quality detection method for target detection
CN104853059B (en) Super-resolution image processing method and its device
CN109389139A (en) A kind of locust method of counting and device
CN102651754A (en) Method, equipment and system for white board content sharing
CN104484376B (en) The method and device of displaying data in real-time
CN111402178B (en) Non-average filtering method and non-average filtering device
CN104754181A (en) Video noise estimating method and device
CN100533479C (en) Adaptive image sharpening method
CN104021579A (en) Method and device for changing colors of image
CN105141809B (en) A kind of video noise compensation method and electronic equipment

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