Image processing method
By calculating edge-guided motion vectors in image processing, combined with similarity indicators and penalty values, the motion compensation technology is optimized to solve the challenge of noise reduction processing in low-light environments and significantly improve image quality.
Patent Information
- Application Number
- CN202310500406.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2023-03-21
- Filing Date
- 2023-05-04
- Publication Date
- 2024-09-24
AI Technical Summary
In low-light areas, the noise intensity is close to the signal intensity of the image data, making noise reduction processing challenging. Existing optical flow algorithms such as motion compensation temporal filtering technology are difficult to effectively improve image quality in low-light environments.
By calculating multiple similarity indicators and candidate motion vectors of pixels, combined with the edge intensity of reference pixels to calculate penalty values, edge-guided motion vectors are selected to optimize motion compensation technology and overcome the limitations of noise reduction processing in low-light environments.
It effectively improves the image quality under low-light conditions, optimizes motion compensation through edge guidance, and improves the accuracy and effect of noise reduction processing.
Smart Images

Figure CN118691489A
Abstract
Description
Technical Field
[0001] The present disclosure relates to an image processing method; more particularly, to an image processing method for enhancing noise reduction processing. Background Art
[0002] Image quality can be improved by using noise reduction. However, it is quite challenging to perform noise reduction in low-light areas because the noise intensity may be almost equal to the signal intensity of the image data. Therefore, developing a method to enhance the image quality in low-light areas by using noise reduction has become a very important field in image processing. Summary of the invention
[0003] The present invention discloses an image processing method for deriving an edge-guided motion vector of a first pixel of a current frame. The image processing method comprises: calculating a plurality of similarity indices of the first pixel according to a reference frame, wherein the plurality of similarity indices are respectively associated with a plurality of candidate motion vectors of the first pixel; obtaining a reference motion vector of the reference pixel of the current frame; calculating a plurality of penalty values caused by the reference pixel according to the edge strength of the reference pixel and the edge strength of the first pixel, wherein the greater the edge strength of the reference pixel, the greater the plurality of penalty values; and selecting an edge-guided motion vector from the plurality of candidate motion vectors according to the plurality of similarity indices, the plurality of candidate motion vectors and the plurality of penalty values.
[0004] The image processing method proposed here is able to optimize the motion compensation technique under the guidance of edge strength to overcome the limitations of using optical flow algorithms (such as motion compensated temporal filtering techniques) for noise reduction in low-light environments. BRIEF DESCRIPTION OF THE DRAWINGS
[0005] When read in conjunction with the accompanying drawings, aspects of the present disclosure are better understood from the following embodiments. It should be noted that, in accordance with standard practice in the industry, various structures are not drawn to scale. In fact, for clarity of discussion, the dimensions of various structures may be arbitrarily increased or reduced.
[0006] Figure 1 is a flowchart of an image processing method according to some embodiments of the present disclosure.
[0007] Figure 2 is a schematic diagram of an image processing system according to some embodiments of the present disclosure.
[0008] Figure 3 is a video signal in an image frame format according to some embodiments of the present disclosure.
[0009] Figure 4 FIG. 5 is a schematic diagram of a video signal including a reference frame and a current frame according to another embodiment of the present disclosure.
[0010] Figure 5 FIG. 4 is a schematic diagram of a reference frame and a current frame of a video signal according to some embodiments of the present disclosure. DETAILED DESCRIPTION
[0011] The following disclosure, together with the accompanying drawings, which are incorporated into this specification and constitute a part thereof, illustrate various embodiments of the present invention, but the present invention is not limited to these embodiments. In addition, the embodiments described below can be appropriately integrated into another embodiment.
[0012] The phrases "one embodiment," "an embodiment," "exemplary embodiments," "other embodiments," "another embodiment," etc., mean that the described embodiment of the invention may include a particular feature, structure, or characteristic, but not every embodiment must include the particular feature, structure, or characteristic. In addition, repeated use of the phrase "in an embodiment" does not necessarily refer to the same embodiment, although it may.
[0013] In order to make the present invention more clear and understandable, detailed steps and structures are disclosed in the following description. Obviously, the embodiments of the present invention do not limit the specific details known to those skilled in the art. In addition, known structures and steps are no longer described in detail to avoid unnecessary limitations on the present invention. The preferred embodiments of the present invention will be described in detail below. However, in addition to the embodiments, the present invention can also be widely implemented in other embodiments. The scope of the present invention is not limited to the embodiments, but is limited by the scope of the claims.
[0014] Figure 1 FIG. 1 is a flow chart of an image processing method 100 according to some embodiments of the present disclosure. The image processing method 100 may be used to enhance noise reduction processing. In some embodiments, the noise reduction processing is based on a motion compensated temporal filtering (MCTF) technique.
[0015] Generally speaking, the edge of an image is easier to distinguish than other textures in the image, even in low-light areas. The image processing method 100 can use this distinguishability of the edge to consider the influence of the edge when estimating the motion vector to correct the error of the motion-compensated temporal filtering under low-light conditions. Therefore, the image processing method 100 can obtain a better motion vector (hereinafter referred to as the edge-guided motion vector MV) to enhance the noise reduction process.
[0016] The image processing method 100 includes steps S102, S104, S106, S108 and S110. Figures 2 to 5 , and the component symbols in the diagram are used to illustrate the image processing method 100.
[0017] Figure 2 A schematic diagram of an image processing system 200 according to some embodiments of the present disclosure is shown. In the present disclosure, the image processing system 200 may be used to execute the image processing method 100. The image processing system 200 includes a measuring unit 210, a selecting unit 220, a penalty value unit 230, and an updating unit 240.
[0018] In some embodiments, the image processing system 200 may be used to process Figure 3 The video signal DS shown has a plurality of sequentially arranged image frames F. Each image frame F includes a plurality of pixels P arranged in m rows and n columns, wherein n and m are positive integers.
[0019] Figure 4 A schematic diagram of a current frame CF and a reference frame RF of a video signal DS according to some embodiments of the present disclosure is shown. The reference frame RF is an image frame that is before and adjacent to the current frame CF.
[0020] In some embodiments, the image processing system 200 performs the image processing method 100 on each pixel P in each image frame F. In other embodiments, the image processing system 200 performs the image processing method 100 on a portion of the pixels P in the image frame F. For ease of understanding, the following description is about performing the image processing method 100 on a pixel in the current frame CF, and the pixel currently being processed in the current frame CF is marked as pixel P1.
[0021] The figure uses a 6×6 matrix to illustrate the current frame CF and the reference frame RF. However, it should be understood that the present disclosure is not limited to Figure 4 The number of columns and rows shown.
[0022] In step S102, the measuring unit 210 is used to calculate the similarity index SM(x,y) of the pixel P1 according to the reference frame RF, wherein the similarity index SM(x,y) is respectively associated with the candidate motion vector CMV(x,y) of the pixel P1. In the present disclosure, for each symbol including (x,y), x and y are integers. In some embodiments, each similarity index SM(x,y) of the pixel P1 is obtained by calculating the sum of absolute differences (SAD) between the block of the current frame CF and the block of the reference frame CF on a per-pixel basis. The block of the current frame CF includes the pixel P1. In some embodiments, the pixel P1 is located at the center of the block of the current frame CF. In some embodiments, each similarity index SM(x,y) of the pixel P1 corresponds to a candidate motion vector CMV(x,y) for motion compensation, wherein the motion compensation provides an offset from the coordinates in the current frame CF to the coordinates in the reference frame RF. For example, assuming that the coordinates of pixel P1 are (x0, y0), the candidate motion vector CMV(x, y) represents the vector (x, y) pointing from the coordinates (x0, y0) to the coordinates (x0+x, y0+y). In this case, the corresponding similarity index SM(x, y) can be calculated as follows:
[0023]
[0024] In equation (1), N is a dimension of the block and the block size is NxN pixels, I current (i, j) represents the pixel value at the current frame CF coordinate (i, j), I reference (x+i, y+j) represents the pixel value located at the coordinate (x+i, y+j) of the reference frame RF, and the similarity index SM(x, y) is the sum of the absolute differences between the block of the current frame CF and the block in the reference frame RF after being offset by the motion vector (x, y).
[0025] exist Figure 4 In the example, for block B1 of the current frame CF and block B2 of the reference frame RF, the similarity index SM(-1,-1) of pixel P1 is calculated (for one of the candidate motion vectors, namely CMV(-1,-1)). Blocks B1 and B2 each have 9 pixels (N=3), and the pixel value of each pixel is as follows Figure 4 As shown. The similarity index SM(x,y) corresponding to the candidate motion vector CMV(x,y) can be calculated by the SAD calculation described above. In the example of the candidate motion vector CMV(-1,1), the similarity index SM(-1,-1) is calculated as follows:
[0026] SM(-1,-1) = |10 - 7| + |20 - 8| + |11 - 1| + |8 - 30| + |6 - 22| +
[0027] |5 - 5| + |3 - 20| + |1 - 18| + |22 - 1| = 118。
[0028] In step S104, the penalty value unit 230 is used to obtain the reference motion vector of the reference pixel PR in the current frame CF. In some embodiments, the reference pixel PR can be selected from the pixels that have been processed. In some embodiments, the reference pixel PR is located in the a-th row and the b-th column, and the pixel P1 is located in the c-th row and the d-th column, where a < c ≤ m and b < d ≤ n. In some embodiments, the selection unit 220 is used to select the reference pixel PR from the current frame CF according to certain fixed patterns. For example, c is always equal to a + 2, and d is always equal to b + 2. In some embodiments, the selection unit 220 selects the reference pixel in a random pattern. For example, c is equal to a + e, d is equal to b + f, and e and f are random positive integers. In some embodiments, there may be one or more reference pixels, and the selection unit 220 can determine the best one therefrom according to the propagated edge information and block similarity. Thus, the reference motion vector RMV is obtained.
[0029] In step S106, the penalty value unit 230 is used to calculate the penalty value PNT(x, y) caused by the reference pixel PR according to the edge intensity Er of the reference pixel PR and the edge intensity Ep of the pixel P1. The penalty value PNT(x, y) can reflect the influence caused by the edge (if any). In some examples, such as in a low-light scene, relying only on SAD to determine the motion vector, as described above, may be inaccurate due to noise. To improve the accuracy when determining the motion vector, the image processing method 100 also evaluates and considers the influence of the edge, and the so-called influence of the edge can be represented by the edge intensity. In some embodiments, the edge intensity represents the result of edge detection performed on the pixel. More specifically, this represents the probability that an edge exists on the pixel. A higher edge intensity value means a higher probability that an edge exists on the pixel. Furthermore, when the probability of an edge appearing on the reference pixel PR is higher, it means that the pixel value and the motion vector of the reference pixel PR are more reliable. In this case, even if the corresponding similarity metric is the smallest, this candidate motion vector may not be the correct one. On the contrary, the candidate motion vector that is closer (or more similar to) the motion vector of the reference pixel PR can be considered the correct motion vector, that is, the edge-guided motion vector.
[0030] That is, when determining the motion vector of pixel P1, the present disclosure may further consider the influence of the edge on the reference pixel PR and the motion vector of the reference pixel PR. In the present disclosure, the penalty value PNT(x,y) is used to quantify the influence of the edge and motion vector of the reference pixel PR. Generally speaking, the greater the difference between the candidate motion vector CMV(x,y) and the motion vector of the reference pixel PR, and the higher the edge strength Er of the reference pixel PR, the greater the penalty value PNT(x,y) of the candidate vector CMV(x,y) may be.
[0031] In step S108, the penalty value unit 230 is used to select an edge-guided motion vector MV from the candidate motion vectors CMV(x,y) according to the similarity index SM(x,y), the candidate motion vectors CMV(x,y) and the penalty value PNT(x,y). The edge-guided motion vector MV can be determined by equations (2) and (3):
[0032] as well as
[0033] MV=CMV(x′,y′) (3).
[0034] The right side of equation (2) represents an equivalent similarity index, which includes the influence of the original similarity index SM(x', y') and the influence of the edge (i.e., the penalty value PNT(x', y')). The penalty value unit 230 determines the candidate motion vector CMV(x', y') that can minimize equation (2) from the candidate motion vectors CMV(x, y), and selects this candidate motion vector CMV(x', y') as the edge-guided motion vector MV.
[0035] In the present disclosure, each penalty value may be determined using a weighting factor, an absolute difference between a reference motion vector and a candidate motion vector, a constant γ, and a standard deviation T associated with pixel P1. The penalty value may be expressed as formula (4):
[0036] PNT(x,y)=γ·T·ABD(x,y)·W (4).
[0037] PNT(x,y) represents the penalty value for the candidate motion vector CMV(x,y). ABD(x,y) represents the absolute value of the difference between the reference motion vector and the candidate motion vector CMV(x,y). ABD(x,y) is used to measure the similarity between the candidate motion vector CMV(x,y) and the reference motion vector.
[0038] In some embodiments, the standard deviation T may be the standard deviation of all pixel values in block B1, and the penalty value may be standardized based on the SAD of the candidate motion vector CMV(x,y). The constant γ is used to control the weight of the penalty value PNT(x,y). In some embodiments, the constant γ may be set to a value between 0 and 1. In other embodiments, for simplicity, the constant γ and the standard deviation T may be set to 1 regardless of the standard deviation of the similarity index.
[0039] As mentioned above, the penalty value is related to the edge strength. In equation (4), W represents the effect of edge strength. Generally speaking, since edge strength is related to direction, it should be calculated based on the selected direction. For example, when a vertical edge intersects a pixel, the edge strength of the pixel in the horizontal direction will be greater than the edge strength in the vertical direction, because the vertical edge can be distinguished more from a horizontal perspective than from a vertical perspective.
[0040] Therefore, the weighting factor and each penalty value PNT(x,y) can be anisotropic and can be divided into two parts related to two mutually orthogonal directions. Therefore, the penalty value PNT(x,y) can be calculated based on these two orthogonal and independent directions. For ease of understanding, the subscript X represents the component in the first direction (e.g., horizontal direction), and the subscript Y represents the component in the second direction (e.g., vertical direction). PNT(x,y) in equation (4) can be expanded into equation (5):
[0041] PNT(x,y)=γ·T·[ABD X (x,y)·W X +ABD Y (x,y)·W Y ] (5).
[0042] In formula (5), ABD X (x, y) represents the absolute difference in the first direction, ABD Y (x, y) represents the absolute difference in the second direction, and the sub-weight W X represents the weighting factor W in the first direction, and the sub-weight W Y Represents the weighting factor W in the second direction.
[0043] The penalty value unit 230 is used to calculate a plurality of absolute differences, each of which is calculated from the absolute value of the difference between the reference motion vector and each candidate motion vector. The penalty value unit 230 obtains the candidate motion vector from the measurement unit 210 and calculates the absolute difference in two directions using the following formula:
[0044] ABD X (x,y)=|RMV X -CMV X(x,y)|(6); and
[0045] ABD Y (x,y)=|RMV Y -CMV Y (x,y)| (7).
[0046] RMV X and RMV Y represents the x and y components of the reference motion vector. Similarly, CMV X (x,y) and CMV Y (x,y) represents the x and y components of the candidate motion vector respectively.
[0047] The weighting factor W depends on multiple variables: edge strength Er, edge strength Ep, confidence value Cpr of reference pixel PR, and the absolute difference between pixel value Ip of pixel P1 and pixel value Ir of reference pixel PR. Similarly, edge strength Er, edge strength Ep and confidence value Cpr are anisotropic, and these variables can be further divided into two parts represented by subscripts X and Y. Therefore, the weighting factor W can be expressed as follows:
[0048] W X =MAX((Er X -Ep X ),0)·MAX((Cpr X -Ep X ),0)·MAX((C-
[0049] |Ir-Ip|),0)(8); and
[0050] W Y =MAX((Er Y -Ep Y ),0)·MAX((Cpr Y -Ep Y ),0)·MAX((C-|Ir-
[0051] Ip|),0)(9).
[0052] As shown in equations (8) and (9), the penalty value unit 230 is used to set the sub-weight W based on three conditions: X With W Y The first condition is about the edge strength Er (including Er X With Er Y ) and edge strength Ep (including Ep X With Ep Y The second condition is about the confidence value Cpr (including Cpr X With Cpr Y) and edge strength Ep. The third condition is about pixel value Ip and pixel value Ir. Both equations (8) and (9) must take these three conditions into consideration, and the calculations of equations (8) and (9) are similar. In order to simplify the explanation, only the part in the first direction (indicated by the subscript X) is explained below.
[0053] The first condition is to compare the edge strength Er X and edge strength Ep X To evaluate. If the edge strength Er X Greater than edge strength Ep X , then the penalty value unit 230 sets the value of the first condition to Er X Subtract Ep X If the edge strength Er X Not greater than edge strength Ep X , then the penalty value unit 230 will sub-weight W X Set to 0.
[0054] Edge Strength Ep X and edge strength Er X represent the probability that an edge exists on the pixel P1 and the reference pixel PR in the first direction. X Greater than edge strength Ep X , which means that there is a stronger or clearer edge in the first direction of the reference pixel PR compared to the pixel P1. In this case, when the edge-guided motion vector MV is selected, the penalty value unit 230 will obtain a larger sub-weight W X To increase the influence of the reference motion vector in the first direction. On the contrary, if the edge strength Ep X Greater than the edge strength Er X , which means that the pixel P1 has a stronger edge than the reference pixel PR. Therefore, the penalty value unit 230 does not need to consider the influence of the edge (if any) on the reference pixel PR.
[0055] In some embodiments, the penalty value unit 230 uses a Sobel filter to calculate the edge strength Er X and edge strength Ep X However, the present disclosure is not limited to the Sobel filter. Various methods of obtaining edge strength are within the scope of the present disclosure.
[0056] Regarding the second condition, the penalty value unit 230 compares the confidence value Cpr of the reference pixel PR X and the edge intensity Ep of pixel P1 X If the confidence value Cpr X Greater than edge strength Ep X , then the penalty value unit 230 sets the second condition to the confidence value CprX Subtract edge strength Ep X , its value is greater than 0. On the contrary, if the confidence value Cpr X Not greater than edge strength Ep X , then the penalty value unit 230 will sub-weight W X Set to 0.
[0057] In some embodiments, the confidence value Cpr X represents the degree to which the reference pixel PR is affected by an edge that is not on it in the first direction. In other words, the confidence value Cpr X Reflects the edge strength propagating from another pixel of the current frame CF to the reference pixel PR along the first direction. X The larger the confidence value Cpr is, the stronger the influence caused by another edge not on the reference pixel PR is considered when generating the edge-guided motion vector of the pixel P1. X When it is smaller, it means that when generating the edge-guided motion vector of pixel P1, the edge strength Ep from pixel P1 is given priority. X Therefore, if the confidence value Cpr X Greater than edge strength Ep X , then the penalty value unit 230 will generate a larger sub-weight W X , so as to increase the influence of the reference motion vector in the first direction when selecting the edge-guided motion vector MV. X Not greater than edge strength Ep X , which means that the edge on pixel P1 is stronger than other edges, and the penalty value unit 230 does not need to consider the impact caused by other edges.
[0058] Regarding the third condition, the penalty value unit 230 compares the predetermined constant C and the absolute difference between the pixel value Ip of the pixel P1 and the pixel value Ir of the reference pixel PR. If the predetermined constant C is greater than the absolute difference between the pixel value Ip and the pixel value Ir, the penalty value unit 230 assigns a value to the third condition, which is equal to the predetermined constant C minus the absolute difference between the pixel value Ip and the pixel value Ir. If the predetermined constant C is not greater than the absolute difference between the pixel value Ip and the pixel value Ir, the penalty value unit 230 assigns the sub-weight W X Set to 0.
[0059] In some embodiments, the predetermined constant C is substantially equal to the average noise value of the plurality of pixels. In some embodiments, the third condition can be used to determine whether there is a strong edge between the pixel P1 and the reference pixel PR. If the predetermined constant C is greater than the absolute difference between the pixel value Ip and the pixel value Ir, this indicates that there is not a strong enough edge between the pixel P1 and the reference pixel PR. In this case, the penalty value unit 230 calculates the sub-weight W for selecting the edge-guided motion vector MV. X When the reference motion vector in the first direction is selected, the reference motion vector in the first direction should be relied on more. This is because the influence of the reference motion vector has been successfully propagated to the pixel P1. On the contrary, when the absolute difference between the pixel value Ip and the pixel value Ir is greater than the predetermined constant C, it means that there is a strong edge between the pixel P1 and the reference pixel PR, and this strong edge is not within the reference pixel PR. Therefore, when selecting the edge-guided motion vector MV, it is not necessary to consider the edge strength Ep X , edge strength Er X and confidence value Cpr X .
[0060] In some embodiments, the first condition has a more decisive influence on the selection of the edge-guided motion vector MV than the second and third conditions. Therefore, equations (8) and (9) may only consider the first condition, and in order to simplify the calculation, the values of the other two conditions may be set to 1. In other embodiments, the first and second conditions have a more decisive influence on the selection of the edge-guided motion vector MV than the third condition. Therefore, in this embodiment, equations (8) and (9) consider the first and second conditions, and in order to simplify the calculation, the value of the third condition is set to 1.
[0061] After selecting the edge-guided motion vector MV, the updating unit 240 sets the confidence value Cp of the pixel P1 in the first direction X If the edge strength Ep of pixel P1 X Greater than the confidence value Cpr of the reference pixel PR X , the updating unit 240 sets the confidence value Cp X is the edge strength Ep X Otherwise, the confidence value Cp of pixel P1 is X Set to the edge strength Ep of the reference pixel PR X and confidence value Cpr X The weighted sum of is shown in formula (10):
[0062] Cp X =Cpr X ·α+Ep X ·(1-α) (10).
[0063] In equation (10), α is a weight.
[0064] Similarly, the updating unit 240 is used to set the confidence value Cp of the pixel P1 in the second direction using equation (11): Y .
[0065] Cp Y =Cpr Y ·α+Ep Y ·(1-α) (11).
[0066] In step S110, the image processing system 200 applies the edge-guided motion vector MV to the pixel P1 for noise reduction. In some embodiments, the image processing system 200 uses the edge-guided motion vector MV to locate the candidate pixel Pc in the reference frame RF. Figure 5 , the edge-guided motion vector MV points from the pixel (pixel P3) in the reference frame RF that has the same coordinates as the pixel P1 in the current frame CF to the candidate pixel Pc. The image processing system 200 then performs a weighted average of the pixel value Ipc of the candidate pixel Pc and the pixel value Ip of the pixel P1 to update the pixel value Ip of the pixel P1.
[0067] Although the present invention and its advantages have been described in detail above, it should be understood that various changes, substitutions and modifications may be made to the embodiments described herein without departing from the spirit and scope of the present invention as defined by the appended claims. For example, the many procedures described above may be implemented in different ways and may be replaced by other procedures, or a combination thereof.
[0068] Furthermore, the scope of the present invention is not limited to the particular embodiments of the processes, machines, manufactures, compositions of matter, means, methods, and steps described in the specification. As will be readily appreciated by those skilled in the art from this disclosure, present or later developed processes, machines, manufactures, compositions of matter, means, methods, or steps that can perform substantially the same functions or achieve substantially the same results as the corresponding embodiments described herein may be used in accordance with the present invention. Therefore, the scope of the appended claims covers such processes, machines, manufactures, compositions of matter, means, methods, and steps.
Claims
1. An image processing method for deriving an edge-guided motion vector of a first pixel of a current frame, characterized in that: Include: Calculating a plurality of similarity indicators of the first pixel according to the reference frame, wherein the plurality of similarity indicators are respectively associated with a plurality of candidate motion vectors of the first pixel; Obtaining a reference motion vector of a reference pixel of the current frame; Calculating a plurality of penalty values caused by the reference pixel according to the edge strength of the reference pixel and the edge strength of the first pixel, wherein the greater the edge strength of the reference pixel, the greater the plurality of penalty values; as well as The edge-guided motion vector is selected from the plurality of candidate motion vectors according to the plurality of similarity indicators, the plurality of candidate motion vectors, and the plurality of penalty values.
2. The image processing method according to claim 1, wherein calculating the plurality of penalty values comprises: Calculating a weighting factor of the reference pixel according to the edge strength of the reference pixel and the edge strength of the first pixel; calculating a plurality of absolute differences, wherein each of the plurality of absolute differences is calculated from an absolute value of a difference between the reference motion vector and each of the plurality of candidate motion vectors; and The plurality of penalty values are calculated, wherein each of the plurality of penalty values is obtained based on a product operation of the weighting factor and each of the plurality of absolute differences.
3. The image processing method as claimed in claim 2, wherein calculating the weighting factor of the reference pixel comprises: Calculate a first sub-weight of the reference pixel in a first direction; and Calculate the second sub-weight of the reference pixel in the second direction, wherein the second direction is orthogonal to the first direction, and Each of the multiple penalty values is mainly determined by the sum of two products, one of the two products is the multiplication of the first sub-weight and each of the multiple absolute differences in the first direction, and the other of the two products is the multiplication of the second sub-weight and each of the multiple absolute differences in the second direction.
4. The image processing method as claimed in claim 3, wherein calculating the first sub-weight of the reference pixel comprises: comparing the edge strength of the first pixel in the first direction with the edge strength of the reference pixel in the first direction; When the edge strength of the first pixel in the first direction is greater than the edge strength of the reference pixel in the first direction, setting the first sub-weight to 0; and When the edge strength of the first pixel in the first direction is not greater than the edge strength of the reference pixel in the first direction, the first sub-weight is set equal to the edge strength of the reference pixel in the first direction minus the edge strength of the first pixel in the first direction.
5. The image processing method as claimed in claim 4, wherein calculating the first sub-weight of the reference pixel further comprises: Comparing the edge strength of the first pixel in the first direction with the confidence value of the reference pixel in the first direction; When the edge strength of the first pixel in the first direction is greater than the confidence value of the reference pixel in the first direction, setting the first sub-weight to 0; and When the edge strength of the first pixel in the first direction is not greater than the edge strength of the reference pixel in the first direction, and the edge strength of the first pixel in the first direction is not greater than the confidence value of the reference pixel in the first direction, the first sub-weight is updated by multiplying the difference between the edge strength of the reference pixel in the first direction and the edge strength of the first pixel in the first direction and the confidence value of the reference pixel in the first direction and the edge strength of the first pixel in the first direction.
6. The image processing method of claim 5, wherein calculating the first sub-weight of the reference pixel further comprises: comparing a predetermined constant and an absolute difference between a pixel value of the first pixel and a pixel value of the reference pixel; When the absolute difference between the pixel value of the first pixel and the pixel value of the reference pixel is greater than the predetermined constant, setting the first sub-weight to 0; and When the edge strength of the first pixel in the first direction is not greater than the edge strength of the reference pixel in the first direction, the edge strength of the first pixel in the first direction is not greater than the confidence value of the reference pixel in the first direction, and the absolute difference between the pixel value of the first pixel and the pixel value of the reference pixel is not greater than the predetermined constant, the first sub-weight is updated by multiplying the difference between the edge strength of the reference pixel in the first direction and the edge strength of the first pixel in the first direction, the confidence value of the reference pixel in the first direction and the edge strength of the first pixel in the first direction, and the predetermined constant and the absolute difference between the pixel value of the first pixel and the pixel value of the reference pixel. 7 . The image processing method as claimed in claim 5 , wherein the confidence value of the reference pixel in the first direction reflects the edge strength propagating from another pixel of the current frame along the first direction to the reference pixel.
8. The image processing method as claimed in claim 5, wherein calculating the weighting factor of the reference pixel further comprises: When the edge strength of the first pixel in the first direction is greater than the confidence value of the reference pixel in the first direction, setting the confidence value of the first pixel in the first direction as the edge strength of the first pixel in the first direction; and When the edge strength of the first pixel in the first direction is not greater than the confidence value of the reference pixel in the first direction, the confidence value of the first pixel in the first direction is set to the weighted sum of the edge strength of the first pixel in the first direction and the confidence value of the reference pixel in the first direction.
9. The image processing method of claim 3, wherein calculating the second sub-weight of the reference pixel comprises: comparing the edge strength of the first pixel in the second direction with the edge strength of the reference pixel in the second direction; comparing the edge strength of the first pixel in the second direction with the confidence value of the reference pixel in the second direction; comparing a predetermined constant with an absolute difference between a pixel value of the first pixel and a pixel value of the reference pixel; When the edge strength of the first pixel in the second direction is greater than the edge strength of the reference pixel in the second direction, the edge strength of the first pixel in the second direction is greater than the confidence value of the reference pixel in the second direction, or the absolute difference between the pixel value of the first pixel and the pixel value of the reference pixel is greater than the predetermined constant, setting the second sub-weight to 0; and When the edge strength of the first pixel in the second direction is not greater than the edge strength of the reference pixel in the second direction, the edge strength of the first pixel in the second direction is not greater than the confidence value of the reference pixel in the second direction, and the absolute difference between the pixel value of the first pixel and the pixel value of the reference pixel is not greater than the predetermined constant, the second sub-weight is set equal to the product of the edge strength of the reference pixel in the second direction minus the difference of the edge strength of the first pixel in the second direction, the confidence value of the reference pixel in the second direction minus the edge strength of the first pixel in the second direction, and the predetermined constant minus the absolute difference between the pixel value of the first pixel and the pixel value of the reference pixel. 10 . The image processing method of claim 2 , wherein each of the plurality of penalty values is obtained based on a multiplication operation of a constant, a standard deviation associated with the first pixel, each of the plurality of absolute differences, and the weighting factor.
11. The image processing method as claimed in claim 2, wherein selecting the edge-directed motion vector from the candidate motion vectors further comprises: respectively adding the plurality of similarity indicators to the plurality of penalty values to obtain a plurality of sums, wherein each of the plurality of sums is obtained by adding each of the plurality of similarity indicators to each of the plurality of penalty values; finding the minimum value among the plurality of sums; as well as A motion vector corresponding to the minimum value is selected from the plurality of candidate motion vectors, and the selected motion vector becomes the edge-guided motion vector. 12 . The image processing method as claimed in claim 1 , wherein the edge strength of the first pixel and the edge strength of the reference pixel are calculated using a Sobel filter. 13 . The image processing method of claim 1 , wherein each of the plurality of similarity indices is obtained by calculating the sum of absolute differences between the block of the current frame and the block of the reference frame on a pixel-by-pixel basis.
14. The image processing method according to claim 1, further comprising: The edge-guided motion vector is applied to the first pixel in the current frame for noise reduction processing.
15. The image processing method of claim 14, wherein applying the edge-guided motion vector to the first pixel in the current frame to perform the noise reduction process comprises: locating a second pixel in the reference frame by the edge-guided motion vector; and The pixel value of the second pixel and the pixel value of the first pixel are weighted averaged to update the pixel value of the first pixel in the current frame.
16. The image processing method of claim 14, wherein the noise reduction process is based on a motion-compensated temporal filtering technique.
Citation Information
Patent Citations
Motion compensation denoising method and device
CN108270945A
Evaluation method of image registration algorithm, terminal and storage medium
CN113034553A
Image processing method and device, electronic equipment and storage medium
CN113689362A
Moving image coding apparatus, moving image coding method, computer program for coding moving image, and video transmitter
JP2011055229A
Picture processing apparatus
US20010031069A1
