A road monitoring image denoising method and device
Through the wavelet frame decomposition and threshold processing of the wavelet frame filter bank and Daubechies4 scale function, the problem of missing low-frequency components in the image denoising process in the existing technology is solved, achieving more efficient image representation and reconstruction, and improving the monitoring system image quality and reliability.
Patent Information
- Application Number
- CN202410882663.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-07-03
AI Technical Summary
Existing wavelet transform methods easily lead to the loss of low-frequency components during the image denoising process, limiting the image representation and reconstruction capabilities, and the noise is difficult to effectively process, affecting the reliability and accuracy of the monitoring system.
The wavelet frame filter group is used to perform multi-level wavelet frame decomposition on the road monitoring image. The wavelet frame function is constructed through the Daubechies4 scale function and the wavelet function. The low-pass and high-pass filters are combined for decomposition. The wavelet frame coefficients are calculated and thresholded. Finally, Inverse transformation to remove noise and enhance image representation and reconstruction capabilities.
Effectively remove noise, enhance image representation and reconstruction capabilities, improve the image quality of the monitoring system, ensure clearer and more accurate image transmission, and improve the efficiency and accuracy of the monitoring system.
Smart Images

Figure CN118409729B
Abstract
Description
Technical Field
[0001] The present invention relates to an image processing method and device, and in particular to an image denoising method and device. Background Art
[0002] In road monitoring, image quality is crucial, as it directly affects the effectiveness and reliability of the monitoring system. A monitoring system with good image quality can provide clearer and more accurate images, which facilitates better identification and tracking of targets, thereby improving the efficiency and accuracy of the monitoring system. A monitoring system with poor image quality will cause problems such as blurred monitoring images, pixel distortion, color distortion, etc., thus affecting the reliability and accuracy of the monitoring system.
[0003] A common image quality problem is image noise, which is random brightness or color changes in an image, usually caused by factors such as light, camera, and environment. Noise can cause problems such as distortion of surveillance images, difficulty in identifying targets, and false alarms, thereby reducing the reliability and accuracy of the surveillance system.
[0004] The basic idea of the image denoising method based on wavelet transform is to decompose the noisy image into components of different frequencies through wavelet transform, and then process these components to achieve the purpose of removing noise. Among them, wavelet transform is a mathematical transformation method. It has the ability of multi-scale analysis and can decompose the image into a set of wavelet basis functions of different scales and frequencies, so as to extract the local features and details of the image. Wavelet transform usually uses a binary decomposition-based method for decomposition. Although the amount of calculation is small, it is easy to cause the loss of low-frequency components, thus affecting the restoration effect. In addition, wavelet transform uses orthogonal wavelet basis functions for decomposition. This basis function has invariance and translation invariance, but lacks overcompleteness, which limits the image representation and reconstruction capabilities. Summary of the invention
[0005] Purpose of the invention: In view of the above-mentioned prior art, a road monitoring image denoising method and device are proposed, which can effectively process the noise area and enhance the image representation and reconstruction capabilities.
[0006] Technical solution: A road monitoring image denoising method, comprising: performing wavelet frame decomposition on the road monitoring image through a wavelet frame filter group, converting the image into a wavelet frame domain, and obtaining wavelet frames of different frequencies and time resolutions through multi-level decomposition, that is, decomposing the image into multiple sub-bands; calculating the wavelet frame coefficients through the inner product of the sub-band and the wavelet frame function, and setting the wavelet frame coefficients with absolute values lower than a preset threshold to 0; finally, inverse transforming the wavelet frame after threshold processing to obtain repaired sub-bands, and then splicing the sub-bands to obtain the denoised image.
[0007] Furthermore, the wavelet frame filter bank includes a low-pass filter h 0( z ) and high pass filter g 0( z ) two parts, the primary coefficients of the filter are expressed as h 0( n )and g 0( n ) and satisfy: ,in, n Represents the order of the filter; for the k The corresponding filter coefficients are: ,in, h k ( n )and g k ( n ) represent the k The coefficients of the low-pass filter and high-pass filter used for the decomposition of the first-order wavelet frame, m is the coefficient of the unit impulse response of the filter, i is an imaginary unit, Z represents the domain of integers;
[0008] In each level of wavelet frame decomposition, the low-frequency signal is filtered through a low-pass filter to obtain the approximate signal of the next level; the high-frequency signal is filtered through a high-pass filter to obtain the detail signal of the next level; and wavelet frames with different frequencies and time resolutions are obtained through multi-level decomposition.
[0009] Furthermore, the Daubechies4 scaling function and the Daubechies4 wavelet function are used as basis functions to construct the wavelet frame function; the Daubechies4 scaling function is recorded as , Daubechies4 wavelet function is recorded as ψ ( t ), the function expression is: ,in, h k and g k Represent the filter coefficients of the scaling function and the wavelet function respectively; N Indicates the order, k is the index of the wavelet coefficient;
[0010] Shift and expand scaling and wavelet functions: ,in, j represents the translation and expansion parameters, Z represents the domain of integers; is the scale function after translation and expansion, ψj,k ( t ) is the wavelet function for translation and expansion, and the function after translation and expansion operations is the wavelet frame function.
[0011] Furthermore, the inner product of the subband and the wavelet frame function is used to calculate the first k The wavelet frame coefficients corresponding to the wavelet frame decomposition , , the specific formula is: ,in, f ( t ) represents the subband function.
[0012] Furthermore, the inner product calculation is implemented by a convolution operation, which specifically includes: discretizing the wavelet frame function, that is, and ψ j,k ( t ) are discretized to obtain , ψ j,k ( n ), and then calculate the wavelet frame coefficients by convolution. The convolution formula is: ,in, L is the length of the wavelet frame function, f ( n ) represents the discretized subband function.
[0013] Further, the inverse transformation is expressed as: ,in, f’ ( t ) represents the repaired subband.
[0014] A road monitoring image denoising device comprises a memory, a processor and a computer program stored in the memory and executable on the processor. The processor executes the program to implement the road monitoring image denoising method. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 is the function graph of Daubechies4 scaling function;
[0016] Figure 2 is the function image of Daubechies4 wavelet function;
[0017] Figure 3 is the function image of Daubechies4 wavelet frame function;
[0018] Figure 4 Generate sub-band images for wavelet frame decomposition;
[0019] Figure 5 Schematic diagram of threshold processing process of some wavelet frame coefficients when the threshold is 20;
[0020] Figure 6 Inverse transform the restored subband wavelet frame to obtain the restored image;
[0021] Figure 7 It is a general flow chart of the present invention. DETAILED DESCRIPTION
[0022] The present invention will be further explained below in conjunction with the accompanying drawings.
[0023] like Figure 7 As shown, a road monitoring image denoising method, the specific steps are as follows:
[0024] Step 1: Select a set of basis functions to construct the wavelet frame function.
[0025] In the present invention, the wavelet frame function is obtained by translation and expansion of a set of scaling functions (Scaling Function) and wavelet functions (WaveletFunction).
[0026] Specifically, this embodiment uses Daubechies4 scaling function and wavelet function as wavelet basis functions to construct wavelet frame function. The function images of Daubechies4 scaling function and wavelet function are as follows: Figure 1 , Figure 2 As shown, the Daubechies4 scaling function is recorded as , Daubechies4 wavelet function is recorded as ψ ( t ), the function expression is as follows:
[0027]
[0028] in, h k and g k Represent the filter coefficients of the scaling function and the wavelet function respectively; N Indicates the order, k is the index of the wavelet coefficient.
[0029] The scale function and wavelet function are translated and expanded as shown in the following formula:
[0030]
[0031] in, j represents the translation and expansion parameters, √2 j Can ensure the energy normalization of wavelet frame function; Z represents the domain of integers; is the scale function after translation and expansion, ψ j,k ( t ) is the wavelet function for translation and expansion. The function after translation and expansion is the wavelet frame function. The function graph of the wavelet frame function is as follows: Figure 3 shown.
[0032] Step 2: Design a wavelet frame filter bank to perform wavelet frame decomposition on the damaged road monitoring image, convert the image into the wavelet frame domain, and obtain wavelet frames of different frequencies and time resolutions through multi-level decomposition, that is, decomposing the image into multiple sub-bands. The number of decomposition levels can be selected according to the size and complexity of the image.
[0033] The wavelet frame filter bank is a key part of the wavelet frame decomposition process. The wavelet frame filter bank consists of a low-pass filter. h 0( z ) and high pass filter g 0( z ) are composed of two parts, which are used to convert the original image into the wavelet frame domain and decompose it into wavelet frames of different frequencies.
[0034] Specifically, the filter coefficients of the wavelet frame filter define the frequency response and phase response of the filter, which are used to perform low-pass and high-pass filtering on the image. h 0( z ) and high pass filter g 0( z ), their frequency response functions are H 0( z )and G 0( z ), their filter coefficients are expressed as:
[0035]
[0036] in, n is an integer representing the order of the filter. k The corresponding filter coefficients are shown as follows:
[0037]
[0038] in, h k ( n )and g k ( n ) represent the k The coefficients of the low-pass filter and high-pass filter used for the decomposition of the first-order wavelet frame, mis the coefficient of the unit impulse response of the filter, i is the imaginary unit and Z represents the integer domain.
[0039] In each level of wavelet frame decomposition, the low-frequency signal is filtered through a low-pass filter to obtain the approximate signal of the next level; the high-frequency signal is filtered through a high-pass filter to obtain the detail signal of the next level; wavelet frames with different frequencies and time resolutions are obtained through multi-level decomposition, that is, the image is decomposed into multiple sub-bands through a filter group.
[0040] This embodiment uses 3-layer wavelet frame decomposition, such as Figure 4 As shown in the figure, a noisy image is input and each sub-band is obtained after three-level wavelet frame decomposition. The horizontal and vertical coordinates in the figure represent the pixel coordinates in the wavelet domain.
[0041] Step 3: Calculate the wavelet frame coefficients.
[0042] The wavelet frame coefficient is used to represent the decomposition coefficient of the signal based on the wavelet frame function. The wavelet frame coefficient is calculated by the inner product of the subband and the wavelet frame function. The specific formula is as follows:
[0043]
[0044] in, f ( t ) represents the subband function.
[0045] The calculation process is efficiently implemented through convolution operations, which includes: discretizing the wavelet frame function, that is, and ψ j,k ( t ) are discretized to obtain , ψ j,k ( n ), and then calculate the wavelet frame coefficients by convolution. Suppose the length of the wavelet frame function is L , then the convolution formula is as follows:
[0046]
[0047] in, f ( n ) represents the discretized subband function.
[0048] Step 4: Analyze the wavelet frame coefficients and perform threshold processing.
[0049] The image noise repair process is to perform threshold processing on the wavelet frame coefficients to reduce the influence of noise and other interference components. Specifically, the root mean square value of the signal is calculated according to the distribution of the wavelet coefficients, that is, the square root of the mean of the square of the signal. A common method is to set the threshold τ The threshold is set to a certain multiple of the RMS value. In this embodiment, 2 is selected. Then, the absolute value of the wavelet frame coefficient that is less than the threshold is set to 0. This can remove smaller noise components and retain larger signal components. The threshold processing is expressed in the following mathematical formula:
[0050]
[0051] in, and Represents the wavelet coefficients after threshold processing.
[0052] like Figure 5 This is the processing flow of the wavelet coefficients when the threshold is 20. It can be seen that the coefficients with an absolute value less than or equal to 20 are set to 0, while the other coefficients remain unchanged.
[0053] Step 5: Inverse transform the wavelet frame after threshold processing to obtain the repaired sub-bands, and then splice the sub-bands to obtain the repaired image. The inverse transform formula of the wavelet frame transform is as follows:
[0054]
[0055] in, f’ ( t ) represents the restored subband, the first summation term represents the contribution of the scale coefficient, and the second summation term represents the contribution of the wavelet coefficient.
[0056] like Figure 6 It represents the restored image obtained by inverse wavelet frame transform of the restored subband in this embodiment, and the horizontal and vertical coordinates in the figure represent the pixel coordinates in the wavelet domain.
[0057] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A road monitoring image denoising method, characterized in that: include: The road monitoring image is decomposed into wavelet frames by using a wavelet frame filter group, the image is converted into the wavelet frame domain, and wavelet frames with different frequencies and time resolutions are obtained through multi-level decomposition, that is, the image is decomposed into multiple sub-bands; the wavelet frame coefficients are calculated by the inner product of the sub-band and the wavelet frame function, and the wavelet frame coefficients with absolute values lower than the preset threshold are set to 0; finally, the wavelet frame after threshold processing is inversely transformed to obtain the repaired sub-bands, and then the sub-bands are spliced to obtain the denoised image; The wavelet frame filter bank includes a low-pass filter h 0( z ) and high pass filter g 0( z ) two parts, the primary coefficients of the filter are expressed as h 0( n )and g 0( n ) and satisfy: ,in, n Represents the order of the filter; for the k The corresponding filter coefficients are: ,in, h k ( n )and g k ( n ) represent the k The coefficients of the low-pass filter and high-pass filter used for the decomposition of the first-order wavelet frame, m is the coefficient of the unit impulse response of the filter, i is an imaginary unit, Z represents the domain of integers; In each level of wavelet frame decomposition, the low-frequency signal is filtered through a low-pass filter to obtain the approximate signal of the next level; the high-frequency signal is filtered through a high-pass filter to obtain the detail signal of the next level; through multi-level decomposition, wavelet frames with different frequencies and time resolutions are obtained; The Daubechies4 scaling function and the Daubechies4 wavelet function are used as basis functions to construct the wavelet frame function; the Daubechies4 scaling function is denoted as , Daubechies4 wavelet function is recorded as ψ ( t ), the function expression is: ,in, h k and g k Represent the filter coefficients of the scaling function and the wavelet function respectively; N Indicates the order, k is the index of the wavelet coefficients, t Indicates time; Shift and expand scaling and wavelet functions: ,in, j represents the translation and expansion parameters, Z represents the domain of integers; is the scale function after translation and expansion, ψ j,k ( t ) is the wavelet function for translation and expansion, and the function after translation and expansion operations is the wavelet frame function.
2. The road monitoring image denoising method according to claim 1, characterized in that: The inner product of the subband and the wavelet frame function is used to calculate the k The wavelet frame coefficients corresponding to the wavelet frame decomposition , , the specific formula is: ,in, f ( t ) represents the subband function.
3. The road monitoring image denoising method according to claim 2, characterized in that: The inner product calculation is implemented by convolution operation, specifically including: discretizing the wavelet frame function, that is, and ψ j,k ( t ) are discretized to obtain , ψ j,k ( n ), and then calculate the wavelet frame coefficients by convolution. The convolution formula is: ,in, L is the length of the wavelet frame function, f ( n ) represents the discretized subband function.
4. The road monitoring image denoising method according to claim 3, characterized in that: The inverse transform is expressed as: ,in, f’ ( t ) represents the repaired subband.
5. A road monitoring image denoising device, characterized in that: The invention comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the road monitoring image denoising method as claimed in any one of claims 1 to 4.
