Image noise estimation method, device, electronic device and storage medium

By blocking the image and dividing the gray value interval, the energy value and difference value of the image block are calculated, which solves the problem that the traditional method is sensitive to small edges and details, and improves the accuracy of image noise prediction.

CN113674232BActive Publication Date: 2024-09-03GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110924967.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-08-12
Publication Date
2024-09-03
Estimated Expiration
2041-08-12

AI Technical Summary

Technical Problem

Traditional image noise prediction methods are sensitive to small edges and details, resulting in low noise prediction accuracy.

Method used

By obtaining the reference frame image and the target frame image, divide them into multiple image blocks according to the same image division method, calculate the energy value and difference value of each image block, and divide it into sub-grayscale value intervals, based on The energy value and difference value within the sub-gray value interval determine the target gray value and noise value, thereby estimating image noise.

Benefits of technology

The accuracy of image noise prediction is improved, and the ability to quantify and denoise image noise is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113674232B
    Figure CN113674232B
Patent Text Reader

Abstract

The present application relates to an image noise estimation method, device, electronic device and storage medium. The method includes: obtaining a reference frame image and a target frame image aligned with the reference frame image; dividing the reference frame image and the target frame image to obtain reference image blocks and target image blocks; determining the energy value of the reference image block and the image block difference value between the reference image block and the relevant image block; dividing the grayscale value interval of the pixel point into a plurality of sub-grayscale value intervals; classifying the energy value and the image block difference value of the reference image block into the corresponding sub-grayscale value interval; determining the target grayscale value corresponding to the sub-grayscale value interval based on each energy value of the sub-grayscale value interval, and determining the target noise value corresponding to the target grayscale value based on each image block difference value of the sub-grayscale value interval; determining the noise value corresponding to each reference image block in the reference frame image based on each target grayscale value and the target noise value corresponding to each target grayscale value. The use of this method can improve the accuracy of image noise estimation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing, and in particular to an image noise estimation method, device, electronic device and storage medium. Background Art

[0002] With the development of computer technology, image denoising technology has emerged. Image denoising refers to the process of reducing image noise in digital images. Image noise refers to unnecessary or redundant interference information existing in image data. The presence of noise seriously affects the quality of the image. Therefore, it is necessary to perform image denoising on the noise in the image. Noise estimation plays a very important guiding role in the process of image denoising. By estimating the noise contained in the image, accurate denoising of the image can be achieved. In traditional technology, a variety of special filter operators are usually used to convolve the original image and extract the image gradient to determine the noise of the image.

[0003] However, traditional image noise estimation methods are very sensitive to small edges and details in the image. Small edges and details are also regarded as a kind of noise. The estimated noise is often too large, resulting in low accuracy of image noise estimation. Summary of the invention

[0004] The embodiments of the present application provide an image noise estimation method, device, electronic device, and computer-readable storage medium, which can improve the accuracy of image noise estimation.

[0005] A method for estimating image noise, the method comprising:

[0006] Acquire a reference frame image and a target frame image aligned with the reference frame image;

[0007] According to the same image division method, the reference frame image is divided into a plurality of reference image blocks, and the target frame image is divided into a plurality of target image blocks;

[0008] Determine an energy value corresponding to each reference image block, and determine an image block difference value between the reference image block and a related image block; the related image block is a target image block at the same position as the reference image block;

[0009] Dividing the grayscale value interval corresponding to the pixel point in the reference frame image into a preset number of sub-grayscale value intervals;

[0010] The energy value and image block difference value corresponding to each reference image block are classified into the corresponding sub-grayscale value interval;

[0011] Based on each energy value in each sub-grayscale value interval, determining a target grayscale value corresponding to the sub-grayscale value interval, and based on each image block difference value in the sub-grayscale value interval, determining a target noise value corresponding to the target grayscale value;

[0012] Based on each of the target grayscale values ​​and the target noise value corresponding to each of the target grayscale values, a noise value corresponding to each reference image block in the reference frame image is determined.

[0013] An image noise estimation device, the device comprising:

[0014] An acquisition module, used for acquiring a reference frame image and a target frame image aligned with the reference frame image;

[0015] A division module, used for dividing the reference frame image into a plurality of reference image blocks and dividing the target frame image into a plurality of target image blocks according to the same image division method;

[0016] A determination module, configured to determine an energy value corresponding to each reference image block, and determine an image block difference value between the reference image block and a related image block; the related image block is a target image block having the same position as the reference image block;

[0017] The division module is also used to divide the grayscale value interval corresponding to the pixel point in the reference frame image into a preset number of sub-grayscale value intervals;

[0018] A classification module is used to classify the energy value and image block difference value corresponding to each reference image block into the corresponding sub-grayscale value interval;

[0019] The determination module is used to determine the target grayscale value corresponding to the sub-grayscale value interval based on the energy values ​​within each sub-grayscale value interval, and determine the target noise value corresponding to the target grayscale value based on the difference values ​​of each image block within the sub-grayscale value interval; based on each of the target grayscale values ​​and the target noise value corresponding to each of the target grayscale values, determine the noise value corresponding to each reference image block in the reference frame image.

[0020] An electronic device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:

[0021] Acquire a reference frame image and a target frame image aligned with the reference frame image;

[0022] According to the same image division method, the reference frame image is divided into a plurality of reference image blocks, and the target frame image is divided into a plurality of target image blocks;

[0023] Determine an energy value corresponding to each reference image block, and determine an image block difference value between the reference image block and a related image block; the related image block is a target image block at the same position as the reference image block;

[0024] Dividing the grayscale value interval corresponding to the pixel point in the reference frame image into a preset number of sub-grayscale value intervals;

[0025] The energy value and image block difference value corresponding to each reference image block are classified into the corresponding sub-grayscale value interval;

[0026] Based on each energy value in each sub-grayscale value interval, determining a target grayscale value corresponding to the sub-grayscale value interval, and based on each image block difference value in the sub-grayscale value interval, determining a target noise value corresponding to the target grayscale value;

[0027] Based on each of the target grayscale values ​​and the target noise value corresponding to each of the target grayscale values, a noise value corresponding to each reference image block in the reference frame image is determined.

[0028] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the following steps:

[0029] Acquire a reference frame image and a target frame image aligned with the reference frame image;

[0030] According to the same image division method, the reference frame image is divided into a plurality of reference image blocks, and the target frame image is divided into a plurality of target image blocks;

[0031] Determine an energy value corresponding to each reference image block, and determine an image block difference value between the reference image block and a related image block; the related image block is a target image block at the same position as the reference image block;

[0032] Dividing the grayscale value interval corresponding to the pixel point in the reference frame image into a preset number of sub-grayscale value intervals;

[0033] The energy value and image block difference value corresponding to each reference image block are classified into the corresponding sub-grayscale value interval;

[0034] Based on each energy value in each sub-grayscale value interval, determining a target grayscale value corresponding to the sub-grayscale value interval, and based on each image block difference value in the sub-grayscale value interval, determining a target noise value corresponding to the target grayscale value;

[0035] Based on each of the target grayscale values ​​and the target noise value corresponding to each of the target grayscale values, a noise value corresponding to each reference image block in the reference frame image is determined.

[0036] The image noise estimation method, device, electronic device and storage medium obtain a reference frame image and a target frame image aligned with the reference frame image, divide the reference frame image into a plurality of reference image blocks and divide the target frame image into a plurality of target image blocks according to the same image division method, so that each reference image block and the corresponding target image block have the same number of pixels; determine the energy value corresponding to each reference image block, and determine the image block difference value between the reference image block and the related image block to quantify the difference between the reference image block and the related image block; divide the grayscale value interval corresponding to the pixel points in the reference frame image into a preset number of sub-grayscale value intervals; classify the energy value and image block difference value corresponding to each reference image block into the sub-grayscale value interval to which it belongs; determine the target grayscale value corresponding to the sub-grayscale value interval based on each energy value in each sub-grayscale value interval, and determine the target noise value corresponding to the target grayscale value based on each image block difference value in the sub-grayscale value interval; determine the noise value corresponding to each reference image block in the reference frame image based on each target grayscale value and the target noise value corresponding to each target grayscale value. In this way, the reference frame image and the target frame image are divided into corresponding reference image blocks and target image blocks respectively, the energy value of each reference image block and the image block difference value between the reference image block and the related image block are calculated, each energy value and each image block difference value are divided into corresponding sub-grayscale value intervals, and the target grayscale value and target noise value corresponding to each sub-grayscale value interval are calculated, and then the noise value corresponding to each reference image block in the reference frame image is estimated, thereby improving the accuracy of image noise estimation. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0038] Figure 1 This is a diagram of an application scenario of an image noise estimation method in an embodiment;

[0039] Figure 2 is a schematic flow chart of an image noise estimation method in one embodiment;

[0040] Figure 3 is a schematic flow chart of an image noise estimation method in another embodiment;

[0041] Figure 4 is a structural block diagram of an image noise estimation device in one embodiment;

[0042] Figure 5is a structural block diagram of an image noise estimation device in another embodiment;

[0043] Figure 6 FIG. 4 is a diagram showing the internal structure of an electronic device in one embodiment. DETAILED DESCRIPTION

[0044] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application 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 application and are not used to limit the present application.

[0045] Figure 1 FIG. 1 is a schematic diagram of an application environment of an image noise estimation method in an embodiment. Figure 1 As shown, the application environment includes a terminal 102 and a server 104. The terminal 102 communicates with the server 104 through a network. The terminal 102 may specifically include a desktop terminal or a mobile terminal. The mobile terminal may specifically include at least one of a mobile phone, a tablet computer, and a laptop computer. The server 104 may be implemented as an independent server or a server cluster consisting of multiple servers. Those skilled in the art will appreciate that Figure 1 The application environment shown in is only a part of the scenarios related to the present application solution and does not constitute a limitation on the application environment of the present application solution.

[0046] The terminal 102 may obtain a reference frame image and a target frame image aligned with the reference frame image from the server 104, and divide the reference frame image into a plurality of reference image blocks and the target frame image into a plurality of target image blocks according to the same image division method. The terminal 102 may determine the energy value corresponding to each reference image block and determine the image block difference value between the reference image block and the relevant image block. The terminal 102 may divide the grayscale value interval corresponding to the pixel point in the reference frame image into a preset number of sub-grayscale value intervals, and classify the energy value and image block difference value corresponding to each reference image block into the sub-grayscale value interval to which it belongs. The terminal 102 may determine the target grayscale value corresponding to the sub-grayscale value interval based on each energy value in each sub-grayscale value interval, and determine the target noise value corresponding to the target grayscale value based on each image block difference value in the sub-grayscale value interval. The terminal 102 may determine the noise value corresponding to each reference image block in the reference frame image based on each target grayscale value and the target noise value corresponding to each target grayscale value.

[0047] Figure 2 FIG. 1 is a flow chart of an image noise estimation method in one embodiment. The image noise estimation method in this embodiment is executed at Figure 1 The description is made by taking the terminal 102 in FIG. Figure 2 As shown, the image noise estimation method includes the following steps:

[0048] Step 202: Acquire a reference frame image and a target frame image aligned with the reference frame image.

[0049] The reference frame image is an image used as a reference in the acquired multiple frame images. The target frame image is an image in the multiple frame images other than the reference frame and aligned with the reference frame image. The multiple frame images are multiple images acquired for the same shooting scene.

[0050] Specifically, the terminal may obtain a reference frame image and a target frame image aligned with the reference frame image.

[0051] In one embodiment, the server pre-stores a reference frame image and a target frame image aligned with the reference frame image. The terminal can communicate with the server and directly obtain the reference frame image and the target frame image aligned with the reference frame image from the server.

[0052] In one embodiment, the terminal may include a camera, and in a specific scenario, the terminal may use the camera to shoot the same target object to obtain multiple frames of images corresponding to the target object. The terminal may perform image processing on the multiple frames of images to obtain a reference frame image and a target frame image aligned with the reference frame image.

[0053] Step 204 : dividing the reference frame image into a plurality of reference image blocks and dividing the target frame image into a plurality of target image blocks in the same image dividing manner.

[0054] Among them, image division refers to an image processing method of dividing an image into multiple image blocks. The same image division method refers to a method of dividing an image according to the same pixel length and pixel width. For example, dividing an image according to 8*8 means dividing the image according to a pixel length of 8 (pixels) and a pixel width of 8 (pixels). It can be understood that each image block obtained by dividing the image by 8*8 includes 64 pixels. The reference image block is an image block in the reference frame image, and the target image block is an image block in the target frame image.

[0055] Specifically, the terminal may pre-set an image division method, and perform image division on the reference frame image according to the image division method to obtain a plurality of reference image blocks corresponding to the reference frame image. At the same time, the terminal may perform image division on the target frame image according to the image division method to obtain a plurality of target image blocks corresponding to the target frame image.

[0056] Step 206, determining the energy value corresponding to each reference image block, and determining the image block difference value between the reference image block and the relevant image block; the relevant image block is the target image block at the same position as the reference image block.

[0057] The energy value is a value representing the energy contained in the reference image block. It can be understood that the energy value can represent the brightness of the reference image block. The image block difference value is a value representing the degree of difference between the reference image block and the related image block.

[0058] Specifically, the terminal can calculate the energy value corresponding to each reference image block through the grayscale value corresponding to each pixel in the reference image block, and calculate the image block difference value between the reference image block and the related image block through the grayscale value corresponding to each pixel in the reference image block.

[0059] In one embodiment, the terminal may determine the mean of the grayscale values ​​corresponding to each pixel in each reference image block, and use the mean as the energy value corresponding to the reference image block. The terminal may determine the sum of the squares of the absolute values ​​of the differences between the grayscale values ​​corresponding to each pixel in the reference image block and the grayscale values ​​corresponding to each pixel in the relevant image block, and use the sum of the squares of the absolute values ​​of the differences as the image block difference value between the reference image block and the relevant image block.

[0060] Step 208: Divide the grayscale value interval corresponding to the pixel point in the reference frame image into a preset number of sub-grayscale value intervals.

[0061] The grayscale value interval corresponding to the pixel is the value range of the grayscale value corresponding to the pixel. The sub-grayscale value interval is a sub-interval in the grayscale value interval. It can be understood that the grayscale value interval includes multiple sub-grayscale value intervals.

[0062] Specifically, the terminal may determine the grayscale value range corresponding to the pixel in the reference frame image, and use the grayscale value range corresponding to the pixel in the reference frame image as the grayscale value interval corresponding to the pixel in the reference frame image. The terminal may divide the grayscale value interval into a preset number of sub-grayscale value intervals.

[0063] For example, if the grayscale value corresponding to the pixel in the reference frame image ranges from [0, 255], then the grayscale value interval corresponding to the pixel in the reference frame image is [0, 255]. If the terminal divides the grayscale value interval [0, 255] into N sub-grayscale value intervals. The N sub-grayscale value intervals can be expressed as [0, 256 / N), [256 / N, 256*2 / N), ..., [256*(N-1) / N, 256). Where N is a natural number greater than or equal to 2.

[0064] Step 210: classify the energy value and image block difference value corresponding to each reference image block into the corresponding sub-grayscale value interval.

[0065] Specifically, the terminal may classify the energy value corresponding to each reference image block into the sub-grayscale value interval to which the energy value corresponding to the reference image block belongs. At the same time, the terminal may classify the image block difference value corresponding to each reference image block into the sub-grayscale value interval to which the image block difference value corresponding to the reference image block belongs.

[0066] Step 212, based on each energy value in each sub-grayscale value interval, determine the target grayscale value corresponding to the sub-grayscale value interval, and based on each image block difference value in the sub-grayscale value interval, determine the target noise value corresponding to the target grayscale value.

[0067] The target grayscale value is the grayscale value corresponding to the sub-grayscale value interval, and the target noise value is the noise value corresponding to the sub-grayscale value interval.

[0068] Specifically, the terminal may calculate the target grayscale value corresponding to each sub-grayscale value interval based on each energy value in the sub-grayscale value interval. The terminal may calculate the target noise value corresponding to the target grayscale value based on each image block difference value in the sub-grayscale value interval.

[0069] In one embodiment, within the sub-grayscale value interval, the terminal may eliminate energy values ​​greater than a preset energy threshold corresponding to the sub-grayscale value interval; sort the energy values ​​that are not eliminated, and use the energy value in the middle of the sorted sequence as the target grayscale value. The terminal may use the average of the difference values ​​of each image block within each sub-grayscale value interval as the target noise value corresponding to the sub-grayscale value interval.

[0070] Step 214 : determining the noise value corresponding to each reference image block in the reference frame image based on each target grayscale value and the target noise value corresponding to each target grayscale value.

[0071] Specifically, the terminal may determine the noise value corresponding to each reference image block in the reference frame image by linear interpolation based on each target grayscale value and the target noise value corresponding to each target grayscale value.

[0072] In one embodiment, the terminal may also determine the noise value corresponding to each pixel in the reference frame image by linear interpolation based on each target grayscale value and the target noise value corresponding to each target grayscale value. Specifically, the terminal may determine the noise value corresponding to each grayscale value in the grayscale value interval and determine the grayscale value corresponding to each pixel by linear interpolation. The terminal may determine the noise value corresponding to each pixel in the reference frame image based on the grayscale value corresponding to each pixel and the noise value corresponding to each grayscale value in the grayscale value interval.

[0073] In the above-mentioned image noise estimation method, a reference frame image and a target frame image aligned with the reference frame image are obtained, and the reference frame image is divided into a plurality of reference image blocks and the target frame image is divided into a plurality of target image blocks according to the same image division method, so that each reference image block and the corresponding target image block have the same number of pixels; an energy value corresponding to each reference image block is determined, and an image block difference value between the reference image block and the relevant image block is determined to quantify the difference between the reference image block and the relevant image block; the grayscale value interval corresponding to the pixel points in the reference frame image is divided into a preset number of sub-grayscale value intervals; the energy value and the image block difference value corresponding to each reference image block are classified into the corresponding sub-grayscale value interval; based on each energy value in each sub-grayscale value interval, a target grayscale value corresponding to the sub-grayscale value interval is determined, and based on each image block difference value in the sub-grayscale value interval, a target noise value corresponding to the target grayscale value is determined; based on each target grayscale value and the target noise value corresponding to each target grayscale value, a noise value corresponding to each reference image block in the reference frame image is determined. In this way, the reference frame image and the target frame image are divided into corresponding reference image blocks and target image blocks respectively, the energy value of each reference image block and the image block difference value between the reference image block and the related image block are calculated, each energy value and each image block difference value are divided into corresponding sub-grayscale value intervals, and the target grayscale value and target noise value corresponding to each sub-grayscale value interval are calculated, and then the noise value corresponding to each reference image block in the reference frame image is estimated, thereby improving the accuracy of image noise estimation.

[0074] At the same time, the image noise estimation method of the present application has strong adaptability to the image domain, for example, it can be used in the raw domain and the YUV domain.

[0075] In one embodiment, step 202, i.e., the step of obtaining a reference frame image and a target frame image aligned with the reference frame image, specifically includes: obtaining multiple frame images acquired under the same shooting scene; selecting a reference frame image and at least one target frame image from the multiple frame images; and performing an image alignment operation on the target frame image with reference to the reference frame image to obtain a target frame image aligned with the reference frame image.

[0076] Specifically, the terminal may capture multiple frames of images for the same shooting scene, and then the terminal may obtain multiple frames of images captured under the same shooting scene. The terminal may select a reference frame image and at least one target frame image from the multiple frames of images based on the clarity and brightness of the image. It can be understood that the terminal may select an image with the highest clarity and the most appropriate brightness from the multiple frames of images as the reference frame image. The terminal may refer to the reference frame image and perform an image alignment operation on the target frame image to obtain a target frame image aligned with the reference frame image.

[0077] In the above embodiment, multiple frames of images are collected from the same shooting scene, so that the differences between the multiple frames of images are not too large. By selecting a reference frame image from the multiple frames of images, the image used as a reference has a higher definition and a more appropriate brightness. In this way, the accuracy of image noise estimation is further improved.

[0078] In one embodiment, step 206, i.e., the step of determining the energy value corresponding to each reference image block and determining the image block difference value between the reference image block and the relevant image block, specifically includes: determining the root mean square of the grayscale value corresponding to each pixel in each reference image block, and using the root mean square as the energy value corresponding to the reference image block; determining the sum of the absolute values ​​of the differences between the grayscale value corresponding to each pixel in the reference image block and the grayscale value corresponding to each pixel in the relevant image block, and using the sum of the absolute values ​​of the differences as the image block difference value between the reference image block and the relevant image block.

[0079] The root mean square (RMS) of the gray value can be obtained by summing up the squares of all gray values, finding the mean, and then taking the square root. The sum of the absolute differences between the gray values ​​(SAD) can be obtained by finding the difference between the gray value corresponding to each pixel in the reference image block and the gray value corresponding to each pixel in the relevant image block, taking the absolute value, and then adding them.

[0080] Specifically, the terminal may calculate the root mean square of the grayscale value corresponding to each pixel in each reference image block, and use the root mean square as the energy value corresponding to the reference image block. The terminal may determine the sum of the absolute values ​​of the differences between the grayscale value corresponding to each pixel in the reference image block and the grayscale value corresponding to each pixel in the relevant image block, and use the sum of the absolute values ​​of the differences as the image block difference value between the reference image block and the relevant image block.

[0081] In the above embodiment, the accuracy of image noise estimation is further improved by taking the root mean square as the energy value corresponding to the reference image block and taking the sum of the absolute values ​​of the differences as the image block difference value between the reference image block and the relevant image block.

[0082] In one embodiment, step 212, that is, the step of determining the target grayscale value corresponding to the sub-grayscale value interval based on the energy values ​​in each sub-grayscale value interval, and determining the target noise value corresponding to the target grayscale value based on the image block difference values ​​in the sub-grayscale value interval, specifically includes: taking the mean of the energy values ​​in each sub-grayscale value interval as the target grayscale value corresponding to the sub-grayscale value interval; within the sub-grayscale value interval, eliminating the image block difference values ​​that are greater than a preset threshold corresponding to the sub-grayscale value interval; and sorting the image block difference values ​​that are not eliminated, and taking the image block difference value located in the middle of the sorted sequence as the target noise value corresponding to the target grayscale value.

[0083] Specifically, the terminal may perform an average operation on each energy value in each sub-grayscale value interval to obtain the mean value of each energy value in each sub-grayscale value interval. The terminal may use the mean value of each energy value in each sub-grayscale value interval as the target grayscale value corresponding to the sub-grayscale value interval. The terminal may compare each image block difference value in the sub-grayscale value interval with a preset threshold value corresponding to the sub-grayscale value interval, respectively, to obtain an image block difference value greater than the preset threshold value. Furthermore, the terminal may eliminate image block difference values ​​greater than the preset threshold value corresponding to the sub-grayscale value interval in the sub-grayscale value interval, and sort the image block difference values ​​that are not eliminated, and use the image block difference value in the middle of the sorted sequence as the target noise value corresponding to the target grayscale value.

[0084] In the above embodiment, by taking the mean of each energy value in each sub-grayscale value interval as the target grayscale value corresponding to the sub-grayscale value interval, the target grayscale value can more accurately represent the grayscale value of each image block in the corresponding sub-grayscale value interval. By eliminating the image block difference value greater than the preset threshold value corresponding to the sub-grayscale value interval, the situation where the reference image block and the related image block are greatly different can be eliminated. And by taking the image block difference value located in the middle of the sorted sequence as the target noise value corresponding to the target grayscale value, the target noise value can more accurately represent the noise value of each reference image block in the corresponding sub-grayscale value interval.

[0085] In one embodiment, step 214, i.e., the step of determining the noise value corresponding to each reference image block in the reference frame image based on each target grayscale value and the target noise value corresponding to each target grayscale value, specifically includes: determining the noise value corresponding to each grayscale value in the grayscale value range by linear interpolation based on each target grayscale value and the target noise value corresponding to each target grayscale value; using the energy value corresponding to each reference image block in the reference frame image as the grayscale value corresponding to each reference image block in the reference frame image; determining the noise value corresponding to each reference image block in the reference frame image based on the grayscale value corresponding to each reference image block in the reference frame image and the noise value corresponding to each grayscale value in the grayscale value range.

[0086] Among them, linear interpolation refers to a method of using a straight line connecting two known quantities to determine the value of an unknown quantity between the two known quantities.

[0087] Specifically, the terminal can determine the noise value corresponding to each grayscale value in the grayscale value range by linear interpolation based on each target grayscale value and the target noise value corresponding to each target grayscale value. The terminal can directly use the energy value corresponding to each reference image block in the reference frame image as the grayscale value corresponding to each reference image block in the reference frame image. Based on the grayscale value corresponding to each reference image block in the reference frame image, the terminal can index the noise value corresponding to each reference image block in the reference frame image in the mapping relationship of the noise value corresponding to each grayscale value in the grayscale value range.

[0088] It can be understood that if the grayscale value is the horizontal coordinate and the noise value is the vertical coordinate, for each target grayscale value, the terminal can use a line segment to connect the coordinate point formed by the target grayscale value and the corresponding target noise value with the coordinate point corresponding to another adjacent target grayscale value, then the horizontal coordinate value corresponding to the line segment is the grayscale value value within the corresponding interval of the two target grayscale values, and the vertical coordinate value corresponding to the line segment is the noise value value within the interval of the target noise value corresponding to the two target grayscale values. Furthermore, based on each target grayscale value and the target noise value corresponding to each target grayscale value, a corresponding line graph can be drawn, and based on the line graph, the noise value corresponding to each grayscale value within the grayscale value interval can be estimated.

[0089] In the above embodiment, based on each target grayscale value and the target noise value corresponding to each target grayscale value, the noise value corresponding to each reference image block in the reference frame image can be determined by linear interpolation, thereby improving the accuracy of the noise value estimation corresponding to each reference image block in the reference frame image.

[0090] In one embodiment, the above-mentioned image noise estimation method specifically also includes: determining the fusion weight between each reference image block and the related image block in the reference frame image based on the image block difference value and the noise value corresponding to each reference image block in the reference frame image; based on the fusion weight between each reference image block and the related image block in the reference frame image, performing multi-frame fusion noise reduction processing on the reference frame image to obtain a denoised target image.

[0091] Among them, multi-frame fusion noise reduction processing is an image processing method that effectively reduces image noise by synthesizing multiple images. The target image is the image output after multi-frame fusion noise reduction processing.

[0092] Specifically, the terminal can determine the fusion weight between each reference image block in the reference frame image and the related image blocks based on the image block difference value and noise value corresponding to each reference image block in the reference frame image, and perform multi-frame fusion denoising processing on the reference frame image based on the fusion weight between each reference image block in the reference frame image and the related image blocks to obtain a denoised target image.

[0093] In the above embodiment, the fusion weight between each reference image block and the related image block in the reference frame image is determined based on the image block difference value and noise value corresponding to each reference image block in the reference frame image, so that the reference image block and the related image block have a more reasonable fusion weight. Through the fusion weight between the reference image block and the related image block, the reference frame image is subjected to multi-frame fusion denoising processing, which improves the denoising accuracy and makes the output target image have higher clarity.

[0094] In one embodiment, applied to the YUV domain, the energy value includes the Y channel energy value, the U channel energy value and the V channel energy value, and the image block difference value includes the Y channel image block difference value, the U channel image block difference value and the V channel image block difference value. The step of determining the energy value corresponding to each reference image block in step 206 specifically includes: for the Y channel, determining the Y channel energy value corresponding to each reference image block based on the Y value; using the Y channel energy value as the U channel energy value corresponding to the U channel, and using the Y channel energy value as the V channel energy value corresponding to the V channel. The step of determining the image block difference value between the reference image block and the relevant image block in step 206 specifically includes: for the Y channel, determining the Y channel image block difference value between the reference image block and the relevant image block based on the Y value; for the U channel, determining the U channel image block difference value between the reference image block and the relevant image block based on the U value; for the V channel, determining the V channel image block difference value between the reference image block and the relevant image block based on the V value.

[0095] Among them, YUV is a color encoding method. Y represents brightness (Luminance or Luma), that is, grayscale value, U and V represent chrominance (Chrominance or Chroma), which is used to describe the color and saturation of the image and is used to specify the color of the pixel. It can be understood that in the YUV domain, the pixel value of the pixel of the image can be represented by the values ​​corresponding to the three channels, namely the Y value of the Y channel, the U value of the U channel, and the V value of the V channel. The pixel value can be specifically expressed as (Y, U, V). The Y channel energy value is the energy value corresponding to the Y channel, the U channel energy value is the energy value corresponding to the U channel, and the V channel energy value is the energy value corresponding to the V channel. The Y channel image block difference value is the image block difference value corresponding to the Y channel, the U channel image block difference value is the image block difference value corresponding to the U channel, and the V channel image block difference value is the image block difference value corresponding to the V channel.

[0096] Specifically, for the Y channel, the terminal can determine the Y channel energy value corresponding to each reference image block based on the Y value, that is, directly use the Y value as the Y channel energy value. The terminal can reuse the Y channel energy value in the U channel and the V channel, that is, directly use the Y channel energy value as the U channel energy value corresponding to the U channel, and directly use the Y channel energy value as the V channel energy value corresponding to the V channel. For the Y channel, the terminal can determine the Y channel image block difference value between the reference image block and the relevant image block based on the Y value, for the U channel, determine the U channel image block difference value between the reference image block and the relevant image block based on the U value, and for the V channel, determine the V channel image block difference value between the reference image block and the relevant image block based on the V value.

[0097] In one embodiment, the terminal may determine the noise value corresponding to the Y channel based on the Y channel energy value and the Y channel image block difference value. The terminal may determine the noise value corresponding to the U channel based on the U channel energy value and the U channel image block difference value. The terminal may determine the noise value corresponding to the V channel based on the V channel energy value and the V channel image block difference value.

[0098] In the above embodiment, by multiplexing the Y channel energy value corresponding to the Y channel, the U channel energy value corresponding to the U channel and the V channel energy value corresponding to the V channel can be quickly determined. By using the Y value, U value and V value corresponding to the Y channel, the U channel image block difference value corresponding to the U channel and the V channel image block difference value corresponding to the V channel, respectively, the Y channel image block difference value corresponding to the Y channel, the U channel image block difference value corresponding to the U channel and the V channel image block difference value corresponding to the V channel can be quickly determined.

[0099] In one embodiment, Figure 3 As shown, the terminal can obtain multiple frames of images, and select a reference frame image and at least one target frame image from the multiple frames of images. The terminal can use the reference frame image as a reference to perform an image alignment operation on the target frame image and the reference frame image to obtain an aligned target frame image. The terminal can divide the reference frame image and the target frame image according to the same image division method to obtain corresponding reference image blocks and target image blocks. The terminal can calculate the energy value of each reference image block, and calculate the image block difference value between each reference image block and the related image block. The terminal can divide the energy value of each reference image block and the image block difference value between each reference image block and the related image block into the corresponding sub-grayscale value interval. For each sub-grayscale value interval, the terminal can calculate the target grayscale value and target noise value corresponding to the sub-grayscale value interval based on all energy values ​​and image block difference values ​​in the sub-grayscale value interval. The terminal can output the target grayscale value and target noise value corresponding to each sub-grayscale value interval. Furthermore, the terminal may determine the noise value corresponding to each reference image block in the reference frame image based on each target grayscale value and the target noise value corresponding to each target grayscale value.

[0100] In a specific embodiment, a method for estimating image noise is provided, which specifically includes the following process:

[0101] (1) Obtain multiple frames of images collected under the same shooting scene.

[0102] (2) Select a reference frame image and at least one target frame image from multiple frame images.

[0103] (3) With reference to the reference frame image, an image alignment operation is performed on the target frame image to obtain a target frame image aligned with the reference frame image.

[0104] (4) According to the same image division method, the reference frame image is divided into a plurality of reference image blocks, and the target frame image is divided into a plurality of target image blocks.

[0105] (5) Determine the root mean square of the grayscale value corresponding to each pixel in each reference image block.

[0106] (6) Determine the sum of the absolute values ​​of the differences between the grayscale values ​​corresponding to each pixel in the reference image block and the grayscale values ​​corresponding to each pixel in the relevant image block; the relevant image block is a target image block having the same position as the reference image block.

[0107] In one embodiment, the image noise estimation method can also be applied to the YUV domain, the root mean square includes the Y channel root mean square, the U channel root mean square and the V channel root mean square, the sum of the absolute values ​​of the differences includes the sum of the absolute values ​​of the Y channel differences, the sum of the absolute values ​​of the U channel differences and the sum of the absolute values ​​of the V channel differences, for the Y channel, the Y channel root mean square corresponding to each reference image block is determined based on the Y value; the Y channel root mean square is used as the U channel root mean square corresponding to the U channel, and the Y channel root mean square is used as the V channel root mean square corresponding to the V channel. For the Y channel, the sum of the absolute values ​​of the Y channel differences between the reference image block and the relevant image block is determined based on the Y value; for the U channel, the sum of the absolute values ​​of the U channel differences between the reference image block and the relevant image block is determined based on the U value; for the V channel, the sum of the absolute values ​​of the V channel differences between the reference image block and the relevant image block is determined based on the V value.

[0108] (7) Divide the grayscale value interval corresponding to the pixel point in the reference frame image into a preset number of sub-grayscale value intervals.

[0109] (8) The sum of the absolute values ​​of the root mean square sum and difference corresponding to each reference image block is classified into the corresponding sub-grayscale value interval.

[0110] (9) The mean of the root mean squares in each sub-grayscale value interval is taken as the target grayscale value corresponding to the sub-grayscale value interval.

[0111] (10) Within the sub-grayscale value interval, the sum of the absolute values ​​of the differences that are greater than a preset threshold corresponding to the sub-grayscale value interval is eliminated.

[0112] (11) Sort the absolute value sums of the differences that have not been eliminated, and take the absolute value sum of the differences in the middle of the sorted sequence as the target noise value corresponding to the target grayscale value.

[0113] (12) Based on each target grayscale value and the target noise value corresponding to each target grayscale value, the noise value corresponding to each grayscale value within the grayscale value range is determined by linear interpolation.

[0114] (13) The root mean square corresponding to each reference image block in the reference frame image is used as the grayscale value corresponding to each reference image block in the reference frame image.

[0115] (14) Based on the grayscale value corresponding to each reference image block in the reference frame image and the noise value corresponding to each grayscale value in the grayscale value range, determine the noise value corresponding to each reference image block in the reference frame image.

[0116] (15) Based on the sum of the absolute values ​​of the differences corresponding to each reference image block in the reference frame image and the noise value, determine the fusion weight between each reference image block in the reference frame image and the related image block.

[0117] (16) Based on the fusion weights between each reference image block and the related image blocks in the reference frame image, a multi-frame fusion denoising process is performed on the reference frame image to obtain a denoised target image.

[0118] It should be understood that although Figure 2 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 2 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0119] In one embodiment, Figure 4 As shown, an image noise estimation device 400 is provided, comprising: an acquisition module 401, a division module 402, a determination module 403 and a classification module 404, wherein:

[0120] The acquisition module 401 is used to acquire a reference frame image and a target frame image aligned with the reference frame image.

[0121] The division module 402 is used to divide the reference frame image into a plurality of reference image blocks and divide the target frame image into a plurality of target image blocks in the same image division manner.

[0122] The determination module 403 is used to determine the energy value corresponding to each reference image block and determine the image block difference value between the reference image block and the related image block; the related image block is the target image block at the same position as the reference image block.

[0123] The division module 402 is further configured to divide the grayscale value interval corresponding to the pixel points in the reference frame image into a preset number of sub-grayscale value intervals.

[0124] The classification module 404 is used to classify the energy value and image block difference value corresponding to each reference image block into the corresponding sub-grayscale value interval.

[0125] Determination module 403 is used to determine the target grayscale value corresponding to the sub-grayscale value interval based on the energy values ​​within each sub-grayscale value interval, and determine the target noise value corresponding to the target grayscale value based on the difference values ​​of each image block within the sub-grayscale value interval; based on each target grayscale value and the target noise value corresponding to each target grayscale value, determine the noise value corresponding to each reference image block in the reference frame image.

[0126] In one embodiment, the acquisition module 401 is also used to acquire multiple frame images captured in the same shooting scene; select a reference frame image and at least one target frame image from the multiple frame images; refer to the reference frame image, perform an image alignment operation on the target frame image, and obtain a target frame image aligned with the reference frame image.

[0127] In one embodiment, the determination module 403 is further used to determine the root mean square of the grayscale values ​​corresponding to each pixel in each reference image block, and use the root mean square as the energy value corresponding to the reference image block; determine the sum of the absolute values ​​of the differences between the grayscale values ​​corresponding to each pixel in the reference image block and the grayscale values ​​corresponding to each pixel in the relevant image block, and use the sum of the absolute values ​​of the differences as the image block difference value between the reference image block and the relevant image block.

[0128] In one embodiment, the determination module 403 is further used to use the mean of the energy values ​​within each sub-grayscale value interval as the target grayscale value corresponding to the sub-grayscale value interval; within the sub-grayscale value interval, eliminate the image block difference values ​​that are greater than a preset threshold corresponding to the sub-grayscale value interval; sort the image block difference values ​​that are not eliminated, and use the image block difference value located in the middle of the sorted sequence as the target noise value corresponding to the target grayscale value.

[0129] In one embodiment, the determination module 403 is also used to determine the noise value corresponding to each grayscale value in the grayscale value range by linear interpolation based on each target grayscale value and the target noise value corresponding to each target grayscale value; use the energy value corresponding to each reference image block in the reference frame image as the grayscale value corresponding to each reference image block in the reference frame image; and determine the noise value corresponding to each reference image block in the reference frame image based on the grayscale value corresponding to each reference image block in the reference frame image and the noise value corresponding to each grayscale value in the grayscale value range.

[0130] In one embodiment, applied to the YUV domain, the energy value includes the Y channel energy value, the U channel energy value and the V channel energy value, and the image block difference value includes the Y channel image block difference value, the U channel image block difference value and the V channel image block difference value. The determination module 403 is also used to determine the Y channel energy value corresponding to each reference image block based on the Y value for the Y channel; use the Y channel energy value as the U channel energy value corresponding to the U channel, and use the Y channel energy value as the V channel energy value corresponding to the V channel; for the Y channel, determine the Y channel image block difference value between the reference image block and the relevant image block based on the Y value; for the U channel, determine the U channel image block difference value between the reference image block and the relevant image block based on the U value; for the V channel, determine the V channel image block difference value between the reference image block and the relevant image block based on the V value.

[0131] refer to Figure 5 In one embodiment, the image noise estimation device 400 further includes: a noise reduction module 405, wherein:

[0132] The denoising module 405 is used to determine the fusion weight between each reference image block in the reference frame image and the related image blocks based on the image block difference value and the noise value corresponding to each reference image block in the reference frame image; based on the fusion weight between each reference image block in the reference frame image and the related image blocks, perform multi-frame fusion denoising processing on the reference frame image to obtain a denoised target image.

[0133] The image noise estimation device obtains a reference frame image and a target frame image aligned with the reference frame image, divides the reference frame image into a plurality of reference image blocks and the target frame image into a plurality of target image blocks according to the same image division method, so that each reference image block has the same number of pixels as the corresponding target image block; determines an energy value corresponding to each reference image block, and determines an image block difference value between the reference image block and the relevant image block, so as to quantify the difference between the reference image block and the relevant image block; divides the grayscale value interval corresponding to the pixel points in the reference frame image into a preset number of sub-grayscale value intervals; classifies the energy value and the image block difference value corresponding to each reference image block into the corresponding sub-grayscale value interval; determines a target grayscale value corresponding to the sub-grayscale value interval based on each energy value in each sub-grayscale value interval, and determines a target noise value corresponding to the target grayscale value based on each image block difference value in the sub-grayscale value interval; determines a noise value corresponding to each reference image block in the reference frame image based on each target grayscale value and the target noise value corresponding to each target grayscale value. In this way, the reference frame image and the target frame image are divided into corresponding reference image blocks and target image blocks respectively, the energy value of each reference image block and the image block difference value between the reference image block and the related image block are calculated, each energy value and each image block difference value are divided into corresponding sub-grayscale value intervals, and the target grayscale value and target noise value corresponding to each sub-grayscale value interval are calculated, and then the noise value corresponding to each reference image block in the reference frame image is estimated, thereby improving the accuracy of image noise estimation.

[0134] The division of the various modules in the above-mentioned image noise estimation device is only for illustration. In other embodiments, the image noise estimation device may be divided into different modules as needed to complete all or part of the functions of the above-mentioned image noise estimation device.

[0135] For the specific definition of the image noise estimation device, please refer to the definition of the image noise estimation method above, which will not be repeated here. Each module in the above-mentioned image noise estimation device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the electronic device in the form of hardware, or can be stored in the memory of the electronic device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0136] Figure 6 FIG. 1 is a schematic diagram of the internal structure of an electronic device in one embodiment. Figure 6As shown, the electronic device includes a processor and a memory connected via a system bus. The processor is used to provide computing and control capabilities to support the operation of the entire electronic device. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program can be executed by the processor to implement an image noise estimation method provided in each of the following embodiments. The internal memory provides a cache operating environment for the operating system computer program in the non-volatile storage medium. The electronic device can be any terminal device such as a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, a wearable device, etc.

[0137] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the server to which the solution of the present application is applied. The specific server may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0138] The implementation of each module in the image noise estimation device provided in the embodiment of the present application can be in the form of a computer program. The computer program can be run on a terminal or a server. The program module constituted by the computer program can be stored in the memory of an electronic device. When the computer program is executed by a processor, the steps of the method described in the embodiment of the present application are implemented.

[0139] The embodiment of the present application further provides a computer-readable storage medium, one or more non-volatile computer-readable storage media containing computer-executable instructions, which, when executed by one or more processors, enable the processors to perform the steps of the image noise estimation method.

[0140] A computer program product comprising instructions, when executed on a computer, causes the computer to perform an image noise estimation method.

[0141] Any reference to memory, storage, database or other medium used in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM), which is used as an external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0142] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for estimating image noise, characterized in that: The method comprises: Acquire a reference frame image and a target frame image aligned with the reference frame image; According to the same image division method, the reference frame image is divided into a plurality of reference image blocks, and the target frame image is divided into a plurality of target image blocks; Determine the energy value corresponding to each reference image block according to the grayscale value corresponding to each pixel in each reference image block, and determine the image block difference value between the reference image block and the relevant image block according to the absolute value of the difference between the grayscale value corresponding to each pixel in the reference image block and the grayscale value corresponding to each pixel in the relevant image block; the relevant image block is a target image block with the same position as the reference image block; Dividing the grayscale value interval corresponding to the pixel point in the reference frame image into a preset number of sub-grayscale value intervals; The energy value and image block difference value corresponding to each reference image block are classified into the corresponding sub-grayscale value interval; Based on each energy value in each sub-grayscale value interval, determining a target grayscale value corresponding to the sub-grayscale value interval, and based on each image block difference value in the sub-grayscale value interval, determining a target noise value corresponding to the target grayscale value; Based on each of the target grayscale values ​​and the target noise value corresponding to each of the target grayscale values, a noise value corresponding to each reference image block in the reference frame image is determined.

2. The method according to claim 1, characterized in that The acquiring of a reference frame image and a target frame image aligned with the reference frame image comprises: Acquire multiple frames of images collected under the same shooting scene; Selecting a reference frame image and at least one target frame image from the multiple frame images; Referring to the reference frame image, an image alignment operation is performed on the target frame image to obtain a target frame image aligned with the reference frame image.

3. The method according to claim 1, characterized in that The step of determining an energy value corresponding to each reference image block and determining an image block difference value between the reference image block and a related image block includes: Determine the root mean square of the grayscale value corresponding to each pixel in each reference image block, and use the root mean square as the energy value corresponding to the reference image block; Determine the sum of the absolute values ​​of the differences between the grayscale values ​​corresponding to each pixel in the reference image block and the grayscale values ​​corresponding to each pixel in the relevant image block, and use the sum of the absolute values ​​of the differences as the image block difference value between the reference image block and the relevant image block.

4. The method according to claim 1, characterized in that: The step of determining a target grayscale value corresponding to each sub-grayscale value interval based on each energy value within each sub-grayscale value interval, and determining a target noise value corresponding to the target grayscale value based on each image block difference value within the sub-grayscale value interval, comprises: Taking the mean of the energy values ​​in each sub-grayscale value interval as the target grayscale value corresponding to the sub-grayscale value interval; Within the sub-grayscale value interval, eliminating image block difference values ​​greater than a preset threshold value corresponding to the sub-grayscale value interval; The difference values ​​of the image blocks that are not eliminated are sorted, and the difference value of the image block located in the middle of the sorted sequence is used as the target noise value corresponding to the target grayscale value.

5. The method according to claim 1, characterized in that The step of determining the noise value corresponding to each reference image block in the reference frame image based on each target grayscale value and the target noise value corresponding to each target grayscale value comprises: Based on each of the target grayscale values ​​and the target noise value corresponding to each of the target grayscale values, determine the noise value corresponding to each grayscale value within the grayscale value range by linear interpolation; Using the energy value corresponding to each reference image block in the reference frame image as the grayscale value corresponding to each reference image block in the reference frame image; Based on the grayscale value corresponding to each reference image block in the reference frame image and the noise value corresponding to each grayscale value in the grayscale value range, the noise value corresponding to each reference image block in the reference frame image is determined.

6. The method according to claim 1, characterized in that The method further comprises: Determining a fusion weight between each reference image block in the reference frame image and a related image block based on an image block difference value and a noise value corresponding to each reference image block in the reference frame image; Based on the fusion weights between each reference image block and the related image blocks in the reference frame image, a multi-frame fusion noise reduction process is performed on the reference frame image to obtain a denoised target image.

7. The method according to any one of claims 1 to 6, characterized in that Applied to the YUV domain, the energy value includes a Y channel energy value, a U channel energy value, and a V channel energy value, and the image block difference value includes a Y channel image block difference value, a U channel image block difference value, and a V channel image block difference value; and determining the energy value corresponding to each reference image block includes: For the Y channel, determine the Y channel energy value corresponding to each reference image block based on the Y value; Using the Y channel energy value as the U channel energy value corresponding to the U channel, and using the Y channel energy value as the V channel energy value corresponding to the V channel; The determining of the image block difference value between the reference image block and the relevant image block comprises: For the Y channel, determining a Y channel image block difference value between the reference image block and the relevant image block based on the Y value; For the U channel, determining a U channel image block difference value between the reference image block and the relevant image block based on the U value; For the V channel, a V channel image block difference value between the reference image block and the relevant image block is determined based on the V value.

8. An image noise estimation device, characterized in that: The device comprises: An acquisition module, used for acquiring a reference frame image and a target frame image aligned with the reference frame image; A division module, used for dividing the reference frame image into a plurality of reference image blocks and dividing the target frame image into a plurality of target image blocks according to the same image division method; a determination module, configured to determine an energy value corresponding to each reference image block according to a grayscale value corresponding to each pixel in each reference image block, and determine an image block difference value between the reference image block and a related image block according to an absolute value of a difference between a grayscale value corresponding to each pixel in the reference image block and a grayscale value corresponding to each pixel in a related image block; the related image block is a target image block having the same position as the reference image block; The division module is also used to divide the grayscale value interval corresponding to the pixel point in the reference frame image into a preset number of sub-grayscale value intervals; A classification module is used to classify the energy value and image block difference value corresponding to each reference image block into the corresponding sub-grayscale value interval; The determination module is used to determine the target grayscale value corresponding to the sub-grayscale value interval based on the energy values ​​within each sub-grayscale value interval, and determine the target noise value corresponding to the target grayscale value based on the difference values ​​of each image block within the sub-grayscale value interval; based on each of the target grayscale values ​​and the target noise value corresponding to each of the target grayscale values, determine the noise value corresponding to each reference image block in the reference frame image.

9. An electronic device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the computer program is executed by the processor, the processor is caused to perform the steps of the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

11. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.