Infrared image non-uniformity correction method and device based on linear neural network
By constructing a neuron matrix and detail weight template matrix based on the non-uniformity correction method for infrared images using linear neural networks, the problems of poor imaging quality and target filtering by noise in infrared images are solved, and high-quality airborne infrared image display is achieved.
Patent Information
- Application Number
- CN202310663577.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-06
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-06-06
AI Technical Summary
Existing infrared image non-uniformity correction methods suffer from poor imaging quality, high mechanical complexity, and the target being easily filtered out by noise in airborne scenarios.
An infrared image non-uniformity correction method based on linear neural networks is adopted. By constructing a neuron matrix and a detail weight template matrix, and combining learning rate and bias parameter updates, online training and correction are achieved.
It achieves high-quality non-uniformity correction in airborne infrared images, solves the problem of impurities changing with attitude, ensures that targets are not filtered out as noise, and improves imaging results.
Smart Images

Figure CN117437158B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of image processing technology, and in particular to a method and device for correcting non-uniformity in infrared images based on a linear neural network. Background Technology
[0002] Infrared cameras often exhibit non-uniform noise due to uncontrollable factors during production and use, severely impacting image quality. Currently, a common non-uniformity correction method involves adding an internal baffle to the system and frequently performing occlusion correction. However, the addition of the baffle increases the mechanical complexity of the detector, limiting its miniaturization. Furthermore, the baffle correction process interrupts image input, severely affecting the system's external observation and target search and tracking. Over time, the image non-uniformity shifts and deforms, causing the correction compensation to become new noise, further affecting image quality.
[0003] To address the above shortcomings, existing solutions mainly fall into two categories. First, calibration-based non-uniformity correction establishes a model of the relationship between the detector's operating state and response, and then applies non-uniformity correction to the image based on the actual operating state. The advantages of calibration-based non-uniformity correction are its simplicity and good correction effect; the disadvantage is the difficulty in finding a suitable response relationship model, and the potential drift of the response coefficients over time. Second, scene-based non-uniformity correction separates non-uniform noise from useful image information by statistically analyzing certain characteristics of the scene. The advantages of scene-based non-uniformity correction are that it requires no calibration and has strong universality across different detectors; the disadvantages are high computational cost and numerous limitations in its application.
[0004] To address the issue of non-uniformity correction in infrared images, scene-based methods are more thorough. However, these methods have several drawbacks, such as the generation of artifacts in certain situations, where the target may be mistaken for non-uniform noise and disappear during target tracking in airborne scenarios. Summary of the Invention
[0005] This invention provides a method and device for infrared image non-uniformity correction based on a linear neural network, which solves the problem of poor infrared image non-uniformity correction effect in the prior art.
[0006] The infrared image non-uniformity correction method based on a linear neural network according to an embodiment of the present invention includes:
[0007] For each pixel in the infrared image, a corresponding network neuron is created. Each network neuron contains a weight parameter initialized to 1 and a bias parameter initialized to 0. The weight parameters of all pixels in the infrared image are then aggregated to construct matrix K. bpThe bias parameters of all pixels in the infrared image are summarized to construct matrix B. bp ;
[0008] For each pixel, calculate the average gray value of the first neighboring pixels in its k1*k1 neighborhood and the average gray value of the second neighboring pixels in its k2*k2 neighborhood, and summarize the average gray values of the first neighboring pixels of all pixels in the infrared image to construct a reference truth matrix.
[0009] For each pixel, the absolute value of the difference between the mean gray value of the second neighboring pixels and the pixel value is calculated as the detail feature intensity value, and the detail feature intensity values of all pixels in the infrared image are summarized to construct a detail feature intensity matrix.
[0010] Create a detail weight template matrix with the same size as the detail feature intensity matrix and all initial values of 1. Then, set the corresponding values of the pixels in the central region s*s of the detail feature intensity matrix that have detail feature intensity values greater than a threshold to 0 in the detail weight template matrix to update the detail weight template matrix.
[0011] Calculate the difference I between the pixel matrix formed by the pixel values of each pixel in the infrared image and the reference true value matrix. err and based on the I err Update K using Formula 1 bp and the aforementioned B bp :
[0012] K bp '=K bp -2*lr*I err *I ori B bp '=B bp -2*lr*I err , formula 1;
[0013] Where lr represents the learning rate, I ori Represents a pixel matrix;
[0014] Based on the K bp 'and the aforementioned B bp According to Formula 2, the final weight matrix is calculated, and based on the final weight matrix I... final Output the infrared image after non-uniformity correction:
[0015] K final =K detail *K bp ', I final =K final *I ori +B bp ', formula 2;
[0016] Among them, K detail This represents the detail weight template matrix.
[0017] An infrared image non-uniformity correction device based on a linear neural network according to an embodiment of the present invention includes: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps of the infrared image non-uniformity correction method based on a linear neural network as described above.
[0018] According to an embodiment of the present invention, a computer-readable storage medium stores an information transmission implementation program, which, when executed by a processor, implements the steps of the infrared image non-uniformity correction method based on a linear neural network as described above.
[0019] In this embodiment of the invention, an infrared image non-uniformity correction method using an online trained linear neural network is employed. This method solves the problem of impurities in imaging under complex airborne infrared scenes and the problem of impurities moving with changes in aircraft attitude. In addition, a detail weight template matrix is designed to filter out targets as impurities during tracking, thereby achieving high-quality airborne infrared image display.
[0020] The above description is merely an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention and to implement it in accordance with the contents of the specification, and in order to make the above and other objects, features and advantages of the present invention more apparent and understandable, specific embodiments of the present invention are described below. Attached Figure Description
[0021] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of the embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. In the drawings:
[0022] Figure 1 This is a flowchart of the infrared image non-uniformity correction method based on a linear neural network in an embodiment of the present invention;
[0023] Figure 2 This is a comparison diagram of the effects of the infrared image non-uniformity correction method based on linear neural network in the embodiments of the present invention. In the diagram, the first row is a schematic diagram before processing, and the second row is a schematic diagram after processing. Detailed Implementation
[0024] Exemplary embodiments of the invention will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided to enable a more thorough understanding of the invention and to fully convey the scope of the invention to those skilled in the art. Furthermore, in some instances, well-known methods, structures, and techniques have not been shown in detail so as not to obscure the understanding of this specification.
[0025] Currently, the main problems faced in infrared image non-uniformity correction include: non-uniform noise will shift and deform over time; in airborne scenarios, targets in tracking modes will be filtered out as noise; and non-uniform noise suppression methods based on neural networks will produce a large number of artifacts, which seriously affect the image quality.
[0026] Based on this, embodiments of the present invention propose a method for correcting infrared image non-uniformity based on a linear neural network, such as... Figure 1 As shown, the method includes:
[0027] S1, construct matrix K bp and B bp .
[0028] Create a corresponding network neuron for each pixel in the infrared image. This is equivalent to building a neural network for the infrared image, where each pixel corresponds to a network neuron.
[0029] The network neuron includes a weight parameter and a bias parameter. For the first frame of the infrared image, the weight parameter is initially set to 1, and the bias parameter is initially set to 0. For infrared images other than the first frame, the initial values of the weight parameter and the bias parameter are determined based on the output of the previous frame of the infrared image.
[0030] The weight parameters of all pixels in the infrared image are summarized to construct matrix K. bp The bias parameters of all pixels in the infrared image are summarized to construct matrix B. bp ;
[0031] S2, construct the reference truth matrix.
[0032] For each pixel, calculate the average gray value of its first neighboring pixels within a k1*k1 neighborhood and the average gray value of its second neighboring pixels within a k2*k2 neighborhood. Calculating the average gray value of the first neighboring pixels within a k1*k1 neighborhood can be understood as averaging the pixel values of all adjacent pixels within a k1*k1 range around the pixel. Similarly, calculating the average gray value of the second neighboring pixels within a k2*k2 neighborhood can be understood as averaging the pixel values of all adjacent pixels within a k2*k2 range around the pixel.
[0033] The values of k1 and k2 here can be adjusted as needed.
[0034] The average gray values of the first neighboring pixels of all pixels in the infrared image are summarized to construct a reference truth matrix;
[0035] S3, construct the detail feature intensity matrix.
[0036] For each pixel, the absolute value of the difference between the mean gray value of the second neighboring pixels and the pixel value is calculated as the detail feature intensity value, and the detail feature intensity values of all pixels in the infrared image are summarized to construct a detail feature intensity matrix.
[0037] S4. Construct the detail weight template matrix and update the detail weight template matrix based on the detail feature intensity matrix.
[0038] Create a detail weight template matrix with the same size (i.e., the same number of rows and columns) as the detail feature intensity matrix and all initial values of 1. Then, set the corresponding values of the pixels in the central region s*s of the detail feature intensity matrix that have detail feature intensity values greater than the threshold to 0 in the detail weight template matrix to update the detail weight template matrix.
[0039] The 's' here can also be set according to actual needs.
[0040] S5, calculate the difference between the pixel matrix formed by the pixel values of each pixel in the infrared image and the reference true value matrix, and update matrix K based on this difference. bp and B bp .
[0041] Calculate the pixel matrix formed by the pixel values of each pixel in the infrared image and the reference truth matrix I. gt Difference I err , that is: I err =I ori -I gt And based on the I err Update K using Formula 1 bp and the aforementioned B bp :
[0042] K bp '=K bp -2*lr*I err *I ori B bp '=B bp -2*lr*I err , formula 1;
[0043] Where lr represents the learning rate, which can be set according to actual needs, and I oriRepresents a pixel matrix;
[0044] S6 calculates the final weight matrix based on the updated moments Kbp and Bbp, and outputs the infrared image after non-uniformity correction based on the final weight matrix.
[0045] Based on the K bp 'and the aforementioned B bp According to Formula 2, the final weight matrix is calculated, and based on the final weight matrix I... final Output the infrared image after non-uniformity correction:
[0046] K final =K detail *K bp ', I final =K final *I ori +B bp ', formula 2;
[0047] Among them, K detail This represents the detail weight template matrix.
[0048] In this embodiment of the invention, an infrared image non-uniformity correction method using an online trained linear neural network is employed. This method solves the problem of impurities in imaging under complex airborne infrared scenes and the problem of impurities moving with changes in aircraft attitude. In addition, a detail weight template matrix is designed to filter out targets as impurities during tracking, thereby achieving high-quality airborne infrared image display.
[0049] Based on the above embodiments, further variant embodiments are proposed. It should be noted that, in order to keep the description brief, only the differences from the above embodiments are described in each variant embodiment.
[0050] In some embodiments of the present invention, k1 = 50 and k2 = 10. Experiments have shown that these values produce excellent image processing results.
[0051] In some embodiments of the present invention, lr = 1e-4.
[0052] In some embodiments of the present invention, the threshold is 20.
[0053] In some embodiments of the present invention, the method further includes:
[0054] The K of the current frame infrared image in the infrared image sequence bp 'and B bp 'K as the next frame of infrared image bp and B bp .
[0055] The infrared image non-uniformity correction method based on a linear neural network according to the present invention will now be described in detail with reference to the accompanying drawings and a specific embodiment. It is to be understood that the following description is merely exemplary and should not be construed as a specific limitation of the present invention.
[0056] The infrared image non-uniformity correction method based on linear neural network according to the present invention includes the following steps: infrared image sequence reading, automatic optimization learning of neural network, and output of results.
[0057] First, acquire the original infrared image sequence obtained by the infrared camera continuously scanning the target scene; extract the first frame as the current frame, and create a network neuron for each pixel of the current frame, containing a weight parameter K with an initial value of 1. bp With a bias parameter B initially set to 0 bp .
[0058] Then, for each pixel, calculate the average grayscale value of its first neighboring pixels within its k1*k1 neighborhood and the average grayscale value of its second neighboring pixels within its k2*k2 neighborhood. These two values can be adjusted as needed, with the default values being k1 = 50 and k2 = 10.
[0059] Next, the gray-scale mean of the k1*k1 neighborhood pixels is used as a reference to differentiate the parameters of the neural network neurons, obtaining the gradient, which is then multiplied by the learning rate lr to update the neural network parameters. lr can be adjusted according to the actual situation, with a default value of 1e-4. This process can be implemented through the following steps:
[0060] The average gray values of the first neighboring pixels of all pixels in the infrared image are summarized to construct a reference truth matrix;
[0061] For each pixel, the absolute value of the difference between the mean gray value of the second neighboring pixels and the pixel value is calculated as the detail feature intensity value, and the detail feature intensity values of all pixels in the infrared image are summarized to construct a detail feature intensity matrix.
[0062] Create a detail weight template matrix with the same size (i.e., the same number of rows and columns) as the detail feature intensity matrix and all initial values of 1. Then, set the corresponding values of the pixels in the central region s*s of the detail feature intensity matrix that have detail feature intensity values greater than the threshold to 0 in the detail weight template matrix to update the detail weight template matrix.
[0063] The 's' here can also be set according to actual needs.
[0064] Calculate the pixel matrix formed by the pixel values of each pixel in the infrared image and the reference truth matrix I. gt Difference I err , that is: I err=I ori -I gt And based on the I err Update K using Formula 1 bp and the aforementioned B bp :
[0065] K bp '=K bp -2*lr*I err *I ori B bp '=B bp -2*lr*I err , formula 1;
[0066] Where lr represents the learning rate, which can be set according to actual needs, and I ori Represents a pixel matrix;
[0067] Finally, the middle region of the k2*k2 neighborhood pixel grayscale mean map is used as the detail weight template matrix and multiplied with the updated weight matrix to obtain the final weight matrix. The execution steps are as follows:
[0068] Based on the K bp 'and the aforementioned B bp According to Formula 2, calculate the final weight matrix:
[0069] K final =K detail *K bp ', I final =K final *I ori +B bp ', formula 2;
[0070] Among them, K detail This represents the detail weight template matrix.
[0071] Therefore, based on the final weight matrix I final Output the infrared image after non-uniformity correction.
[0072] The system updates its parameters each time a new frame of the infrared image is read. During video playback, the parameters are updated and optimized in real time to correct the non-uniformity of the infrared image.
[0073] Compared with existing infrared non-uniformity correction methods and systems, the present invention adopts the above technical solution and has the following advantages:
[0074] This invention employs an online training linear neural network for infrared image non-uniformity correction, which solves the problems of impurities in imaging under complex airborne infrared scenes and the movement of impurities with changes in aircraft attitude. In addition, a detail weight template matrix is designed to filter out targets as impurities during tracking, thus achieving high-quality airborne infrared image display.
[0075] It should be noted that the above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention. Various modifications and variations can be made to the present invention by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.
[0076] Those skilled in the art will understand that the modules or steps of the present invention described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. Optionally, they can be implemented using computer-executable program code, thereby storing them in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those presented herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular hardware and software combination.
[0077] This invention also proposes an infrared image non-uniformity correction device based on a linear neural network, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, it implements the steps of the infrared image non-uniformity correction method based on a linear neural network as described above.
[0078] This invention also proposes a computer-readable storage medium storing an information transmission implementation program, which, when executed by a processor, implements the steps of the infrared image non-uniformity correction method based on a linear neural network as described above.
[0079] The computer-readable storage medium described in this embodiment includes, but is not limited to, ROM, RAM, disk, or optical disk. The processor can be a mobile phone, computer, server, air conditioner, or network device, etc.
[0080] It should be noted that any content not described in detail in this specification is common knowledge to those skilled in the art.
[0081] The terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element. Any reference signs enclosed in parentheses should not be construed as limiting the claims.
Claims
1. A method for correcting non-uniformity in infrared images based on a linear neural network, characterized in that, include: For each pixel in the infrared image, a corresponding network neuron is created. Each network neuron contains a weight parameter initialized to 1 and a bias parameter initialized to 0. The weight parameters of all pixels in the infrared image are then aggregated to construct matrix K. bp The bias parameters of all pixels in the infrared image are summarized to construct matrix B. bp ; For each pixel, calculate the average gray value of the first neighboring pixels in its k1*k1 neighborhood and the average gray value of the second neighboring pixels in its k2*k2 neighborhood, and summarize the average gray values of the first neighboring pixels of all pixels in the infrared image to construct a reference truth matrix. For each pixel, the absolute value of the difference between the mean gray value of the second neighboring pixels and the pixel value is calculated as the detail feature intensity value, and the detail feature intensity values of all pixels in the infrared image are summarized to construct a detail feature intensity matrix. Create a detail weight template matrix with the same size as the detail feature intensity matrix and all initial values of 1. Then, set the corresponding values of the pixels in the central region s*s of the detail feature intensity matrix that have detail feature intensity values greater than a threshold to 0 in the detail weight template matrix to update the detail weight template matrix. Calculate the difference I between the pixel matrix formed by the pixel values of each pixel in the infrared image and the reference true value matrix. err and based on the I err Update K using Formula 1 bp and the aforementioned B bp : K bp '=K bp -2*lr*I err *I ori , B bp '=B bp -2*lr*I err , Formula 1; Where lr represents the learning rate, I ori Represents a pixel matrix; Based on the K bp 'and the aforementioned B bp According to Formula 2, the final weight matrix is calculated, and based on the final weight matrix I... final Output the infrared image after non-uniformity correction: K final =K detail *K bp ', I final =K final *I ori +B bp ', Equation 2; Among them, K detail This represents the detail weight template matrix.
2. The method as described in claim 1, characterized in that, k1 = 50, k2 = 10.
3. The method as described in claim 1, characterized in that, lr=1e-4。 4. The method as described in claim 1, characterized in that, The threshold is 20.
5. The method as described in claim 1, characterized in that, The method further includes: The K of the current frame infrared image in the infrared image sequence bp 'and B bp 'K as the next frame of infrared image bp and B bp .
6. An infrared image non-uniformity correction device based on a linear neural network, characterized in that, include: The memory, the processor, and the computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the infrared image non-uniformity correction method based on a linear neural network as described in any one of claims 1 to 5.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores an information transmission implementation program, which, when executed by a processor, implements the steps of the infrared image non-uniformity correction method based on a linear neural network as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Infrared image heterogeneity correction method based on trilateral filtering and a neural network
CN109741267A
Infrared imaging non-uniformity intelligent calibration and correction method and system
CN113267254A
