Image denoising method and apparatus, electronic device, and computer readable storage medium

By determining the direction value and reliability of target pixels in the image for denoising, the problem of noise interference in digital image transmission is solved, image details are preserved and resources are saved, and it is suitable for image denoising in low-cost circuits. method.

WO2024217278A1PCT designated stage expired Publication Date: 2024-10-24SANECHIPS TECH CO LTD

Patent Information

Application Number
PCT/CN2024/085534
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-21
Filing Date
2024-04-02
Publication Date
2024-10-24

AI Technical Summary

Technical Problem

Existing digital images are susceptible to electronic noise interference during the transmission process, resulting in image quality degradation after denoising, and the frequency domain denoising algorithm is complex and unsuitable for low-cost circuit implementation.

Method used

By determining the direction value and direction reliability of the target pixel in the image, the direction-based denoising method is used to denoise the target pixel and obtain the denoised pixel value, which simplifies the denoising process and retains image details.

Benefits of technology

It achieves better preservation of image texture details while denoising, reduces resource consumption, is suitable for the implementation of low-cost hardware circuits, has better subjective quality, and does not require additional enhancement operations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024085534_24102024_PF_FP_ABST
    Figure CN2024085534_24102024_PF_FP_ABST
Patent Text Reader

Abstract

The present application provides an image denoising method, an image denoising apparatus, an electronic device, and a computer readable storage medium. The image denoising method comprises: determining the orientation value and the orientation reliability of a target pixel point in an original image; and denoising the target pixel point according to the orientation value and the orientation reliability of the target pixel point to obtain a denoised pixel value of the target pixel point.
Need to check novelty before this filing date? Find Prior Art

Description

Image denoising method and device, electronic device, and computer-readable storage medium

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS

[0002] This application claims priority to Chinese patent application No. 202310461056.6 filed on April 21, 2023, the contents of which are incorporated herein by reference in their entirety. Technical Field

[0003] The embodiments of the present application relate to the field of image processing technology, and in particular to an image denoising method, an image denoising device, an electronic device, and a computer-readable storage medium. Background Art

[0004] Currently, digital images are susceptible to electronic noise during transmission. To ensure image quality, image denoising is required during post-processing. While spatial-domain filtering-based denoising algorithms are simple to implement, they can blur the image, resulting in a loss of detail and a certain degree of degradation in the denoised image quality. Frequency-domain denoising algorithms are complex and resource-intensive, making them unsuitable for low-cost circuit implementation.

[0005] Public content

[0006] In a first aspect, an embodiment of the present application provides an image denoising method, comprising: determining the direction value and direction reliability of a target pixel point in an original image; and denoising the target pixel point according to the direction value and direction reliability of the target pixel point to obtain a denoised pixel value of the target pixel point.

[0007] In a second aspect, an embodiment of the present application provides an image denoising device, comprising: a direction calculation module, configured to determine the direction value and direction reliability of a target pixel point in an original image; and a denoising module, configured to perform denoising processing on the target pixel point according to the direction value and direction reliability of the target pixel point to obtain a denoised pixel value of the target pixel point.

[0008] In a third aspect, an embodiment of the present application provides an electronic device comprising: at least one processor; and a memory storing at least one computer program, wherein when the at least one computer program is executed by the at least one processor, the at least one processor implements the above-mentioned image denoising method.

[0009] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the processor implements the above-mentioned image denoising method. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] FIG1 is a flow chart of an image denoising method provided in an embodiment of the present application;

[0011] FIG2 is a schematic diagram of 16 sub-directions when the slope is positive in an embodiment of the present application;

[0012] FIG3( a ) is a schematic diagram showing the positional relationship between the target pixel and the denoising reference point when the direction value is 0 in an embodiment of the present application;

[0013] FIG3( b ) is a schematic diagram showing the positional relationship between the target pixel and the denoising reference point when the direction value is 1 in an embodiment of the present application;

[0014] FIG3( c ) is a schematic diagram showing the positional relationship between the target pixel and the denoising reference point when the direction value is 2 in an embodiment of the present application;

[0015] FIG3( d ) is a schematic diagram showing the positional relationship between the target pixel and the denoising reference point when the direction value is 3 in an embodiment of the present application;

[0016] FIG3( e ) is a schematic diagram showing the positional relationship between the target pixel and the denoising reference point when the direction value is 4 in an embodiment of the present application;

[0017] FIG3( f ) is a schematic diagram showing the positional relationship between the target pixel and the denoising reference point when the direction value is 5 in an embodiment of the present application;

[0018] FIG3( g ) is a schematic diagram showing the positional relationship between the target pixel and the denoising reference point when the direction value is 6 in an embodiment of the present application;

[0019] FIG3(h) is a schematic diagram showing the positional relationship between the target pixel and the denoising reference point when the direction value is 7 in an embodiment of the present application;

[0020] FIG3(i) is a schematic diagram showing the positional relationship between the target pixel and the denoising reference point when the direction value is 8 in an embodiment of the present application;

[0021] FIG3( j ) is a schematic diagram showing the positional relationship between the target pixel and the denoising reference point when the direction value is 9 in an embodiment of the present application;

[0022] FIG3( k ) is a schematic diagram showing the positional relationship between the target pixel and the denoising reference point when the direction value is 10 in an embodiment of the present application;

[0023] FIG3( l ) is a schematic diagram showing the positional relationship between the target pixel and the denoising reference point when the direction value is 11 in an embodiment of the present application;

[0024] FIG3( m ) is a schematic diagram showing the positional relationship between the target pixel and the denoising reference point when the direction value is 12 in an embodiment of the present application;

[0025] FIG3(n) is a schematic diagram showing the positional relationship between the target pixel and the denoising reference point when the direction value is 13 in an embodiment of the present application;

[0026] FIG3(o) is a schematic diagram showing the positional relationship between the target pixel and the denoising reference point when the direction value is 14 in an embodiment of the present application;

[0027] FIG3( p ) is a schematic diagram showing the positional relationship between the target pixel and the denoising reference point when the direction value is 15 in an embodiment of the present application;

[0028] FIG4 is a block diagram of an image denoising apparatus according to an embodiment of the present application; and

[0029] FIG5 is a block diagram of the composition of the electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0030] To enable those skilled in the art to better understand the technical solution of the present application, the image denoising method, image denoising device, electronic device, and computer-readable storage medium provided in the present application are described in detail below with reference to the accompanying drawings.

[0031] Hereinafter, example embodiments will be described more fully with reference to the accompanying drawings, but the example embodiments may be embodied in different forms, and the present application should not be construed as limited to the embodiments set forth herein. These embodiments are provided to make this application more thorough and complete and to enable those skilled in the art to fully understand the scope of this application.

[0032] In the absence of conflict, the various embodiments of the present application and the various features therein may be combined with each other.

[0033] As used herein, the term "and / or" includes any and all combinations of at least one of the associated listed items.

[0034] The terms used herein are intended only to describe specific embodiments and do not limit this application. As used herein, the singular forms "a," "an," and "the" also include the plural forms, unless the context clearly indicates otherwise. It will also be understood that when the terms "comprising" and / or "made of" are used in this specification, they specify the presence of a particular feature, whole, step, operation, element, and / or component, but do not preclude the presence or addition of at least one other feature, whole, step, operation, element, component, and / or group thereof.

[0035] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by those skilled in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and this application, and will not be interpreted as having an idealized or overly formal meaning unless expressly defined as such herein.

[0036] FIG1 is a flowchart of an image denoising method provided in an embodiment of the present application.

[0037] In a first aspect, referring to FIG. 1 , an embodiment of the present application provides an image denoising method, including steps 100 and 101 .

[0038] Step 100: Determine the direction value and direction reliability of the target pixel point in the original image.

[0039] In some embodiments, determining the direction value and direction reliability of the target pixel point in the original image includes: calculating the direction value and direction reliability of each first pixel point in the original image respectively; and determining the direction value and direction reliability of the target pixel point based on the direction value and direction reliability of each first pixel point in the original image.

[0040] In some embodiments, respectively calculating the direction value and direction reliability of each first pixel point in the original image includes: respectively calculating the gradient in the x direction and the gradient in the y direction of each second pixel point in the original image; for each first pixel point in the original image, calculating the direction value and direction reliability of the first pixel point based on the gradient in the x direction and the gradient in the y direction of all second pixel points in the first pixel matrix centered on the first pixel point in the original image.

[0041] In some embodiments, determining the direction value and direction reliability of a target pixel point in an original image includes: separately calculating the gradient in the x direction and the gradient in the y direction of each second pixel point in a second pixel matrix centered on the target pixel point; and calculating the direction value and direction reliability of the target pixel point based on the gradient in the x direction and the gradient in the y direction of all second pixel points in the second pixel matrix.

[0042] In some embodiments, calculating the gradient of the second pixel in the x direction and the gradient in the y direction includes: multiplying the pixel values ​​of all third pixels in the third pixel matrix centered on the second pixel in the original image by the gradient operator in the x direction and then summing them to obtain the gradient of the second pixel in the x direction, that is, is the gradient of the second pixel point in the x direction, M ijis the pixel value of the jth third pixel in the third pixel matrix centered at the i-th second pixel, oper_x j is the jth element value of the gradient operator in the x direction; the pixel values ​​of all third pixels in the third pixel matrix centered on the second pixel in the original image are multiplied by the gradient operator in the y direction and then summed to obtain the gradient of the second pixel in the y direction, that is, is the gradient of the second pixel point i in the y direction, M ij is the pixel value of the jth third pixel in the third pixel matrix centered at the i-th second pixel, oper_y j is the j-th element value of the gradient operator in the y direction.

[0043] In some embodiments, the size of any one of the first pixel matrix, the second pixel matrix, and the third pixel matrix is ​​B×B, where B is 2k+1, and k is an integer greater than or equal to 1, for example, B is 3, 5, 7, 9, etc.

[0044] The sizes of the first pixel matrix, the second pixel matrix, and the third pixel matrix may be the same or different.

[0045] In some embodiments, the gradient operator may be a Sobel operator, a Prewitt operator, a Scharr operator, etc. For example, when B is 3, the Sobel operator in the x direction is The sobel operator in the y direction is

[0046] In some embodiments, when calculating the gradient of the second pixel point in the x direction and the gradient in the y direction, if the second pixel point is an edge pixel point in the original image, the original image needs to be filled with edge pixel values.

[0047] In some embodiments, calculating the direction value and direction reliability of the first pixel point based on the gradients in the x direction and the gradients in the y direction of all second pixel points in the first pixel matrix centered on the first pixel point in the original image includes: according to the formula Calculate the angle corresponding to the direction value of the first pixel; according to the formula Calculate the directional reliability of the first pixel.

[0048] The direction value of the first pixel can be obtained by discretizing the angle θ corresponding to the direction value of the first pixel. The number of direction values ​​for a pixel can be set to 4, 8, 16, 32, etc. The following example illustrates the calculation of direction values ​​using 16 direction values.

[0049] make Then, different direction values ​​correspond to different conditions satisfied by a, b, and c, as shown in Table 1.

[0050] In some embodiments, if the directional reliability of the first pixel point is less than 0 or greater than 1, the directional reliability of the first pixel point is truncated to between 0 and 1. That is, if the directional reliability of the first pixel point is less than 0, the directional reliability of the first pixel point is modified to 0; if the directional reliability of the first pixel point is greater than 1, the directional reliability of the first pixel point is modified to 1.

[0051] In some embodiments, calculating the direction value and direction reliability of the target pixel point based on the gradients in the x direction and the gradients in the y direction of all second pixel points in the second pixel matrix includes: according to the formula Calculate the angle corresponding to the direction value of the target pixel point; according to the formula Calculate the directional reliability of the target pixel.

[0052] The direction value of the target pixel can be obtained by discretizing the θ corresponding to the direction value of the target pixel. The number of direction values ​​for a pixel can be set to 4, 8, 16, 32, etc. The following example illustrates the calculation of direction values ​​using 16 direction values.

[0053] make Then, a, b, and c satisfy different conditions and correspond to different direction values, as shown in Table 1.

[0054] In some embodiments, if the directional reliability of the target pixel point is less than 0 or greater than 1, the directional reliability of the target pixel point is truncated to between 0 and 1. That is, if the directional reliability of the target pixel point is less than 0, the directional reliability of the target pixel point is modified to 0; if the directional reliability of the target pixel point is greater than 1, the directional reliability of the target pixel point is modified to 1.

[0055] Table 1

[0056] Figure 2 is a schematic diagram of the 16 sub-directions in the case of a positive slope in an embodiment of the present application. As shown in Figure 2, each gradient direction can be discretely mapped to a pixel point in a 5×5 neighborhood. For the selection of denoising reference points, the directions of the third and fourth quadrants are the same as those of the first and second quadrants. Therefore, only the pixels in the directions of the first and second quadrants need to be calculated.

[0057] In some embodiments, determining the direction value and direction reliability of the target pixel point based on the direction value and direction reliability of each first pixel point in the original image includes: using the direction value of the first pixel point in the original image that has the same position as the target pixel point as the direction value of the target pixel point, and using the direction reliability of the first pixel point in the original image that has the same position as the target pixel point as the direction reliability of the target pixel point.

[0058] Step 101 : performing denoising processing on a target pixel according to the direction value and direction reliability of the target pixel to obtain a denoised pixel value of the target pixel.

[0059] In some embodiments, denoising the target pixel point according to the direction value and direction reliability of the target pixel point to obtain the denoised pixel value of the target pixel point includes: determining the pixel value of the denoising reference point in the original image according to the direction value of the target pixel point; correcting the pixel value of the target pixel point in the original image according to the pixel value of the denoising reference point in the original image to obtain the corrected pixel value of the target pixel point; and determining the denoised pixel value of the target pixel point according to the direction reliability of the target pixel point and the corrected pixel value of the target pixel point.

[0060] In some embodiments, determining the pixel value of the denoising reference point in the original image based on the direction value of the target pixel point includes: searching for the positional relationship information between the denoising reference point and the target pixel point corresponding to the direction value of the target pixel point in the correspondence between the pre-set direction value of the pixel point and the positional relationship information between the denoising reference point and the pixel point; determining the positional information of the denoising reference point in the original image based on the positional relationship information between the denoising reference point and the target pixel point; and determining the pixel value of the denoising reference point in the original image based on the positional information of the denoising reference point in the original image.

[0061] In some embodiments, Figures 3(a) to 3(p) are schematic diagrams illustrating the positional relationship between target pixels and denoising reference points when the direction values ​​are 0 to 15. As shown in Figures 3(a) to 3(p), the number of denoising reference points corresponding to each direction value can be set arbitrarily, for example, to 5, 7, or 9.

[0062] In some embodiments, the positional relationship information between the denoising reference point and the target pixel point can be the number of pixels that the denoising reference point is offset from the target pixel point in the x-direction and the y-direction. As shown in FIG3(a), (-4, 0), (-3, 0), (-2, 0), (-1, 0), (1, 0), (2, 0), (3, 0), and (4, 0) all represent the positional relationship information between the denoising reference point and the target pixel point. Taking (-4, 0) as an example, -4 indicates that the denoising reference point is offset 4 pixels to the left in the x-direction relative to the target pixel point, and is not offset in the y-direction. The same applies to other denoising reference points.

[0063] In some embodiments, after obtaining the positional relationship information between the denoising reference point and the target pixel point, the positional information of the denoising reference point in the original image can be obtained based on the positional information of the target pixel point in the original image and the positional relationship information between the denoising reference point and the target pixel point, and then the pixel value of the denoising reference point in the original image can be obtained.

[0064] In some embodiments, correcting the pixel value of the target pixel point in the original image according to the pixel value of the denoising reference point in the original image to obtain the corrected pixel value of the target pixel point includes: determining the weight of the denoising reference point according to the pixel value of the denoising reference point in the original image; taking a weighted average of the pixel value of the denoising reference point in the original image and the pixel value of the target pixel point in the original image according to the weight of the denoising reference point to obtain the denoising corrected value of the denoising reference point; and determining the corrected pixel value of the target pixel point according to the denoising corrected value of the denoising reference point.

[0065] In some embodiments, determining the weight of the denoising reference point based on the pixel value of the denoising reference point in the original image includes: determining the weight of the denoising reference point as the weight corresponding to the value range of the absolute value of the difference between the pixel value of the denoising reference point in the original image and the pixel value of the target pixel point in the original image based on the mapping relationship between the value range and the weight.

[0066] In some embodiments, determining the weight of the denoising reference point based on the pixel value of the denoising reference point in the original image includes at least one of the following: when the absolute value of the difference between the pixel value of the denoising reference point in the original image and the pixel value of the target pixel point in the original image is greater than or equal to 2 times a preset threshold, determining the weight of the denoising reference point to be 0; when the absolute value of the difference between the pixel value of the denoising reference point in the original image and the pixel value of the target pixel point in the original image is greater than or equal to 1.5 times the preset threshold and less than 2 times the preset threshold, determining the weight of the denoising reference point to be 0.5×2 A ; A is an integer greater than or equal to 3; when the absolute value of the difference between the pixel value of the denoising reference point in the original image and the pixel value of the target pixel in the original image is greater than or equal to the preset threshold and less than 1.5 times the preset threshold, the weight of the denoising reference point is determined to be 0.75×2 A When the absolute value of the difference between the pixel value of the denoising reference point in the original image and the pixel value of the target pixel in the original image is less than the preset threshold, the weight of the denoising reference point is determined to be 1×2 A .

[0067] In some implementations, for an 8-bit image, the preset threshold value ranges from 1 to 100, and is generally 30.

[0068] In some embodiments, performing weighted averaging on the pixel value of the denoising reference point in the original image and the pixel value of the target pixel in the original image according to the weight of the denoising reference point to obtain the denoising correction value of the denoising reference point includes: Calculate the denoising correction value of the denoising reference point; sum is the denoising correction value of the denoising reference point, e is the pixel value of the denoising reference point in the original image, weight is the weight of the denoising reference point, and d is the pixel value of the target pixel in the original image.

[0069] In some embodiments, the image denoising method further includes: after obtaining a denoising correction value of the denoising reference point by weighted averaging the pixel value of the denoising reference point in the original image and the pixel value of the target pixel point in the original image according to the weight of the denoising reference point, truncating the denoising correction value of the denoising reference point before determining the corrected pixel value of the target pixel point based on the denoising correction value of the denoising reference point.

[0070] Determining the corrected pixel value of the target pixel point according to the denoising correction value of the denoising reference point includes: determining the corrected pixel value of the target pixel point according to the denoising correction value after truncation of the denoising reference point.

[0071] In some embodiments, the denoising correction value of the denoising reference point can be truncated to between 0 and 255. That is, if the denoising correction value of the denoising reference point is less than 0, the denoising correction value of the denoising reference point is modified to 0; if the denoising correction value of the denoising reference point is greater than 255, the denoising correction value of the denoising reference point is modified to 255.

[0072] In some embodiments, determining the corrected pixel value of the target pixel point based on the denoising corrected value of the denoising reference point includes: determining the corrected pixel value of the target pixel point as the average of the denoising corrected values ​​of all denoising reference points, that is, sum i is the denoising correction value of the i-th denoising reference point or the denoising correction value after truncation of the i-th denoising reference point, n is the number of denoising reference points, and out_corrected is the corrected pixel value of the target pixel.

[0073] In some embodiments, determining the denoised pixel value of a target pixel point based on the directional reliability of the target pixel point and the corrected pixel value of the target pixel point includes: using the directional reliability of the target pixel point as the weight of the corrected pixel value of the target pixel point, and calculating the weighted average of the corrected pixel value of the target pixel point and the pixel value of the target pixel point in the original image to obtain the denoised pixel value of the target pixel point.

[0074] In some embodiments, the denoised pixel value of the target pixel is calculated according to the formula out = out_corrected × anistrophy + (1-anistrophy) × data_in; out is the denoised pixel value of the target pixel, out_corrected is the corrected pixel value of the target pixel, anistrophy is the directional reliability of the target pixel, and data_in is the pixel value of the target pixel in the original image.

[0075] The image denoising method provided in the embodiment of the present application performs denoising processing on the target pixel point based on the direction value and direction reliability of the target pixel point to obtain the denoised pixel value of the target pixel point. Compared with the related filter-based denoising method, the image denoising method of the embodiment of the present application can better retain the texture details of the image while denoising. The denoised image can be directly displayed without sharpening or other enhancement operations, and the subjective quality is better. Compared with the frequency domain denoising method, the image denoising method of the embodiment of the present application has a simple implementation principle and is more suitable for implementation in low-cost hardware circuits.

[0076] FIG4 is a block diagram of the image denoising device provided in an embodiment of the present application.

[0077] In the second aspect, referring to Figure 4, an embodiment of the present application provides an image denoising device, including: a direction calculation module 401, configured to determine the direction value and direction reliability of a target pixel point in an original image; and a denoising module 402, configured to perform denoising processing on the target pixel point according to the direction value and direction reliability of the target pixel point to obtain a denoised pixel value of the target pixel point.

[0078] In some embodiments, the direction calculation module 401 is specifically configured to respectively calculate the direction value and direction reliability of each first pixel point in the original image; and determine the direction value and direction reliability of the target pixel point based on the direction value and direction reliability of each first pixel point in the original image.

[0079] In some embodiments, the direction calculation module 401 is specifically configured to implement the calculation of the direction value and direction reliability of each first pixel point in the original image in the following manner: calculate the gradient of each second pixel point in the original image in the x direction and the gradient in the y direction respectively; for each first pixel point in the original image, calculate the direction value and direction reliability of the first pixel point based on the gradient of all second pixel points in the first pixel matrix centered on the first pixel point in the original image in the x direction and the gradient in the y direction.

[0080] In some embodiments, the denoising module 402 is specifically configured to implement the denoising processing of the target pixel point according to the direction value and direction reliability of the target pixel point to obtain the denoised pixel value of the target pixel point in the following manner: determine the pixel value of the denoising reference point in the original image according to the direction value of the target pixel point; correct the pixel value of the target pixel point in the original image according to the pixel value of the denoising reference point in the original image to obtain the corrected pixel value of the target pixel point; determine the denoised pixel value of the target pixel point according to the direction reliability of the target pixel point and the corrected pixel value of the target pixel point.

[0081] In some embodiments, the denoising module 402 is specifically configured to implement the correction of the pixel value of the target pixel point in the original image according to the pixel value of the denoising reference point in the original image to obtain the corrected pixel value of the target pixel point in the following manner: determine the weight of the denoising reference point according to the pixel value of the denoising reference point in the original image; perform weighted averaging of the pixel value of the denoising reference point in the original image and the pixel value of the target pixel point in the original image according to the weight of the denoising reference point to obtain the denoising corrected value of the denoising reference point; determine the corrected pixel value of the target pixel point according to the denoising corrected value of the denoising reference point.

[0082] In some embodiments, the denoising module 402 is specifically configured to implement the determination of the weight of the denoising reference point based on the pixel value of the denoising reference point in the original image in the following manner: based on the mapping relationship between the value range and the weight, the weight of the denoising reference point is determined to be the weight corresponding to the value range of the absolute value of the difference between the pixel value of the denoising reference point in the original image and the pixel value of the target pixel point in the original image.

[0083] In some embodiments, the denoising module 402 is specifically configured to implement the determination of the weight of the denoising reference point according to the pixel value of the denoising reference point in the original image in at least the following manner: when the absolute value of the difference between the pixel value of the denoising reference point in the original image and the pixel value of the target pixel point in the original image is greater than or equal to 2 times a preset threshold, the weight of the denoising reference point is determined to be 0; when the absolute value of the difference between the pixel value of the denoising reference point in the original image and the pixel value of the target pixel point in the original image is greater than or equal to 1.5 times the preset threshold and less than 2 times the preset threshold, the weight of the denoising reference point is determined to be 0.5×2 A; A is an integer greater than or equal to 3; when the absolute value of the difference between the pixel value of the denoising reference point in the original image and the pixel value of the target pixel point in the original image is greater than or equal to the preset threshold and less than 1.5 times the preset threshold, the weight of the denoising reference point is determined to be 0.75×2 A When the absolute value of the difference between the pixel value of the denoising reference point in the original image and the pixel value of the target pixel point in the original image is less than the preset threshold, the weight of the denoising reference point is determined to be 1×2 A .

[0084] The specific implementation process of the above-mentioned image denoising device is the same as the specific implementation process of the above-mentioned image denoising method, and will not be repeated here.

[0085] In a third aspect, referring to FIG5 , an embodiment of the present application provides an electronic device, including: at least one processor 501 ; a memory 502 , wherein at least one computer program is stored in the memory 502 , and when the at least one computer program is executed by the at least one processor 501 , the above-mentioned image denoising method is implemented.

[0086] In some embodiments, the electronic device further includes: at least one I / O interface 503 connected between the processor 501 and the memory 502 , and configured to implement information interaction between the processor 501 and the memory 502 .

[0087] The processor 501 is a device with data processing capabilities, including but not limited to a central processing unit (CPU); the memory 502 is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically such as SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), and flash memory (FLASH); the I / O interface (read-write interface) 503 is connected between the processor 501 and the memory 502, and can realize information interaction between the processor 501 and the memory 402, including but not limited to a data bus (Bus), etc.

[0088] In some implementations, the processor 501 , the memory 502 , and the I / O interface 503 are connected to each other via a bus 504 , and further connected to other components of the computing device.

[0089] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the processor implements the above-mentioned image denoising method.

[0090] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor (such as a central processing unit, a digital signal processor, or a microprocessor), or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As is known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable, and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, as is well known to those skilled in the art, communication media typically embodies computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

[0091] Example embodiments have been disclosed herein, and although specific terms are employed, they are used and should be interpreted only in a general illustrative sense and not for purposes of limitation. In some instances, it will be apparent to those skilled in the art that, unless otherwise expressly indicated, features, characteristics, and / or elements described in conjunction with a particular embodiment may be used alone or in combination with features, characteristics, and / or elements described in conjunction with other embodiments. Therefore, it will be understood by those skilled in the art that various changes in form and detail may be made without departing from the scope of the present application as set forth in the appended claims.

Claims

1. An image denoising method, comprising: Determine the direction value and direction reliability of the target pixel in the original image; as well as The target pixel point is denoised according to the direction value and the direction reliability of the target pixel point to obtain a denoised pixel value of the target pixel point.

2. The image denoising method according to claim 1, wherein: Determining the direction value and direction reliability of the target pixel point in the original image includes: Calculating the direction value and direction reliability of each first pixel point in the original image respectively; The direction value and the direction reliability of the target pixel point are determined according to the direction value and the direction reliability of each first pixel point in the original image.

3. The image denoising method according to claim 2, wherein: The respectively calculating the direction value and the direction reliability of each first pixel point in the original image comprises: Calculating the gradient of each second pixel point in the original image in the x direction and the gradient in the y direction respectively; For each first pixel in the original image, the direction value and direction reliability of the first pixel are calculated according to the gradients in the x direction and the gradients in the y direction of all second pixel points in a first pixel matrix centered on the first pixel in the original image.

4. The image denoising method according to claim 1, wherein: The performing denoising processing on the target pixel point according to the direction value and the direction reliability of the target pixel point to obtain the denoised pixel value of the target pixel point comprises: Determine a pixel value of a denoising reference point in the original image according to the direction value of the target pixel point; The pixel value of the target pixel point in the original image is corrected according to the pixel value of the denoising reference point in the original image to obtain the corrected pixel value of the target pixel point. Positive pixel value; The denoised pixel value of the target pixel is determined according to the directional reliability of the target pixel and the corrected pixel value of the target pixel.

5. The image denoising method according to claim 4, wherein: The step of correcting the pixel value of the target pixel point in the original image according to the pixel value of the denoising reference point in the original image to obtain the corrected pixel value of the target pixel point comprises: Determine the weight of the denoising reference point according to the pixel value of the denoising reference point in the original image; According to the weight of the denoising reference point, weighted average is performed on the pixel value of the denoising reference point in the original image and the pixel value of the target pixel point in the original image to obtain a denoising correction value of the denoising reference point; and The corrected pixel value of the target pixel point is determined according to the denoising correction value of the denoising reference point.

6. The image denoising method according to claim 5, wherein: Determining the weight of the denoising reference point according to the pixel value of the denoising reference point in the original image comprises: According to the mapping relationship between the value range and the weight, the weight of the denoising reference point is determined to be the weight corresponding to the value range of the absolute value of the difference between the pixel value of the denoising reference point in the original image and the pixel value of the target pixel point in the original image.

7. The image denoising method according to claim 5, wherein: Determining the weight of the denoising reference point according to the pixel value of the denoising reference point in the original image comprises at least one of the following: When the absolute value of the difference between the pixel value of the denoising reference point in the original image and the pixel value of the target pixel point in the original image is greater than or equal to 2 times of a preset threshold, determining the weight of the denoising reference point to be 0; The pixel value of the denoising reference point in the original image and the target pixel When the absolute value of the difference between the pixel values ​​of the point in the original image is greater than or equal to 1.5 times the preset threshold and less than 2 times the preset threshold, the weight of the denoising reference point is determined to be 0.5×2 A ; Wherein, A is an integer greater than or equal to 3; When the absolute value of the difference between the pixel value of the denoising reference point in the original image and the pixel value of the target pixel in the original image is greater than or equal to the preset threshold and less than 1.5 times of the preset threshold, the weight of the denoising reference point is determined to be 0.75×2 A ; When the absolute value of the difference between the pixel value of the denoising reference point in the original image and the pixel value of the target pixel point in the original image is less than the preset threshold, the weight of the denoising reference point is determined to be 1×2 A .

8. An image denoising device, comprising: A direction calculation module configured to determine a direction value and a direction reliability of a target pixel point in an original image; as well as The denoising module is configured to perform denoising processing on the target pixel point according to the direction value and the direction reliability of the target pixel point to obtain a denoised pixel value of the target pixel point.

9. An electronic device, comprising: at least one processor; as well as A memory having at least one computer program stored thereon, wherein when the at least one computer program is executed by the at least one processor, the at least one processor implements the image denoising method according to any one of claims 1 to 7.

10. A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the processor implements the image denoising method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Ultrasonic image processing method based on directional weighted median filter

    CN102663708A

  • Image processing device and radiation imaging apparatus comprising same

    CN103747736A

  • Image denoising method based on adaptive consistency priori deep network

    CN114764750A

  • Methods and Systems for Imaging Processing

    US20100215282A1

  • Image processing apparatus

    US20210133934A1

Cited By

  • Image enhancement method and device and electronic device

    CN120198338A