Infrared image two-point correction algorithm IP mounting system and correction method
By mounting the two-point correction algorithm IP on the AXI bus and taking advantage of the AXI bus, the problem of poor infrared image processing performance in the existing technology is solved, efficient non-uniformity correction is achieved, and imaging quality and development efficiency are improved.
Patent Information
- Application Number
- CN202410970914.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-10-01
AI Technical Summary
The existing two-point correction algorithm for infrared images has poor performance, high delay, and poor versatility. It is difficult to effectively deal with the non-uniformity problem of infrared detectors and affects the imaging quality.
The two-point correction algorithm IP is mounted on the AXI bus using the AXI protocol. Through the AXI protocol conversion module, configuration/unprocessed data cross-domain FIFO, two-point correction algorithm module and processed data cross-domain FIFO, the high performance and With low latency and high bandwidth characteristics, the two-point correction algorithm is directly hung on the AXI bus to correct the non-uniformity of image data.
It improves the efficiency of infrared image processing, reduces the development cycle, has certain versatility, can effectively correct the non-uniformity of the original infrared image, and improves the imaging quality.
Smart Images

Figure CN118741273A_ABST
Abstract
Description
Technical Field
[0001] The invention relates to an infrared image two-point correction algorithm IP mounting system and a correction method, belonging to the technical field of image processing. Background Art
[0002] With the development of infrared technology, infrared thermal imaging equipment has achieved certain development, from high cost and inconvenient to carry to entry-level infrared imaging equipment with lower price, easy to carry, lightweight, energy-saving and other trends. Its application has also developed from important fields such as national defense and aerospace to civilian fields. Therefore, the improvement of infrared imaging quality and detection distance has become an important research and development direction at home and abroad. The non-uniformity of infrared detectors is a key factor affecting the quality of infrared imaging. The main component of infrared detection devices is the infrared focal plane array (IRFPA). Due to the production process and material reasons, it is very easy to have uneven material doping, mask errors, process defects and other phenomena during the manufacturing process, resulting in the infrared focal plane array Under the same uniform radiation, each pixel produces non-uniform response, which is manifested as spatial noise or fixed image noise on the image, seriously affecting the quality of the output image, among which fixed noise is the main noise source of infrared detectors. Therefore, the infrared focal plane array must be corrected for non-uniformity.
[0003] At present, the commonly used infrared non-uniformity correction methods are mainly divided into two categories, namely calibration-based non-uniformity correction and scene-based non-uniformity correction. Among them, the calibration-based non-uniformity correction algorithm includes single-point correction, two-point correction and multi-point correction. Since the calibration-based method algorithm is relatively mature, the calculation amount is small, there are no special requirements for scenes and targets, and the hardware is easy to implement and integrate, it is widely used in engineering applications. The existing solutions all transmit the two-point algorithm data through a user-defined protocol to complete the two-point algorithm processing of the infrared original image, which has poor performance, high latency and poor versatility.
[0004] The present invention proposes an AXI (Advanced eXtensible Interface) bus IP mounting method for a two-point correction algorithm in infrared image processing, which is mounted on an AXI system bus using an AXI protocol. As a high-performance, low-latency, and high-bandwidth on-chip bus, the AXI system bus is suitable for the field of image processing. Therefore, this IP utilizes the advantages of the AXI bus, directly mounts the two-point correction algorithm on the AXI bus, avoids a large amount of repetitive work, can perform a certain degree of non-uniformity correction on the original infrared image, has a certain degree of versatility, improves work efficiency, and reduces the development cycle. Summary of the invention
[0005] The technical problem to be solved by the present invention is to overcome the defects of the prior art and provide an infrared image two-point correction algorithm IP mounting system and a correction method.
[0006] In order to solve the above technical problems, the present invention is implemented by adopting the following technical solutions.
[0007] On the one hand, the present invention discloses an infrared image two-point correction algorithm IP mounting system, comprising: a CPU, a DDR and a two-point correction algorithm IP; The CPU communicates with the two-point correction algorithm IP via the AXI bus, and is used to configure data for the two-point correction algorithm IP and control the two-point correction algorithm IP to read image data; The two-point correction algorithm IP includes an AXI protocol conversion module, a configuration / unprocessed data cross-domain FIFO, a two-point correction algorithm module, and a processed data cross-domain FIFO; The processed data cross-domain FIFO is used to cache the intermediate quantities, gain coefficients, bias coefficients and the last processed image data generated during the processing of the two-point correction algorithm module; The configuration / unprocessed data cross-domain FIFO is used to cache the configuration data sent by the CPU to the two-point correction algorithm module through the AXI bus and the unprocessed image data transmitted from the outside; The AXI protocol conversion module is used to convert the data input from the AXI bus according to the AXI protocol, convert it into data that can be read and used by the two-point correction algorithm module, and store it in the configuration / unprocessed data cross-domain FIFO; the AXI protocol conversion module is also used to convert the data cached in the processed data cross-domain FIFO according to the AXI protocol, and cache it to the DDR through the AXI bus; The DDR is used to obtain and store the intermediate variables generated in the two-point calibration process from the AXI bus.
[0008] Furthermore, it also includes a downstream algorithm module, which is used to receive the processed image data through the AXI bus, and process the processed image data according to the downstream algorithm to obtain a new corrected image.
[0009] In a second aspect, the present invention discloses a correction method for an infrared image two-point correction algorithm IP mounting system, comprising: Acquire a number of high-temperature image data and low-temperature image data collected by the infrared image detector and the configuration data output by the CPU, and transmit them to the AXI protocol conversion module via the AXI bus, so that the AXI protocol conversion module converts the number of high-temperature image data and low-temperature image data and the configuration data output by the CPU into data readable by the two-point correction algorithm module according to the AXI protocol and stores them in the configuration / unprocessed data cross-domain FIFO; Based on the CPU output configuration data, the two-point correction algorithm module is controlled to extract image data from the configuration / unprocessed data cross-domain FIFO for cross-domain processing and line-field conversion, and converted into image data in the format of a frame synchronization signal fsys, a data valid signal ivalid and a data signal idata, and the converted data is subjected to gain coefficient and bias coefficient calculation to obtain correction parameters, and the correction parameters are cached in the processed data cross-domain FIFO, so that the AXI protocol conversion module converts the correction parameters into AXI format data according to the AXI protocol and transmits them to the DDR via the AXI bus; The image to be corrected acquired by the infrared image detector is obtained, and transmitted to the AXI protocol conversion module via the AXI bus, so that the AXI protocol conversion module converts the image to be corrected into data readable by the two-point correction algorithm module according to the AXI protocol and stores it in the configuration / unprocessed data cross-domain FIFO; The two-point correction algorithm module extracts the image to be corrected from the configuration / unprocessed data cross-domain FIFO for cross-domain processing and line-field conversion, converts it into image data in the format of frame synchronization signal fsys, data valid signal ivalid and data signal idata, and reads the correction parameters in DDR through the AXI bus; uses the correction parameters to process the image to be corrected, obtains the image data after the non-uniformity is corrected and writes it into the processed data cross-domain FIFO, so that the AXI4FULL protocol conversion module moves the data of the processed data cross-domain FIFO, integrates the frame synchronization signal ofsys, data valid signal ovalid and data signal odata of the corrected image, converts them into AXI protocol data format and outputs them through the AXI bus.
[0010] Furthermore, it also includes: integrating and converting the frame synchronization signal ofsys, the data valid signal ofvalid and the data signal odata of the corrected image into an AXI protocol data format and outputting it to a downstream algorithm module through an AXI bus.
[0011] Furthermore, the processing process of the two-point correction algorithm module includes: The low temperature frame calibration switch is triggered by the CPU configuration, and the frame synchronization signal is waited to be valid. When the frame synchronization signal is detected to be valid, the low temperature frame counter starts to accumulate and count. The accumulated counting includes: adding the current low temperature frame data to the low temperature data in the DDR and writing them into the DDR low temperature frame accumulation address area again. After the accumulation is completed, the low temperature frame counter counts by 1, and the initial value of the low temperature data in the DDR is 0; When the low temperature frame counter accumulates the target number of frames, the low temperature frame data of the target number of frames stored in the DDR are accumulated and averaged to obtain low temperature image frame average data, and the low temperature image frame average data is stored in the DDR low temperature average data storage address area; The high temperature frame calibration switch is triggered by the CPU configuration, and the frame synchronization signal is waited to be valid. When the frame synchronization signal is detected to be valid, the high temperature frame counter starts to accumulate and count. The accumulated counting includes: adding the current high temperature frame data to the high temperature data in the DDR and writing them into the DDR high temperature frame accumulation address area again. After the accumulation is completed, the high temperature frame counter counts by 1, and the initial value of the high temperature data in the DDR is 0; When the high temperature frame counter accumulates the target number of frames, the target number of frames of high temperature frame data stored in the DDR are accumulated and averaged to obtain the high temperature image frame average data, and the high temperature image frame average data is stored in the DDR high temperature average data storage address area; Read the corresponding high temperature image data and low temperature image data from DDR respectively, and then calculate the correction parameter 1 by combining the difference between the high temperature image data and the low temperature image data. ,in, i , j is the row and column coordinates of the pixel point; Combined with high temperature image data and correction parameters Calculate the calibration parameter 2 ; ; The correction parameter and correction parameter 2 Store them together in DDR; Combined with calibration parameters and correction parameter 2 The image to be corrected is processed to obtain image data after the non-uniformity is corrected.
[0012] Furthermore, the correction parameter The calculation formula is: ; In the formula, is the target number of high temperature image frame average data, is the target number of low-temperature image frame mean data, is the average pixel data of the target number of frames of high temperature images corresponding to the current pixel, The mean value data of the target number of low-temperature image pixels corresponding to the current pixel.
[0013] Furthermore, the correction parameter The calculation formula is: .
[0014] Furthermore, the calculation formula of the image data after the non-uniformity is corrected is: ; In the formula, is the image data after non-uniformity correction, is the image data to be corrected.
[0015] The beneficial effects achieved by the present invention are: The present invention realizes an AXI (Advanced eXtensible Interface) bus IP mounting method of a two-point correction algorithm in infrared image processing, which is mounted on the AXI bus using the AXI protocol. The two-point correction algorithm IP utilizes the advantages of high performance, low latency and high bandwidth of the AXI bus, and directly mounts the two-point correction algorithm on the AXI bus, thereby avoiding a large amount of repetitive work, being able to perform a certain degree of non-uniformity correction on the original infrared image, having versatility, improving work efficiency and reducing the development cycle. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 This is the block diagram of the two-point correction algorithm IP mounted on the AXI bus structure; Figure 2 This is the workflow diagram of the two-point correction algorithm. DETAILED DESCRIPTION
[0017] The present invention will be further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of the present invention.
[0018] Embodiment 1, this embodiment introduces an infrared image two-point correction algorithm IP mounting system, including: CPU, DDR and two-point correction algorithm IP; The CPU communicates with the two-point correction algorithm IP via the AXI bus, and is used to configure data for the two-point correction algorithm IP and control the two-point correction algorithm IP to read image data; The two-point correction algorithm IP includes an AXI protocol conversion module, a configuration / unprocessed data cross-domain FIFO, a two-point correction algorithm module, and a processed data cross-domain FIFO; The processed data cross-domain FIFO is used to cache the intermediate quantities, gain coefficients, bias coefficients and the last processed image data generated during the processing of the two-point correction algorithm module; The configuration / unprocessed data cross-domain FIFO is used to cache the configuration data sent by the CPU to the two-point correction algorithm module through the AXI bus and the unprocessed image data transmitted from the outside; The AXI protocol conversion module is used to convert the data input from the AXI bus according to the AXI protocol, convert it into data that can be read and used by the two-point correction algorithm module, and store it in the configuration / unprocessed data cross-domain FIFO; the AXI protocol conversion module is also used to convert the data cached in the processed data cross-domain FIFO according to the AXI protocol, and cache it to the DDR through the AXI bus; The DDR is used to obtain and store the intermediate variables generated in the two-point calibration process from the AXI bus.
[0019] It also includes a downstream algorithm module, which is used to receive the processed image data through the AXI bus, and process the processed image data according to the downstream algorithm to obtain a new corrected image.
[0020] Embodiment 2 is based on the same inventive concept as Embodiment 1. This embodiment introduces a correction method for an infrared image two-point correction algorithm IP mounting system, including: Acquire a number of high-temperature image data and low-temperature image data collected by the infrared image detector and the configuration data output by the CPU, and transmit them to the AXI protocol conversion module via the AXI bus, so that the AXI protocol conversion module converts the number of high-temperature image data and low-temperature image data and the configuration data output by the CPU into data readable by the two-point correction algorithm module according to the AXI protocol and stores them in the configuration / unprocessed data cross-domain FIFO; Based on the CPU output configuration data, the two-point correction algorithm module is controlled to extract image data from the configuration / unprocessed data cross-domain FIFO for cross-domain processing and line-field conversion, and converted into image data in the format of a frame synchronization signal fsys, a data valid signal ivalid and a data signal idata, and the converted data is subjected to gain coefficient and bias coefficient calculation to obtain correction parameters, and the correction parameters are cached in the processed data cross-domain FIFO, so that the AXI protocol conversion module converts the correction parameters into AXI format data according to the AXI protocol and transmits them to the DDR via the AXI bus; The image to be corrected acquired by the infrared image detector is obtained, and transmitted to the AXI protocol conversion module via the AXI bus, so that the AXI protocol conversion module converts the image to be corrected into data readable by the two-point correction algorithm module according to the AXI protocol and stores it in the configuration / unprocessed data cross-domain FIFO; The two-point correction algorithm module extracts the image to be corrected from the configuration / unprocessed data cross-domain FIFO for cross-domain processing and line-field conversion, converts it into image data in the format of frame synchronization signal fsys, data valid signal ivalid and data signal idata, and reads the correction parameters in DDR through the AXI bus; uses the correction parameters to process the image to be corrected, obtains the image data after the non-uniformity is corrected and writes it into the processed data cross-domain FIFO, so that the AXI4FULL protocol conversion module moves the data of the processed data cross-domain FIFO, integrates the frame synchronization signal ofsys, data valid signal ovalid and data signal odata of the corrected image, converts them into AXI protocol data format and outputs them through the AXI bus.
[0021] It also includes: integrating and converting the frame synchronization signal ofsys, the data valid signal ofvalid and the data signal odata of the corrected image into an AXI protocol data format and outputting it to a downstream algorithm module through an AXI bus.
[0022] The processing process of the two-point correction algorithm module includes: The low temperature frame calibration switch is triggered by the CPU configuration, and the frame synchronization signal is waited to be valid. When the frame synchronization signal is detected to be valid, the low temperature frame counter starts to accumulate and count. The accumulated counting includes: adding the current low temperature frame data to the low temperature data in the DDR and writing them into the DDR low temperature frame accumulation address area again. After the accumulation is completed, the low temperature frame counter counts by 1, and the initial value of the low temperature data in the DDR is 0; When the low temperature frame counter accumulates the target number of frames, the low temperature frame data of the target number of frames stored in the DDR are accumulated and averaged to obtain low temperature image frame average data, and the low temperature image frame average data is stored in the DDR low temperature average data storage address area; The high temperature frame calibration switch is triggered by the CPU configuration, and the frame synchronization signal is waited to be valid. When the frame synchronization signal is detected to be valid, the high temperature frame counter starts to accumulate and count. The accumulated counting includes: adding the current high temperature frame data to the high temperature data in the DDR and writing them into the DDR high temperature frame accumulation address area again. After the accumulation is completed, the high temperature frame counter counts by 1, and the initial value of the high temperature data in the DDR is 0; When the high temperature frame counter accumulates the target number of frames, the target number of frames of high temperature frame data stored in the DDR are accumulated and averaged to obtain the high temperature image frame average data, and the high temperature image frame average data is stored in the DDR high temperature average data storage address area; Read the corresponding high temperature image data and low temperature image data from DDR respectively, and then calculate the correction parameter 1 by combining the difference between the high temperature image data and the low temperature image data. ,in, i , jis the row and column coordinates of the pixel point; Combined with high temperature image data and correction parameters Calculate the calibration parameter 2 ; ; The correction parameter and correction parameter 2 Store them together in DDR; Combined with calibration parameters and correction parameter 2 The image to be corrected is processed to obtain image data after the non-uniformity is corrected.
[0023] The calibration parameter The calculation formula is: ; In the formula, is the target number of high temperature image frame average data, is the target number of low-temperature image frame mean data, is the average pixel data of the target number of frames of high temperature images corresponding to the current pixel, The mean value data of the target number of low-temperature image pixels corresponding to the current pixel.
[0024] The calibration parameter The calculation formula is: .
[0025] The calculation formula of the image data after the non-uniformity is corrected is: ; In the formula, is the image data after non-uniformity correction, is the image data to be corrected.
[0026] Example 3 is based on the same inventive concept as Example 1. This example introduces an infrared image two-point correction algorithm IP mounting system, which implements infrared image correction by mounting the hardware IP (Intellectual Property) of the two-point correction algorithm on the standard bus AXI. The present invention can directly mount the two-point correction algorithm on the system bus, complete the two-point algorithm processing of the infrared original image through CPU scheduling, and can be directly reused in SoCs with AXI system buses, solving the shortcomings of the existing solutions with poor versatility, having certain practicality, and improving work efficiency. The basic block diagram of this design is shown in the figure. Figure 1 shown.
[0027] CPU: It plays a scheduling role in the whole system. It communicates with the algorithm module through the AXI bus. It configures data to the algorithm and controls the algorithm to read image data.
[0028] DDR: Responsible for storing the intermediate variables generated during the two-point calibration process.
[0029] AXI4FULL protocol conversion module: This module includes AXI4 handshake and AXI4 burst write logic. According to the AXI protocol, the data to be transmitted in the whole process is converted into data that meets the AXI protocol.
[0030] Processed data cross-domain FIFO: used to cache the intermediate quantities, gain coefficients, offset coefficients generated during the two-point correction algorithm processing, and the final processed image data.
[0031] Configuration / unprocessed data cross-domain FIFO: used to cache the configuration data sent by the CPU to the algorithm through the AXI bus, as well as the unprocessed image data input from the outside; Two-point correction algorithm: This is the core part of the two-point correction algorithm. It includes image data input and output interface, gain coefficient module and bias coefficient module, and image line field signal extraction module. Read data from the configuration / unprocessed data cross-domain FIFO, and convert the data into processable frame synchronization signal fsys, data valid signal ivalid and data signal idata[13:0] image data through the image line field signal extraction module; calculate the two-point correction parameters through the gain coefficient module and the bias coefficient module. The function of this algorithm is to correct the non-uniformity of infrared images. The working principle of the two-point algorithm is as follows: Figure 2 shown.
[0032] Working process: (1) IP-mounted AXI design of infrared image two-point correction algorithm: When high and low temperature image data is transmitted from the outside, the AXI4FULL protocol conversion module shakes hands with the AXI Master controller. After the handshake is successful, the configuration instructions and image data are transmitted and cached in the configuration / unprocessed data cross-domain FIFO. The image line and field signal extraction module converts the image data in the FIFO into line and field, and converts it into image data in the format of frame synchronization signal fsys, data valid signal ivalid and data signal idata[13:0] to calculate the gain coefficient and bias coefficient. At the same time, the intermediate quantities and calculation results generated by the calculation process are cached in the processed data cross-domain FIFO, and the data of the processed data cross-domain FIFO is moved by the AXI4FULL protocol conversion module and stored in DDR through AXI BUS. Next, the image to be corrected is input through the above process. Each frame of the image will read the correction parameters in the DDR through AXI for processing, obtain the image data after the non-uniformity is corrected and write it into the processed data cross-domain FIFO. The AXI4FULL protocol conversion module moves the data of the processed data cross-domain FIFO, integrates the output image data frame synchronization signal ofsys, data valid signal ovalid and data signal odata[13:0] into the AXI protocol data format, and transmits the data to the downstream algorithm module through AXI for subsequent processing.
[0033] (2) Algorithm design for two-point correction: The two-point correction algorithm attempts to correct the bias coefficient and gain coefficient of the pixel at the same time, and finally achieves ~ The linear response characteristics of the pixels on the focal plane coincide with a straight line, and the expression is as follows: ; Where a and b are the gain correction parameter and the offset correction parameter respectively.
[0034] Because two correction parameters need to be solved for each pixel, a uniform infrared radiation source of different temperatures is needed as a reference to solve the correction parameters a and b. Generally, high and low temperature data are used for calibration, and the calculation formula is as follows: ; .
[0035] Step 1: Trigger the low-temperature frame calibration switch through the core configuration, wait for the frame synchronization signal to be valid, and start the low-temperature frame accumulation count when the frame synchronization signal is detected to be valid: add the current frame data to the data in the DDR (initial value is set to 0) and write it into the DDR accumulation address area again. After the accumulation is completed, the low-temperature frame count is increased by 1; Step 2: When the low temperature frame counter accumulates to 32 frames, the 32 low temperature frames stored in the DDR are accumulated and averaged, and the data is stored in the DDR low temperature average data storage address area, waiting for the high temperature frame trigger signal; Step 3: Trigger the high temperature frame calibration switch through the core configuration, wait for the frame synchronization signal to be valid, and start the high temperature frame accumulation count when the frame synchronization signal is detected to be valid: add the current frame data to the data in the DDR (initial value is set to 0) and write it into the DDR accumulation address area again. After the accumulation is completed, the high temperature frame count is increased by 1; Step 4: When the high temperature frame counter is accumulated to 32 frames, the accumulated sum of the 32 frames of high temperature frames stored in the DDR is averaged; Step 5. After completing step 4, wait for two frame synchronization signals and start calculating the correction parameters a and b: read the corresponding low temperature and high temperature data from DDR respectively, and then calculate a by combining the difference between the high temperature and low temperature data means, that is: ; Then calculate b by combining the high temperature data and the a value; ; Finally, store a and b together in DDR.
[0036] After the correction parameters are calculated, when the input image data passes through the two-point correction algorithm module, each frame of the image will be processed according to the correction parameters in the DDR to obtain image data after the non-uniformity is corrected.
[0037] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0038] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0039] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0040] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0041] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. An infrared image two-point correction algorithm IP mounting system, It is characterized in that include: CPU, DDR and two-point correction algorithm IP; The CPU communicates with the two-point correction algorithm IP via the AXI bus, and is used to configure data for the two-point correction algorithm IP and control the two-point correction algorithm IP to read image data; The two-point correction algorithm IP includes an AXI protocol conversion module, a configuration / unprocessed data cross-domain FIFO, a two-point correction algorithm module, and a processed data cross-domain FIFO; The processed data cross-domain FIFO is used to cache the intermediate quantities, gain coefficients, bias coefficients and the last processed image data generated during the processing of the two-point correction algorithm module; The configuration / unprocessed data cross-domain FIFO is used to cache the configuration data sent by the CPU to the two-point correction algorithm module through the AXI bus and the unprocessed image data transmitted from the outside; The AXI protocol conversion module is used to convert the data input from the AXI bus according to the AXI protocol, convert it into data that can be read and used by the two-point correction algorithm module, and store it in the configuration / unprocessed data cross-domain FIFO; the AXI protocol conversion module is also used to convert the data cached in the processed data cross-domain FIFO according to the AXI protocol, and cache it to the DDR through the AXI bus; The DDR is used to obtain and store the intermediate variables generated in the two-point calibration process from the AXI bus.
2. According to the IP mounting system of the infrared image two-point correction algorithm described in claim 1, It is characterized in that It also includes a downstream algorithm module, which is used to receive the processed image data through the AXI bus, and process the processed image data according to the downstream algorithm to obtain a new corrected image.
3. A correction method for the infrared image two-point correction algorithm IP mounting system based on any one of claims 1-2, It is characterized in that include: Acquire a number of high-temperature image data and low-temperature image data collected by the infrared image detector and the configuration data output by the CPU, and transmit them to the AXI protocol conversion module via the AXI bus, so that the AXI protocol conversion module converts the number of high-temperature image data and low-temperature image data and the configuration data output by the CPU into data readable by the two-point correction algorithm module according to the AXI protocol and stores them in the configuration / unprocessed data cross-domain FIFO; Based on the CPU output configuration data, the two-point correction algorithm module is controlled to extract image data from the configuration / unprocessed data cross-domain FIFO for cross-domain processing and line-field conversion, and converted into image data in the format of a frame synchronization signal fsys, a data valid signal ivalid and a data signal idata, and the converted data is subjected to gain coefficient and bias coefficient calculation to obtain correction parameters, and the correction parameters are cached in the processed data cross-domain FIFO, so that the AXI protocol conversion module converts the correction parameters into AXI format data according to the AXI protocol and transmits them to the DDR via the AXI bus; The image to be corrected acquired by the infrared image detector is obtained, and transmitted to the AXI protocol conversion module via the AXI bus, so that the AXI protocol conversion module converts the image to be corrected into data readable by the two-point correction algorithm module according to the AXI protocol and stores it in the configuration / unprocessed data cross-domain FIFO; The two-point correction algorithm module extracts the image to be corrected from the configuration / unprocessed data cross-domain FIFO for cross-domain processing and line-field conversion, converts it into image data in the format of frame synchronization signal fsys, data valid signal ivalid and data signal idata, and reads the correction parameters in DDR through the AXI bus; uses the correction parameters to process the image to be corrected, obtains the image data after the non-uniformity is corrected and writes it into the processed data cross-domain FIFO, so that the AXI4FULL protocol conversion module moves the data of the processed data cross-domain FIFO, integrates the frame synchronization signal ofsys, data valid signal ovalid and data signal odata of the corrected image, converts them into AXI protocol data format and outputs them through the AXI bus.
4. The calibration method according to claim 3, It is characterized in that Also includes: The frame synchronization signal ofsys, data valid signal ofvalid and data signal odata of the corrected image are integrated and converted into AXI protocol data format and output to the downstream algorithm module through the AXI bus.
5. The calibration method according to claim 3, It is characterized in that The processing process of the two-point correction algorithm module includes: The low temperature frame calibration switch is triggered by the CPU configuration, and the frame synchronization signal is waited to be valid. When the frame synchronization signal is detected to be valid, the low temperature frame counter starts to accumulate and count. The accumulated counting includes: adding the current low temperature frame data to the low temperature data in the DDR and writing them into the DDR low temperature frame accumulation address area again. After the accumulation is completed, the low temperature frame counter counts by 1, and the initial value of the low temperature data in the DDR is 0; When the low temperature frame counter accumulates the target number of frames, the low temperature frame data of the target number of frames stored in the DDR are accumulated and averaged to obtain low temperature image frame average data, and the low temperature image frame average data is stored in the DDR low temperature average data storage address area; The high temperature frame calibration switch is triggered by the CPU configuration, and the frame synchronization signal is waited to be valid. When the frame synchronization signal is detected to be valid, the high temperature frame counter starts to accumulate and count. The accumulated counting includes: adding the current high temperature frame data to the high temperature data in the DDR and writing them into the DDR high temperature frame accumulation address area again. After the accumulation is completed, the high temperature frame counter counts by 1, and the initial value of the high temperature data in the DDR is 0; When the high temperature frame counter accumulates the target number of frames, the target number of frames of high temperature frame data stored in the DDR are accumulated and averaged to obtain the high temperature image frame average data, and the high temperature image frame average data is stored in the DDR high temperature average data storage address area; Read the corresponding high temperature image data and low temperature image data from DDR respectively, and then calculate the correction parameter 1 by combining the difference between the high temperature image data and the low temperature image data. ,in, i , j is the row and column coordinates of the pixel point; Combined with high temperature image data and correction parameters Calculate the calibration parameter 2 ; ; The correction parameter and correction parameter 2 Store them together in DDR; Combined with calibration parameters and correction parameter 2 The image to be corrected is processed to obtain image data after the non-uniformity is corrected.
6. The calibration method according to claim 5, It is characterized in that The calibration parameter The calculation formula is: ; In the formula, is the target number of high temperature image frame average data, is the target number of low-temperature image frame mean data, is the average pixel data of the target number of frames of high temperature images corresponding to the current pixel, The mean value data of the target number of low-temperature image pixels corresponding to the current pixel.
7. The calibration method according to claim 6, It is characterized in that The calibration parameter The calculation formula is: 。 8. The calibration method according to claim 5, It is characterized in that The calculation formula of the image data after the non-uniformity is corrected is: ; In the formula, is the image data after non-uniformity correction, is the image data to be corrected.
