Image bilateral filtering method and device based on FPGA
By replacing Gaussian functions with piecewise functions in FPGA and using lookup tables to reduce computing and storage resources, the problem of high image bilateral filtering resource consumption in FPGA is solved, achieving more efficient image processing and reducing hardware costs.
Patent Information
- Application Number
- CN202210126122.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-10
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2042-02-10
AI Technical Summary
Image bilateral filtering in FPGA requires a large amount of resources, resulting in high hardware costs.
By replacing the Gaussian function with a piecewise function and utilizing a pre-stored spatial weight value lookup table, the use of real-time computing and storage resources is reduced to only multiplication and addition operations.
It reduces the use of FPGA resources, reduces hardware costs, and improves the processing speed and real-time performance of image bilateral filtering.
Smart Images

Figure CN114627031B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing, and in particular to an image bilateral filtering method and device based on FPGA. Background Art
[0002] Bilateral filtering is a nonlinear filtering method widely used in image filtering. Its core is to compromise between the spatial proximity and pixel value similarity of an image to effectively suppress and smooth image noise and maintain image edge information.
[0003] Traditional image bilateral filtering requires the use of Gaussian functions to calculate spatial weights and range weights in real time. The exponential function operation is large, so it is difficult to implement bilateral filtering in FPGA.
[0004] To this end, technicians changed the complex operation of bilateral filtering (exponential operation, or exponential operation and multiplication operation) from real-time calculation to table lookup, so that this complex operation does not need to be performed in FPGA, reducing the computing pressure.
[0005] However, whether using Gaussian functions to calculate spatial domain weights and value domain weights in real time or storing lookup tables, a large amount of FPGA resources are required.
[0006] In the patent document with patent number CN112435156A, a bilateral filtering method based on FPGA is disclosed, but various calculations still require a lot of resources. In the patent document with patent number CN107230190A, it is proposed to convert some calculations into table lookup, but the method of replacing Gaussian function with interval function to reduce resources in the present invention is not mentioned. Summary of the invention
[0007] The purpose of the present invention is to provide an FPGA-based image bilateral filtering method and device to solve the problem that a large amount of FPGA resources are needed to perform image bilateral filtering in FPGA, thereby reducing the use of FPGA resources and lowering hardware costs.
[0008] In a first aspect, an embodiment of the present invention provides an image bilateral filtering method based on FPGA, comprising:
[0009] Determine a range calculation value of the neighborhood pixel point based on a preset piecewise function and a pixel difference between the neighborhood pixel point and the target pixel point;
[0010] Determine the spatial weight value of the neighborhood pixel point according to a pre-stored spatial weight value lookup table;
[0011] Implementing bilateral filtering of the target pixel point by using the range calculation value and the spatial domain weight value;
[0012] Wherein, the neighborhood pixel points are all the pixel points in the filter window;
[0013] The target pixel point is the central pixel point of the filtering window;
[0014] The piecewise function is a function that takes the pixel difference between the neighborhood pixel point and the target pixel point as an independent variable and takes the range calculation value of the neighborhood pixel point as a dependent variable.
[0015] According to the FPGA-based image bilateral filtering method provided by the present invention, the method for setting the piecewise function includes:
[0016] Using a range weighted Gaussian function and a preset number of segmentation function dividing points, determine each interval divided by the dividing points and the function value corresponding to each interval;
[0017] Based on the respective intervals and the function values corresponding to the respective intervals, a value range weight value piecewise function is generated;
[0018] Deducing the range weight value piecewise function to obtain the piecewise function;
[0019] Among them, the range weight value Gaussian function and the range weight value piecewise function are both functions that take the pixel difference between the neighborhood pixel point and the target pixel point as the independent variable and the range weight value of the neighborhood pixel point as the dependent variable.
[0020] According to the FPGA-based image bilateral filtering method provided by the present invention, the use of the range weight value Gaussian function and the number of pre-set segmentation function demarcation points to determine each interval divided by the demarcation points includes:
[0021] Determine a maximum value domain weight value based on the value domain weight value Gaussian function;
[0022] Determine, according to the maximum value domain weight value and the number of the segmentation function dividing points, the function values of the range weight value Gaussian function corresponding to the dividing points respectively;
[0023] Substituting the function value into the range weight value Gaussian function for calculation to obtain the coordinates of the demarcation point;
[0024] According to the coordinates of the dividing point, the domain of the piecewise function is divided into intervals to obtain each interval divided by the dividing point;
[0025] The domain of the piecewise function is [0, +∞).
[0026] According to the FPGA-based image bilateral filtering method provided by the present invention, the function values corresponding to the demarcation points in the range weight value Gaussian function are specifically calculated by the following formula:
[0027]
[0028] Among them, G max represents the maximum domain weight value, N represents the number of pre-set dividing points, g N-i Represents the function value corresponding to the i-th dividing point in the range weight value Gaussian function, where i represents the index value.
[0029] According to the FPGA-based image bilateral filtering method provided by the present invention, the use of the range weight value Gaussian function and the number of pre-set segmented function dividing points to determine the function values corresponding to each interval divided by the dividing point includes:
[0030] Using intervals other than the first interval and the last interval in the intervals as intervals to be selected;
[0031] Let the function value corresponding to the interval to be selected be the mean of the function values corresponding to the two endpoints of the interval to be selected in the range weight value Gaussian function;
[0032] Let the function value corresponding to the first interval be the maximum domain weight value, and let the function value corresponding to the last interval be 0;
[0033] Among them, the first interval is the interval surrounded by 0 and the first dividing point, and the last interval is the interval surrounded by the Nth dividing point and +∞.
[0034] According to the FPGA-based image bilateral filtering method provided by the present invention, the deduction of the range weight value piecewise function to obtain the piecewise function includes:
[0035] For each interval of the range weight value piecewise function, determine the ratio of the function value corresponding to the interval to the maximum range weight value, and the difference between 1 and the ratio;
[0036] The product of the ratio and the pixel value of the neighboring pixel point is used as the first recorded value, and the product of the difference and the pixel value of the target pixel point is used as the second recorded value;
[0037] The function value corresponding to the interval is replaced by the sum of the first record value and the second record value to obtain the piecewise function.
[0038] According to the FPGA-based image bilateral filtering method provided by the present invention, the spatial domain weight value lookup table is composed of the spatial domain weight value and the pixel distance between the corresponding neighboring pixel point and the target pixel point;
[0039] The spatial domain weight value is determined based on the smoothness parameter of the spatial domain and the pixel distance between the neighboring pixel point and the target pixel point;
[0040] Determining the spatial weight value of the neighborhood pixel point according to a pre-stored spatial weight value lookup table includes:
[0041] Calculating the pixel distance between the field pixel and the target pixel;
[0042] Searching for a spatial weight value in a spatial weight value lookup table corresponding to a pixel distance between the domain pixel point and the target pixel point;
[0043] The found spatial domain weight value is used as the spatial domain weight value of the neighborhood pixel point.
[0044] According to the FPGA-based image bilateral filtering method provided by the present invention, the bilateral filtering of the target pixel point is realized by using the range calculation value and the spatial domain weight value, including:
[0045] All the neighborhood pixels in the filter window are clustered in a way that the neighborhood pixels with the same spatial weight value are grouped into one cluster, and the spatial weight value corresponding to each cluster is determined;
[0046] Calculate the sum of the range calculation values corresponding to each cluster;
[0047] The sum of the range calculation values corresponding to each cluster and the product of the spatial domain weight value are added to obtain the total value of the product of the range calculation value and the spatial domain weight value of the pixel point in the neighborhood of the filter window;
[0048] The ratio between the total value and the total value of the spatial domain weight values of the neighboring pixels of the filtering window is used as the pixel value of the target pixel after bilateral filtering.
[0049] In a second aspect, an embodiment of the present invention provides an image bilateral filtering device based on FPGA, comprising:
[0050] A first determination module, used to determine a range calculation value of the neighborhood pixel point based on a preset piecewise function and a pixel difference between the neighborhood pixel point and the target pixel point;
[0051] A second determination module is used to determine the spatial weight value of the neighborhood pixel point according to a pre-stored spatial weight value lookup table;
[0052] A bilateral filtering module, used for implementing bilateral filtering of the target pixel point by using the range calculation value and the spatial domain weight value;
[0053] Wherein, the neighborhood pixel points are all the pixel points in the filter window;
[0054] The target pixel point is the central pixel point of the filtering window;
[0055] The piecewise function is a function that takes the pixel difference between the neighborhood pixel point and the target pixel point as an independent variable and takes the range calculation value of the neighborhood pixel point as a dependent variable.
[0056] In a third aspect, the present invention further provides an FPGA program, wherein the FPGA program implements the steps of the FPGA-based image bilateral filtering method as described in the first aspect on an FPGA system;
[0057] Wherein, the FPGA system includes the FPGA-based image bilateral filtering device as described in the second aspect.
[0058] The present invention provides an FPGA-based image bilateral filtering method and device. Based on a preset piecewise function and a pixel difference between a neighborhood pixel point and a target pixel point, a range calculation value of the neighborhood pixel point is determined. In the FPGA, a Gaussian function used for real-time calculation of the range of the neighborhood pixel point is replaced by a piecewise function, and then a complex exponential operation is changed into an addition and multiplication operation, thereby reducing the calculation resolution of the range, and reducing the use of FPGA computing resources compared with a traditional image bilateral filtering method using a real-time calculation method. The spatial domain weight value of the neighborhood pixel point is determined according to a pre-stored spatial domain weight value lookup table. Only the complex spatial domain weight calculation is changed from real-time calculation to a table lookup operation, so that the FPGA does not need to perform exponential operation, and the use of FPGA storage resources is reduced compared with a method in which both the spatial domain weight value and the range weight value are looked up in a table. The range calculation value and the spatial domain weight value are used to realize bilateral filtering of the target pixel point. Only multiplication and addition operations are required in the FPGA, which balances the computing pressure of the FPGA and the configuration pressure of the FPGA storage resources, thereby achieving the overall effect of reducing the use of FPGA resources and reducing hardware costs. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0060] Figure 1 It is a flowchart of the FPGA-based image bilateral filtering method provided by the present invention;
[0061] Figure 2It is a schematic diagram of the range weight value Gaussian function provided by the present invention;
[0062] Figure 3 It is a schematic diagram of a piecewise function of a range weight value provided by the present invention;
[0063] Figure 4 It is a schematic diagram of the relationship between the range weight value Gaussian function and the range weight value piecewise function provided by the present invention;
[0064] Figure 5 It is a structural schematic diagram of an image bilateral filtering device based on FPGA provided by the present invention. DETAILED DESCRIPTION
[0065] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0066] Combine the following Figure 1-Figure 5 The present invention is described.
[0067] First, as Figure 1 As shown, the present invention provides an FPGA-based image bilateral filtering method, comprising:
[0068] S11, determining a range calculation value of the neighborhood pixel point based on a preset piecewise function and a pixel difference between the neighborhood pixel point and the target pixel point;
[0069] It should be understood that an image is composed of multiple pixels, each of which has a fixed coordinate value and pixel value in the image. When bilateral filtering is performed on the image, each pixel is filtered one by one.
[0070] In addition, if the image to be filtered is in the YUV color domain, then only the Y value of the pixel point of the image needs to be filtered (because filtering the UV is not very meaningful); if the image to be filtered is in the RGB color domain, then the three RGB values of the pixel point of the image need to be filtered; here, Y, R, G and B are collectively referred to as pixel values.
[0071] The expression of the piecewise function preset in the present invention is as follows:
[0072]
[0073] In the above formula, N represents the number of pre-set segmentation function demarcation points, y represents the pixel value of the neighborhood pixel, y0 represents the pixel value of the target pixel, x represents the pixel difference between the neighborhood pixel and the target pixel, F(x) represents the range calculation value of the neighborhood pixel, and X N-1 represents the first dividing point in the piecewise function, X N-2 represents the second dividing point in the piecewise function, X N-3 represents the third dividing point in the piecewise function, and X0 represents the Nth dividing point in the piecewise function;
[0074] The demarcation point in the piecewise function is specifically calculated by the following formula:
[0075]
[0076] In the above formula, i represents the index value, i∈[1,N], σ g represents the smoothness parameter of the range, X N-i represents the i-th dividing point in the piecewise function.
[0077] The present invention derives a piecewise function from a Gaussian function, and uses the piecewise function instead of the Gaussian function to realize the real-time calculation of the value range of neighborhood pixel points, thereby transforming the complex exponential operation into an operation combining multiplication and addition, thereby reducing the calculation resolution of the value range, reducing the use of FPGA computing resources, and improving the processing speed and real-time performance of image bilateral filtering.
[0078] S12, determining the spatial weight value of the neighborhood pixel point according to a pre-stored spatial weight value lookup table;
[0079] The exponential operation required for calculating the spatial weight value is changed to a table lookup, thereby reducing the computing pressure of the FPGA. At the same time, the speed of determining the spatial weight value is improved by using a table lookup method with a faster operation speed. Compared with the traditional image bilateral filtering method using real-time calculation, the processing speed and real-time performance of image bilateral filtering processing on the FPGA can be improved.
[0080] S13, using the range calculation value and the spatial domain weight value to implement bilateral filtering of the target pixel point;
[0081] Based on the known value domain calculation value and the spatial domain weight value, the present invention can complete the bilateral filtering of the target pixel point by simply performing simple multiplication, addition and division operations; the logic is simple and the FPGA resources used are small, which can effectively reduce the FPGA hardware configuration cost.
[0082] Wherein, the neighborhood pixel points are all the pixel points in the filter window;
[0083] The target pixel point is the central pixel point of the filtering window;
[0084] Bilateral filtering generally gives a filter window for filtering the target pixel points. The filter window is generally a square with a size of (2N+1)*(2N+1). The specific size can be 3*3, 5*7, 9*9 or other numbers.
[0085] The piecewise function is a function that takes the pixel difference between the neighborhood pixel point and the target pixel point as an independent variable and takes the range calculation value of the neighborhood pixel point as a dependent variable.
[0086] It should be noted that the calculated value of the range of the neighborhood pixel points measures the impact of the pixel value difference between the neighborhood pixel points and the target pixel points on the filtering of the target pixel points. Generally speaking, the smaller the pixel value difference, the greater the impact.
[0087] The present invention provides an FPGA-based image bilateral filtering method. Based on a preset piecewise function and a pixel difference between a neighborhood pixel point and a target pixel point, a range calculation value of the neighborhood pixel point is determined. In the FPGA, a Gaussian function used for real-time calculation of the range of the neighborhood pixel point is replaced with a piecewise function, and then a complex exponential operation is changed into addition and multiplication operations, thereby reducing the calculation resolution of the range, and reducing the use of FPGA computing resources compared with a traditional image bilateral filtering method using a real-time calculation method. The spatial domain weight value of the neighborhood pixel point is determined according to a pre-stored spatial domain weight value lookup table. Only the complex spatial domain weight calculation is changed from real-time calculation to a table lookup operation, so that the FPGA does not need to perform exponential operations, and the use of FPGA storage resources is reduced compared with a method in which both the spatial domain weight value and the range weight value are looked up in a table. The range calculation value and the spatial domain weight value are used to realize bilateral filtering of the target pixel point. Only multiplication and addition operations need to be performed in the FPGA, so that the computing pressure of the FPGA and the configuration pressure of the FPGA storage resources are balanced, and the overall effect of reducing the use of FPGA resources is achieved, thereby reducing the hardware cost.
[0088] Based on the above embodiments, as an optional embodiment, the method for setting the piecewise function includes:
[0089] Using a range weighted Gaussian function and a preset number of segmentation function dividing points, determine each interval divided by the dividing points and the function value corresponding to each interval; wherein the range weighted Gaussian function and the range weighted segmentation function are both functions that use the pixel difference between the neighborhood pixel point and the target pixel point as an independent variable and the range weight value of the neighborhood pixel point as a dependent variable;
[0090] The core of the present invention is to replace the Gaussian function used for real-time calculation of the value range of neighborhood pixel points with a piecewise function in FPGA, so as to reduce the calculation resolution of the value range, thereby reducing the use of FPGA computing resources. The process is to first approximately replace the value range weight value Gaussian function with the value range weight value piecewise function, that is, according to the distribution of the value range weight value Gaussian function and the number of required segments (the number of dividing points plus 1), divide the interval and determine the function value corresponding to the interval to obtain the value range weight value piecewise function; then convert the value range weight value piecewise function into a piecewise function.
[0091] In addition, because 1 / 2^k, 2 / 2^k, ... 1, etc. can be easily implemented by shifting and adding in FPGA, the number of pre-set segmentation function demarcation points is preferably 2. k , where K is a preset value. It can be understood that the number of intervals of the preset piecewise function is determined by the number of pre-set piecewise function dividing points, and the number of selected piecewise function dividing points affects the effect of bilateral filtering to a certain extent.
[0092] Based on the respective intervals and the function values corresponding to the respective intervals, a value range weight value piecewise function is generated;
[0093] The piecewise function of the range weight value is deduced to obtain the piecewise function.
[0094] In the traditional method, the range weight value of each neighborhood pixel point in the filtering window is first calculated, and then the pixel value of each neighborhood pixel point is weighted and summed, and finally normalized (the weighted sum value is divided by the total value of the range weight values of all neighborhood pixel points) to obtain the range calculation value of the neighborhood pixel point; the present invention takes into account that the range weight value is a kind of weight calculation, the larger the pixel difference between the neighborhood pixel value and the target pixel value, the smaller the range weight value corresponding to the pixel value of the neighborhood pixel point, and the smaller the influence of the pixel value of the neighborhood pixel point on the filtering of the target pixel point. Relatively speaking, the larger the range weight value corresponding to the pixel value of the target pixel point, the The larger the pixel value of the pixel point, the greater the influence of its own filtering; in other words, the ratio of the range weight values between the neighborhood pixel point and the target pixel point represents the ratio of the degree of influence of the pixel value of the neighborhood pixel point and the pixel value of the target pixel point filtering on the target pixel point filtering respectively; therefore, assuming that the ratio is W:1; then the neighborhood pixel point occupies W / W+1 of it, and the target pixel point occupies 1 / W+1 of it; then (W / W+1)y′+(1 / W+1)y0 can be used as the range calculation value of the neighborhood pixel point; among them, y′ represents the pixel value of the neighborhood pixel point, and y0 represents the pixel value of the target pixel point.
[0095] It can be seen that the present invention determines the ratio of the pixel value of the target pixel point to the pixel value of the neighboring pixel point according to the pixel difference (the total value of the ratio is 1, and the ratio represents the degree of influence), and uses the value obtained after weighted summation according to the ratio as the final range calculation value, which is similar to the traditional method of performing weighted summation and normalization on the pixel values of the neighboring pixel points by the range weight value to obtain the range calculation value, and the present invention simplifies the calculation process of the range calculation value, reduces the computing pressure in the FPGA, and thereby reduces the FPGA resources used.
[0096] Based on the above embodiments, as an optional embodiment, the use of the range weight value Gaussian function and the number of pre-set piecewise function demarcation points to determine each interval divided by the demarcation point includes:
[0097] Determine a maximum value domain weight value based on the value domain weight value Gaussian function;
[0098] The Gaussian function expression of the range weight value is as follows:
[0099]
[0100] Among them, σ g represents the smoothing parameter of the range, and x represents the pixel difference between the neighborhood pixel and the target pixel.
[0101] The schematic diagram of the Gaussian function of its range weight value is as follows Figure 2 As shown, since the range weight Gaussian function has a maximum value at x = 0, the maximum range weight value is G max .
[0102] Determine, according to the maximum value domain weight value and the number of the segmentation function dividing points, the function values of the range weight value Gaussian function corresponding to the dividing points respectively;
[0103] The present invention first divides [0,1] into N sections [0,1 / N], [1 / N,2 / N], [2 / N,3 / N]...[N-1 / N,1], and then selects the middle values of the N sections as the function values corresponding to the N dividing points respectively;
[0104] Substituting the function value into the range weight value Gaussian function for calculation to obtain the coordinates of the demarcation point;
[0105] According to the coordinates of the dividing point, the domain of the piecewise function is divided into intervals to obtain each interval divided by the dividing point;
[0106] The domain of the piecewise function is [0, +∞).
[0107] The present invention selects a demarcation point through a scientific method on the basis of a range weight value Gaussian function, thereby laying a foundation for the generation of a piecewise function expression.
[0108] Based on the above embodiments, as an optional embodiment, the function values corresponding to the demarcation points in the range weight value Gaussian function are specifically calculated by the following formula:
[0109]
[0110] Among them, G max represents the maximum domain weight value, N represents the number of pre-set dividing points, g N-i Represents the function value corresponding to the i-th dividing point in the range weight value Gaussian function, where i represents the index value.
[0111] The present invention first divides the vertical axis of the Gaussian function of the range weight value into intervals, and then uses the horizontal axis coordinates corresponding to the middle values of each interval as the dividing points, thereby selecting the dividing points in a simple and scientific manner.
[0112] Based on the above embodiments, as an optional embodiment, the use of the range weight value Gaussian function and a preset number of piecewise function dividing points to determine the function values corresponding to each interval divided by the dividing point includes:
[0113] Using intervals other than the first interval and the last interval in the intervals as intervals to be selected;
[0114] Let the function value corresponding to the interval to be selected be the mean of the function values corresponding to the two endpoints of the interval to be selected in the range weight value Gaussian function;
[0115] Let the function value corresponding to the first interval be the maximum domain weight value, and let the function value corresponding to the last interval be 0;
[0116] Among them, the first interval is the interval surrounded by 0 and the first dividing point, and the last interval is the interval surrounded by the Nth dividing point and +∞.
[0117] The function value corresponding to any interval in the domain weight value piecewise function of the present invention is to approximate the domain weight value corresponding to the same interval in the domain weight value Gaussian function, and the approximation is a value. In this process, if the domain weight value is approximated by an average method, the extreme value (maximum domain weight value and minimum domain weight value) will be lost. Therefore, for intervals with extreme values, the approximate value takes the extreme value, and for intervals without extreme values, the approximate value takes the average value. By comprehensively considering the extreme value and the average value, the rationality of setting the domain weight value piecewise function is improved.
[0118] Based on the above embodiments, as an optional embodiment, the deducing the range weight value piecewise function to obtain the piecewise function includes:
[0119] For each interval of the range weight value piecewise function, determine the ratio of the function value corresponding to the interval to the maximum range weight value, and the difference between 1 and the ratio;
[0120] Because the range weight value of the present invention can be written as q*G max The form of q is a certain value between 0 and 1, so the function value q*G corresponding to the interval max Divide by the maximum domain weight G max The operation is equivalent to normalization, and the influence of the pixel value of the neighboring pixel on the filtering of the target pixel is obtained in the proportion of the total influence for both the neighboring pixel and the target pixel; and 1-q naturally represents the proportion of the influence of the pixel value of the target pixel on its own filtering in the total influence;
[0121] The product of the ratio and the pixel value of the neighboring pixel point is used as the first recorded value, and the product of the difference and the pixel value of the target pixel point is used as the second recorded value;
[0122] The pixel values of the neighborhood pixels and the pixel values of the target pixels are weighted respectively;
[0123] The function value corresponding to the interval is replaced by the sum of the first record value and the second record value to obtain the piecewise function.
[0124] This is equivalent to taking the sum of the weighted pixel value of the neighborhood pixel point and the weighted pixel value of the target pixel point as the final value range calculation value.
[0125] The present invention determines the ratios of the pixel value of the target pixel point to the pixel value of the neighboring pixel point according to the pixel difference (the total value of the ratio is 1, and the ratio represents the degree of influence), and takes the value after weighted summation according to the ratio as the final range calculation value. Compared with the traditional method of obtaining the range calculation value by weighted summation and normalization of the pixel values of the neighboring pixel points through the range weight value, the present invention has the same effect and reduces the FPGA resources used.
[0126] In order to more clearly explain the setting process of the piecewise function of the present invention, the following description is provided.
[0127] The piecewise function expression is derived from the range weight value Gaussian function in the traditional bilateral filtering method. The derivation process is as follows:
[0128] The first step is to determine the maximum value of the Gaussian function of the range weight value, that is, the maximum range weight value;
[0129] Because the range weight Gaussian function expression is as follows:
[0130]
[0131] Among them, σ g represents the smoothness parameter of the range, and x represents the pixel difference between the neighboring pixel and the target pixel. So there is a maximum value at x = 0, that is, the maximum value is G max .
[0132] The second step is that the range weighted piecewise function has 5 segments, that is, the number of pre-set segmentation points of the piecewise function is 4, and the expression of the range weighted Gaussian function is derived using the range weighted Gaussian function;
[0133] The present invention first divides [0,1] into four sections: [0,1 / 4], [1 / 4,2 / 4], [2 / 4,3 / 4] and [3 / 4,1], and then selects the horizontal coordinates corresponding to the middle values of the four sections as the dividing points;
[0134] That is, the vertical coordinates of the four dividing points are;
[0135]
[0136]
[0137]
[0138]
[0139] Among them, g0 is the ordinate corresponding to the fourth dividing point, g1 is the ordinate corresponding to the third dividing point, g2 is the ordinate corresponding to the second dividing point, and g3 is the ordinate corresponding to the first dividing point.
[0140] Then, according to g0, g1, g2 and g3, and the Gaussian function of the range weight value, the coordinates of the four dividing points (the dividing points are on the horizontal axis) are inferred as follows:
[0141]
[0142]
[0143]
[0144]
[0145] Among them, X0 is the fourth dividing point, X1 is the third dividing point, X2 is the second dividing point, and X3 is the first dividing point.
[0146] In the third step, according to the four dividing points X0, X1, X2 and X3, the five segments obtained are: [0, X3), [X3, X2), [X2,, X1), [X1, X0), [X0, +∞), and the corresponding ordinate intervals are
[0147] Will Use 5 values as approximation: these 5 values are G max , and 0;
[0148] The reason for this setting is that if only the interval average is considered, the maximum and minimum values are lost. Therefore, for intervals with extreme values (maximum and minimum values), the approximate value is taken as the extreme value, and for intervals without extreme values, the approximate value is taken as the average value.
[0149] Thus, a range weight value piecewise function is constructed, and the expression is as follows:
[0150]
[0151] Correspondingly, the function diagram of the range weight value piecewise function is as follows Figure 3 As shown, the relationship between the range weight value Gaussian function and the range weight value piecewise function is as follows Figure 4 shown.
[0152] The fourth step is that the range weight value is a kind of weight calculation. The larger the pixel difference between the neighborhood pixel value and the target pixel value, the smaller the range weight value corresponding to the pixel value of the neighborhood pixel point, and the smaller the influence of the pixel value of the neighborhood pixel point on the filtering of the target pixel point. Relatively speaking, the larger the range weight value corresponding to the pixel value of the target pixel point, the greater the influence of the pixel value of the target pixel point on its own filtering. Therefore, when the pixel difference between the neighborhood pixel point and the target pixel point of the present invention is 0, the range weight value of the neighborhood pixel point has a maximum value G max , when the pixel difference between the neighborhood pixel and the target pixel is ∞, the minimum value is 0;
[0153] The present invention replaces G with the pixel value y′ of the neighboring pixel point max , replace 0 with the pixel value y0 of the target pixel, and replace y0 with 3 / 4y′+1 / 4y0 Replace with 2 / 4y′+2 / 4y0 Replace with 1 / 4y′+3 / 4y0 The piecewise function used to calculate the range is obtained, and its expression is:
[0154]
[0155] The reason for this setting is that in the traditional method, the range weight value of each neighborhood pixel in the filter window is first calculated, and then the pixel values of each neighborhood pixel are weighted and summed, and finally normalized (the weighted sum value is divided by the total value of the range weight values of all neighborhood pixels) to obtain the range calculation value of the neighborhood pixel. The present invention uses different ratios of the pixel value of the target pixel and the pixel value of the neighborhood pixel to replace the pixel value of the target pixel with the pixel value of the neighborhood pixel according to the pixel difference (the total value of the ratio is 1, and the ratio represents the degree of influence), which can achieve the effect of weighted summation and normalization, and has a similar effect to the traditional method. At the same time, only a small amount of FPGA resources are required to achieve it.
[0156] It should be noted that 4 is used as the number of demarcation points because multiplication with 1 / 4, 1 / 2, and 3 / 4 can be easily implemented in FPGA using shifting and addition. Of course, 2 also has the same effect as 4. k , k is a preset value; therefore, the number of demarcation points is preferably 2 k The range calculation is implemented by using an adder, a shifter and a comparator, wherein the adder implements the addition operation, the shifter implements the multiplication operation, and the comparator determines the section of the piecewise function in which the neighborhood pixel point is located.
[0157] Based on the above embodiments, as an optional embodiment, the spatial weight value lookup table is composed of the spatial weight value and the pixel distance between the corresponding neighboring pixel point and the target pixel point;
[0158] The spatial domain weight value is determined based on the smoothness parameter of the spatial domain and the pixel distance between the neighboring pixel point and the target pixel point;
[0159] That is, the spatial domain weight value is calculated by substituting the spatial domain smoothness parameter and the pixel distance between the neighboring pixel point and the target pixel point into the spatial domain weight value Gaussian function;
[0160] The Gaussian function of the airspace weight value is specifically calculated by the following formula:
[0161]
[0162] Among them, σ f represents the smoothness parameter of the airspace, Represents the pixel distance between the neighborhood pixel and the target pixel, The value is equal to the sum of the square of the horizontal pixel distance between the neighboring pixel and the target pixel and the square of the vertical pixel distance between the neighboring pixel and the target pixel. e is a natural number and π is the pi.
[0163] Determining the spatial weight value of the neighborhood pixel point according to a pre-stored spatial weight value lookup table includes:
[0164] Calculating the pixel distance between the field pixel and the target pixel;
[0165] Searching for a spatial weight value in a spatial weight value lookup table corresponding to a pixel distance between the domain pixel point and the target pixel point;
[0166] The found spatial domain weight value is used as the spatial domain weight value of the neighborhood pixel point.
[0167] The present invention sets a spatial weight value lookup table, replaces the complex exponential operation required for calculating the spatial weight value with a table lookup, thereby reducing the calculation pressure; at the same time, a table lookup method with a faster operation speed is used to increase the speed of determining the spatial weight value, thereby improving the real-time performance of image bilateral filtering processing on FPGA.
[0168] Based on the above embodiments, as an optional embodiment, the using the range calculation value and the spatial domain weight value to implement bilateral filtering of the target pixel point includes:
[0169] All the neighborhood pixels in the filter window are clustered in a way that the neighborhood pixels with the same spatial weight value are grouped into one cluster, and the spatial weight value corresponding to each cluster is determined;
[0170] In the present invention, neighboring pixels having the same pixel distance to the target pixel have the same spatial weight value;
[0171] In simple terms: due to the symmetry of the filtering window and the square operation in the calculation formula, the spatial weights of the eight neighborhood pixels (a,b), (-a,b), (-a,-b), (a,-b), (b,a), (-b,a), (-b,-a), (b,-a) are equal. Therefore, when a≠0 and b≠0, eight neighborhood pixels have equal spatial weights; when a=0 and b≠0 or when b≠0 or a=0, four neighborhood pixels have equal spatial weights; when a=0 and b=0, there are no equal spatial weights.
[0172] Among them, a represents the horizontal axis coordinate of the neighborhood pixel point, b represents the vertical axis of the neighborhood pixel point, and the target pixel point is (0,0).
[0173] For example, when the filter window size is 5*5 (i.e., there are 25 neighborhood pixels, corresponding to 25 spatial weight values), the pixel distance between each neighborhood pixel and the target pixel is as follows:
[0174]
[0175] 2 1 0 1 2
[0177]
[0178]
[0179] From the above table, we can see that This value is repeated 8 times in total, and the value 2 is repeated 4 times in total, so the pixel distance is The spatial pixel values of the 8 neighboring pixels are equal, and the spatial pixel values of the 4 neighboring pixels with a pixel distance of 2 are equal.
[0180] Calculate the sum of the range calculation values corresponding to each cluster;
[0181] In the traditional method, the product of the domain calculation value and the spatial domain weight value of each neighborhood pixel point is generally calculated one by one during filtering, and then the products are added; the present invention takes into account that addition operation in FPGA is easier to implement than multiplication operation, so the addition operation is performed first and then the multiplication operation is performed to reduce the number of times the multiplication operation is used during filtering, thereby reducing the hardware resources required for the multiplication operation.
[0182] For example: there are four domain pixels in a cluster whose spatial domain weight values are all w, and their corresponding domain calculation values are v, p, d and o respectively; the calculation formula of the traditional method is: v×w+p×w+d×w+o×w; a total of 4 multiplication operations are required; and the calculation formula adopted by the present invention is: (v+p+d+o)×w, which only requires one multiplication operation.
[0183] The sum of the range calculation values corresponding to each cluster and the product of the spatial domain weight value are added to obtain the total value of the product of the range calculation value and the spatial domain weight value of the pixel point in the neighborhood of the filter window;
[0184] It should be noted that the range calculation value can be stored in the FPGA in the form of registers and does not require storage resources.
[0185] The ratio between the total value and the total value of the spatial domain weight values of the neighboring pixels of the filtering window is used as the pixel value of the target pixel after bilateral filtering.
[0186] Based on the known value domain calculation value and the spatial domain weight value, the present invention can complete the bilateral filtering of the target pixel point by simply performing simple multiplication, addition and division operations; the logic is simple and the FPGA resources used are small, which can effectively reduce the FPGA hardware configuration cost.
[0187] In the second aspect, the FPGA-based image bilateral filtering device provided by the present invention is described. The FPGA-based image bilateral filtering device described below and the FPGA-based image bilateral filtering method described above can refer to each other. Figure 5The following is a schematic diagram of the structure of an FPGA-based image bilateral filtering device. Figure 5 As shown, the device includes: a first determination module 21, a second determination module 22 and a bilateral filtering module 23;
[0188] A first determination module 21, configured to determine a range calculation value of a neighborhood pixel point based on a preset piecewise function and a pixel difference between the neighborhood pixel point and the target pixel point;
[0189] A second determination module 22 is used to determine the spatial weight value of the neighborhood pixel point according to a pre-stored spatial weight value lookup table;
[0190] A bilateral filtering module 23, configured to implement bilateral filtering of the target pixel point using the range calculation value and the spatial domain weight value;
[0191] Wherein, the neighborhood pixel points are all the pixel points in the filter window;
[0192] The target pixel point is the central pixel point of the filtering window;
[0193] The piecewise function is a function that takes the pixel difference between the neighborhood pixel point and the target pixel point as an independent variable and takes the range calculation value of the neighborhood pixel point as a dependent variable.
[0194] The present invention provides an FPGA-based image bilateral filtering device. Based on a preset piecewise function and a pixel difference between a neighborhood pixel point and a target pixel point, a range calculation value of the neighborhood pixel point is determined. In the FPGA, a Gaussian function used for real-time calculation of the range of the neighborhood pixel point is replaced with a piecewise function, and then a complex exponential operation is changed into addition and multiplication operations, thereby reducing the calculation resolution of the range, and reducing the use of FPGA computing resources compared with a traditional image bilateral filtering method using a real-time calculation method. The spatial domain weight value of the neighborhood pixel point is determined according to a pre-stored spatial domain weight value lookup table. Only the complex spatial domain weight calculation is changed from real-time calculation to a table lookup operation, so that the FPGA does not need to perform exponential operations, and the use of FPGA storage resources is reduced compared with a method in which both the spatial domain weight value and the range weight value are looked up in a table. The range calculation value and the spatial domain weight value are used to realize bilateral filtering of the target pixel point. Only multiplication and addition operations are required in the FPGA, so that the computing pressure of the FPGA and the configuration pressure of the FPGA storage resources are balanced, and the overall effect of reducing the use of FPGA resources is achieved, thereby reducing the hardware cost.
[0195] Based on the above embodiments, as an optional embodiment, the device further includes: a setting module for presetting a piecewise function, the setting module including:
[0196] A first determining unit, configured to determine each interval divided by the dividing point and a function value corresponding to each interval by using a range weight value Gaussian function and a preset number of dividing points of the piecewise function;
[0197] A generating unit, configured to generate a range weight value piecewise function based on the respective intervals and the function values corresponding to the respective intervals;
[0198] A deduction unit, used for deducing the value range weight value piecewise function to obtain the piecewise function;
[0199] Among them, the range weight value Gaussian function and the range weight value piecewise function are both functions that take the pixel difference between the neighborhood pixel point and the target pixel point as the independent variable and the range weight value of the neighborhood pixel point as the dependent variable.
[0200] Based on the above embodiments, as an optional embodiment, the first determining unit includes:
[0201] A first determination submodule, configured to determine a maximum value domain weight value based on the value domain weight value Gaussian function;
[0202] A second determination submodule is used to determine the function values corresponding to the demarcation points in the range weight value Gaussian function according to the maximum value domain weight value and the number of demarcation points of the piecewise function;
[0203] A first calculation submodule is used to substitute the function value into the range weight value Gaussian function for calculation to obtain the coordinates of the demarcation point;
[0204] A division submodule, used for dividing the domain of the piecewise function into intervals according to the coordinates of the dividing point, to obtain each interval divided by the dividing point;
[0205] The domain of the piecewise function is [0, +∞).
[0206] Based on the above embodiments, as an optional embodiment, the function values corresponding to the demarcation points in the range weight value Gaussian function are specifically calculated by the following formula:
[0207]
[0208] Among them, G max represents the maximum domain weight value, N represents the number of pre-set dividing points, g N-i Represents the function value corresponding to the i-th dividing point in the range weight value Gaussian function, where i represents the index value.
[0209] Based on the above embodiments, as an optional embodiment, the first determining unit further includes:
[0210] A first setting submodule, configured to select intervals other than the first interval and the last interval among the intervals as intervals to be selected;
[0211] The second setting submodule is used to set the function value corresponding to the to-be-selected interval to be the average of the function values corresponding to the two endpoints of the to-be-selected interval in the range weight value Gaussian function;
[0212] The third setting submodule is used to set the function value corresponding to the first interval to the maximum domain weight value, and set the function value corresponding to the last interval to 0;
[0213] Among them, the first interval is the interval surrounded by 0 and the first dividing point, and the last interval is the interval surrounded by the Nth dividing point and +∞.
[0214] Based on the above embodiments, as an optional embodiment, the deduction unit includes:
[0215] A third determination subunit is used to determine, for each interval of the range weight value piecewise function, a ratio of the function value corresponding to the interval to the maximum range weight value, and a difference between 1 and the ratio;
[0216] A second calculation subunit is used to use the product of the ratio and the pixel value of the neighboring pixel point as the first recorded value, and use the product of the difference and the pixel value of the target pixel point as the second recorded value;
[0217] The replacement subunit is used to replace the function value corresponding to the interval with the sum of the first record value and the second record value to obtain the piecewise function.
[0218] Based on the above embodiments, as an optional embodiment, the spatial weight value lookup table is composed of the spatial weight value and the pixel distance between the corresponding neighboring pixel point and the target pixel point;
[0219] The spatial domain weight value is determined based on the smoothness parameter of the spatial domain and the pixel distance between the neighboring pixel point and the target pixel point;
[0220] The second determining module 22 includes:
[0221] A calculation unit, used for calculating the pixel distance between the field pixel point and the target pixel point;
[0222] A search unit, used to search for a spatial weight value corresponding to the pixel distance between the domain pixel point and the target pixel point in a spatial weight value lookup table;
[0223] A setting unit is used to use the found spatial weight value as the spatial weight value of the neighborhood pixel point.
[0224] Based on the above embodiments, as an optional embodiment, the using the range calculation value and the spatial domain weight value to implement bilateral filtering of the target pixel point includes:
[0225] A cluster division unit is used to divide all the neighborhood pixels in the filtering window into clusters in a manner that the neighborhood pixels with the same spatial weight value are grouped into one cluster, and determine the spatial weight value corresponding to each cluster;
[0226] Cluster range calculation value summing unit, used to calculate the sum of the range calculation values corresponding to each cluster;
[0227] A summing unit is used to sum the product of the sum of the range calculation value corresponding to each cluster and the spatial domain weight value to obtain the total value of the product of the range calculation value and the spatial domain weight value of the pixel point in the neighborhood of the filter window;
[0228] The bilateral filtering unit is used to use the ratio between the total value and the total value of the spatial domain weight values of the neighboring pixels of the filtering window as the pixel value of the target pixel after bilateral filtering.
[0229] In a third aspect, the present invention also provides an FPGA program, which executes an FPGA-based image bilateral filtering method on an FPGA system. The FPGA system encapsulates an FPGA-based image bilateral filtering device, and the method includes: determining a range calculation value of the neighborhood pixel point based on a pre-set piecewise function and a pixel difference between the neighborhood pixel point and the target pixel point; determining the spatial weight value of the neighborhood pixel point according to a pre-stored spatial weight value lookup table; using the range calculation value and the spatial weight value to implement bilateral filtering of the target pixel point; wherein the neighborhood pixel point is all the pixel points of the filtering window; the target pixel point is the central pixel point of the filtering window; the piecewise function is a function with the pixel difference between the neighborhood pixel point and the target pixel point as the independent variable and the range calculation value of the neighborhood pixel point as the dependent variable.
[0230] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0231] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0232] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. An image bilateral filtering method based on FPGA, characterized in that: The method comprises: Determine a range calculation value of the neighborhood pixel point based on a preset piecewise function and a pixel difference between the neighborhood pixel point and the target pixel point; Determine the spatial weight value of the neighborhood pixel point according to a pre-stored spatial weight value lookup table; Implementing bilateral filtering of the target pixel point by using the range calculation value and the spatial domain weight value; Wherein, the neighborhood pixel points are all the pixel points in the filter window; The target pixel point is the central pixel point of the filtering window; The piecewise function is a function that takes the pixel difference between the neighborhood pixel point and the target pixel point as the independent variable and the value calculated by the range of the neighborhood pixel point as the dependent variable, wherein, The method for setting the piecewise function comprises: Using a range weighted Gaussian function and a preset number of segmentation function dividing points, determine each interval divided by the dividing points and the function value corresponding to each interval; Based on the respective intervals and the function values corresponding to the respective intervals, a value range weight value piecewise function is generated; Deducing the range weight value piecewise function to obtain the piecewise function; The range weight value Gaussian function and the range weight value piecewise function are both functions that take the pixel difference between the neighborhood pixel point and the target pixel point as the independent variable and the range weight value of the neighborhood pixel point as the dependent variable, wherein, The method of using the range weight value Gaussian function and a preset number of piecewise function dividing points to determine each interval divided by the dividing points includes: Determine a maximum value domain weight value based on the value domain weight value Gaussian function; Determine, according to the maximum value domain weight value and the number of the segmentation function dividing points, the function values of the range weight value Gaussian function corresponding to the dividing points respectively; Substituting the function value into the range weight value Gaussian function for calculation to obtain the coordinates of the demarcation point; According to the coordinates of the dividing point, the domain of the piecewise function is divided into intervals to obtain each interval divided by the dividing point; Among them, the domain of the piecewise function is .
2. The FPGA-based image bilateral filtering method according to claim 1, characterized in that: The function values corresponding to the demarcation points in the range weight value Gaussian function are specifically calculated by the following formula: ; in, represents the maximum value domain weight value, Indicates the number of pre-set demarcation points. Represents the function value corresponding to the i-th dividing point in the range weight value Gaussian function, Indicates the index value.
3. The FPGA-based image bilateral filtering method according to claim 1, characterized in that: The method of using the range weight value Gaussian function and a preset number of piecewise function dividing points to determine the function values corresponding to each interval divided by the dividing points includes: Using intervals other than the first interval and the last interval in the intervals as intervals to be selected; Let the function value corresponding to the interval to be selected be the mean of the function values corresponding to the two endpoints of the interval to be selected in the range weight value Gaussian function; Let the function value corresponding to the first interval be the maximum domain weight value, and let the function value corresponding to the last interval be 0; The first interval is the interval between 0 and the first dividing point, and the last interval is the interval between The dividing point Enclosed area.
4. The FPGA-based image bilateral filtering method according to claim 1, characterized in that: The step of deducing the value range weight value piecewise function to obtain the piecewise function includes: For each interval of the range weight value piecewise function, determine the ratio of the function value corresponding to the interval to the maximum range weight value, and the difference between 1 and the ratio; The product of the ratio and the pixel value of the neighboring pixel point is used as the first recorded value, and the product of the difference and the pixel value of the target pixel point is used as the second recorded value; The function value corresponding to the interval is replaced by the sum of the first record value and the second record value to obtain the piecewise function.
5. The FPGA-based image bilateral filtering method according to claim 1, characterized in that: The spatial domain weight value lookup table is composed of the spatial domain weight value and the pixel distance between the corresponding neighboring pixel point and the target pixel point; The spatial domain weight value is determined based on the smoothness parameter of the spatial domain and the pixel distance between the neighboring pixel point and the target pixel point; Determining the spatial weight value of the neighborhood pixel point according to a pre-stored spatial weight value lookup table includes: Calculating the pixel distance between the field pixel and the target pixel; Searching for a spatial weight value in a spatial weight value lookup table corresponding to a pixel distance between the domain pixel point and the target pixel point; The found spatial domain weight value is used as the spatial domain weight value of the neighborhood pixel point.
6. The FPGA-based image bilateral filtering method according to claim 1, characterized in that: The using the range calculation value and the spatial domain weight value to implement bilateral filtering of the target pixel point includes: All the neighborhood pixels in the filter window are clustered in a way that the neighborhood pixels with the same spatial weight value are grouped into one cluster, and the spatial weight value corresponding to each cluster is determined; Calculate the sum of the range calculation values corresponding to each cluster; The sum of the range calculation values corresponding to each cluster and the product of the spatial domain weight value are added to obtain the total value of the product of the range calculation value and the spatial domain weight value of the pixel point in the neighborhood of the filter window; The ratio between the total value and the total value of the spatial domain weight values of the neighboring pixels of the filtering window is used as the pixel value of the target pixel after bilateral filtering.
7. An FPGA-based image bilateral filtering device, implementing the FPGA-based image bilateral filtering method according to any one of claims 1 to 6, characterized in that: The device comprises: A first determination module, used to determine a range calculation value of the neighborhood pixel point based on a preset piecewise function and a pixel difference between the neighborhood pixel point and the target pixel point; A second determination module is used to determine the spatial weight value of the neighborhood pixel point according to a pre-stored spatial weight value lookup table; A bilateral filtering module, used for implementing bilateral filtering of the target pixel point by using the range calculation value and the spatial domain weight value; Wherein, the neighborhood pixel points are all the pixel points in the filter window; The target pixel point is the central pixel point of the filtering window; The piecewise function is a function that takes the pixel difference between the neighborhood pixel point and the target pixel point as an independent variable and takes the range calculation value of the neighborhood pixel point as a dependent variable.
8. A storage medium, characterized in that: The storage medium stores an FPGA program, and the FPGA program implements the steps of the FPGA-based image bilateral filtering method according to any one of claims 1 to 6 on the FPGA system; Wherein, the FPGA system includes the FPGA-based image bilateral filtering device as described in claim 7.
Citation Information
Patent Citations
Image bilateral filtering method and device
CN107230190A
FPGA-based image processing method and device, equipment and medium
CN112435156A
Hardware implementation guided filtering optimization system and method
CN107274362A
Method and device for achieving image bilateral filtering in FPGA and FPGA
CN110930313A
Method for bilateral filtering of digital images
US20050025378A1
