Infrared small target preprocessing method and device based on improved bilateral filtering
Through the improved bilateral filtering method and dark channel dehazing algorithm, the problem of real-time performance and signal-to-noise ratio improvement of infrared weak and small target preprocessing in complex near-earth background is solved, and more efficient background suppression and target enhancement are achieved, which is suitable for infrared applications. Detection and tracking of weak and small targets.
Patent Information
- Application Number
- CN202210319131.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-29
- Publication Date
- 2024-09-03
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing infrared weak and small target image preprocessing methods are difficult to meet the increasing requirements in real-time and local signal-to-noise ratio improvements between targets and background when faced with complex near-Earth backgrounds, especially under the influence of illumination changes and strong clutter. Insufficient effects and real-time performance.
Adopting an improved bilateral filtering method, the high-dimensional bilateral filtering algorithm framework is optimized through clustering and interpolation, using a weighted combination of isotropic Gaussian range kernel and fast convolution, combined with the dark channel defogging algorithm, to improve the real-time performance of the algorithm and the goal and relevance of the algorithm. Local signal-to-noise ratio of the background.
The speed and local signal-to-noise ratio of the algorithm are significantly improved, the processing time is reduced from 2.8911s to 0.6518s, and the local signal-to-noise ratio is increased by about 3dB, which enhances the detection and tracking capabilities of weak and small infrared targets.
Smart Images

Figure CN114723627B
Abstract
Description
Technical Field
[0001] The invention relates to infrared image preprocessing technology, belonging to the field of infrared target detection technology, and in particular to an infrared weak small target preprocessing method and device based on improved bilateral filtering. Background Art
[0002] Infrared imaging systems have the advantages of being unaffected by light, being able to work day and night, and having good concealment. With the development of social economy and science and technology, infrared small target detection technology has been widely used in the fields of infrared guidance, infrared early warning, drone detection, and security monitoring. Therefore, as the key technology of this technology, infrared weak small target image preprocessing technology plays a vital role in the development and progress of this technology.
[0003] The infrared small target image preprocessing technology mainly starts from the two aspects of noise reduction and background suppression. Since the interference of background clutter is the main factor affecting the detection of small targets, the commonly used infrared image preprocessing method is mainly based on background suppression.
[0004] In recent decades, scholars at home and abroad have proposed many infrared dim target image preprocessing algorithms. According to the different signal forms, image preprocessing algorithms can be divided into three categories: time domain, space domain and transform domain algorithms.
[0005] Spatial domain image preprocessing is to perform neighborhood operations in the image space with the help of templates. The template itself is called a spatial domain filter. Each pixel in the processed image is calculated based on the pixel value in the corresponding neighborhood of the input pixel according to the template. The spatial domain filtering method has good real-time performance and is easy to implement in real time with hardware, but the image processing is limited by conditions or the processing effect is not good.
[0006] Time domain image preprocessing effectively suppresses the background by taking advantage of the high frame rate of infrared images and the short-term stability of the image background between frames. The premise of time domain image preprocessing is that the image background does not change much in a short period of time. When the image has a rapidly changing and non-stationary background, the suppression effect of the background is not ideal. At the same time, the time domain method has one more dimension of time data than other methods, so the algorithm has a large amount of calculation and poor real-time effect.
[0007] The transform domain image preprocessing technology first converts the infrared image to the transform domain to obtain a spectrum containing signals of different frequencies, performs filtering operations on the spectrum, suppresses the background by suppressing low-frequency signals, and enhances high-frequency signals to achieve target enhancement, and finally inverse Fourier transforms the processing results to the spatial domain. The transform domain image preprocessing method has a good processing effect, but there are forward and inverse transformations between different domains, so the amount of calculation is large.
[0008] At present, researchers have proposed corresponding target detection methods for different backgrounds. For certain specific backgrounds, some methods have good background suppression effects, but the suppression effects on other complex backgrounds are not good. Research on infrared weak small target detection algorithms under simple backgrounds such as the sky or sea has achieved good results. However, there is currently no good integrated method for small target detection algorithms in near-ground backgrounds. This is mainly because compared with the sky and the sea, the clutter in near-ground scenes is stronger and has greater interference with target detection. Therefore, the processing effect and real-time requirements of infrared image preprocessing algorithms have become higher.
[0009] In summary, the problem with existing research is that traditional infrared weak target image preprocessing methods are mainly for air and sea scenes. The near-ground background is relatively complex, and the presence of illumination changes and strong clutter makes image processing more challenging. Therefore, existing algorithms no longer meet the increasing image quality and real-time requirements. With the increase in algorithm complexity, in order to facilitate subsequent target detection and tracking, existing algorithms need to improve the local signal-to-noise ratio between the target and the background, and correspondingly improve the real-time performance of the algorithm. Summary of the invention
[0010] The main technical problem to be solved by the present invention is to provide an infrared weak small target preprocessing method with high real-time performance and the ability to improve the local signal-to-noise ratio between the target and the background, so as to meet the requirements of target detection and tracking.
[0011] The purpose of the present invention can be achieved by the following technical solutions:
[0012] According to a first aspect of the present invention, the present invention provides an infrared dim small target preprocessing method based on improved bilateral filtering, comprising the following steps:
[0013] S1, acquiring an infrared image, and comparing the background and noise parts in the infrared image to the foggy parts in a foggy image, darkening the foggy parts by an image defogging algorithm, and obtaining a dark image with background suppression;
[0014] S2. Improve the bilateral filtering algorithm, including:
[0015] Optimize the high-dimensional bilateral filtering algorithm framework through clustering and interpolation methods;
[0016] Compute an approximation of the kernel within the range by shifting and clustering;
[0017] Substituting the approximation into the optimized framework, and using a weighted combination of fast convolution to approximate high-dimensional filtering to accelerate algorithm operation;
[0018] The spatial domain kernel and the range kernel of the bilateral filtering algorithm are set to be isotropic Gaussian range kernels, and an improved bilateral filtering algorithm is obtained;
[0019] The background suppressed dark image is processed by the improved bilateral filtering algorithm to obtain a dark image with enhanced local signal-to-noise ratio between the target and the background.
[0020] Preferably, step S1 comprises:
[0021] S11. Infrared image modeling: The infrared image model is analogous to the atmospheric scattering model, and the infrared image processing process is analogous to the degradation process of foggy images. Its mathematical model is Formula 1:
[0022] I(y)=J(y)t(y)+A(1-t(y))
[0023] Where y is the coordinate of the pixel point; I(y) is the observed image with fog, J(y) is the ideal image without fog, that is, the dark image with background suppression, A is the atmospheric light intensity, and t(y) is the atmospheric light transmittance;
[0024] S12. Dark image hypothesis: Based on the dark primary color prior theory of color images, the background and noise parts in the infrared image are analogized to the foggy parts in the foggy image. It is assumed that in the result image, except for the large area of sky, there are always some pixels with gray values close to zero in a certain local area of other parts. The mathematical expression is Formula 2:
[0025] J dark =min{J(y),y∈M}→0
[0026] Where M is the selected local area, J dark The dark primary color of the dark image for background suppression;
[0027] S13, transmittance estimation: According to the infrared image mathematical model, perform minimum value filtering to obtain formula 3:
[0028]
[0029] Further processing based on the dark channel hypothesis gives the preliminary estimation formula for the atmospheric light transmittance t(y) as Formula 4:
[0030]
[0031] In actual processing, considering that the dark primary color meets the grayscale lower limit of not less than 0, that is, J dark ≥0, the calculated result of transmittance t(y) is too small, so a correction factor λ is introduced into Formula 4 to make 0<λ<1, and the final estimated formula of transmittance t(y) is Formula 5:
[0032]
[0033] S14, dark image calculation: Substitute the final estimated formula of transmittance into the infrared image mathematical model to obtain the expression of the background suppressed dark image J(y) as Formula 6:
[0034]
[0035] Preferably, in the expression formula 6 of the background suppressed dark image J(y) in step S14, the estimation method of the atmospheric light intensity A includes:
[0036] Use the estimation method in the dark channel defogging algorithm: first take J dark The first 0.1% of pixels with the largest grayscale value are selected, and the maximum grayscale value of these pixels in the original image I(y) is taken as the atmospheric light intensity A.
[0037] Preferably, step S2 comprises:
[0038] S21. Framework optimization: Optimize the high-dimensional bilateral filtering algorithm framework through clustering and interpolation quantization methods, including:
[0039] Let the input data be f:Ω→[0,R] n ,in is the spatial domain, [0,R] n is the range, d and n are the spatial domain and the dimension of the range of f respectively; let p is the guidance image used to control the filtering, p(ι) is the spatial neighborhood of pixel ι, extracted from the patch around ι, and ρ is the dimension of the range space of p; output g:Ω→[0,R] n Given by formula 7:
[0040]
[0041] Select a window W in the spatial neighborhood of pixel ι and perform the aggregation in the above formula on window W, that is, W = [-S, S] d , and j represents any pixel in the window W, that is, j∈W, where S is the window length, is a univariate Gaussian kernel, is the spatial domain kernel, is the range kernel, and the spatial domain kernel w(j) is used to measure the spatial proximity of pixel ι-j to pixel ι. It is used to measure the pixel proximity between the neighborhood p(ι-j) and the neighborhood p(ι);
[0042] S22. Approximate value calculation: including:
[0043] S221, cluster the range space θ of the guidance image p, and the cluster center is μ k ;
[0044] where θ = {p(ι):ι∈Ω} is the partition range space, which can be divided into clusters c1,....,c K , where K represents the number of clusters, and μ is set k c k The centroid of , 1≤k≤K, the variable x is an element in the neighborhood p(ι-j), that is, x∈{p(ι-j):j∈W}, for each pixel ι, it satisfies Formula 8:
[0045]
[0046] S223, establish matrix G and calculate its pseudo-inverse
[0047] Solve the minimum value of both sides of formula 8, and fit the set Λ to obtain formula 9, where Λ={μ1,....,μ K}:
[0048]
[0049] Construct the matrix according to the left side of formula eight Pixel Construct the matrix according to the right side of formula eight Formula 9 can be simplified into Formula 10 using matrix representation:
[0050]
[0051] S224, the solution of formula 10 is in It is the pseudo-inverse of G, that is, the approximate value of the kernel within the range is obtained;
[0052] S23, weighted combination of fast convolution approximates high-dimensional filtering:
[0053] Replace the range kernel in Equation 7 with the approximate value calculated by S22, and for 1≤k≤K, define the numerator in Equation 7 as The denominator is defined as See formula 11 and 12 for details:
[0054]
[0055]
[0056] And construct the matrix u k (ι) = b k (ι)f(ι), then formula 11 and 12 are expressed in the form of convolution, such as formula 13 and 14:
[0057]
[0058]
[0059] Then Formula 7 in S21 is expressed as Formula 15:
[0060]
[0061] S24, setting the filter kernel: using the isotropic Gaussian distance kernel to perform bilateral filtering, that is, obtaining an improved bilateral filtering algorithm;
[0062]
[0063] w(ι)=exp(-||ι|| 2 ) / 2σ 2 s
[0064] The standard deviation σ r Used to control the effective width of the kernel within the range, The input is the difference n = p(ι)-p(ι-j), where the standard deviation σ s Used to control the effective width of the spatial domain kernel, the filter width of the bilateral filter is s = 3σ s ; The background suppressed dark image is processed by the improved bilateral filtering algorithm to obtain a dark image with enhanced local signal-to-noise ratio of the target and the background.
[0065] Preferably, after step S2, the method further includes: calculating evaluation indicators to perform performance evaluation on the improved bilateral filtering effect, the evaluation indicators including: peak signal-to-noise ratio, structural similarity and local signal-to-noise ratio.
[0066] According to another aspect of the present invention, the present invention provides an infrared dim small target preprocessing device based on improved bilateral filtering, comprising:
[0067] A background suppression module is used to obtain an infrared image, and compare the background and noise parts in the infrared image to the foggy parts in the foggy image, and darken the foggy parts through an image defogging algorithm to obtain a dark image with background suppression;
[0068] An improved bilateral filtering module is used to improve the bilateral filtering algorithm, and the background suppressed dark image is processed by the improved bilateral filtering algorithm to obtain a dark image with enhanced local signal-to-noise ratio of the target and the background;
[0069] The improved bilateral filtering module is specifically used for:
[0070] Optimize the high-dimensional bilateral filtering algorithm framework through clustering and interpolation methods;
[0071] Compute an approximation of the kernel within the range by shifting and clustering;
[0072] Substituting the approximation into the optimized framework, and using a weighted combination of fast convolution to approximate high-dimensional filtering to accelerate algorithm operation;
[0073] Set the spatial kernel and range kernel of the bilateral filter to be isotropic Gaussian range kernel.
[0074] Preferably, it also includes: a performance evaluation module, which is used to calculate evaluation indicators to perform performance evaluation on the improved bilateral filtering effect, and the evaluation indicators include: peak signal-to-noise ratio, structural similarity and local signal-to-noise ratio.
[0075] The beneficial effects brought by the technical solution provided by the present invention are:
[0076] 1. Improve algorithm speed
[0077] The weighted combination of fast convolution is used to approximate high-dimensional filtering, and the weighted and shifted Gaussian is used to locally approximate the kernel. The above two points can improve the operation speed. The time to process a 256*256 size image is reduced to 0.6518s.
[0078] 2. Improve local signal-to-noise ratio
[0079] The denoising is performed by bilateral filtering and dark channel dehazing algorithm to suppress the background and improve the local signal-to-noise ratio between the target and the background. The local signal-to-noise ratio between the target and the background is improved by about 3dB. BRIEF DESCRIPTION OF THE DRAWINGS
[0080] The present invention will be further described below with reference to the accompanying drawings and embodiments, in which:
[0081] Figure 1 It is a flow chart of the infrared dim small target preprocessing method based on improved bilateral filtering of the present invention;
[0082] Figure 2 It is a comparison diagram of the two-dimensional grayscale histogram of the image processed by the dark channel defogging algorithm and the original image; Figure 2 (a) is the two-dimensional grayscale histogram of the original infrared image; Figure 2 (b) is the two-dimensional grayscale histogram of the image processed by the dark channel dehazing algorithm;
[0083] Figure 3 The image results of each stage of the infrared dim small target preprocessing method based on improved bilateral filtering and the image processing results of related algorithms of the present invention are shown in FIG. Figure 3 (a) is the original infrared image; Figure 3 (b) is the image processed by the dark channel dehazing algorithm (DCP); Figure 3(c) is the image after dark channel dehazing and original bilateral filter (BF) processing; Figure 3 (d) is the image after dark channel dehazing and improved bilateral filtering (IBF) processing;
[0084] Figure 4 It is a structural diagram of the infrared weak small target preprocessing device based on improved bilateral filtering of the present invention. DETAILED DESCRIPTION
[0085] In order to have a clearer understanding of the technical features, purposes and effects of the present invention, specific embodiments of the present invention are now described in detail with reference to the accompanying drawings.
[0086] The experiment was carried out under Windows 10 operating system (Intel(R) Core(TM) using Matlab2020a software. The image data of this embodiment comes from the infrared image weak aircraft target detection and tracking dataset under ground / air background. A single target image with a size of 256*256 pixels and a ground-air cross background data20 was selected for the experiment.
[0087] The evaluation indicators adopted include calculating the peak signal to noise ratio (PSNR), structural similarity index (SSIM), and local signal noise ratio (LSNR).
[0088] The peak signal-to-noise ratio (PSNR) represents the ratio of the maximum signal power to the noise power that affects its representation accuracy. In the field of imaging, it is usually used as an objective standard for measuring image distortion or noise level. The calculation formula is as follows:
[0089]
[0090] The MSE is the mean energy of the difference between the real image and the noisy image, and the difference between the two is the noise. The image pixel values are stored in a quantized manner, and bits are the number of bits used to store each pixel.
[0091] Structural similarity (SSIM) determines whether the radiation distribution of the result image is consistent with that of the original image by comparing the images. The calculation formula is as follows:
[0092]
[0093] Among them, F represents the original image, F' is the predicted image, and E F and E F'Represent the mean of the corresponding image, σ F and σ F' They represent the covariance of the corresponding images, ε1 and ε2 are constants, usually 0.01;
[0094] The signal-to-noise ratio that describes a small target in an image is called the local signal-to-noise ratio (LSNR) of the image, and the calculation formula is as follows:
[0095] LSNR = 10log 10 (E r -E B ) / σ B
[0096] Where E r is the mean value of the target area; E B is the mean value of the background area; σ B is the standard deviation of the background area.
[0097] refer to Figure 1 , Figure 1 This is a flow chart of the infrared dim small target preprocessing method based on improved bilateral filtering of the present invention, and the detailed steps are as follows:
[0098] S1. Background suppression: Obtain an infrared image, and compare the background and noise in the infrared image to the foggy part in a foggy image. Darken the foggy part through an image defogging algorithm to obtain a dark image with background suppression. The specific process can be divided into four steps: infrared image modeling, dark image assumption, transmittance estimation, and dark image calculation.
[0099] S11. Infrared image modeling: The infrared image model is analogous to the atmospheric scattering model, and the infrared image processing process is analogous to the degradation process of foggy images. The mathematical model is:
[0100] I(y)=J(y)t(y)+A(1-t(y)) (1)
[0101] Where y is the coordinate of the pixel point; I(y) is the observed image with fog, J(y) is the ideal image without fog, that is, the dark image with background suppression, A is the atmospheric light intensity, and t(y) is the atmospheric light transmittance;
[0102] S12. Dark image hypothesis: According to the dark primary color prior theory of color images, the background and noise parts in the infrared image are analogized to the foggy parts in the foggy image. It is assumed that in the result image, except for the large area of sky, there are always some pixels with gray values close to zero in a certain local area of other parts. The mathematical expression is:
[0103] J dark =min{J(y),y∈M}→0 (2)
[0104] Where J(y) is the ideal image without fog, which is called the background suppressed dark image; M is the selected local area, J dark is the dark primary color of the dark image;
[0105] S13, transmittance estimation: According to the infrared image mathematical model, perform minimum value filtering to obtain:
[0106]
[0107] Further processing based on the dark channel hypothesis gives the preliminary estimation formula of the atmospheric light transmittance t(y):
[0108]
[0109] In actual processing, considering that the dark primary color meets the grayscale lower limit of not less than 0, that is, J dark ≥0, the calculated result of transmittance t(y) is too small, so a correction factor λ is introduced into Formula 4 to make 0<λ<1, and the final estimated formula of transmittance t(y) is:
[0110]
[0111] S14, dark image calculation: Substitute the final estimated formula of transmittance into the infrared image mathematical model to obtain the expression of the dark image J(y):
[0112]
[0113] In the expression (6) of the dark image J(y) in step S14, the estimation method of the atmospheric light intensity A includes:
[0114] Use the estimation method in the dark channel defogging algorithm: first take J dark The first 0.1% of pixels with the largest grayscale value are selected, and the maximum grayscale value of these pixels in the original image I(y) is taken as the atmospheric light intensity A.
[0115] The effect of background suppression in step S1 is as follows Figure 2 (a) and Figure 2 As shown in (b), from the objective index analysis, we can see that the grayscale value of the original image is distributed in the interval [0.2, 1], with a focus on the interval [0.25, 0.65], while the grayscale value of the dehazed image is distributed in a wider range, covering the interval [0, 1], with a focus on the interval [0, 0.3]. The lower the grayscale value, the darker the image, and the pixel values of the background are generally reduced, which shows that the dark channel dehazing effectively suppresses the background.
[0116] like Figure 3As shown in (b), from a subjective point of view, the image clarity is improved after dark image processing, the land background is significantly suppressed, and the local contrast of infrared weak targets is enhanced.
[0117] S2, improved bilateral filtering: The algorithm first optimizes the framework by clustering and interpolation, then calculates the approximate value of the kernel within the range by shifting and clustering, then substitutes the approximate value into the obtained optimized framework, and uses the weighted combination of fast convolution to approximate high-dimensional filtering to accelerate the algorithm operation, and finally sets the spatial domain kernel and the kernel within the range of the bilateral filter to the isotropic Gaussian range kernel. The algorithm is used to process the image processed by S1 background suppression to obtain a dark image with enhanced local signal-to-noise ratio of the target and background.
[0118] Step S2 includes:
[0119] S21. Framework optimization: Optimize the high-dimensional bilateral filtering algorithm framework through clustering and interpolation quantization methods, including:
[0120] Let the input data be f:Ω→[0,R] n ,in is the spatial domain, [0,R] n is the range, d and n are the spatial domain and the dimension of the range of f respectively; let p is the guidance image used to control the filtering, p(ι) is the spatial neighborhood of pixel ι, extracted from the patch around ι, and ρ is the dimension of the range space of p; output g:Ω→[0,R] n is given by:
[0121]
[0122] Select a window W in the spatial neighborhood of pixel ι and perform the aggregation in the above formula on window W, that is, W = [-S, S] d , and j represents any pixel in the window W, that is, j∈W, where S is the window length, is a univariate Gaussian kernel, is the spatial domain kernel, is the range kernel, and the spatial domain kernel w(j) is used to measure the spatial proximity of pixel ι-j to pixel ι. It is used to measure the pixel proximity between the neighborhood p(ι-j) and the neighborhood p(ι);
[0123] S22. Approximate value calculation: including:
[0124] S221, cluster the range space θ of the guidance image p, and the cluster center is μ k ;
[0125] where θ = {p(ι):ι∈Ω} is the partition range space, which can be divided into clusters c1,....,c K , where K represents the number of clusters, and μ is set k c k The centroid of , 1≤k≤K, the variable x is an element in the neighborhood p(ι-j), that is, x∈{p(ι-j):j∈W}, for each pixel ι, it satisfies:
[0126]
[0127] S223, establish matrix G and calculate its pseudo-inverse
[0128] Solve the minimum value on both sides of formula (8), and fit the set Λ to obtain formula (9), where Λ={μ1,....,μ K}:
[0129]
[0130] According to the left side of formula (8), the matrix is constructed Pixel According to the right side of formula (8), the matrix is constructed Formula (9) can be simplified using matrix representation as follows:
[0131]
[0132] S224, the solution of formula (10) is in It is the pseudo-inverse of G, that is, the approximate value of the kernel within the range is obtained;
[0133] S23, weighted combination of fast convolution approximates high-dimensional filtering:
[0134] Replace the range kernel in formula (7) with the approximate value calculated by S22, and for 1≤k≤K, define the numerator in formula (7) as The denominator is defined as See formula (11) and (12) for details:
[0135]
[0136]
[0137] And construct the matrix u k (ι) = b k (ι)f(ι), then formulas (11) and (12) are expressed in the form of convolution:
[0138]
[0139]
[0140] Then the formula (7) in S21 is expressed as:
[0141]
[0142] S24, setting the filter kernel: using the isotropic Gaussian distance kernel to perform bilateral filtering, that is, obtaining an improved bilateral filtering algorithm;
[0143]
[0144] w(ι)=exp(-||ι|| 2 ) / 2σ 2 s
[0145] The standard deviation σ r Used to control the effective width of the kernel within the range, The input is the difference n = p(ι)-p(ι-j), where the standard deviation σ s Used to control the effective width of the spatial domain kernel, the filter width of the bilateral filter is s = 3σ s ; The background suppressed dark image is processed by the improved bilateral filtering algorithm to obtain a dark image with enhanced local signal-to-noise ratio of the target and the background.
[0146] This embodiment conducted two sets of comparative experiments. Figure 3 (b) and Figure 3 (c), the comparison results are shown in Table 1:
[0147] Table 1 Comparison of image processing results
[0148]
[0149] From Table 1, we can see that the image quality of the two is comparable, but in comparison Figure 3 The LSNR index of (c) is better, indicating that the use of the bilateral filtering algorithm can further suppress the background noise and enhance the weak infrared targets to a certain extent.
[0150] contrast Figure 3 (c) and Figure 3(d), PSNR and SSIM indicators have been significantly improved, which means that the invention method has significantly improved the background suppression ability on the basis of ensuring image quality, and the algorithm speed has been qualitatively improved. The time to process a 256*256 grayscale image has been reduced from 2.8911s to 0.6518s, which will greatly facilitate the subsequent detection and tracking of infrared weak targets. On the other hand, the local signal-to-noise ratio value of the improved bilateral filtering algorithm is higher, which shows that the improved filtering algorithm has a stronger ability to suppress background noise and enhance weak targets.
[0151] Please refer to Figure 4 This embodiment also provides an infrared small target preprocessing device based on improved bilateral filtering, including:
[0152] Background suppression module 1, used for acquiring an infrared image, and comparing the background and noise parts in the infrared image to the foggy parts in a foggy image, darkening the foggy parts through an image defogging algorithm, and obtaining a dark image with background suppression;
[0153] An improved bilateral filtering module 2 is used to improve the bilateral filtering algorithm, and process the background suppressed dark image by the improved bilateral filtering algorithm to obtain a dark image with enhanced local signal-to-noise ratio of the target and the background;
[0154] The improved bilateral filtering module 2 is specifically used for:
[0155] Optimize the high-dimensional bilateral filtering algorithm framework through clustering and interpolation methods;
[0156] Compute an approximation of the kernel within the range by shifting and clustering;
[0157] Substituting the approximation into the optimized framework, and using a weighted combination of fast convolution to approximate high-dimensional filtering to accelerate algorithm operation;
[0158] The spatial domain kernel and range kernel of the bilateral filtering algorithm are set to be isotropic Gaussian range kernel.
[0159] As an optional implementation, the device further includes: a performance evaluation module 3, which is used to calculate evaluation indicators to perform performance evaluation on the improved bilateral filtering effect, and the evaluation indicators include: peak signal-to-noise ratio, structural similarity and local signal-to-noise ratio.
[0160] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.
[0161] The serial numbers of the embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments. In a unit claim that lists several means, several of these means may be embodied by the same hardware item. The use of the words first, second, and third, etc. does not indicate any order and these words may be interpreted as identifiers.
[0162] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A method for preprocessing infrared small targets based on improved bilateral filtering, characterized in that: The following steps are involved: S1, acquiring an infrared image, and comparing the background and noise parts in the infrared image to the foggy parts in a foggy image, darkening the foggy parts by an image defogging algorithm, and obtaining a dark image with background suppression; S2. Improve the bilateral filtering algorithm, including: The high-dimensional bilateral filtering algorithm framework is optimized through clustering and interpolation methods; the approximate value of the kernel within the calculation range is calculated through shifting and clustering; Substituting the approximation into the optimized framework, and using a weighted combination of fast convolution to approximate high-dimensional filtering to accelerate algorithm operation; The spatial domain kernel and the range kernel of the bilateral filtering algorithm are set to be isotropic Gaussian range kernels, and an improved bilateral filtering algorithm is obtained; Processing the background suppressed dark image by the improved bilateral filtering algorithm to obtain a dark image with enhanced local signal-to-noise ratio between the target and the background; Step S1 includes: S11. Infrared image modeling: The infrared image model is analogous to the atmospheric scattering model, and the infrared image processing process is analogous to the degradation process of foggy images. Its mathematical model is Formula 1: I(y) = J(y)(y) + A(1-t(y)) Where y is the coordinate of the pixel point; I(y) is the observed image with fog, J(y) is the ideal image without fog, that is, the dark image with background suppression, A is the atmospheric light intensity, and t(y) is the atmospheric light transmittance; S12. Dark image hypothesis: Based on the dark primary color prior theory of color images, the background and noise parts in the infrared image are analogized to the foggy parts in the foggy image. It is assumed that in the result image, except for the large area of sky, there are always some pixels with gray values close to zero in a certain local area of other parts. The mathematical expression is Formula 2: I dark =min{J(y),y∈M}→0 Where M is the selected local area, J dark The dark primary color of the dark image for background suppression; S13, transmittance estimation: According to the infrared image mathematical model, perform minimum value filtering to obtain formula 3: Further processing based on the dark channel hypothesis gives the preliminary estimation formula for the atmospheric light transmittance t(y) as Formula 4: In actual processing, considering that the dark primary color meets the grayscale lower limit of not less than 0, that is, J dark ≥0, the calculated result of transmittance t(y) is too small, so the correction factor λ is introduced into Formula 4 to make 0<λ<1, and the final estimated formula of transmittance t(y) is Formula 5: S14, dark image calculation: Substitute the final estimated formula of transmittance into the infrared image mathematical model to obtain the expression of the background suppressed dark image J(y) as Formula 6: Step S2 includes: S21. Framework optimization: Optimize the high-dimensional bilateral filtering algorithm framework through clustering and interpolation quantization methods, including: Let the input data be f:Ω→[0,R] n ,in is the spatial domain, [0, R] n is the range, d and n are the spatial domain and the dimension of the range of f respectively; let p is the guidance image used to control the filtering, p(ι) is the spatial neighborhood of pixel ι, extracted from the patch around ι, and ρ is the dimension of the range space of p; output g: Ω→[0, R] n Given by formula 7: Select a window W in the spatial neighborhood of pixel ι and perform the aggregation in the above formula on window w, that is, W = [-S, S] d , and j represents any pixel in the window w, that is, j∈W, where S is the window length, is a univariate Gaussian kernel, is the spatial domain kernel, is the range kernel, and the spatial domain kernel w(j) is used to measure the spatial proximity of pixel ι-j to pixel ι. It is used to measure the pixel proximity between the neighborhood p(ι-j) and the neighborhood p(ι); S22. Approximate value calculation: including: S221, cluster the range space θ of the guidance image p, and the cluster center is μ k ; where θ = {p(l): ι∈Ω} is the partition range space, which can be divided into clusters c1, ..., c K , where K represents the number of clusters, and μ is set k c K The centroid of , 1≤k≤K, the variable x is an element in the neighborhood p(ι-j), that is, p(lj)x∈{p(ι-j):j∈w}, for each pixel ι, it satisfies Formula 8: S223, establish matrix G and calculate its pseudo-inverse Solve the minimum value of both sides of formula 8, and fit the set Λ to obtain formula 9, where Λ={μ1,....,μ K }: Construct the matrix according to the left side of formula eight Pixel Construct the matrix according to the right side of formula eight Formula 9 can be simplified into Formula 10 using matrix representation: S224, the solution of formula 10 is in That is, we get the approximate value of the kernel within the range; S23, fast convolution weighted combination approximate high-dimensional filtering: replace the range kernel in formula 7 with the approximate value calculated by S22, and for 1≤k≤K, define the numerator in formula 7 as The denominator is defined as See formula 11 and 12 for details: And construct the matrix u k (ι) = b k (ι)f(ι), then formula 11 and 12 are expressed in the form of convolution, such as formula 13 and 14: Then Formula 7 in S21 is expressed as Formula 15: S24, setting the filter kernel: using the isotropic Gaussian distance kernel to perform bilateral filtering, that is, obtaining an improved bilateral filtering algorithm; w(i)=exp(-||i|| 2 ) / 2σ 2 s The standard deviation σ r Used to control the effective width of the kernel within the range, The input is the difference n = p(ι)-p(ι-j), where the standard deviation σ r Used to control the effective width of the spatial domain kernel, the filter width of the bilateral filter is s = 3σ s ; The background suppressed dark image is processed by the improved bilateral filtering algorithm to obtain a dark image with enhanced local signal-to-noise ratio of the target and the background.
2. The infrared small target preprocessing method based on improved bilateral filtering as claimed in claim 1, characterized in that: In the expression formula 6 of the background suppressed dark image J(y) in step S14, the estimation method of the atmospheric light intensity A includes: using the estimation method in the dark channel defogging algorithm: first take J dark The first 0.1% of pixels with the largest grayscale value are selected, and the maximum grayscale value of these pixels in the original image I(y) is taken as the atmospheric light intensity A.
3. The infrared small target preprocessing method based on improved bilateral filtering as claimed in claim 1, characterized in that: After step S2, the method further includes: calculating evaluation indicators to evaluate the performance of the improved bilateral filtering effect, the evaluation indicators including: peak signal-to-noise ratio, structural similarity and local signal-to-noise ratio.
4. An infrared small target preprocessing device based on improved bilateral filtering, characterized in that: include: A background suppression module is used to obtain an infrared image, and compare the background and noise parts in the infrared image to the foggy parts in the foggy image, and darken the foggy parts through an image defogging algorithm to obtain a dark image with background suppression; An improved bilateral filtering module is used to improve the bilateral filtering algorithm, and the background suppressed dark image is processed by the improved bilateral filtering algorithm to obtain a dark image with enhanced local signal-to-noise ratio of the target and the background; The improved bilateral filtering module is specifically used for: optimizing the high-dimensional bilateral filtering algorithm framework by clustering and interpolation methods; calculating the approximate value of the kernel within the range by shifting and clustering; substituting the approximate value into the optimized framework, and using the weighted combination of fast convolution to approximate the high-dimensional filtering to accelerate the algorithm operation; setting the spatial domain kernel and the kernel within the range of the bilateral filtering algorithm to be isotropic Gaussian range kernel; Step S1 includes: S11. Infrared image modeling: The infrared image model is analogous to the atmospheric scattering model, and the infrared image processing process is analogous to the degradation process of foggy images. Its mathematical model is Formula 1: I(y)=J(y)t(y)+A(1-t(y) Where y is the coordinate of the pixel point; I(y) is the observed image with fog, J(y) is the ideal image without fog, that is, the dark image with background suppression, A is the atmospheric light intensity, and t(y) is the atmospheric light transmittance; S12. Dark image hypothesis: Based on the dark primary color prior theory of color images, the background and noise parts in the infrared image are analogized to the foggy parts in the foggy image. It is assumed that in the result image, except for the large area of sky, there are always some pixels with gray values close to zero in a certain local area of other parts. The mathematical expression is Formula 2: I dark =min{J(y),y∈M}→0 Where M is the selected local area, J dark The dark primary color of the dark image for background suppression; S13, transmittance estimation: According to the infrared image mathematical model, perform minimum value filtering to obtain formula 3: Further processing based on the dark channel hypothesis gives the preliminary estimation formula for the atmospheric light transmittance t(y) as Formula 4: In actual processing, considering that the dark primary color meets the grayscale lower limit of not less than 0, that is, J dark ≥0, the calculated result of transmittance t(y) is too small, so a correction factor λ is introduced into Formula 4 to make 0<λ<1, and the final estimated formula of transmittance t(y) is Formula 5: S14, dark image calculation: Substitute the final estimated formula of transmittance into the infrared image mathematical model to obtain the expression of the background suppressed dark image J(y) as Formula 6: Step S2 includes: S21. Framework optimization: Optimize the high-dimensional bilateral filtering algorithm framework through clustering and interpolation quantization methods, including: Let the input data be f:Ω→[0,R] n ,in is the spatial domain, [0, R] n is the range, d and n are the spatial domain and the dimension of the range of f respectively; let p is the guidance image used to control the filtering, p(ι) is the spatial neighborhood of pixel ι, extracted from the patch around ι, and ρ is the dimension of the range space of p; output g: Ω→[0, R] n Given by formula 7: Select a window W in the spatial neighborhood of pixel ι and perform the aggregation in the above formula on window w, that is, W = [-S, S] d , and j represents any pixel in the window w, that is, j∈W, where S is the window length, is a univariate Gaussian kernel, is the spatial domain kernel, is the range kernel, and the spatial domain kernel w(j) is used to measure the spatial proximity of pixel ι-j to pixel ι. It is used to measure the pixel proximity between the neighborhood p(ij) and the neighborhood p(ι); S22. Approximate value calculation: including: S221, cluster the range space θ of the guidance image p, and the cluster center is μ k ; where θ = {p(ι): ι∈Ω} is the partition range space, which can be divided into clusters c1, ..., c K , where K represents the number of clusters, and μ is set k c K The centroid of , 1≤k≤K, the variable x is an element in the neighborhood p(ι-j), that is, p(ι-j)x∈{p(ι-j):j∈W}, for each pixel ι, it satisfies Formula 8: S223, establish matrix G and calculate its pseudo-inverse Solve the minimum value of both sides of formula 8, and fit the set Λ to obtain formula 9, where Λ={μ1,....,μ K }: Construct the matrix according to the left side of formula eight Pixel Construct the matrix according to the right side of formula eight Formula 9 can be simplified into Formula 10 using matrix representation: S224, the solution of formula 10 is in That is, we get the approximate value of the kernel within the range; S23, fast convolution weighted combination approximate high-dimensional filtering: replace the range kernel in formula 7 with the approximate value calculated by S22, and for 1≤k≤K, define the numerator in formula 7 as The denominator is defined as See formula 11 and 12 for details: And construct the matrix u k (ι) = b k (ι)f(ι), then formula 11 and 12 are expressed in the form of convolution, such as formula 13 and 14: Then Formula 7 in S21 is expressed as Formula 15: S24, setting the filter kernel: using the isotropic Gaussian distance kernel to perform bilateral filtering, that is, obtaining an improved bilateral filtering algorithm; w(i)=exp(-||t|| 2 ) / 2σ 2 s The standard deviation σ r Used to control the effective width of the kernel within the range, The input is the difference n = p(ι)-p(ι-j), where the standard deviation σ r Used to control the effective width of the spatial domain kernel, the filter width of the bilateral filter is s = 3σ s ; The background suppressed dark image is processed by the improved bilateral filtering algorithm to obtain a dark image with enhanced local signal-to-noise ratio of the target and the background.
5. The infrared small target preprocessing device based on improved bilateral filtering as claimed in claim 4, characterized in that: Also includes: The performance evaluation module is used to calculate evaluation indicators to evaluate the performance of the improved bilateral filtering effect. The evaluation indicators include: peak signal-to-noise ratio, structural similarity and local signal-to-noise ratio.
