Chromatic aberration correction related image noise reduction method, chip and user equipment
By using sliding window sliding in image processing for chromatic aberration correction and noise reduction processing, the problem of chromatic aberration correction module occupies a large amount of hardware cache in the prior art is solved, and the hardware area and cost are reduced, and the chromatic aberration correction and image reduction are realized. Efficient multiplexing of noise.
Patent Information
- Application Number
- CN202411431866.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-14
- Publication Date
- 2025-01-10
AI Technical Summary
The chromatic aberration correction module in existing image signal processors occupies a large amount of hardware line cache, resulting in increased hardware area and cost.
Sliding on the image with a preset size is used to slide the slide window. By determining whether the center pixel of the sliding window is the pixel to be corrected, chromatic aberration correction and image noise reduction processing are performed, the same cache is used to reduce the hardware area and cost.
Effectively reduce the hardware area and cost, realize efficient multiplexing of chromatic aberration correction and image noise reduction processing, and avoid buffering of pixels required for chromatic aberration correction and image noise reduction respectively.
Smart Images

Figure CN119299640A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing technology, and in particular to an image noise reduction method, a chip and a user device related to chromatic aberration correction. Background Art
[0002] Chromatic Aberration, also known as "color fringing" or "purple fringing", is a common optical problem that occurs when a lens fails to focus all wavelengths of color onto the same focal plane, and / or when color wavelengths focus at different locations on the focal plane. An ideal lens would focus all wavelengths of light onto the same point without taking into account the effects of dispersion. However, there is no such lens in technology, so the dispersion of the lens causes chromatic aberration. In other words, the multiple colors of light travel at different speeds when passing through the lens. Dispersion usually results in images with colored edges (red, yellow, green, blue, magenta, etc.), especially in high-contrast scenes, where the problem is particularly noticeable around objects.
[0003] In the prior art, most image signal processors (ISPs) have a module for color difference correction, generally referred to as CAC, which is used to correct color anomalies caused by color difference. However, most existing CAC modules generally exist as a single level, occupying a large amount of hardware line cache, resulting in an increase in hardware area and chip cost. Summary of the invention
[0004] The image denoising method, chip and user equipment related to chromatic aberration correction provided by the present invention can enable the chromatic aberration correction and image denoising processes to use pixels collected by the same sliding window, thereby enabling the chromatic aberration correction and image denoising processes to reuse the same cache to reduce hardware area and cost.
[0005] In a first aspect, the present invention provides an image noise reduction method related to chromatic aberration correction, the method comprising:
[0006] A sliding window of preset size is used to slide on the image to be processed. After each sliding of the sliding window, the pixels in the sliding window are processed as follows:
[0007] Determining whether the central pixel of the sliding window is a pixel to be corrected;
[0008] When the central pixel of the sliding window is a pixel to be corrected, correcting the central pixel of the sliding window according to the pixels in the sliding window to form a corrected pixel;
[0009] Noise reduction processing is performed based on other pixels except the central pixel among the pixels in the sliding window and the corrected pixels.
[0010] Optionally, after determining whether the sliding window center pixel is a pixel to be corrected, the method further includes:
[0011] When the central pixel of the sliding window is a pixel not to be corrected, noise reduction processing is performed according to the pixels in the sliding window.
[0012] Optionally, the determining whether the central pixel of the sliding window is a pixel to be corrected includes:
[0013] Obtaining the color channel corresponding to the center pixel of the sliding window;
[0014] When the central pixel of the sliding window is located in the green channel, the central pixel of the sliding window is a pixel not to be corrected;
[0015] When the center pixel of the sliding window is in the blue channel or the red channel, the center of the sliding window is the pixel to be corrected.
[0016] Optionally, the correcting the central pixel of the sliding window according to the pixels in the sliding window to form a corrected pixel comprises:
[0017] Obtaining the radial distance between the central pixel of the sliding window and the coordinates of the optical center of the image;
[0018] Obtaining a pre-calibrated correction parameter corresponding to the color channel of the center pixel of the sliding window;
[0019] The central pixel of the sliding window is corrected according to the coordinates of the optical center of the image, the coordinates of the central pixel of the sliding window, the radial distance and the correction parameter to form a corrected pixel.
[0020] Optionally, the correcting the central pixel of the sliding window according to the coordinates of the optical center of the image, the coordinates of the central pixel of the sliding window, the radial distance and the correction parameter to form a corrected pixel comprises:
[0021] Determining the offset coordinates of the center pixel of the sliding window according to the coordinates of the optical center of the image, the coordinates of the center pixel of the sliding window, the radial distance and the correction parameter;
[0022] Interpolating the offset coordinates according to a plurality of pixels adjacent to the offset coordinates to obtain a target pixel value corresponding to the offset coordinates;
[0023] The central pixel of the sliding window is updated according to the target pixel value to form a corrected pixel.
[0024] Optionally, performing noise reduction processing according to other pixels except the central pixel and the corrected pixels in the sliding window includes:
[0025] Obtaining a pixel difference between each pixel in the other pixels and the corrected pixel;
[0026] Determine the gain function of other pixels according to each pixel coordinate of other pixels, the offset coordinate, the central pixel coordinate of the sliding window and the pixel difference;
[0027] Noise reduction processing is performed according to the gain function.
[0028] Optionally, determining the gain function of other pixels according to each pixel coordinate of other pixels, the offset coordinate, the sliding window center pixel coordinate and the pixel difference comprises:
[0029] Obtaining a first distance between each pixel coordinate and the center pixel coordinate of the sliding window;
[0030] Obtaining a second distance between each pixel coordinate and the offset coordinate;
[0031] determining a noise reduction gain for each pixel according to a ratio of the second distance to the first distance;
[0032] A gain function is determined according to the noise reduction gain and the pixel difference.
[0033] Optionally, determining a gain function according to the noise reduction gain includes:
[0034] When the product of the noise reduction gain and the pixel difference is less than the noise reduction threshold corresponding to the sensitivity, the value of the gain function is determined to be 1,
[0035] When the product of the noise reduction gain and the pixel difference is not less than the noise reduction threshold corresponding to the sensitivity, the value of the gain function is determined to be 0.
[0036] Optionally, performing noise reduction processing according to the gain function includes:
[0037] Taking the product of the gain function and the pixel value of each pixel as the first intermediate value;
[0038] Sum the first intermediate values corresponding to each pixel to obtain a second intermediate value;
[0039] The values of the gain function corresponding to each pixel are summed to obtain a third intermediate value;
[0040] The ratio of the second intermediate value to the third intermediate value is used as the pixel value after noise reduction.
[0041] In a second aspect, the present invention provides a chip, comprising:
[0042] at least one processor; and
[0043] a memory communicatively connected to the at least one processor; wherein,
[0044] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the image noise reduction method related to chromatic aberration correction as described in any one of the above.
[0045] In a third aspect, the present invention provides a user equipment, the user equipment comprising:
[0046] at least one processor; and
[0047] a memory communicatively connected to the at least one processor; wherein,
[0048] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the image noise reduction method related to chromatic aberration correction as described in any one of the above.
[0049] In the technical solution provided by the present invention, in the process of chromatic aberration correction and noise reduction processing, except for the central pixel, the same pixels are used. Therefore, in the process of caching the original image, it is only necessary to cache once to complete the processing of chromatic aberration correction and image noise reduction, and there is no need to cache the pixels required for chromatic aberration correction and image noise reduction separately, thereby effectively reducing the hardware area and cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 A flowchart of an image noise reduction method related to chromatic aberration correction according to an embodiment of the present invention;
[0051] Figure 2 is an exemplary flow chart of an image noise reduction method related to chromatic aberration correction according to another embodiment of the present invention;
[0052] Figure 3 A schematic diagram of an interpolation method of an image noise reduction method related to chromatic aberration correction according to another embodiment of the present invention;
[0053] Figure 4 The figure is a schematic diagram of a distance calculation process in a noise reduction gain calculation of an image noise reduction method related to chromatic aberration correction according to another embodiment of the present invention. DETAILED DESCRIPTION
[0054] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only 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.
[0055] The embodiment of the present invention provides an image noise reduction method related to chromatic aberration correction, such as Figure 1 As shown, the method includes:
[0056] A sliding window of preset size is used to slide on the image to be processed. After each sliding of the sliding window, the pixels in the sliding window are processed as follows:
[0057] Step 100, determining whether the central pixel of the sliding window is a pixel to be corrected;
[0058] In some embodiments, the refractive index of each wavelength in the lens is different, which leads to two types of chromatic aberration - longitudinal chromatic aberration and lateral chromatic aberration. Longitudinal chromatic aberration is caused when light of different wavelengths passes through the lens along the horizontal optical axis without converging at the same point. An image with longitudinal chromatic aberration will appear red, green, blue or a combination of these colors, even in the center of the image. Longitudinal chromatic aberration can be greatly reduced by reducing the lens aperture. Lateral chromatic aberration is caused when light of different wavelengths enters the lens at a certain angle and focuses at different positions along the same focal plane. Unlike longitudinal chromatic aberration, lateral chromatic aberration only appears in high-contrast areas at the edge of the image. Blue and purple often appear on fisheye, wide-angle and low-quality lenses. Lateral chromatic aberration cannot be eliminated by reducing the aperture. In this embodiment, lateral chromatic aberration is mainly eliminated by post-processing of the image. Lateral chromatic aberration (CA) causes each color channel with its own focal plane to deviate from the ideal flat field. Taking Bayer RGB or RGB color space as an example, it is generally believed that green is the central light plane, so the color difference can be significantly reduced by warping the red and blue components of the image to align with the green component. Therefore, it is possible to determine whether the center pixel of the sliding window is a pixel to be corrected by judging the color to which the center pixel of the sliding window belongs.
[0059] Step 200, when the central pixel of the sliding window is a pixel to be corrected, correcting the central pixel of the sliding window according to the pixels in the sliding window to form a corrected pixel;
[0060] In some embodiments, when performing chromatic aberration correction, the offset coordinates of the center pixel of the sliding window are usually determined based on a pre-calibrated chromatic aberration correction model, and then the pixel value corresponding to the offset coordinates is calculated by interpolation or other methods, and finally the calculated pixel value is used as the pixel value of the pixel to be corrected to form a corrected pixel. In this embodiment, a calibration plate is used in advance for calibration, and a chromatic aberration correction model based on the distance from the optical center of each pixel coordinate in the fitting image is used, so that during the sliding process of the sliding window, the center pixel of the sliding window is corrected after each sliding.
[0061] Step 300: performing noise reduction processing based on other pixels except the central pixel in the sliding window and the corrected pixels.
[0062] In some embodiments, during the noise reduction process, the corrected pixel is used to replace the central pixel of the sliding window to form a new image block, and then the noise reduction process is performed on the new image block.
[0063] In the technical solution provided by the embodiment of the present invention, in the process of chromatic aberration correction and noise reduction, except for the central pixel, the same pixels are used. Therefore, in the process of caching the original image, only one cache is needed to complete the process of chromatic aberration correction and image noise reduction, and there is no need to cache the pixels required for chromatic aberration correction and image noise reduction separately, thereby effectively reducing the hardware area and cost. In the embodiment of the present invention, the preset size depends on the minimum value of the line cache used in the process of chromatic aberration correction and image noise reduction. For example, 9 lines of line cache are used for chromatic aberration correction and 7 lines of line cache are used for image noise reduction, then the preset size is 7 lines. Therefore, the saved cache size also depends on the minimum value of the line cache used in the process of chromatic aberration correction and image noise reduction.
[0064] As an optional implementation, Figure 2 As shown, after determining whether the central pixel of the sliding window is a pixel to be corrected, the method further includes:
[0065] When the central pixel of the sliding window is a pixel not to be corrected, noise reduction processing is performed according to the pixels in the sliding window.
[0066] In some embodiments, when the central pixel of the sliding window is a pixel not to be corrected, it is not necessary to perform chromatic aberration correction on the central pixel of the sliding window, and the image block in the sliding window, that is, the pixel in the sliding window, is directly used for noise reduction processing.
[0067] As an optional implementation manner, the determining whether the central pixel of the sliding window is a pixel to be corrected includes:
[0068] Obtaining the color channel corresponding to the center pixel of the sliding window;
[0069] When the central pixel of the sliding window is located in the green channel, the central pixel of the sliding window is a pixel not to be corrected;
[0070] When the center pixel of the sliding window is in the blue channel or the red channel, the center of the sliding window is the pixel to be corrected.
[0071] In some embodiments, taking Bayer RGB or RGB color space as an example, green is generally considered to be the central light plane, so the color difference can be significantly reduced by warping the red and blue components of the image to align with the green component. Therefore, the pixels in the green channel can be used as non-corrected pixels, and the pixels in the red channel and the red channel can be used as pixels to be corrected.
[0072] As an optional implementation manner, the correcting the central pixel of the sliding window according to the pixels in the sliding window to form a corrected pixel includes:
[0073] Obtaining the radial distance between the central pixel of the sliding window and the coordinates of the optical center of the image;
[0074] Obtaining a pre-calibrated correction parameter corresponding to the color channel of the center pixel of the sliding window;
[0075] The central pixel of the sliding window is corrected according to the coordinates of the optical center of the image, the coordinates of the central pixel of the sliding window, the radial distance and the correction parameter to form a corrected pixel.
[0076] In some embodiments, the image acquisition device may be calibrated in advance using tools such as a calibration plate, and fitted into the following model:
[0077]
[0078] Wherein, (x, y) is the coordinate of the pixel to be corrected in the red channel and the blue channel in the image plane coordinate system, (x0, y0) is the coordinate of the optical center of the image, d is the radial distance from (x, y) to (x0, y0), (r_k1, r_k2) is the chromatic aberration correction parameter of the red channel, {b_k1, b_k2} is the chromatic aberration correction parameter of the blue channel, and are the offset coordinates after chromatic aberration correction in the red channel and the blue channel respectively. The optical center coordinates and chromatic aberration correction parameters of the image can be obtained through offline chromatic aberration calibration.
[0079] As an optional implementation, the correcting the central pixel of the sliding window according to the coordinates of the optical center of the image, the coordinates of the central pixel of the sliding window, the radial distance and the correction parameter to form a corrected pixel includes:
[0080] Determining the offset coordinates of the center pixel of the sliding window according to the coordinates of the optical center of the image, the coordinates of the center pixel of the sliding window, the radial distance and the correction parameter;
[0081] Interpolating the offset coordinates according to a plurality of pixels adjacent to the offset coordinates to obtain a target pixel value corresponding to the offset coordinates;
[0082] The central pixel of the sliding window is updated according to the target pixel value to form a corrected pixel.
[0083] In some embodiments, when calculating the offset coordinates corresponding to the center pixel coordinates of the sliding window, there is a high possibility that a non-integer coordinate position is obtained. At this time, the pixel value of the non-integer coordinate position cannot be directly obtained. Therefore, it is necessary to interpolate multiple pixels adjacent to the offset coordinate to obtain the value. The specific interpolation method can be, for example, bilinear interpolation or bicubic interpolation. Figure 3 As shown, taking the Bayer RGB domain R or B component pixel as an example, the color difference offset coordinate Corresponding pixels It can be obtained by bilinear interpolation of four points p(x, y), p(x, y-2), p(x+2, y-2), and p(x+2, y).
[0084] As an optional implementation, the performing noise reduction processing according to other pixels except the central pixel and the corrected pixels in the pixels in the sliding window includes:
[0085] Obtaining a pixel difference between each pixel in the other pixels and the corrected pixel;
[0086] Determine the gain function of other pixels according to each pixel coordinate of other pixels, the offset coordinate, the central pixel coordinate of the sliding window and the pixel difference;
[0087] Noise reduction processing is performed according to the gain function.
[0088] In some embodiments, since the pixels within the sliding window, except for the center pixel of the sliding window, are not subjected to chromatic aberration correction processing, therefore, in this embodiment, a gain function is constructed using each pixel coordinate, the offset coordinate, the center pixel coordinate of the sliding window, and the pixel difference, and the gain function participates in the noise reduction process. The weight of each pixel in the noise reduction process is calculated using the corrected pixels and the gain function, so as to eliminate the influence of the chromatic aberration of pixels other than the center pixel of the sliding window on the noise reduction process.
[0089] As an optional implementation manner, determining the gain function of other pixels according to each pixel coordinate of other pixels, the offset coordinate, the sliding window center pixel coordinate and the pixel difference includes:
[0090] Obtaining a first distance between each pixel coordinate and the center pixel coordinate of the sliding window;
[0091] Obtaining a second distance between each pixel coordinate and the offset coordinate;
[0092] determining a noise reduction gain for each pixel according to a ratio of the second distance to the first distance;
[0093] A gain function is determined according to the noise reduction gain and the pixel difference.
[0094] In some embodiments, in the cascade process of color difference correction (CAC) and image noise reduction (NR), only the central pixel of the Bayer data block is color difference corrected, and other R or B pixels are not color difference corrected, which may cause the image noise reduction effect to degrade. In order not to affect the noise reduction effect and allow color difference correction (CAC) to reuse the line buffer of noise reduction (NR), a noise reduction gain cac_gain brought by color difference correction is generated in the color difference correction (CAC) process. (x,y) (k, l) is used to compensate for the inaccuracy of the pixels involved in noise reduction due to the chromatic aberration position offset. The noise reduction gain brought by the chromatic aberration correction of the pixels involved in noise reduction is defined as follows:
[0095]
[0096] In the above formula, (k, l) is the coordinate offset of each pixel in the sliding window relative to the center pixel of the sliding window. is the offset coordinate of the center pixel of the sliding window during color difference correction, (x, y) is the coordinate of the center pixel of the sliding window, Represents the distance of each pixel in the sliding window relative to the center pixel of the sliding window before chromatic aberration correction. represents the distance of each pixel in the sliding window relative to the offset coordinate. Based on the aforementioned noise reduction gain and the pixel difference, the gain function can be calculated. Figure 4 As shown in the figure, the difference between the coordinates of each pixel in the sliding window and the coordinates of the center pixel of the sliding window and the offset coordinates is shown. The first distance is normalized by the second distance, which is the noise reduction gain cac_gain. This gain will guide the weights of the pixels involved in noise reduction in the noise reduction module to ensure that the noise reduction effect will not be greatly affected.
[0097] As an optional implementation manner, determining a gain function according to the noise reduction gain includes:
[0098] When the product of the noise reduction gain and the pixel difference is less than the noise reduction threshold corresponding to the sensitivity, the value of the gain function is determined to be 1,
[0099] When the product of the noise reduction gain and the pixel difference is not less than the noise reduction threshold corresponding to the sensitivity, the value of the gain function is determined to be 0.
[0100] In some embodiments, the gain function may adopt the following interval function:
[0101]
[0102] in, is the corrected pixel, (k, l) is the coordinate offset of the pixel in the sliding window relative to the center pixel of the sliding window, and its range is limited to the denoising filter neighborhood of size (2n+1)×(2m+1), δ(k, l) is the gain function, p(x+k, y+l) is the image pixel value at the coordinate (x+k, y+1), especially when (k, l) = (0, 0), Δ is the noise reduction threshold related to ISO, cac_gain (x,y) (k, l) is the noise reduction gain brought by chromatic aberration correction.
[0103] As an optional implementation manner, the performing noise reduction processing according to the gain function includes:
[0104] Taking the product of the gain function and the pixel value of each pixel as the first intermediate value;
[0105] Sum the first intermediate values corresponding to each pixel to obtain a second intermediate value;
[0106] The values of the gain function corresponding to each pixel are summed to obtain a third intermediate value;
[0107] The ratio of the second intermediate value to the third intermediate value is used as the pixel value after noise reduction.
[0108] In some embodiments, taking Sigma filter as a prototype of the noise reduction algorithm as an example, when performing noise reduction processing, it can be performed according to the following formula:
[0109]
[0110] in, is the pixel value obtained after denoising, (k, 1) is the coordinate offset of the pixel in the sliding window relative to the center pixel of the sliding window, and its range is limited to the denoising filter neighborhood of size (2n+1)×(2m+1), δ(k, l) is the gain function, and p(x+k, y+l) is the image pixel value at the coordinate (x+k, y+l).
[0111] An embodiment of the present invention further provides a chip, comprising:
[0112] at least one processor; and
[0113] a memory communicatively connected to the at least one processor; wherein,
[0114] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the image noise reduction method related to chromatic aberration correction as described in any one of the above.
[0115] An embodiment of the present invention further provides a user equipment, the user equipment comprising:
[0116] at least one processor; and
[0117] a memory communicatively connected to the at least one processor; wherein,
[0118] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the image noise reduction method related to chromatic aberration correction as described in any one of the above.
[0119] Those skilled in the art can understand that all or part of the processes in the above method embodiments can be implemented by instructing related hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes in the above method embodiments. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0120] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. An image denoising method related to chromatic aberration correction, characterized in that: The method comprises: A sliding window of preset size is used to slide on the image to be processed. After each sliding of the sliding window, the pixels in the sliding window are processed as follows: Determining whether the central pixel of the sliding window is a pixel to be corrected; When the central pixel of the sliding window is a pixel to be corrected, correcting the central pixel of the sliding window according to the pixels in the sliding window to form a corrected pixel; Noise reduction processing is performed based on other pixels except the central pixel among the pixels in the sliding window and the corrected pixels.
2. The method according to claim 1, characterized in that After determining whether the central pixel of the sliding window is a pixel to be corrected, the method further includes: When the central pixel of the sliding window is a pixel not to be corrected, noise reduction processing is performed according to the pixels in the sliding window.
3. The method according to claim 1, characterized in that The determining whether the central pixel of the sliding window is a pixel to be corrected comprises: Obtaining the color channel corresponding to the center pixel of the sliding window; When the central pixel of the sliding window is located in the green channel, the central pixel of the sliding window is a pixel not to be corrected; When the center pixel of the sliding window is in the blue channel or the red channel, the center of the sliding window is the pixel to be corrected.
4. The method according to claim 1, characterized in that: The correcting the central pixel of the sliding window according to the pixels in the sliding window to form a corrected pixel comprises: Obtaining the radial distance between the central pixel of the sliding window and the coordinates of the optical center of the image; Obtaining a pre-calibrated correction parameter corresponding to the color channel of the center pixel of the sliding window; The central pixel of the sliding window is corrected according to the coordinates of the optical center of the image, the coordinates of the central pixel of the sliding window, the radial distance and the correction parameter to form a corrected pixel.
5. The method according to claim 4, characterized in that The step of correcting the central pixel of the sliding window according to the coordinates of the optical center of the image, the coordinates of the central pixel of the sliding window, the radial distance, and the correction parameter to form a corrected pixel includes: Determining the offset coordinates of the center pixel of the sliding window according to the coordinates of the optical center of the image, the coordinates of the center pixel of the sliding window, the radial distance and the correction parameter; Interpolating the offset coordinates according to a plurality of pixels adjacent to the offset coordinates to obtain a target pixel value corresponding to the offset coordinates; The central pixel of the sliding window is updated according to the target pixel value to form a corrected pixel.
6. The method according to claim 5, characterized in that The performing noise reduction processing according to other pixels except the central pixel in the pixels in the sliding window and the corrected pixels includes: Obtaining a pixel difference between each pixel in the other pixels and the corrected pixel; Determine the gain function of other pixels according to each pixel coordinate of other pixels, the offset coordinate, the central pixel coordinate of the sliding window and the pixel difference; Noise reduction processing is performed according to the gain function.
7. The method according to claim 6, characterized in that Determining the gain function of other pixels according to each pixel coordinate of other pixels, the offset coordinate, the central pixel coordinate of the sliding window and the pixel difference includes: Obtaining a first distance between each pixel coordinate and the center pixel coordinate of the sliding window; Obtaining a second distance between each pixel coordinate and the offset coordinate; determining a noise reduction gain for each pixel according to a ratio of the second distance to the first distance; A gain function is determined according to the noise reduction gain and the pixel difference.
8. The method according to claim 7, characterized in that Determining a gain function according to the noise reduction gain includes: When the product of the noise reduction gain and the pixel difference is less than the noise reduction threshold corresponding to the sensitivity, the value of the gain function is determined to be 1, When the product of the noise reduction gain and the pixel difference is not less than the noise reduction threshold corresponding to the sensitivity, the value of the gain function is determined to be 0.
9. The method according to claim 6, characterized in that The noise reduction processing according to the gain function comprises: Taking the product of the gain function and the pixel value of each pixel as the first intermediate value; Sum the first intermediate values corresponding to each pixel to obtain a second intermediate value; The values of the gain function corresponding to each pixel are summed to obtain a third intermediate value; The ratio of the second intermediate value to the third intermediate value is used as the pixel value after noise reduction.
10. A chip, characterized in that: The chip comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the image noise reduction method related to chromatic aberration correction as described in any one of claims 1-9.
11. A user equipment, characterized in that: The user equipment comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the image noise reduction method related to chromatic aberration correction as described in any one of claims 1-9.