Method, system, device and storage medium for removing ringing noise in image
By de-ringing the image along two mutually perpendicular directions and fusing it, combining the calculation of equal sub-pixel translation and local grayscale difference, the distortion and edge confusion problems during de-ringing of the image in the prior art are solved, and the problem of de-ringing of the image is realized Efficient de-ringing and detail retention of images of any size significantly improves image quality.
Patent Information
- Application Number
- CN202111500431.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-09
- Publication Date
- 2025-01-10
- Estimated Expiration
- 2041-12-09
AI Technical Summary
The prior art can easily lead to image distortion and edge confusion when removing ringing noise in images, and cannot effectively preserve image details. It is only suitable for small-sized images, and the de-ringing effect of larger images is poor.
By de-ringing the original image along two mutually perpendicular directions, one-dimensional and two-dimensional de-ringing images are obtained and fused, the edges and details of the original image are used to correct the distortion of the two-dimensional de-ringing image. Equis-subpixel translation and local grayscale difference calculations are used to determine the pixel grayscale value.
It realizes rapid and efficient removal of ringing noise, retains image details and edges, and is suitable for images of any size, significantly improving image quality.
Smart Images

Figure CN114372924B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of computer image processing, and in particular to a method, system, device and storage medium for removing ringing noise in an image. Background Art
[0002] The ringing effect is one of the many factors that affect the quality of restored images. The direct cause of its occurrence is the loss of information during the image degradation process, especially the loss of high-frequency information. It is typically manifested as ghosting or echo effects in areas where the image grayscale changes dramatically, just like the air oscillations generated when a bell is struck, which seriously reduces the quality of the restored image. Especially in the presence of noise, it will confuse the high-frequency characteristics of the image, making the impact of the ringing effect more significant.
[0003] In the related technologies, deep learning methods are often used to denoise images, but artificial network training usually requires a large amount of training data and takes a long time. In order to overcome the defects of deep learning methods for denoising, Elias Kellner et al. proposed a subvoxel translation method for MRI image de-ringing in 2016. This method filters the image spectrum through a saddle-weighted filter and then searches for the best subvoxel that minimizes the total variation of local pixel grayscale. The grayscale corresponding to the best subvoxel is replaced by the overall grayscale of the voxel, which can completely remove the ringing and maintain sharp edges. However, although this method can effectively remove the ringing, it will cause image distortion; and this method cannot distinguish between image edges and ringing, and it is easy to mistake image edges for ringing removal, thereby introducing smoothing and losing image details. In addition, this method is only applicable to images of smaller size. The larger the image size, the more serious the image distortion, and the greater the amount of smoothing introduced, which greatly reduces the quality of the reconstructed image. Summary of the invention
[0004] In view of this, in order to at least partially solve one of the above-mentioned technical problems, an embodiment of the present invention aims to provide an image de-ringing method, which can quickly and effectively remove ringing while retaining image details and edges, thereby improving image quality and being applicable to signals, images, and videos of any size; at the same time, the technical solution of the present application also provides a system, device, and computer-readable and writable storage medium capable of implementing the method.
[0005] On the one hand, the technical solution of the present application provides a method for removing ringing noise in an image, the method comprising the following steps:
[0006] Performing de-ringing processing on the original image along a first direction to obtain a one-dimensional de-ringing image; the original image contains ringing noise;
[0007] Performing de-ringing processing on the one-dimensional de-ringing image along a second direction to obtain a two-dimensional de-ringing image; the second direction is perpendicular to the first direction;
[0008] The two-dimensional de-ringing image is fused with the original image to obtain a target image with de-ringing noise.
[0009] In a feasible embodiment of the solution of the present application, the step of fusing the two-dimensional de-ringing image with the original image to obtain a target image de-ringing noise includes:
[0010] Calculate and obtain a first absolute value of the grayscale difference of each pixel between the two-dimensional de-ringing image and the original image;
[0011] Determining that the first absolute value is greater than a first preset threshold, selecting the grayscale value of the pixel in the original image as the grayscale value of the pixel in the target image;
[0012] Alternatively, it is determined that the first absolute value is not greater than a first preset threshold, and the grayscale value of the pixel in the two-dimensional de-ringing image is selected as the grayscale value of the pixel in the target image.
[0013] In a feasible embodiment of the solution of the present application, after the step of calculating the first absolute value of the grayscale difference of each pixel between the two-dimensional de-ringing image and the original image, the method further includes:
[0014] A first difference between the maximum grayscale value of a pixel and the minimum grayscale value of a pixel in the original image is calculated, and a product of the first difference and a ringing amplitude fitting parameter is used as the first preset threshold.
[0015] In a feasible embodiment of the solution of the present application, after the step of calculating the first absolute value of the grayscale difference of each pixel between the two-dimensional de-ringing image and the original image, the method further includes:
[0016] A target range is determined in the original image, a second difference between a maximum grayscale value of a pixel and a minimum grayscale value of a pixel in the target range is calculated, and a product of the second difference and a ringing amplitude fitting parameter is used as the first preset threshold.
[0017] In a feasible embodiment of the solution of the present application, the step of performing de-ringing processing on the original image along the first direction to obtain a one-dimensional de-ringing image includes:
[0018] Performing equal sub-pixel translation on the original image along a first direction to obtain a plurality of one-dimensional translation images;
[0019] A one-dimensional local grayscale difference of the one-dimensional translation image is obtained by calculation, and a pixel grayscale value that minimizes the one-dimensional local grayscale difference is selected as the pixel grayscale value of the one-dimensional de-ringing image.
[0020] In a feasible embodiment of the solution of the present application, the step of performing de-ringing processing on the one-dimensional translation image along the second direction to obtain a two-dimensional de-ringing image includes:
[0021] Performing equal sub-pixel translation on the one-dimensional de-ringing image along a second direction to obtain a plurality of two-dimensional translation images;
[0022] The two-dimensional local grayscale difference of the two-dimensional translation image is calculated, and the pixel grayscale value that minimizes the two-dimensional local grayscale difference is selected to obtain the pixel grayscale value of the two-dimensional de-ringing image.
[0023] In a feasible embodiment of the scheme of the present application, the one-dimensional local grayscale difference is the minimum value of the local grayscale difference of at least two neighborhoods of the one-dimensional translation image; the two-dimensional local grayscale difference is the minimum value of the local grayscale difference of at least two neighborhoods of the two-dimensional translation image.
[0024] In a feasible embodiment of the scheme of the present application, the first direction includes the row direction of the original image or the column direction of the original image; the second direction includes the row direction of the one-dimensional de-ringing image or the column direction of the one-dimensional de-ringing image.
[0025] On the other hand, the technical solution of the present application also provides a system for removing ringing noise in an image, comprising:
[0026] A first de-ringing processing module is used to perform de-ringing processing on the original image along a first direction to obtain a one-dimensional de-ringing image; the original image contains ringing noise;
[0027] A second de-ringing processing module, configured to perform de-ringing processing on the one-dimensional de-ringing image along a second direction to obtain a two-dimensional de-ringing image;
[0028] The image fusion processing module is used to fuse the two-dimensional de-ringing image with the original image to obtain a target image with de-ringing noise.
[0029] On the other hand, the technical solution of the present invention also provides a device for removing ringing noise in an image, which comprises:
[0030] at least one processor;
[0031] at least one memory for storing at least one program;
[0032] When at least one program is executed by at least one processor, the at least one processor runs the method for removing ringing noise in an image in the first aspect.
[0033] On the other hand, the technical solution of the present invention further provides a storage medium, in which a program executable by a processor is stored. The program executable by the processor is used to run the method in the first aspect when executed by the processor.
[0034] The advantages and beneficial effects of the present invention will be partially given in the following description, and the other parts can be understood through the specific embodiments of the present invention:
[0035] The technical solution of the present application only requires de-ringing of the original image containing ringing in two directions successively to obtain a ringing-free image. Compared with the existing technical solutions, it can not only be applied to pictures of any size, but also has simple steps, less calculation, and can quickly and effectively remove ringing. At the same time, the method provided by the present solution fuses the original image containing ringing with the two-dimensional de-ringing image, and uses the edges and details of the original image containing ringing to correct the distortion and over-smoothing of the two-dimensional de-ringing image. The obtained target image has effectively removed ringing while retaining details and edges intact, introducing less smoothing, and significantly improving image quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments 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 creative work.
[0037] Figure 1 is a basic flow chart of the image de-ringing method in an embodiment of the present invention;
[0038] Figure 2 is an original image containing ringing adopted by the image de-ringing method in an embodiment of the present invention;
[0039] Figure 3 Yes Figure 2 A one-dimensional de-ringing image obtained after first-dimensional de-ringing processing;
[0040] Figure 4 Yes Figure 3 A two-dimensional de-ringing image obtained after performing second-dimensional de-ringing processing;
[0041] Figure 5 It is the result image obtained by fusing the original image with the two-dimensional de-ringing image. DETAILED DESCRIPTION
[0042] The embodiments of the present invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and are not to be construed as limitations of the present invention. For the step numbers in the following embodiments, they are only provided for the convenience of explanation, and the order between the steps is not limited in any way. The execution order of each step in the embodiment can be adaptively adjusted according to the understanding of those skilled in the art.
[0043] In the related art, the MRI image de-ringing method similar to subvoxel translation can effectively remove the ringing, but it will cause image distortion. Moreover, this method cannot distinguish the image edge from the ringing, and it is easy to mistake the image edge for the ringing, thereby introducing smoothing and losing image details. In addition, it cannot be applied to images of smaller size. In view of the above technical defects, on the one hand, such as Figure 1 As shown, an embodiment of the present application provides a method for removing ringing noise in an image, the method comprising steps S100-S300:
[0044] S100, performing de-ringing processing on an original image along a first direction to obtain a one-dimensional de-ringing image; wherein the original image contains ringing noise.
[0045] S200. Perform de-ringing processing on the one-dimensional de-ringing image along a second direction to obtain a two-dimensional de-ringing image; wherein the second direction is perpendicular to the first direction.
[0046] Specifically, for the original ringing image I 0 Perform the first and second dimensional de-ringing processing successively to obtain a two-dimensional de-ringing image I 2 . In the embodiment, the de-ringing process mainly includes equal sub-pixel translation and local grayscale difference calculation. In addition, in the embodiment, the image de-ringing method can also perform de-ringing in one direction or N (N≥3) directions on the original image containing ringing. Specifically in the embodiment, although the directions of image ringing oscillation caused by different image degradation models are also different, the signal in any direction can be decomposed into two components in vertical directions. Therefore, in order to reduce the amount of data calculation, increase the de-ringing speed, and to be universal for images with ringing oscillation in all directions, this embodiment preferably performs equal sub-pixel translation and local grayscale difference calculation in two mutually perpendicular directions on the original image containing ringing, that is, the first and second directions are perpendicular to each other.
[0047] In some optional embodiments, in order to further simplify the operation processing process and shorten the operation time, the first direction in the embodiment includes the row direction of the original image or the column direction of the original image; the second direction includes the row direction of the one-dimensional de-ringing image or the column direction of the one-dimensional de-ringing image.
[0048] Specifically, under the premise that the first direction and the second direction are perpendicular to each other, the first direction and the second direction may be row and column directions of the image respectively.
[0049] In some optional embodiments, in the embodiment method, step S100 of performing de-ringing processing on the original image along the first direction to obtain a one-dimensional de-ringing image may include steps S110-S120:
[0050] S110, performing equal sub-pixel translation on the original image along a first direction to obtain a plurality of one-dimensional translated images;
[0051] Figure 2 The original ringing image used in this embodiment is given; Figure 2 As shown in FIG. 1 , the ringing caused by the sharp change of the grayscale of the image is usually manifested as oscillation and divergence around the sharp change of the grayscale. Specifically, in the embodiment, the original ringing image I 0 Perform equal sub-pixel translation along the first direction to obtain 2k one-dimensional translation images I 1i ; Wherein, the original ringing image I 0 The size is M×N pixels, M, N, k can be any positive integers, and i is a non-zero integer between -k and k.
[0052] S120, calculating and obtaining a one-dimensional local grayscale difference of the one-dimensional translation image, and selecting a pixel grayscale value that minimizes the one-dimensional local grayscale difference as a pixel grayscale value of the one-dimensional de-ringing image;
[0053] Figure 3 The one-dimensional de-ringing image obtained by performing the first sub-pixel shift and local grayscale difference calculation on the original ringing image used in this embodiment is given. At this time, the first direction is the row direction. Specifically, after obtaining 2k one-dimensional shifted images, the embodiment calculates and compares the one-dimensional local grayscale difference V of each pixel (x, y) of each one-dimensional shifted image. 1i (x, y), select the one-dimensional local grayscale difference V 1i (x, y) minimizes the pixel gray value I 1i (x, y) is taken as a one-dimensional de-ringing image I 1 The gray value at the pixel (x, y). Where x = 1, 2, 3, ... M, y = 1, 2, 3, ... N; (x, y) represents the pixel at the xth row and yth column of the image.
[0054] In some optional embodiments, the step S200 of performing de-ringing processing on the one-dimensional de-ringing image along the second direction to obtain a two-dimensional de-ringing image in the embodiment method may include steps S210 and S220:
[0055] S210, performing equal sub-pixel translation on the one-dimensional de-ringing image along a second direction to obtain a plurality of two-dimensional translated images;
[0056] Specifically, the embodiment further performs the one-dimensional de-ringing image I 1 Perform equal sub-pixel translation along the second direction to obtain 2k two-dimensional translation images I 2i .
[0057] S220, calculating and obtaining a two-dimensional local grayscale difference of the two-dimensional translation image, and selecting a pixel grayscale value that minimizes the two-dimensional local grayscale difference to obtain a pixel grayscale value of the two-dimensional de-ringing image;
[0058] Specifically, the embodiment calculates and compares the two-dimensional local grayscale difference V of each pixel (x, y) of each of the two-dimensional translation images. 2i (x, y), select the pixel gray value I that minimizes the two-dimensional local gray difference 2i (x,y) is taken as the two-dimensional de-ringing image I 2 The grayscale value at the pixel (x,y). Figure 4 A two-dimensional de-ringing image is obtained by performing second-dimensional equal sub-pixel translation and local grayscale difference calculation on the original ringing image used in the embodiment of the present invention. In this case, the second direction is the column direction.
[0059] Specifically in the embodiment, the first and second dimensional equal sub-pixel translations are to translate the image to be translated in two opposite directions at an equal sub-pixel interval of 1 / 2k, and obtain a translated image for each translation of one sub-pixel interval. The maximum translation amount in the two opposite directions is 1 / 2 pixel, and the maximum displacement difference between the 2k translated images obtained is 1 pixel. When the first direction is the row direction and the second direction is the column direction, the expression of the equal sub-pixel translation is:
[0060]
[0061] When the first direction is the column direction and the second direction is the row direction, the formula for equal sub-pixel translation is:
[0062]
[0063] Taking a single pixel at the edge of ringing as an example, the grayscale changes inside the pixel and between its neighboring pixels are quite drastic. Performing equal sub-pixel translation in one direction on the pixel is equivalent to sampling and quantizing the grayscale in the pixel 2k times in the direction to obtain 2k grayscales. Performing local grayscale difference calculation on the pixel means calculating the sum of the differences between the 2k grayscale values and the grayscale of neighboring pixels. If the difference between a certain grayscale value and the grayscale of neighboring pixels is always smaller than the other (2k-1) grayscale values, it means that the grayscale change of the pixel with the neighboring pixels is the most moderate under the sub-pixel translation amount corresponding to the grayscale value. Taking the grayscale value as the grayscale value of the pixel in the result image, the ringing can be greatly weakened or even completely removed. Furthermore, because the ringing in a single direction is manifested as the ringing amplitude decreasing with the pixel at the place where the grayscale changes drastically as the symmetric center to both sides with a sinc-type function. Therefore, when calculating the local grayscale difference of an image translated in a certain dimensional direction, the neighborhoods of the corresponding pixels on both sides of the one-dimensional direction should be distinguished, and the local grayscale difference of the first neighborhood and the local grayscale difference of the second neighborhood should be calculated respectively, and the smaller value between them should be taken as the final local grayscale difference, so as to more accurately obtain the optimal pixel grayscale value that minimizes the local grayscale difference, thereby further enhancing the de-ringing effect.
[0064] Therefore, the one-dimensional local grayscale difference V 1i (x,y) is and The minimum value among ; is the one-dimensional translation image pixel I 1i The first neighborhood local grayscale difference of (x,y), is the one-dimensional translation image pixel I 1i The second neighborhood local grayscale difference of (x, y); the one-dimensional local grayscale difference V 2i (x,y) is and The minimum value among ; is the two-dimensional translation image pixel I 2i The first neighborhood local grayscale difference of (x,y), is the two-dimensional translation image pixel I 1i The local grayscale difference of the second neighborhood of (x,y).
[0065] That is, in the embodiment, when the first direction is the row direction and the second direction is the column direction:
[0066]
[0067]
[0068] Or, when the first direction is the column direction and the second direction is the row direction:
[0069]
[0070]
[0071] Wherein, n is a positive integer greater than 1; s is a positive integer between 1 and n; Δq is the half-period length of the ringing amplitude. It should be noted that, in the embodiment, because the ringing amplitude oscillates and diffuses with a sinc-type function, and the sinc function always has a zero point in its half-period, the ringing amplitude always has a grayscale value in the neighborhood of its half-period length that is closest to the grayscale value of the ideal ringing-free image, and this grayscale value minimizes the local grayscale difference of the first neighborhood and the local grayscale difference of the first neighborhood.
[0072] It should be further explained that when an image is shifted to an equal sub-pixel level, the pixel portion that is shifted outside the original image boundary will be filled with the pixel portion that is a null value after the shift in the same row or column. hour, Will be filled to when hour, Will be filled to
[0073] When the local grayscale difference calculation is performed on the image, if x+Δq>M, I 1i x(+Δq,y) can take the value of I 1i (Δq, y); when x-Δq<0, I 1i (x-Δq, y) can take the value of I 1i (M-Δq, y).
[0074] S300: Fusing the two-dimensional de-ringing image with the original image to obtain a target image with de-ringing noise.
[0075] Specifically, the original ringing image I 0 With the two-dimensional de-ringing image I 2 The result image is the target image I with the ringing noise removed. 3 .
[0076] In some optional embodiments, the embodiment method fuses the two-dimensional de-ringing image with the original image to obtain a target image de-ringing noise. This step S300 may include steps S310 and S320:
[0077] S310, calculating and obtaining a first absolute value of the grayscale difference of each pixel between the two-dimensional de-ringing image and the original image;
[0078] Specifically, in the embodiment, the two-dimensional de-ringing image I is first calculated and obtained. 2With the original ringing image I 0 The absolute value of the grayscale difference of each pixel.
[0079] S320. Determine that the first absolute value is greater than a first preset threshold, and select the grayscale value of the pixel in the original image as the grayscale value of the pixel in the target image; or, determine that the first absolute value is not greater than a first preset threshold, and select the grayscale value of the pixel in the two-dimensional de-ringing image as the grayscale value of the pixel in the target image.
[0080] Specifically, in the embodiment, when the absolute value Δ(x, y) of the grayscale difference of a certain pixel (x, y) satisfies the restriction condition, the original ringing image I is selected. 0 The gray value of the corresponding pixel is taken as the result image I 3 When the absolute value Δ(x, y) of the grayscale difference of a certain pixel (x, y) does not meet the restriction condition, the two-dimensional de-ringing image I is selected. 2 The gray value of the corresponding pixel is taken as the result image I 3 The grayscale value at that pixel.
[0081] In an embodiment, after the step S310 of calculating the first absolute value of the grayscale difference of each pixel between the two-dimensional de-ringing image and the original image, the method may also include the step of determining the aforementioned restriction condition, namely, step S311: calculating the first difference between the maximum grayscale value of the pixel and the minimum grayscale value of the pixel of the original image, and taking the product of the first difference and the ringing amplitude fitting parameter as the first preset threshold.
[0082] Specifically, as an optional implementation, the limiting condition in the embodiment is: Δ(x, y)>q.[max(I 0 )-min(I 0 )]; that is, q.[max(I 0 )-min(I 0 )] is the first preset threshold.
[0083] Among them, max(I 0 ) is the original ringing image I 0 The maximum gray value, min(I 0 ) is the original ringing image I 0 The minimum grayscale value of , q is the ringing amplitude fitting parameter and can be customized by the user.
[0084] For example, Figure 4 As shown, the two-dimensional de-ringing image obtained in the embodiment is composed of the first and second dimensional shifted images through local difference calculation, and the image edges and details are distorted and deformed. Figure 5 As shown, Figure 5 The preferred method in the embodiment of the present invention is given. Figure 2 and Figure 4 The result image is obtained after fusion. It can be seen that by 0 With the two-dimensional de-ringing image I 2 The fusion can utilize the effective edges and details of the original ringing image to correct the deformation and over-smoothing of the two-dimensional de-ringing image. While effectively removing the ringing, the details and edges of the image are preserved intact, resulting in significantly improved image quality.
[0085] In some other optional embodiments, the step of determining the aforementioned restriction condition is: S312, determining a target range in the original image, calculating a second difference between a maximum grayscale value of a pixel and a minimum grayscale value of a pixel in the target range, and taking the product of the second difference and a ringing amplitude fitting parameter as the first preset threshold.
[0086] Specifically in the embodiment, the restriction condition is: Δ(x, y)>q.[max(I 0 (Δx,Δy))-min(I 0 (Δx, Δy))];
[0087] Among them, max(I 0 (Δx, Δy)) is the original ringing image I 0 The maximum grayscale value in the neighborhood of the pixel position (x, y), min(I 0 (Δx, Δy)) is the original ringing image I 0 The minimum grayscale value in the neighborhood of the pixel position (x, y). q is the ringing amplitude fitting parameter and can be customized by the user.
[0088] It should be noted that in the embodiment, because the ringing noise is derived from the edge of the image where the grayscale changes dramatically in the image space, the maximum grayscale value of the ringing must be smaller than the maximum grayscale value of the edge. The ringing amplitude fitting parameter q uses the grayscale change of the original ringing image to compare the maximum grayscale value of the ringing of the corresponding pixel. The larger q is, the larger the maximum grayscale value of the ringing removed in the embodiment of the present invention is, and the larger the amplitude of the ringing is.
[0089] In addition, since the fast Fourier single-pixel imaging technology in the prior art usually improves the imaging rate by undersampling the Fourier spectrum, and undersampling not only sacrifices the resolution of the fast Fourier single-pixel reconstructed image, the loss of signals (especially high-frequency signals) will inevitably introduce ringing to the reconstructed image, resulting in reduced image quality, confusion of image information, and difficulty in subsequent processing of the reconstructed image (such as image edge detection, image recognition, tracking and positioning, etc.); the technical solution of the present application can also be expanded into a ringing-free fast Fourier single-pixel imaging method, and the image de-ringing method in the aforementioned embodiment can be used to de-ring the fast Fourier single-pixel reconstructed image containing ringing.
[0090] Specifically, during the implementation process, there is a functional correspondence between the undersampling sampling rate of the fast Fourier single-pixel imaging and the ringing period of the reconstructed image. The undersampling sampling rate of the fast Fourier single-pixel imaging can be used to quickly obtain the ringing period of the corresponding reconstructed image, which greatly simplifies the process of obtaining the above-mentioned local grayscale difference, so that the ringing-free fast Fourier single-pixel imaging is perfectly combined with the aforementioned image de-ringing method, and the ringing can be quickly and conveniently removed without substantially damaging the resolution of the fast Fourier single-pixel reconstructed image, further improving the quality of the fast Fourier single-pixel reconstructed image and promoting the further development and application of Fourier single-pixel imaging technology.
[0091] In a second aspect, the technical solution of the present application further provides a system for removing ringing noise in an image, the system comprising:
[0092] A first de-ringing processing module is used to perform de-ringing processing on the original image along a first direction to obtain a one-dimensional de-ringing image; the original image contains ringing noise;
[0093] A second de-ringing processing module, configured to perform de-ringing processing on the one-dimensional de-ringing image along a second direction to obtain a two-dimensional de-ringing image;
[0094] The image fusion processing module is used to fuse the two-dimensional de-ringing image with the original image to obtain a target image with de-ringing noise.
[0095] In a third aspect, the technical solution of the present application also provides a device for removing ringing noise in an image, which includes at least one processor; at least one memory, which is used to store at least one program; when the at least one program is executed by at least one processor, the at least one processor runs the method for removing ringing noise in an image as in the first aspect.
[0096] The embodiment of the present invention further provides a storage medium storing a program, and the program is executed by a processor to implement the above method for removing ringing noise in an image.
[0097] From the above specific implementation process, it can be concluded that the technical solution provided by the present invention has the following advantages or strengths compared with the prior art:
[0098] The technical solution of this application realizes the comprehensive separation of lossless audio quality streaming and software command control through modular layering of logic and control, which makes it convenient for users to use the on-site experience brought by zero-delay networking to the greatest extent without the need to understand the specific implementation process, simplifies the original cumbersome solution configuration, and is a highly intelligent solution integrating cutting-edge technology and networking. Users can experience the long-distance on-site auditory experience that can be achieved by traditional networked products with the blessing of zero-delay technology without changing their operating habits of traditional networked broadcasting products.
[0099] In some selectable embodiments, the function / operation mentioned in the block diagram may not occur in the order mentioned in the operation diagram. For example, depending on the function / operation involved, the two boxes shown in succession can actually be executed substantially simultaneously or the boxes can sometimes be executed in reverse order. In addition, the embodiment presented and described in the flow chart of the present invention is provided by way of example, for the purpose of providing a more comprehensive understanding of technology. The disclosed method is not limited to the operation and logic flow presented herein. Selectable embodiments are expected, wherein the order of various operations is changed and the sub-operation of a part for which is described as a larger operation is performed independently.
[0100] In addition, although the present invention is described in the context of functional modules, it should be understood that, unless otherwise specified, one or more of the functions and / or features can be integrated into a single physical device and / or software module, or one or more functions and / or features can be implemented in a separate physical device or software module. It is also understood that a detailed discussion of the actual implementation of each module is unnecessary for understanding the present invention. More specifically, in view of the properties, functions and internal relationships of the various functional modules in the device disclosed herein, the actual implementation of the module will be understood within the conventional skills of the engineer. Therefore, those skilled in the art can implement the present invention set forth in the claims without excessive experimentation using ordinary techniques. It is also understood that the specific concepts disclosed are merely illustrative and are not intended to limit the scope of the present invention, which is determined by the full scope of the appended claims and their equivalents.
[0101] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, which can be embodied in any computer-readable medium for use by an instruction execution system, apparatus or device (such as a computer-based system, a system including a processor or other system that can fetch instructions from an instruction execution system, apparatus or device and execute instructions), or used in combination with these instruction execution systems, apparatuses or devices.
[0102] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0103] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.
[0104] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the above embodiments. Those skilled in the art may make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.
Claims
1. A method for removing ringing noise in an image, characterized in that: The method comprises the following steps: Performing de-ringing processing on the original image along a first direction to obtain a one-dimensional de-ringing image; the original image contains ringing noise; Performing de-ringing processing on the one-dimensional de-ringing image along a second direction to obtain a two-dimensional de-ringing image; the second direction is perpendicular to the first direction; Fusing the two-dimensional de-ringing image with the original image to obtain a target image with de-ringing noise; The step of fusing the two-dimensional de-ringing image with the original image to obtain a target image de-ringing noise includes: Calculate and obtain a first absolute value of the grayscale difference of each pixel between the two-dimensional de-ringing image and the original image; Determining that the first absolute value is greater than a first preset threshold, selecting the grayscale value of the pixel in the original image as the grayscale value of the pixel in the target image; Alternatively, determining that the first absolute value is not greater than a first preset threshold, selecting the grayscale value of the pixel in the two-dimensional de-ringing image as the grayscale value of the pixel in the target image; The step of performing de-ringing processing on the original image along the first direction to obtain a one-dimensional de-ringing image comprises: Performing equal sub-pixel translation on the original image along a first direction to obtain a plurality of one-dimensional translation images; Calculate a one-dimensional local grayscale difference of the one-dimensional translation image, and select a pixel grayscale value that minimizes the one-dimensional local grayscale difference as a pixel grayscale value of the one-dimensional de-ringing image; The step of performing de-ringing processing on the one-dimensional de-ringing image along the second direction to obtain a two-dimensional de-ringing image comprises: Performing equal sub-pixel translation on the one-dimensional de-ringing image along a second direction to obtain a plurality of two-dimensional translation images; The two-dimensional local grayscale difference of the two-dimensional translation image is calculated, and the pixel grayscale value that minimizes the two-dimensional local grayscale difference is selected to obtain the pixel grayscale value of the two-dimensional de-ringing image.
2. The method for removing ringing noise in an image according to claim 1, characterized in that: After the step of calculating a first absolute value of a grayscale difference of each pixel between the two-dimensional de-ringing image and the original image, the method further comprises: A first difference between the maximum grayscale value of a pixel and the minimum grayscale value of a pixel in the original image is calculated, and a product of the first difference and a ringing amplitude fitting parameter is used as the first preset threshold.
3. The method for removing ringing noise in an image according to claim 1, characterized in that: After the step of calculating a first absolute value of a grayscale difference of each pixel between the two-dimensional de-ringing image and the original image, the method further comprises: A target range is determined in the original image, a second difference between a maximum grayscale value of a pixel and a minimum grayscale value of a pixel in the target range is calculated, and a product of the second difference and a ringing amplitude fitting parameter is used as the first preset threshold.
4. The method for removing ringing noise in an image according to claim 1, characterized in that: The one-dimensional local grayscale difference is the minimum value of at least two neighborhood local grayscale differences of the one-dimensional translation image; the two-dimensional local grayscale difference is the minimum value of at least two neighborhood local grayscale differences of the two-dimensional translation image.
5. The method for removing ringing noise in an image according to any one of claims 1 to 4, characterized in that: The first direction includes a row direction of the original image or a column direction of the original image; the second direction includes a row direction of the one-dimensional de-ringing image or a column direction of the one-dimensional de-ringing image.
6. A system for implementing the method for removing ringing noise in an image according to any one of claims 1 to 4, characterized in that: include: A first de-ringing processing module, used for performing de-ringing processing on the original image along a first direction to obtain a one-dimensional de-ringing image; The original image contains ringing noise; A second de-ringing processing module, configured to perform de-ringing processing on the one-dimensional de-ringing image along a second direction to obtain a two-dimensional de-ringing image; The image fusion processing module is used to fuse the two-dimensional de-ringing image with the original image to obtain a target image with de-ringing noise.
7. A device for removing ringing noise in an image, characterized in that: include: at least one processor; at least one memory for storing at least one program; When the at least one program is executed by the at least one processor, the at least one processor runs the method for removing ringing noise in an image as described in any one of claims 1 to 4.
8. A storage medium storing a program executable by a processor, characterized in that: The program executable by the processor is used to execute the method for removing ringing noise in an image as claimed in any one of claims 1 to 4 when executed by the processor.
Citation Information
Patent Citations
Medical image processing method and device and computer storage medium
CN108898578A
Image binaryzation and display method, storage medium and terminal equipment
CN113436087A