Image noise reduction method and device

By performing binning, bilateral filtering, and Blind operations on the image, the problem of color noise suppression that cannot be effectively suppressed in existing technologies is solved, improving the image display effect and reducing hardware costs.

CN114331899BActive Publication Date: 2024-09-20SHANGHAI YUSI MICROELECTRONICS CO LTD
View PDF 20 Cites 0 Cited by

Patent Information

Application Number
CN202111661147.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-31
Publication Date
2024-09-20
Estimated Expiration
2041-12-31

AI Technical Summary

Technical Problem

Existing image denoising methods mainly target texture details and fail to effectively suppress color noise, which can affect image display quality in certain environments.

Method used

By performing a 16x16 block binning operation on the previous frame image, the probability of flat regions and non-scene change probabilities in the current frame image are calculated. Combined with bilateral filtering and B-end operations, color noise is suppressed.

Benefits of technology

It effectively suppresses color noise, improves image display quality, and reduces hardware implementation costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114331899B
    Figure CN114331899B
Patent Text Reader

Abstract

The present invention is applicable to the technical field of image noise reduction, and provides an image noise reduction method, comprising: binning a previous frame image according to a block size of 16x16, storing the obtained points in RAM, calculating the probability PRO0 that the pixel of the current frame image is in a flat area, performing bilateral filtering on the pixel of the current frame image to obtain PIXcur; at the same time, interpolating the points obtained by binning the previous frame image to obtain PIXref; using PIXcur and PIXref, calculating the non-scene change probability PRO1, performing blend operation, and obtaining the final noise reduction result; through probability calculation, performing blend operation on two frames of pixels, thereby performing time domain noise reduction, combining with 2D double sideband filtering to achieve 3D noise reduction effect, and realizing color noise reduction of the image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of image processing, and in particular relates to an image noise reduction method and device. Background Art

[0002] Currently, many devices in the field of consumer electronics are equipped with shooting functions, and the image effects obtained by shooting have gradually become an important criterion for judging the quality of consumer electronic products.

[0003] However, images are inevitably accompanied by noise interference during the process of capturing, processing and transmitting. Most of the current image denoising methods focus on denoising texture details. The noise filter designed based on this has a certain impact on the effect of color denoising due to the limitation of filter range.

[0004] Prior art A method and device for image denoising (CN 112435182 A), which discloses a method and device for image denoising. The image includes a plurality of blocks with overlapping areas, and the blocks can be integrated into an image. The method for image denoising includes: calculating the preliminary denoising result of each block; calculating the difference between the original pixel value of each block and the preliminary denoising result to obtain the residual value of each block; calculating the residual value of each pixel of the image by the residual value of each pixel of the image in all blocks containing each pixel to obtain the residual image of the image; and calculating the denoised image based on the image and the residual image. The denoising described in the technical solution is mainly for the denoising of the image edges and textures, and cannot be used for the denoising of the color noise. There is no special denoising for the color noise, and in some environmental scenes, the color noise often has a greater impact on the display effect of the image. When the color noise has exceeded the filtering range of the filter, the image quality will be greatly affected.

[0005] In order to effectively suppress the color noise of an image, this patent invents a general image noise reduction method and device. Summary of the invention

[0006] The embodiment of the present invention provides an image denoising method and device, aiming to solve the problem that under special circumstances, general image denoising technology mainly performs denoising on the texture details of the image, but does not specifically perform denoising on color noise. In some environmental scenarios, color noise often has a greater impact on the display effect of the image. In this scenario, the color noise has exceeded the filtering range of the filter. This patent implements a denoising method for color noise, which can effectively suppress the impact of color noise on the image display effect, while reducing the hardware implementation cost.

[0007] The embodiment of the present invention is implemented as follows: an image noise reduction method, comprising:

[0008] S1, bin the previous frame image into blocks of size 16x16, obtain N points, and store them in RAM;

[0009] S2, calculate the probability PRO0 that the current frame image Pixel is in the flat area;

[0010] S3, perform bilateral filtering on the current frame image Pixel to obtain PIXcur; at the same time, perform interpolation on the extra N points obtained by binning the previous frame image to obtain PIXref;

[0011] S4, using P IXcur and P IXref, calculate the non-scene change probability PRO1;

[0012] S5, performing bl end operation to obtain the final noise reduction result.

[0013] As an improved solution of the present invention: Binning in step S1 is to calculate the pixel average value of each block of the previous frame image according to the block size of 16x16 to obtain N points, where N=(image width / 16)*(image height / 16).

[0014] As another improvement of the present invention: the calculation step in step S2 is to perform gradient calculation on the current frame image in four directions, take n points in the vertical gradient direction, calculate the average value, obtain P0 and P1, and use P0 and P1 to calculate the gradient in the current direction; take the maximum value of the gradient in the four directions, map it to the probability map, and obtain the flat area probability PRO0.

[0015] As another improved solution of the present invention: the detailed steps of step S3 are as follows: performing bilateral filtering on the current frame image Pixel to obtain a two-dimensional denoised Pixel; and at the same time, interpolating N points obtained by Binning the previous frame image to obtain Pixelf.

[0016] As another improvement of the present invention: the detailed steps of step S4 are to use |PIXcur-PIXref| as an index, map it to the probability map, and obtain the probability PRO1 of non-scene change.

[0017] As another improvement scheme of the present invention: the detailed steps of step S5 are PRO0*PRO1 to obtain the current PIXcur weight α, then 1-α is the weight corresponding to the previous frame PIXref frame, and according to the formula α*PIXcur+(1-α)*PIXref, bl end operation is performed to obtain the final 3D noise reduction result.

[0018] The present invention also provides an image noise reduction device, comprising:

[0019] An image analysis module, wherein the image analysis module is used to perform binning and interpolation on the image in blocks of size 16x16;

[0020] A data processing module, the data processing module is used to perform bilateral filtering calculation on the image Pixel, calculate the probability PRO0 of the flat area of ​​the image Pixel, and calculate;

[0021] A calculation module, wherein the image calculation module is used to calculate a non-scene change rate;

[0022] Bend calculation module, the Bend calculation module is used to perform bl end operation to obtain a denoised image.

[0023] The present invention discloses an image noise reduction device, comprising: a processor module, a storage module and a computer program, wherein the processor module is connected to the storage module, and the computer program is arranged in the storage module.

[0024] As an improved solution of the present invention: the processor module is used to execute a computer program to implement the above method steps.

[0025] As another improvement of the present invention: the storage module is used to execute and store the data generated in the above method steps.

[0026] Beneficial effects of the present invention: When the present invention is used, the B l end operation is performed on two frames of Pixel through probability calculation, thereby performing time domain noise reduction, and combining with 2D double sideband filtering to achieve a 3D noise reduction mechanism, which can effectively filter color noise information. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 It is a structural block diagram of an image noise reduction method;

[0028] Figure 2 It is a flowchart of the image processing of an image noise reduction method;

[0029] Figure 3 It is a schematic diagram of gradient probability calculation of an image noise reduction device;

[0030] Figure 4 It is a gradient probability calculation line graph of an image denoising device. DETAILED DESCRIPTION

[0031] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0032] The present invention can effectively suppress the color noise of the image and reduce the influence of the color noise on the image during the process of capturing, processing and transmitting the image.

[0033] Embodiment 1

[0034] See also Figure 1-4 .

[0035] S1, bin the previous frame image according to 16x16 blocks, get the pixel average value of each block, a total of N, N = (image width / 16) * (image height / 16), store it in RAM;

[0036] S2, calculate the probability PRO0 that the current frame image Pixel l is in the flat area. Specifically, perform gradient calculation on the current frame image in 4 directions, take n points in the vertical gradient direction, calculate the average value, and obtain P0 and P1. Use P0 and P1 to calculate the gradient of the current direction; take the maximum value of the gradient in the 4 directions, map it to the probability map, and obtain the flat area probability PRO0;

[0037] S3, bilateral filtering is performed on the current frame image Pixel to obtain PIXcur; at the same time, N points obtained by Binning the previous frame image are interpolated to obtain PIXref. Specifically, bilateral filtering is performed on the current frame image Pixel to obtain two-dimensional denoised PIXcur; at the same time, 16x16 points obtained by Binning the previous frame image are interpolated to obtain PIXref;

[0038] S4, using PIXcur and PIXref, calculate the non-scene change probability PRO1. Specifically, use |PIXcur-PIXref| as the index and map it to the probability map to obtain the non-scene change probability PRO1.

[0039] S5, performing bl end operation to obtain the final denoising result. Specifically, PRO0*PRO1 obtains the current PIXcur weight α, then 1-α is the weight corresponding to the previous frame PIXref frame, and according to the formula α*PIXcur+(1-α)*PIXref, performing bl end operation to obtain the final 3D denoising result.

[0040] In summary, this scheme performs B l end operation on two frames of Pixel through probability calculation, thereby performing time domain noise reduction, and combines 2D double-sideband filtering to achieve a 3D noise reduction mechanism, which can effectively filter color noise information.

[0041] Embodiment 2

[0042] See also Figure 1-4 .

[0043] In S1, the image is divided into H parts at intervals of 16 in the horizontal direction, that is, H = width / 16, and divided into V parts at intervals of 16 in the vertical direction, that is, V = height / 16. A total of N = H*V 16x16 blocks are obtained. The PIX in each block is accumulated, and the final accumulated value is divided by 256 to obtain the binning operation result, that is, PIX avg =ΣPIX / 256, write the obtained N points into RAM.

[0044] Embodiment 3

[0045] See also Figure 1-4 .

[0046] In S2, the probability PRO0 that the current frame image Pixel is in the flat area is calculated. Specifically, the gradient of the current frame image is calculated in four directions. The gradient calculation takes n points in the vertical gradient direction, calculates the average value, and obtains P0 and P1. P0 and P1 are used to calculate the gradient of the current direction; for example, to calculate the gradient in the vertical direction, n is 5, and the current Pixel coordinate is (11, 8), then the P0 point needs 5 points to calculate the average value, and the coordinates of the 5 points are Pix(8, 6), Pix(8, 7), Pix(8, 8), Pix(8, 9), Pix(8, 10); the P1 point needs 5 points to calculate the average value, and the coordinates of the 5 points are Pix(12, 6), Pix(12, 7), Pix(12, 8), Pix(12, 9), Pix(12, 10), and the vertical gradient |P0-P1| is obtained. The gradients in the other three directions are calculated in the same way, and the maximum value of the four gradients is taken. If the gradient is greater than Th1, it means that the current Pixel is in the edge area of ​​the image, and the flat area probability PRO0=0; if the gradient is less than Th0, it means that the current Pixel is in the flat area, and the flat area probability PRO0=1; if the gradient is greater than Th0 but less than Th1, it means that the current Pixel is in the gradient area, and the flat area probability PRO0 takes the value on the oblique line on the probability graph.

[0047] Embodiment 4

[0048] See also Figure 1-4 .

[0049] In S3, the current frame image Pixel is bilaterally filtered to obtain two-dimensional denoised PIXcur. Double-side band filtering is a well-known image filtering method and will not be described in detail here. At the same time, bidirectional interpolation is performed on the N points after binning of the previous frame image to obtain PIXref.

[0050] The specific method of bidirectional interpolation is:

[0051] 1. According to the coordinates (Y0, X0) of the current Pixel, divide both the horizontal and vertical coordinates by 16 to obtain (y0, x0);

[0052] 2. From the ram, obtain the values of 4 points (y0, x0), (y0, x0 + 1), (y0 + 1, x0), (y0 + 1, x0 + 1), and denote them as P 00 , P 01 , P 10 , P 11 .

[0053] 3. First, perform horizontal interpolation to obtain H0 = P 00 +(P 01 - P 00 ) * Coef h and H1 = P 10 +(P 11 - P 10 ) * Coef h , where Coef h is the reciprocal of the ratio of the current Pixel's horizontal coordinate to the midpoint of the horizontal coordinates of two adjacent 16x16 blocks.

[0054] 4. Then, perform vertical interpolation to obtain PIXref = H0+(H1 - H0) * Coef v .

[0055] Example Five

[0056] Refer to Figure 1-4 .

[0057] In S4, use |PIXcur - PIXref| as the index, map it to the probability graph, and obtain the probability PRO1 of non-scene transformation: when |PIXcur - PIXref| > Th1, PRO1 = 0; when |PIXcur - PIXref| < Th0, PRO1 = 1; when Th0 < |PIXcur - PIXref| < Th1, PRO1 takes the value of the diagonal line on the probability graph.

[0058] Example Six

[0059] Refer to Figure 1-4 .

[0060] Multiply PRO0 * PRO1 to obtain the weight α of the current PIXcur, then 1 - α is the weight corresponding to the previous frame PIXref frame. Perform a blend operation according to the formula α * PIXcur+(1 - α) * PIXref to obtain the final 3D noise reduction result.

[0061] Example Seven

[0062] An image noise reduction device of the present invention includes:

[0063] An image analysis module, the image analysis module is used to divide the image into blocks and perform binning calculation and interpolation;

[0064] A data processing module, the data processing module is used to perform bilateral filtering calculation on the image Pixel, calculate the probability PRO0 of the flat area of ​​the image Pixel, and calculate;

[0065] A calculation module, wherein the image calculation module is used to calculate a non-scene change rate;

[0066] Bend calculation module, the Bend calculation module is used to perform bl end operation to obtain a denoised image;

[0067] Among them, the image analysis module, data processing module, calculation module and Bend calculation module are the main components of the computer program.

[0068] The present invention discloses an image noise reduction device, comprising: a processor module, a storage module and a computer program, wherein the processor module is connected to the storage module, and the computer program is arranged in the storage module.

[0069] The processor module is used to execute a computer program to implement the method steps described above.

[0070] The storage module is used to execute and store the data generated in the method steps described above.

[0071] The working principle of the device is as follows: the image analysis module, data processing module, calculation module and Bend calculation module in the computer program in the execution storage module on the processor module are executed in sequence according to steps S1-S5. The specific steps are as follows: first, the previous frame image is binning calculated according to the size of 16x16 and stored in the RAM; then the probability PRO0 that the current frame image Pixel is in the flat area is calculated; then the current frame image Pixel is bilaterally filtered to obtain PIXcur; at the same time, the points obtained in the first step are interpolated to obtain PIXref; using PIXcur and PIXref in the third step; then the non-scene change probability PRO1 is calculated; then a bl end operation is performed to obtain the final denoising result.

[0072] It should be understood that, although each step in the flow chart of each embodiment of the present invention is shown in sequence according to the indication of the arrow, these steps are not necessarily performed in sequence according to the order indicated by the arrow. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be performed in other orders. Moreover, at least a portion of the steps in each embodiment may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.

[0073] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0074] The above-mentioned embodiments only express several implementation methods of the present invention, and the description thereof is relatively specific and detailed, but it cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, which all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

[0075] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. An image denoising method, characterized in that: Including: S1. Divide the previous frame of image into blocks of 16x16 size, perform binning operation to obtain N points, and store them in the ram; S2. Calculate the probability PRO0 of the current frame image Pixel in the flat area; S3. Perform bilateral filtering on the current frame image Pixel to obtain the two-dimensional denoised PIXcur; at the same time, interpolate the N points obtained by binning the previous frame image to obtain PIXref; S4. Use PIXcur and PIXref to calculate the non-scene change probability PRO1; S5. Perform blend operation to obtain the final denoising result; The detailed steps of the step S4 are as follows: use |PIXcur - PIXref| as the index, map it to the probability map, and obtain the non-scene transformation probability PRO1: when |PIXcur - PIXref| > Th1, PRO1 = 0; when |PIXcur - PIXref| < Th0, PRO1 = 1; when Th0 < |PIXcur - PIXref| < Th1, PRO1 takes the value of the diagonal line on the probability map; The detailed steps of the step S5 are as follows: Multiply PRO0 by PRO1 to obtain the weight α of the current PIXcur, then 1 - α is the weight corresponding to the previous frame PIXref frame. Perform blend operation according to the formula α * PIXcur + (1 - α) * PIXref to obtain the final 3D denoising result.

2. The image denoising method according to claim 1, wherein: In the step S1, Binning is to calculate the average value of each block of Pixel of the previous frame of image according to the 16x16 block size to obtain N points, where N = (image width / 16) * (image height / 16).

3. The image denoising method according to claim 1, wherein: The calculation steps in the step S2 are as follows: perform gradient calculation on the current frame image in 4 directions, take n points in the vertical gradient direction, calculate the average value to obtain P0 and P1, and calculate the gradient in the current direction using P0 and P1; take the maximum value of the gradients in 4 directions, map it to the probability map, and obtain the flat area probability PRO0.

4. An image noise reduction device, characterized in that , adopting the image denoising method described in any one of claims 1 to 3, including: An image analysis module, which is used to divide the image into blocks of 16x16 size for binning and interpolation; A data processing module, which is used to perform bilateral filtering calculation on the image Pixel and calculate the probability PRO0 of the flat area of the image Pixel; A calculation module, which is used to calculate the non-scene change rate. The detailed steps are as follows: use |PIXcur - PIXref| as the index, map it to the probability map, and obtain the non-scene transformation probability PRO1: when |PIXcur - PIXref| > Th1, PRO1 = 0; when |PIXcur - PIXref| < Th0, PRO1 = 1; when Th0 < |PIXcur - PIXref| < Th1, PRO1 takes the value of the diagonal line on the probability map; Bend calculation module, the Bend calculation module is used to perform blend operation to obtain a denoised image. The detailed steps are PRO0*PRO1 to obtain the current PIXcur weight α, then 1-α is the weight corresponding to the previous frame PIXref frame, and according to the formula α*PIXcur+(1-α)*PIXref, a blend operation is performed to obtain the final 3D denoising result.

5. An electronic device, characterized in that: include: A processor, a memory and a computer program, wherein the computer program is stored in the memory and the computer program is executed by the processor to implement the image denoising method according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Image noise reduction method and device

    CN112435182A

  • Method, device and integrated circuit for reducing image ring noise

    CN101123682A

  • Filtering noise reduction system and method for video data

    CN102595026A

  • Method for time domain noise reduction of noise image and related device

    CN103632352A

  • Method and device for image chromaticity noise reduction

    CN104486607A