Image noise reduction method and device based on sorting method
Through the image denoising method based on the sorting method, combined with Gaussian convolution operation and multi-scale decomposition, the problem of high computational complexity of the traditional method is solved, and a low-complexity and efficient image denoising effect is achieved, which is suitable for a variety of noise types. processing.
Patent Information
- Application Number
- CN202410837468.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-09-10
AI Technical Summary
Traditional image noise reduction methods have high computational complexity or long calculation times, making it difficult to effectively handle a wide range of image noise.
An image denoising method based on the sorting method is adopted, which uses forward and backward sorting filtering operations combined with Gaussian convolution operations for weighted fusion to achieve image denoising, and supports multi-scale decomposition and reconstruction to deal with noise in different frequency bands.
It achieves image noise reduction with low complexity and short calculation time. It can effectively handle Gaussian white noise, impulse noise and color noise. It is suitable for brightness and color noise reduction of YUV images and has multi-scale noise reduction capabilities.
Smart Images

Figure CN118628394A
Abstract
Description
[Technical field]
[0001] The present invention relates to the technical field of image processing, and in particular to an image denoising method and device based on a sorting method. [Background technology]
[0002] The image acquisition, reading and transmission process is a complex random process. Random noise will be introduced during the acquisition process. The process of image processing by ISP (image signal processor) will also cause noise changes. During the transmission of the image, the transmission channel will introduce various types of noise, so noise reduction processing is required.
[0003] Traditional image denoising methods include processing in the transform domain (such as frequency filtering, wavelet soft / hard threshold shrinkage), variational and partial differential equation modeling methods (such as TV denoising, PM differential equation denoising), block matching-based filtering methods (non-local mean NLM, three-dimensional collaborative filtering BM3D), etc.
[0004] However, these image denoising methods either have extremely high computational complexity or long iteration time, and the noise type they target is usually Gaussian white noise.
[0005] The present invention aims at the technical problems that the traditional image denoising methods are either too complex or the calculation time is too long, and makes technical improvements to the image denoising method and device. [Summary of the invention]
[0006] The object of the present invention is to provide an image denoising method with low complexity, short calculation time and the ability to handle a wide range of image noise.
[0007] To achieve the above object, the technical solution adopted by the present invention is an image denoising method based on a sorting method, comprising the following steps:
[0008] S1, input image I;
[0009] S2, perform a forward sorting filtering operation on the input image I: first perform a sorting filtering operation on the input image I with a filter window size of MxM and a response value of m, and then perform a sorting filtering operation on the obtained image with a filter window size of MxM and a response value of n=M 2 -m sorting and filtering operation, denoted as FSort Ω,m (I) = Sort Ω,n (Sort Ω,m (I));
[0010] S3, perform a backward sorting filtering operation on the input image I: first perform a MxM filter window Ω and a response value n=M on the input image I 2-m sorting filter operation, and then the obtained image is sorted and filtered with a filter window Ω of size MxM and a response value m, which is recorded as BSort Ω,m (I) = Sort Ω,m (Sort Ω,n (I));
[0011] S4, performing a simple weighted fusion operation on the input image I by combining the forward sorting filtering operation and the backward sorting filtering operation with the Gaussian convolution operation to obtain a final denoised image.
[0012] Preferably, the sorting filtering operation in step S2 and step S3 refers to: for the input image I, the filtering window size is MxM, and the i-th filtering window of size MxM is Ω i , for Ω i The pixels in M are sorted from small to large using the merge sort algorithm, and the jth pixel value in the sort is output, where j < M 2 , denoted as
[0013] Preferably, step S4 includes the following sub-steps:
[0014] S41, performing a forward filtering operation on the input image I to obtain a forward sorting filtered image I FSort , subtract the forward sorting filter image from the input image I to get the forward filtering error II FSort , given the Gaussian kernel K for the forward filtering error σ Perform convolution filtering and take the absolute value of the filtering result, recorded as Δ FSort =|K σ *(II FSort )|;
[0015] S42, performing a backward filtering operation on the input image I to obtain a backward sorting filtered image I BSort , filter image I using backward sorting BSort Subtract the input image I to get the backward filtering error II BSort , a Gaussian kernel K is given for the backward filtering error σ Perform convolution filtering and take the absolute value of the filtering result, recorded as Δ BSort =|K σ *(I BSort -I)|;
[0016] S43, weighted fusion is performed on the forward sorting filter image and the backward sorting filter image to obtain the final denoised image, denoted as Where B is the weight.
[0017] Preferably, the above-mentioned image denoising method based on the sorting method performs multi-scale decomposition on the input image, and then, starting from the bottom layer, performs image denoising operations and reconstruction based on sorting filtering operations from step S1 to step S4 on the low-frequency sub-bands layer by layer until the reconstruction is completed to restore the original image size.
[0018] Preferably, the multi-scale decomposition refers to Laplacian pyramid, wavelet decomposition, or second-generation geometric wavelet decomposition.
[0019] Preferably, the sorting filtering operation uses a windowing mode for filtering.
[0020] Another object of the present invention is to provide an image denoising device with low complexity, short calculation time and the ability to handle a wide range of image noise.
[0021] To achieve the above-mentioned further object, the technical solution adopted by the present invention is an image denoising device based on a sorting method, which is used to execute the above-mentioned image denoising method based on a sorting method.
[0022] The image denoising method and device based on the sorting method of the present invention have the following beneficial effects:
[0023] 1) When configuring m as When the image denoising based on the sorting method can achieve a filtering effect similar to that of the median filter, the impulse noise can be effectively denoised. This is to use the filter of the present invention to filter the U channel and the V channel in the YUV image, which can effectively reduce the pseudo color introduced by the image interpolation error, etc.
[0024] 2) When configuring m to When the sorting-based image denoising is performed, the Gaussian noise image can be effectively denoised. The Y channel in YUV is filtered by the method of the present invention to effectively perform brightness denoising. The U channel and the V channel in YUV are filtered to effectively reduce the color noise of the image (the color noise different from the pseudo-color in 1)).
[0025] 3) When configuring m as When using a sorting-based denoising method based on a multi-scale strategy, multi-scale denoising can be performed on the image. For different image noises such as high frequency, medium frequency, and low frequency, the sorting-based denoising method can be used for denoising filtering respectively. The noise that needs to be filtered can be filtered in a targeted and selective manner, and large-particle and large-scale image noise can be effectively processed.
Brief Description of the Drawings
[0026] Figure 1 It is a basic form flow chart of an image denoising method based on a sorting method.
[0027] Figure 2It is a high-level flow chart of the image denoising method based on the sorting method. [Specific implementation method]
[0028] The features and exemplary embodiments of various aspects of the present invention will be described in detail below. In the detailed description below, many specific details are proposed to provide a comprehensive understanding of the present invention. But it is obvious to those skilled in the art that the present invention can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present invention by illustrating examples of the present invention. The present invention is by no means limited to any specific configuration and algorithm proposed below, but covers any modification, replacement and improvement of elements, parts and algorithms without departing from the concept of the present invention. In the accompanying drawings and the following description, known structures and technologies are not shown to avoid unnecessary ambiguity to the present invention.
[0029] Example
[0030] This embodiment implements an image denoising method based on a sorting method.
[0031] Since traditional image denoising methods are either too complex or take too long to calculate, this embodiment proposes a sorting-based image denoising method. The basic operation required by the method of this embodiment is to sort the image blocks, and to perform a simple weighted operation in combination with a Gaussian convolution operation to complete the image filtering operation. The method of this embodiment can not only process Gaussian white noise well, but also process traditional impulse noise (salt and pepper noise) well. In order to be able to handle a wider range of image noise, this embodiment combines the sorting-based method with the traditional multi-scale structure to handle a series of image denoising problems in the camera field.
[0032] Figure 1 This is a basic form of flow chart of image denoising method based on sorting method. Figure 1 As shown, the basic form of image denoising based on the sorting method in this embodiment includes the following filtering steps (1) to (4):
[0033] (1) Sorting and filtering operations
[0034] The so-called sorting algorithm is to re-order one or more groups of data according to a given pattern through a specific algorithm factor. This new sequence follows certain rules and reflects certain laws. Therefore, the processed data is easy to screen and calculate, greatly improving the calculation efficiency.
[0035] Merge sort is an effective and stable sorting algorithm based on the merge operation.
[0036] The merge operation, also called the merge algorithm, refers to the method of merging two sequential sequences into one sequential sequence.
[0037] Sorting filter, also known as statistical sorting filter, is a nonlinear smoothing filter. Its operation process is to first sort the pixel values covered by the template, and select representative pixel values as the response values of the statistical sorting filter. The commonly used representative values are maximum value, minimum value and median value.
[0038] For image I, assuming that the filter window is of size MxM, for the i-th filter window, the filter window of size MxM is Ω i , then for Ω i The pixels in the image are sorted from small to large using the merge sort algorithm, given the parameter m<M 2 , then output the mth pixel value of this sort, and record the above process as
[0039]
[0040] (2) Forward sorting filter operation
[0041] The forward sorting operation first performs sorting filtering of the image with a window size of MxM and m, and then performs sorting filtering of the image with a window size of MxM and n=M. 2 -m sorting filter, remember this process as
[0042] FSort Ω,m (I) = Sort Ω,n (Sort Ω,m (I))
[0043] Here FSort stands for Forward Sort, and the sorting filter here uses a window mode for filtering.
[0044] (3) Backward sorting filter operation
[0045] The backward sorting operation first performs a window Ω with a given window size of MxM and n=M on the image. 2 -m sorting operation, and then the obtained image is sorted and filtered with a window size of MxM and m. This process is recorded as
[0046] BSort Ω,m (I) = Sort Ω,m (Sort Ω,n (I))
[0047] Here BSort stands for Backward Sort, and the sorting filter here uses a window mode for filtering.
[0048] (4) Fusion filtering operation
[0049] Since both the forward sorting filtering operation and the backward sorting filtering operation will perform their respective preferred filtering on the signal, which will cause a certain degree of signal loss, in this step, this embodiment fuses the forward sorting filtering operation and the backward sorting filtering operation to obtain the final image sorting filtering effect.
[0050] Perform a forward filtering operation on image I to obtain image I FSort , subtract the result of forward filtering from image I, the forward filtering error II FSort , given the Gaussian kernel K for the forward filtering error σ Perform convolution filtering and take the absolute value of the filtering result. The process is expressed as follows:
[0051] A FSort =|K σ *(II FSort )|
[0052] Perform a backward filtering operation on image I to obtain image I BSort , using the result of back filtering I BSort Subtract image I, the back-filtering error is II BSort , a Gaussian kernel K is given for the backward filtering error σ Perform convolution filtering and take the absolute value of the filtering result. The process is expressed as
[0053] Δ BSort =|K σ *(I BSort -I)|
[0054] The forward sorting filter image and the backward sorting filter image are weightedly fused by using the weighted fusion method. The calculation formula is:
[0055]
[0056] (5) Multi-scale filtering strategy
[0057] Figure 2 This is a high-level flowchart of an image denoising method based on a sorting method. Figure 2 As shown, in order to adapt to various image denoising tasks in the image signal processor of the camera, this embodiment combines the image denoising method based on sorting filtering proposed in steps (1), (2), (3) and (4) with multi-scale decomposition and reconstruction, so that the method can handle image noise types with more scales and more granularity.
[0058] The multi-scale decomposition here can be performed using traditional Laplace pyramid, wavelet decomposition, second-generation geometric wavelet decomposition, etc., and then starting from the bottom layer, the image denoising operation and reconstruction based on sorting filtering are performed on the low-frequency sub-bands layer by layer until the reconstruction is restored to the original image size.
[0059] The use of multi-scale filtering strategy enables the method to handle large-area color noise denoising tasks, low-frequency brightness noise filtering, etc. Here, the present embodiment calls the image denoising method combined with multi-scale decomposition and reconstruction an advanced form of image denoising based on the sorting method.
[0060] Due to the adoption of the above technical solution, the beneficial effects of the method of this embodiment are:
[0061] 1) When configuring m as When the image denoising based on the sorting method can achieve a filtering effect similar to that of the median filter, the impulse noise can be effectively denoised. This is to use the filter of this embodiment to filter the U channel and the V channel in the YUV image, which can effectively reduce the pseudo color introduced by the image interpolation error, etc.
[0062] 2) When configuring m to When the sorting-based image denoising is performed, the Gaussian noise image can be effectively denoised. The Y channel in YUV is filtered by the method of this embodiment to effectively perform brightness denoising. The U channel and the V channel in YUV are filtered to effectively reduce the color noise of the image (color noise different from the pseudo-color in 1)).
[0063] 3) In configuration m, which is the same as in 2), a sorting-based denoising method based on a multi-scale strategy is used to perform multi-scale denoising on the image. For different image noises such as high frequency, medium frequency, and low frequency, the sorting-based denoising method can be used to perform denoising filtering respectively. The noise that needs to be filtered can be filtered in a targeted and selective manner, and large-particle and large-scale image noise can be effectively processed.
[0064] Those skilled in the art will appreciate that all or part of the steps to implement the above embodiments may be accomplished by hardware, or may be accomplished by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, wherein the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0065] The above is only a preferred embodiment of the present invention. It should be pointed out that ordinary technicians in this technical field can make several improvements and supplements without departing from the principle of the present invention. These improvements and supplements should also be regarded as the scope of protection of the present invention.
Claims
1. An image denoising method based on a sorting method, characterized in that The following steps are involved: S1, input image I; S2, perform a forward sorting filtering operation on the input image I: first perform a sorting filtering operation on the input image I with a filter window size of MxM and a response value of m, and then perform a sorting filtering operation on the obtained image with a filter window size of MxM and a response value of n=M 2 -m sorting and filtering operation, denoted as FSort Ω,m (I) = Sort Ω,n (Sort Ω,m (I)); S3, perform a backward sorting filtering operation on the input image I: first perform a MxM filter window Ω and a response value n=M on the input image I 2 -m sorting filter operation, and then the obtained image is sorted and filtered with a filter window Ω of size MxM and a response value m, which is recorded as BSort Ω,m (I) = Sort Ω,m (Sort Ω,n (I)); S4, performing a simple weighted fusion operation on the input image I by combining the forward sorting filtering operation and the backward sorting filtering operation with the Gaussian convolution operation to obtain a final denoised image.
2. The image denoising method based on the sorting method according to claim 1, characterized in that Step S2 and step S3 sorting filtering operations refer to: for the input image I, the filter window size is MxM, and the i-th filter window of size MxM is Ω i , for Ω i The pixels in the array are sorted from small to large using the merge sort algorithm, and the jth pixel value is output. <M 2 , denoted as 3. The image denoising method based on the sorting method according to claim 2, characterized in that Step S4 includes the following sub-steps: S41, performing a forward filtering operation on the input image I to obtain a forward sorting filtered image I FSort , subtract the forward sorting filter image from the input image I to get the forward filtering error II FSort , given the Gaussian kernel K for the forward filtering error σ Perform convolution filtering and take the absolute value of the filtering result, recorded as Δ FSort =|K σ *(II FSort )|; S42: Perform a backward filtering operation on the input image I to obtain a backward sorting filtered image I BSort , filter image I using backward sorting BSort Subtract the input image I to get the backward filtering error II BSort , a Gaussian kernel K is given for the backward filtering error σ Perform convolution filtering and take the absolute value of the filtering result, recorded as Δ BSort =|K σ *(I BSort -I)|; S43, weighted fusion is performed on the forward sorting filter image and the backward sorting filter image to obtain the final denoised image, denoted as Where B is the weight.
4. The image denoising method based on a sorting method according to claim 3, characterized in that: The input image is decomposed at multiple scales, and then starting from the bottom layer, the image denoising operation and reconstruction based on the sorting filter operation in steps S1 to S4 are performed on the low-frequency sub-bands layer by layer until the original image size is restored.
5. The image denoising method based on a sorting method according to claim 4, characterized in that: The multi-scale decomposition refers to Laplace pyramid, wavelet decomposition, or second-generation geometric wavelet decomposition.
6. The image denoising method based on a sorting method according to claim 3, characterized in that: The sorting filtering operation uses a windowing mode for filtering.
7. An image denoising device based on a sorting method, characterized in that: Used to execute an image denoising method based on a sorting method as described in any one of claims 1 to 6.
