Infrared small target adaptive enhancement detection method, device, equipment and medium
By employing a three-layer closed-loop architecture—frequency domain energy entropy hierarchical sensing, genetic algorithm adaptive optimization, and Gaussian-independent diffusion decoupling—the problem of high accuracy and low false alarm rate in traditional infrared small target detection in complex scenarios is solved. This achieves accurate enhancement and low false alarm rate detection of infrared small targets, adapting to diverse infrared scenarios.
Patent Information
- Application Number
- CN202611181146.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-05
- Publication Date
- 2026-11-20
AI Technical Summary
Traditional infrared small target detection technology struggles to achieve a balance between high accuracy and low false alarm rate in complex scenarios. Existing algorithms lack scene adaptability, and frequency domain processing is independent of the target detection module, making it impossible to dynamically optimize and enhance parameters, resulting in rigid detection performance.
A three-layer closed-loop architecture is adopted, consisting of frequency domain energy entropy hierarchical sensing, genetic algorithm adaptive optimization, and Gaussian independent diffusion decoupling. Through frequency domain local energy entropy partitioning, multi-scale Gaussian kernel orthogonalization, and genetic algorithm optimization, accurate enhancement and low false alarm detection of small infrared targets are achieved.
It achieves precise enhancement of weak infrared targets in complex clutter backgrounds, significantly improves the signal-to-clutter ratio and reduces the false alarm rate, adapts to varied infrared scenarios, and achieves dynamic optimization of detection performance.
Smart Images

Figure CN123141201A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to an infrared small target adaptive enhancement detection method, device, equipment, and medium, belonging to the fields of infrared image processing, weak target enhancement, and machine vision technology. Background Technology
[0002] Traditional infrared small target detection technology has significant limitations in complex scenarios, making it difficult to meet the engineering application requirements of high precision and low false alarm rate. On the one hand, traditional spatial filtering methods, such as Top-Hat transform and morphological filtering, rely solely on spatial grayscale information and cannot uncover the frequency domain feature differences between clutter and real small targets. This results in a persistently high false alarm rate against strong clutter backgrounds such as clouds, waves, and ground textures. Conventional frequency domain filtering often uses a uniform threshold for global processing, making it difficult to distinguish the frequency band differences between low-frequency background, mid-frequency clutter, and high-frequency small targets. This easily leads to the problem of excessive suppression of weak targets or excessive residual clutter noise. On the other hand, traditional Gaussian diffusion filtering often uses highly correlated multi-scale Gaussian kernels. The energy coupling and superposition effect of different scale filtering components causes clutter energy to continuously increase with iteration, while the gain improvement of small targets is limited, resulting in insufficient anti-clutter performance. Furthermore, the hyperparameters involved in existing algorithms, such as frequency domain layering thresholds, Gaussian kernel variance, and iteration count, rely entirely on manual tuning, resulting in weak scene generalization ability and difficulty adapting to varying conditions such as sea, air, land, clouds, fog, rain, and snow. Furthermore, the frequency domain processing, enhancement filtering, and target detection modules in existing technologies are independent of each other, lacking a closed-loop optimization mechanism. They cannot dynamically optimize enhancement parameters based on detection performance, making it difficult to achieve the optimal balance between detection accuracy and false alarm rate. Summary of the Invention
[0003] In view of this, the present invention provides an adaptive enhancement detection method, device, equipment and medium for infrared small targets. The embodiments of the present invention achieve accurate enhancement and low false alarm detection of infrared small targets in complex clutter backgrounds through a three-layer closed-loop architecture of frequency domain energy entropy hierarchical sensing, genetic algorithm adaptive optimization and Gaussian independent diffusion decoupling enhancement, while taking into account scene adaptability and detection accuracy.
[0004] The first objective of this invention is to provide an adaptive enhancement detection method for small infrared targets.
[0005] The second objective of this invention is to provide an infrared small target adaptive enhancement detection device.
[0006] A third objective of this invention is to provide a computer device.
[0007] A fourth objective of this invention is to provide a computer-readable storage medium.
[0008] The first objective of this invention can be achieved by adopting the following technical solution: An adaptive enhancement detection method for small infrared targets, the method comprising: S1: Acquire the infrared image to be detected, and perform grayscale normalization processing on the infrared image to obtain a grayscale image; S2: Perform frequency domain transformation on the grayscale image to obtain a frequency domain coefficient matrix, calculate the local energy entropy in the frequency domain to generate an entropy heatmap, divide the entropy heatmap based on the layer threshold, and generate a low-frequency background layer mask, a mid-frequency clutter layer mask, and a high-frequency small target layer mask. Multiply the frequency domain coefficient matrix with the three layers of masks respectively to obtain the low-frequency background component, the mid-frequency clutter component, and the high-frequency small target component. S3: Construct a multi-scale basic Gaussian kernel, orthogonalize the multi-scale basic Gaussian kernel to obtain three sets of Gaussian filter kernels that are linearly independent in pairs, convolve the three sets of Gaussian filter kernels with the corresponding components, superimpose the high-frequency target gain coefficient on the high-frequency small target component, multiply the three-layer diffusion results by the corresponding frequency domain mask, and superimpose them to obtain the enhanced frequency domain matrix. Perform inverse frequency domain transformation on the enhanced frequency domain matrix to obtain the spatial domain enhanced image; S4: Perform image processing on the spatial enhancement image to calculate performance data. If the detection performance does not meet the preset index, send the performance data to the genetic algorithm module for iteration to optimize the parameters.
[0009] Further, step S2: The grayscale image is transformed in the frequency domain to obtain a frequency domain coefficient matrix; the local energy entropy in the frequency domain is calculated to generate an entropy heatmap; the entropy heatmap is divided based on a layering threshold to generate a low-frequency background layer mask, a mid-frequency clutter layer mask, and a high-frequency small target layer mask, including: S21: Perform a two-dimensional discrete cosine transform on the grayscale image to obtain the frequency domain coefficient matrix; S22: Use a sliding window of a preset size to traverse each frequency point of the frequency domain coefficient matrix, extract local frequency domain blocks, calculate the energy distribution probability of the local frequency domain blocks, and then calculate the local energy entropy. After the traversal is completed, generate an entropy heat map. S23: Set a stratification threshold based on the mean and standard deviation of the entropy heatmap, wherein the stratification threshold includes a first threshold and a second threshold; S24: Mark the regions in the entropy heatmap with values less than the first threshold as low-frequency background layer masks, mark the regions in the entropy heatmap with values between the first threshold and the second threshold as mid-frequency clutter layer masks, and mark the regions in the entropy heatmap with values greater than or equal to the second threshold as high-frequency small target layer masks.
[0010] Further, step S3: Construct a multi-scale fundamental Gaussian kernel, and orthogonalize the multi-scale fundamental Gaussian kernel to obtain three sets of Gaussian filter kernels that are pairwise linearly independent, including: S31: Set three sets of variance parameters at different scales and generate the corresponding two-dimensional basic Gaussian kernel; S32: Flatten the two-dimensional basic Gaussian kernel into a one-dimensional vector, and process the three one-dimensional vectors using the orthogonalization method to obtain three orthogonal vectors that are mutually linearly independent. S33: Restore the three orthogonal vectors to two-dimensional filter kernels and normalize them to obtain three sets of Gaussian filter kernels G. low G mid G high These correspond to the low-frequency background component, the mid-frequency clutter component, and the high-frequency small target component, respectively.
[0011] Further, step S3: convolving the three sets of Gaussian filter kernels with their corresponding components, and superimposing gain coefficients on the high-frequency small target components, including: S34: Apply the low-frequency background component to the Gaussian filter kernel G low Convolution processing is performed to achieve a weakly diffused, smooth, and stable background; S35: The intermediate frequency clutter component is compared with the Gaussian filter kernel G. mid Convolution processing is performed to achieve strong diffusion and suppress texture clutter; S36: Apply the high-frequency small target component to the Gaussian filter kernel G high Convolution processing is performed, and a high-frequency target gain coefficient 'a' is superimposed to directionally amplify isolated weak targets.
[0012] Furthermore, in step S4, the performance data includes the signal-to-noise ratio (SCR) and the number of false alarms (FAR). The fitness function of the genetic algorithm module is Fit = Mean(SCR) - μ × Mean(FAR), where μ represents the false alarm penalty weight, Mean(SCR) represents the average signal-to-noise ratio, which is equal to the sum of the signal-to-noise ratios of all images in the training set divided by the total number of images, and Mean(FAR) represents the average number of false alarms, which is equal to the sum of the number of false alarms of all images in the training set divided by the total number of images.
[0013] Furthermore, in step S4, the optimization parameter vector of the genetic algorithm module is X=[T1,T2,σ]. low ,σ mid ,σ high [,a], where T1 and T2 are the first and second thresholds of the stratification threshold, σ low σ mid σ high Three pairs of Gaussian filter kernels G are respectively linearly independent. low Gmid G high The variance of , where a is the high-frequency target gain coefficient.
[0014] Furthermore, in step S4, candidate targets are extracted based on a threshold segmentation algorithm or a target detection algorithm.
[0015] The second objective of this invention can be achieved by adopting the following technical solution: An infrared small target adaptive enhancement detection device, the device comprising: The first module is used to acquire the infrared image to be detected, and to perform grayscale normalization processing on the infrared image to obtain a grayscale image. The second module is used to perform frequency domain transformation on the grayscale image to obtain a frequency domain coefficient matrix, calculate the local energy entropy in the frequency domain to generate an entropy heatmap, divide the entropy heatmap based on the layer threshold, generate a low-frequency background layer mask, a mid-frequency clutter layer mask and a high-frequency small target layer mask, and multiply the frequency domain coefficient matrix with the three layers of masks respectively to obtain the low-frequency background component, the mid-frequency clutter component and the high-frequency small target component; The third module is used to construct a multi-scale basic Gaussian kernel, orthogonalize the multi-scale basic Gaussian kernel to obtain three sets of Gaussian filter kernels that are linearly independent in pairs, and convolve the three sets of Gaussian filter kernels with the corresponding components respectively. After superimposing the high-frequency target gain coefficient on the high-frequency small target component, the three-layer diffusion results are multiplied by the corresponding frequency domain mask and superimposed to obtain the enhanced frequency domain matrix. The enhanced frequency domain matrix is then subjected to inverse frequency domain transformation to obtain the spatial domain enhanced image. The fourth module is used to perform image processing on the spatial enhancement image, calculate performance data, and if the detection performance does not meet the preset index, the performance data is sent to the genetic algorithm module for iteration to optimize the parameters.
[0016] The third objective of this invention can be achieved by adopting the following technical solution: A computer device includes a processor and a memory for storing a processor-executable program, wherein when the processor executes the program stored in the memory, it implements the above-described adaptive enhancement detection method for small infrared targets.
[0017] The fourth objective of this invention can be achieved by adopting the following technical solution: A computer-readable storage medium storing a program that, when executed by a processor, implements the above-described adaptive enhancement detection method for small infrared targets.
[0018] The present invention has the following advantages over the prior art: (1) Frequency domain energy entropy adaptive hierarchical mechanism: Based on the three-level frequency band division method of local energy entropy in the frequency domain, the low-frequency background, mid-frequency clutter and high-frequency small targets of infrared images are accurately decoupled, solving the problem of loss of weak targets caused by indiscriminate filtering in traditional frequency domain processing.
[0019] (2) Core innovation of Gaussian independent orthogonal diffusion: Construct a multi-scale linearly independent Gaussian filter kernel to eliminate the energy coupling effect of filter components at different scales, block the path of clutter energy iterative accumulation, directionally enhance isolated high-frequency small targets, significantly improve the signal-to-clutter ratio and reduce the false alarm rate.
[0020] (3) Adaptive optimization driven by detection performance: The fitness function is constructed with signal-to-noise ratio and false alarm rate as joint optimization objectives, so that parameter optimization directly matches the detection performance requirements, adapts to various complex infrared scenarios such as sea, air, land, clouds and fog, and completely gets rid of the dependence on manual parameter adjustment.
[0021] (4) Frequency Domain-Genetic Algorithm-Diff (Freq-GA-Diff) Full-Link Closed-Loop Collaborative Architecture: Integrating four major modules: frequency domain sensing layering, genetic algorithm optimization, Gaussian-independent diffusion enhancement and detection feedback, to achieve full-link closed-loop optimization, overcome the performance rigidity defects caused by the independent operation of each module in the existing technology, and achieve dynamic optimization of detection performance.
[0022] (5) Layered differentiated control strategy: Differentiated processing is implemented for different frequency band components to simultaneously achieve the triple effects of background smoothing, clutter suppression and small target enhancement, thus solving the technical pain point of traditional algorithms that fail to address all aspects. Attached Figure Description
[0023] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the structures shown in these drawings without creative effort.
[0024] Figure 1 This is a flowchart of the infrared small target adaptive enhancement detection method of Embodiment 1 of the present invention.
[0025] Figure 2 These are effect diagrams for each stage of Embodiment 1 of the present invention.
[0026] Figure 3 The images shown are the original infrared image and the Freq-GA-Diff orthogonal unrelated Gaussian diffusion enhanced image from Embodiment 1 of the present invention.
[0027] Figure 4 This is a diagram showing the effect of conventional correlated Gaussian diffusion in Embodiment 1 of the present invention. Detailed Implementation
[0028] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention.
[0029] Example 1: like Figure 1 As shown, this embodiment provides an adaptive enhancement detection method for small infrared targets, applied to a Freq-GA-Diff (Frequency-Genetic Algorithm-Diffusion) architecture. This architecture integrates four core modules: a frequency domain sensing hierarchical module Freq, a genetic parameter adaptive optimization module GA, a Gaussian-independent diffusion enhancement module Diff, and a detection closed-loop feedback module. Overall closed-loop iterative optimization is achieved through the linkage between these modules. The method includes the following steps: S1: Acquire the infrared image to be detected, and perform grayscale normalization processing on the infrared image to obtain a grayscale image.
[0030] In this step, the infrared weak target dataset is read, and the infrared image to be detected (height H, width W) is converted into a grayscale image.
[0031] S2: Perform frequency domain transformation on the grayscale image to obtain a frequency domain coefficient matrix, calculate the local energy entropy in the frequency domain to generate an entropy heatmap, divide the entropy heatmap based on the layer threshold, and generate a low-frequency background layer mask, a mid-frequency clutter layer mask, and a high-frequency small target layer mask. Multiply the frequency domain coefficient matrix with the three layers of masks respectively to obtain the low-frequency background component, the mid-frequency clutter component, and the high-frequency small target component.
[0032] Further, step S2: The grayscale image is transformed in the frequency domain to obtain a frequency domain coefficient matrix; the local energy entropy in the frequency domain is calculated to generate an entropy heatmap; the entropy heatmap is divided based on a layering threshold to generate a low-frequency background layer mask, a mid-frequency clutter layer mask, and a high-frequency small target layer mask, including: S21: Perform a two-dimensional discrete cosine transform on the grayscale image to obtain the frequency domain coefficient matrix.
[0033] In this step, the infrared image is mapped to the frequency domain using a two-dimensional discrete cosine transform. Low-frequency coefficients are concentrated in the upper left corner of the matrix, corresponding to a large area of slowly changing background; high-frequency coefficients are distributed in the edge regions, corresponding to textures and small targets.
[0034] The transformation formula is as follows:
[0035] S22: Use a sliding window of a preset size to traverse each frequency point of the frequency domain coefficient matrix, extract local frequency domain blocks, calculate the energy distribution probability of the local frequency domain blocks, and then calculate the local energy entropy. After the traversal is completed, generate an entropy heat map.
[0036] In this step, a 3×3 sliding window is used to extract local frequency domain blocks, and the local energy entropy is calculated to characterize the region's complexity. The higher the entropy value, the richer the texture of the corresponding region, which may represent ocean waves, cloud clutter, or pixel-level small objects.
[0037] The formula for calculating local energy entropy is as follows:
[0038] The formula for calculating the energy distribution probability is as follows:
[0039] S23: Set a stratification threshold based on the mean and standard deviation of the entropy heatmap, wherein the stratification threshold includes a first threshold and a second threshold.
[0040] In this step, the first threshold T1 < the second threshold T2, satisfying T1=μH-k×σH, T2=μH+k×σH, where μH is the mean of the entropy heatmap, σH is the standard deviation of the entropy heatmap, and k is the adjustment coefficient.
[0041] S24: Mark the regions in the entropy heatmap with values less than the first threshold as low-frequency background layer masks, mark the regions in the entropy heatmap with values between the first threshold and the second threshold as mid-frequency clutter layer masks, and mark the regions in the entropy heatmap with values greater than or equal to the second threshold as high-frequency small target layer masks.
[0042] This step is as follows:
[0043] Among them, M low M mid M high H represents the low-frequency background layer mask, the mid-frequency clutter layer mask, and the high-frequency small target layer mask, respectively. map This represents an entropy heatmap.
[0044] It is worth noting that this embodiment converts the image to the frequency domain using Discrete Cosine Transform (DCT) and calculates the frequency domain energy entropy for each frequency point to quantify the characteristic attributes of each frequency point. Based on the dual entropy threshold, the frequency domain is adaptively divided into a low-frequency stable background layer, a mid-frequency texture clutter layer, and a high-frequency weak target layer, generating a frequency domain layered mask, thereby achieving accurate frequency domain differentiation of the background, clutter, and target.
[0045] S3: Construct a multi-scale basic Gaussian kernel, orthogonalize the multi-scale basic Gaussian kernel to obtain three sets of Gaussian filter kernels that are pairwise linearly independent, convolve the three sets of Gaussian filter kernels with the corresponding components, superimpose the high-frequency target gain coefficient on the high-frequency small target component, multiply the three-layer diffusion results by the corresponding frequency domain mask, and superimpose them to obtain the enhanced frequency domain matrix. Perform inverse frequency domain transformation on the enhanced frequency domain matrix to obtain the spatial domain enhanced image.
[0046] Further, step S3: Construct a multi-scale fundamental Gaussian kernel, and orthogonalize the multi-scale fundamental Gaussian kernel to obtain three sets of Gaussian filter kernels that are pairwise linearly independent, including: S31: Set three sets of variance parameters at different scales to generate the corresponding two-dimensional basic Gaussian kernel.
[0047] In this step, basic parameters are set, a coordinate grid is generated, the Gaussian kernel size is set to 5×5, and a corresponding two-dimensional coordinate grid is generated based on the variance parameter; the coordinates are substituted into the two-dimensional Gaussian function to generate three sets of standard multi-scale basic Gaussian kernels.
[0048] S32: Flatten the two-dimensional basic Gaussian kernel into a one-dimensional vector (matrix), and process the three one-dimensional vectors using the orthogonalization method to obtain three orthogonal vectors that are mutually linearly independent.
[0049] Alternatively, the orthogonalization method is the Gram-Schmidt orthogonalization method.
[0050] S33: Restore the three orthogonal vectors to two-dimensional filter kernels and normalize them to obtain three sets of Gaussian filter kernels G. low G mid G high These correspond to the low-frequency background component, the mid-frequency clutter component, and the high-frequency small target component, respectively.
[0051] Further, step S3: convolving the three sets of Gaussian filter kernels with their corresponding components, and superimposing gain coefficients on the high-frequency small target components, including: S34: Apply the low-frequency background component to the Gaussian filter kernel G low Convolution processing is performed to achieve a weakly diffused, smooth, and stable background.
[0052] In this step, the result after convolution is called the first layer diffusion result. The first layer diffusion result is a weak diffusion smoothing of a large area of stable cloud or sea surface.
[0053] S35: The intermediate frequency clutter component is compared with the Gaussian filter kernel G. mid Convolution processing is performed to achieve strong diffusion and suppress texture clutter.
[0054] In this step, the result after convolution is called the second-layer diffusion result. The second-layer diffusion result strongly diffuses and smooths out the clutter of ocean waves or cloud patterns.
[0055] S36: Apply the high-frequency small target component to the Gaussian filter kernel G high Convolution processing is performed, and a high-frequency target gain coefficient 'a' is superimposed to directionally amplify isolated weak targets.
[0056] In this step, the result after the coefficients are amplified is called the third-layer diffusion result.
[0057] It is worth noting that traditional multi-scale Gaussian kernels only change the variance parameter, resulting in highly similar kernel grayscale distribution trends and linear correlation between vectors. When multiple layers of filtering are superimposed, clutter energy continues to couple and amplify. This embodiment abandons the traditional correlated Gaussian kernel and maps three sets of basic Gaussian kernels at different scales to pairwise linearly independent Gaussian diffusion kernels, eliminating the energy coupling and superposition of multi-scale clutter. This embodiment combines frequency-domain layered masking to perform differentiated enhancement: the low-frequency layer smooths the background through weak diffusion, the mid-frequency layer suppresses clutter textures through strong decorrelation diffusion, and the high-frequency layer directionally amplifies the energy of weak small targets by superimposing gain coefficients, preserving the enhancement effect of isolated high-frequency small targets. Finally, the spatially enhanced image is restored through inverse DCT transformation.
[0058] S4: Perform image processing on the spatial enhancement image to calculate performance data. If the detection performance does not meet the preset index, send the performance data to the genetic algorithm module for iteration to optimize the parameters.
[0059] Furthermore, in step S4, the performance data includes the signal-to-noise ratio (SCR) and the number of false alarms (FAR). The fitness function of the genetic algorithm module is Fit = Mean(SCR) - μ × Mean(FAR), where μ represents the false alarm penalty weight, Mean(SCR) represents the average signal-to-noise ratio, which is equal to the sum of the signal-to-noise ratios of all images in the training set divided by the total number of images, and Mean(FAR) represents the average number of false alarms, which is equal to the sum of the number of false alarms of all images in the training set divided by the total number of images.
[0060] Furthermore, in step S4, the optimization parameter vector of the genetic algorithm module is X=[T1,T2,σ]. low ,σ mid ,σ high[,a], where T1 and T2 are the first and second thresholds of the stratification threshold, σ low σ mid σ high Three pairs of Gaussian filter kernels G are respectively linearly independent. low G mid G high The variance of , where a is the high-frequency target gain coefficient.
[0061] Furthermore, in step S4, candidate targets are extracted based on a threshold segmentation algorithm or a target detection algorithm.
[0062] In this step, the CFAR constant false alarm rate algorithm is used to detect small targets in the enhanced image, and the current signal-to-noise ratio and false alarm rate are calculated in real time. If the detection performance does not meet the preset target, the performance data is sent back to the genetic algorithm module to iterate and optimize the parameters again, forming an end-to-end closed-loop optimization; after the target is met, the final infrared small target detection result is output.
[0063] In one embodiment, the implementation environment is as follows: the hardware uses an Intel i7 processor and 16GB of memory; the software uses the MATLAB R2022b image processing platform.
[0064] In one embodiment, the dataset uses the publicly available SIRST infrared weak target dataset, which includes grayscale infrared images of the sea surface, clouds, and the sea-sky boundary, and is divided into a training subset and a test subset in a 7:3 ratio.
[0065] In one embodiment, the core parameters are fixed within a certain range: the optimized parameter vector is X=[T1,T2,σ]. low ,σ mid ,σ high [,a]; Boundary values lb=[0.05,0.30,0.2,1.0,2.0,1.0], ub=[0.30,0.90,1.2,3.0,4.5,3.0]; Gaussian kernel size 5×5; GA population size 20, maximum iterations 30 generations, crossover probability 0.7, mutation probability 0.1, false alarm penalty coefficient μ=8.
[0066] In some embodiments, the infrared small target adaptive enhancement detection method includes the following steps: S101: Solve for optimal parameters offline.
[0067] S1011: Read all infrared grayscale images in the training set and perform grayscale normalization processing.
[0068] In this step, grayscale normalization normalizes the image pixel values to a floating-point range of [0,1].
[0069] S1012: Construct a real-number encoded genetic algorithm, and convert the 6-dimensional parameter vector [T1,T2,σ] into a genetic algorithm. low ,σ mid ,σ high ,a] as an individual in the population.
[0070] S1013: Execute the fitness calculation process for a single individual: S10131: Perform a two-dimensional discrete cosine transform on the input image; calculate the local energy entropy point by point using a 3×3 sliding window; generate a layered threshold based on the entropy mean and standard deviation; divide the low-frequency background layer, mid-frequency clutter layer, and high-frequency small target layer; generate a three-layer frequency domain mask and separate the corresponding frequency domain components.
[0071] S10132: Based on the variance parameter σ low ,σ mid ,σ high Three sets of basic Gaussian kernels are generated; the kernel vectors are processed using the Gram-Schmidt orthogonalization method to obtain pairwise linearly independent filter kernels; differential convolution diffusion is performed on the three-layer frequency domain components, where the high-frequency components are superimposed with the gain coefficient a; after merging the components, inverse DCT transformation is performed to obtain the spatial domain enhanced image.
[0072] S10133: Use Otsu adaptive threshold segmentation to enhance the spatial domain image and count the signal-to-noise ratio and the number of false alarms for a single image.
[0073] S10134: Traverse all images in the training set and construct the fitness function Fit=Mean(SCR)-μ×Mean(FAR) using the average SCR and average FAR.
[0074] S1014: Iterate through roulette wheel selection, real crossover, and Gaussian mutation operations, using an elitist retention strategy to maintain the globally optimal individual. After 30 generations of convergence, output and save the globally optimal parameter X. opt .
[0075] S102: Online batch testing.
[0076] S1021: Read any infrared grayscale image from the test set and perform grayscale normalization processing.
[0077] S1022: Call the globally optimal parameter X opt The first threshold T1 and the second threshold T2 are used to perform frequency domain energy entropy stratification processing steps.
[0078] like Figure 2 The figure shows the effect at each stage when the entropy thresholds are T1 = 0.216 and T2 = 0.782.
[0079] S1023: Based on globally optimal parameter X optThe variance parameter σ in low ,σ mid ,σ high The gain coefficient 'a' is used to perform the spatial domain enhancement image generation step, resulting in the following: Figure 3 The image shown.
[0080] To verify the linear independence of the Gaussian filter kernel constructed in this invention, the cross-correlation coefficients of the orthogonal Gaussian kernels obtained after Gram-Schmidt orthogonalization were calculated. According to... Figure 3 The calculated correlation coefficient matrices show the following correlation coefficients: low-frequency to mid-frequency kernel correlation coefficient is 0.122421, low-frequency to high-frequency kernel correlation coefficient is 0.122421, and mid-frequency to high-frequency kernel correlation coefficient is -0.075715. Analysis shows that the absolute values of the correlation coefficients among the three orthogonalized Gaussian kernels are all far below 0.2, approaching 0, proving that the three filter kernels are approximately linearly independent, effectively eliminating energy coupling in multi-scale filtering. For comparison, as shown... Figure 4 The image shows the effect of processing using a traditional correlated Gaussian kernel. The correlation coefficients are: 0.8520 for the low-frequency to mid-frequency kernel, 0.8158 for the low-frequency to high-frequency kernel, and 0.9972 for the mid-frequency to high-frequency kernel. The correlation coefficients of the traditional kernels are all close to 1, which proves that there is strong coupling between different scales, causing clutter energy to continuously accumulate and amplify during iteration.
[0081] S1024: Extract candidate targets through threshold segmentation and calculate SCR and FAR indices.
[0082] S1025: Statistically analyze the average signal-to-noise ratio and average number of false alarms on the test set, and output the enhancement effect map and quantitative evaluation index.
[0083] Example 2: This embodiment provides an infrared small target adaptive enhancement detection device, comprising: a first module for acquiring an infrared image to be detected, performing grayscale normalization on the infrared image to obtain a grayscale image; a second module for performing frequency domain transformation on the grayscale image to obtain a frequency domain coefficient matrix, calculating the frequency domain local energy entropy to generate an entropy heatmap, dividing the entropy heatmap based on a layer threshold to generate a low-frequency background layer mask, a mid-frequency clutter layer mask, and a high-frequency small target layer mask, and multiplying the frequency domain coefficient matrix with the three layers of masks respectively to obtain a low-frequency background component, a mid-frequency clutter component, and a high-frequency small target component; and a third module for constructing a multi-scale... The multi-scale Gaussian kernel is orthogonalized to obtain three sets of Gaussian filter kernels that are pairwise linearly independent. These three sets of Gaussian filter kernels are convolved with their corresponding components. A high-frequency target gain coefficient is then superimposed on the high-frequency small target component. The three-layer diffusion results are multiplied by their corresponding frequency domain masks and superimposed to obtain an enhanced frequency domain matrix. An inverse frequency domain transformation is performed on the enhanced frequency domain matrix to obtain a spatial domain enhanced image. The fourth module processes the spatial domain enhanced image to calculate performance data. If the detection performance does not meet preset indicators, the performance data is sent to the genetic algorithm module for iteration to optimize the parameters.
[0084] The specific implementation of each module in this embodiment can be found in Embodiment 1 above, and will not be repeated here. It should be noted that the system provided in this embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional units as needed, that is, the internal structure can be divided into different functional units to complete all or part of the functions described above.
[0085] Example 3: This embodiment provides a computer device including a processor, a memory, an input device, a display device, and a network interface connected via a device bus. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores operating devices, computer programs, and a database. The internal memory provides an environment for the operation of the operating devices and computer programs in the non-volatile storage medium. When the processor executes the computer programs stored in the memory, it implements the infrared small target adaptive enhancement detection method of Embodiment 1 described above.
[0086] Example 4: This embodiment provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the infrared small target adaptive enhancement detection method of Embodiment 1 described above.
[0087] It should be noted that the computer-readable storage medium in this embodiment can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof.
[0088] In this embodiment, the computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this embodiment, the computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying a computer-readable program. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. The computer-readable signal medium can also be any computer-readable storage medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable storage medium can be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.
[0089] The computer-readable storage medium described above can be used to write computer programs for executing this embodiment in one or more programming languages or combinations thereof. These programming languages include object-oriented programming languages—such as Java, Python, and C++—and conventional procedural programming languages—such as C or similar programming languages. The program can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0090] In summary, the embodiments of the present invention achieve accurate enhancement and low false alarm detection of weak infrared targets in complex clutter backgrounds through a three-layer closed-loop architecture consisting of frequency domain energy entropy hierarchical sensing, genetic algorithm adaptive optimization, and Gaussian-independent diffusion decoupling enhancement, while taking into account both scene adaptability and detection accuracy.
[0091] The above embodiments are preferred embodiments of the present invention, but the embodiments of the present invention are not limited to the above embodiments. Any changes, modifications, substitutions, combinations, or simplifications made without departing from the spirit and principle of the present invention shall be considered equivalent substitutions and shall be included within the protection scope of the present invention.
Claims
1. An adaptive enhancement detection method for small infrared targets, characterized in that, include: S1: Acquire the infrared image to be detected, and perform grayscale normalization processing on the infrared image to obtain a grayscale image; S2: Perform frequency domain transformation on the grayscale image to obtain a frequency domain coefficient matrix, calculate the local energy entropy in the frequency domain to generate an entropy heatmap, divide the entropy heatmap based on the layer threshold, and generate a low-frequency background layer mask, a mid-frequency clutter layer mask, and a high-frequency small target layer mask. Multiply the frequency domain coefficient matrix with the three layers of masks respectively to obtain the low-frequency background component, the mid-frequency clutter component, and the high-frequency small target component. S3: Construct a multi-scale basic Gaussian kernel, orthogonalize the multi-scale basic Gaussian kernel to obtain three sets of Gaussian filter kernels that are linearly independent in pairs, convolve the three sets of Gaussian filter kernels with the corresponding components, superimpose the high-frequency target gain coefficient on the high-frequency small target component, multiply the three-layer diffusion results by the corresponding frequency domain mask, and superimpose them to obtain the enhanced frequency domain matrix. Perform inverse frequency domain transformation on the enhanced frequency domain matrix to obtain the spatial domain enhanced image; S4: Perform image processing on the spatial enhancement image to calculate performance data. If the detection performance does not meet the preset index, send the performance data to the genetic algorithm module for iteration to optimize the parameters.
2. The infrared small target adaptive enhancement detection method according to claim 1, characterized in that, Step S2: Perform frequency domain transformation on the grayscale image to obtain a frequency domain coefficient matrix, calculate the local energy entropy in the frequency domain to generate an entropy heatmap, divide the entropy heatmap based on a layering threshold, and generate a low-frequency background layer mask, a mid-frequency clutter layer mask, and a high-frequency small target layer mask, including: S21: Perform a two-dimensional discrete cosine transform on the grayscale image to obtain the frequency domain coefficient matrix; S22: Use a sliding window of a preset size to traverse each frequency point of the frequency domain coefficient matrix, extract local frequency domain blocks, calculate the energy distribution probability of the local frequency domain blocks, and then calculate the local energy entropy. After the traversal is completed, generate an entropy heat map. S23: Set a stratification threshold based on the mean and standard deviation of the entropy heatmap, wherein the stratification threshold includes a first threshold and a second threshold; S24: Mark the regions in the entropy heatmap with values less than the first threshold as low-frequency background layer masks, mark the regions in the entropy heatmap with values between the first threshold and the second threshold as mid-frequency clutter layer masks, and mark the regions in the entropy heatmap with values greater than or equal to the second threshold as high-frequency small target layer masks.
3. The infrared small target adaptive enhancement detection method according to claim 1, characterized in that, Step S3: Construct a multi-scale fundamental Gaussian kernel, and orthogonalize the multi-scale fundamental Gaussian kernel to obtain three sets of Gaussian filter kernels that are pairwise linearly independent, including: S31: Set three sets of variance parameters at different scales and generate the corresponding two-dimensional basic Gaussian kernel; S32: Flatten the two-dimensional basic Gaussian kernel into a one-dimensional vector, and process the three one-dimensional vectors using the orthogonalization method to obtain three orthogonal vectors that are mutually linearly independent. S33: Restore the three orthogonal vectors to two-dimensional filter kernels and normalize them to obtain three sets of Gaussian filter kernels G. low G mid G high These correspond to the low-frequency background component, the mid-frequency clutter component, and the high-frequency small target component, respectively.
4. The infrared small target adaptive enhancement detection method according to claim 3, characterized in that, Step S3: Convolve the three sets of Gaussian filter kernels with their corresponding components, and superimpose gain coefficients on the high-frequency small target components, including: S34: Apply the low-frequency background component to the Gaussian filter kernel G low Convolution processing is performed to achieve a weakly diffused, smooth, and stable background; S35: The intermediate frequency clutter component is compared with the Gaussian filter kernel G. mid Convolution processing is performed to achieve strong diffusion and suppress texture clutter; S36: Apply the high-frequency small target component to the Gaussian filter kernel G high Convolution processing is performed, and a high-frequency target gain coefficient 'a' is superimposed to directionally amplify isolated weak targets.
5. The infrared small target adaptive enhancement detection method according to claim 1, characterized in that, In step S4, the performance data includes the signal-to-noise ratio (SCR) and the number of false alarms (FAR). The fitness function of the genetic algorithm module is Fit = Mean(SCR) - μ × Mean(FAR), where μ represents the false alarm penalty weight, Mean(SCR) represents the average signal-to-noise ratio, which is equal to the sum of the signal-to-noise ratios of all images in the training set divided by the total number of images, and Mean(FAR) represents the average number of false alarms, which is equal to the sum of the number of false alarms of all images in the training set divided by the total number of images.
6. The infrared small target adaptive enhancement detection method according to claim 1, characterized in that, In step S4, the optimization parameter vector of the genetic algorithm module is X=[T1,T2,σ]. low ,σ mid ,σ high [,a], where T1 and T2 are the first and second thresholds of the stratification threshold, σ low σ mid σ high Three pairs of Gaussian filter kernels G are respectively linearly independent. low G mid G high The variance of , where a is the high-frequency target gain coefficient.
7. The infrared small target adaptive enhancement detection method according to claim 1, characterized in that, In step S4, candidate targets are extracted based on a threshold segmentation algorithm or a target detection algorithm.
8. An infrared small target adaptive enhancement detection device, characterized in that, include: The first module is used to acquire the infrared image to be detected, and to perform grayscale normalization processing on the infrared image to obtain a grayscale image. The second module is used to perform frequency domain transformation on the grayscale image to obtain a frequency domain coefficient matrix, calculate the local energy entropy in the frequency domain to generate an entropy heatmap, divide the entropy heatmap based on the layer threshold, generate a low-frequency background layer mask, a mid-frequency clutter layer mask and a high-frequency small target layer mask, and multiply the frequency domain coefficient matrix with the three layers of masks respectively to obtain the low-frequency background component, the mid-frequency clutter component and the high-frequency small target component; The third module is used to construct a multi-scale basic Gaussian kernel, orthogonalize the multi-scale basic Gaussian kernel to obtain three sets of Gaussian filter kernels that are linearly independent in pairs, and convolve the three sets of Gaussian filter kernels with the corresponding components respectively. After superimposing the high-frequency target gain coefficient on the high-frequency small target component, the three-layer diffusion results are multiplied by the corresponding frequency domain mask and superimposed to obtain the enhanced frequency domain matrix. The enhanced frequency domain matrix is then subjected to inverse frequency domain transformation to obtain the spatial domain enhanced image. The fourth module is used to perform image processing on the spatial enhancement image, calculate performance data, and if the detection performance does not meet the preset index, the performance data is sent to the genetic algorithm module for iteration to optimize the parameters.
9. A computer device comprising a processor and a memory for storing a processor-executable program, characterized in that, When the processor executes the program stored in the memory, it implements the infrared small target adaptive enhancement detection method according to any one of claims 1 to 7.
10. A storage medium storing a program, characterized in that, When the program is executed by the processor, it implements the infrared small target adaptive enhancement detection method according to any one of claims 1 to 7.
