Visible light and infrared image registration fusion method for unmanned aerial vehicle photoelectric turret
Through simplified ground calibration and registration algorithm operation on onboard computers, the complexity of visible and infrared image registration in the UAV payload system is solved, and fast and accurate image registration and real-time processing is achieved, suitable for zoom and variable resolution conditions.
Patent Information
- Application Number
- CN202510256451.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-05
- Publication Date
- 2025-04-04
- Estimated Expiration
- 2045-03-05
AI Technical Summary
The prior art is difficult to achieve rapid and accurate registration of visible light and infrared images in drone load systems, especially under the conditions of zoom lenses and variable ground resolution, where traditional calibration methods are complex and time-consuming.
A method for fusion of visible light and infrared image for drone photoelectric turret is provided, including ground calibration, rough matching of field angles, image descriptor extraction and registration, and image fusion. Through a simplified ground calibration process, the field angle and focal relationship of visible light and infrared cameras is recorded, and the registration algorithm is run on the onboard computer, using multi-scale descriptors and optimized search strategies to improve the efficiency and accuracy of feature matching.
It significantly reduces the workload of image registration calibration, improves the efficiency and accuracy of registration, and is suitable for variable focal length and variable resolution conditions in the integrated load system of photoelectric radar on-board unmanned aerial vehicle, real-time image processing is realized.
Smart Images

Figure CN119762556A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image registration of unmanned aerial vehicle payload systems, and in particular to a visible light and infrared image registration and fusion method for an unmanned aerial vehicle optoelectronic turret. Background Art
[0002] Image registration is an important technology in the field of computer vision and image processing. It aims to align images acquired at different times, different perspectives or different devices for comparison, analysis or fusion. Traditional image registration methods usually require a complex ground calibration process, which includes accurate measurement of the visual axis center offset, edge distortion and pixel mapping relationship of visible light and infrared radar. These calibration processes are often time-consuming and labor-intensive, and are only applicable to the case of fixed focal length lenses. However, in the integrated payload system of UAV-mounted optoelectronic radar, the visible light is equipped with a variable focal length lens, and the infrared radar usually has an adjustable ground resolution, which makes the traditional calibration methods no longer applicable because they need to be calibrated separately for each focal length, resulting in a huge workload.
[0003] In the prior art, the registration of visible light and infrared images usually requires the execution of cumbersome ground calibration procedures, including the calibration of the visible light and infrared visual axis center offset, imaging mode differences, pixel mapping relationships, etc. The calibration process is complicated and only applicable to the case where both visible light and infrared are fixed focal length lenses. The visible light camera of the optoelectronic radar integrated payload is a variable focal length, and the infrared system is a variable parameter configuration. The workload of calibrating the center offset, edge distortion, pixel mapping, etc. for each focal length or parameter configuration is huge. The main limitations of the prior art are its complex ground calibration process and the lack of image registration solutions suitable for variable focal length lenses; there is a lack of algorithms that can adapt to the focal length changes of the variable focal length visible light camera and the variable ground resolution infrared radar of the optoelectronic radar integrated payload on the drone and achieve fast and accurate registration.
[0004] In addition, due to the dynamic nature of the UAV platform and the real-time requirements of the mission, traditional image registration methods face challenges in practical applications. When the UAV performs monitoring tasks, the change of the camera focal length is normal, which requires the image registration algorithm to quickly adapt to the change of visible light focal length and the change of infrared radar ground resolution to achieve real-time processing. Therefore, there is an urgent need for an image registration method suitable for the variable focal length visible camera and variable focal length infrared camera on the UAV's airborne optoelectronic turret. Summary of the invention
[0005] In order to solve the above problems, the present invention provides a visible light and infrared image registration and fusion method for an optoelectronic turret of an unmanned aerial vehicle.
[0006] The present invention aims to provide a visible light and infrared image registration and fusion method for an unmanned aerial vehicle optoelectronic turret, which specifically comprises the following steps: S1. Ground calibration: measure and calibrate the relationship between the focal length of the visible light camera and the field angle in the Y direction of the visible light, and the relationship between the focal length of the infrared camera and the field angle in the Y direction of the infrared light, and record the relationship between the field angle and the focal length as a file and store it on the camera control board; S2. Coarse matching of field of view angle: The camera control board controls the movement of the visible light camera or infrared camera through the PID algorithm, so that the field of view angle of a single pixel of the visible light image is equal to the field of view angle of a single pixel of the infrared image; S3. Image descriptor extraction and registration: extract heterogeneous image descriptors of visible light image and infrared image, match the descriptors, store the projection relationship of each pixel coordinate of visible light image and infrared image as matrix A; call matrix A to complete the registration; S4. Image fusion: According to the registered image, the visible light image format is converted from RGB to YUV, and the corresponding brightness value of the infrared image is superimposed on the Y channel. The local contrast and information entropy of the visible light image and the infrared image are calculated, and the fusion ratio of the visible light image and the infrared image is dynamically adjusted to generate a registered fused image.
[0007] Preferably, the measurement and calibration method in step S1 specifically includes: using a reentrant visible infrared dual light common field light tube to gradually measure the Y direction field angle of the visible light camera and the Y direction field angle of the infrared camera; the reentrant visible infrared dual light common field light tube contains a crosshair, and the step length is 0.1m.
[0008] Preferably, the method for adjusting the field angle of a single pixel of the visible light image to be equal to the field angle of a single pixel of the infrared image in step S2 is specifically as follows: When the UAV performs a mission, if the visible lens is used as the main lens and infrared is integrated, the following steps are performed: when the visible lens is used as the main lens and the ground station sends a large field of view or small field of view command, only the visible lens responds; after the ground station control ends, the visible lens is in a static state. At this time, the focal length value g of the visible light is read out. CCD ; According to the focal length of visible light g CCD , visible pixel size and infrared pixel size, calculate the infrared focal length of a single pixel under the same field of view, and the camera control board controls the repeated movement of the infrared camera through the PID algorithm until the visible light focal length is 1 / 6 of the infrared focal length; When the UAV is performing a mission, if the infrared lens is used as the main lens and the visible lens is integrated, the following steps are performed: when the infrared lens is used as the main lens and the ground station sends a large field of view or a small field of view command, only the infrared lens responds; after the ground station control ends, the infrared lens is in a static state. At this time, the focal length value g of the infrared lens is read out. IR ; According to the focal length value g of the infrared lens IR, according to the visible pixel size and the infrared pixel size, the visible light focal length of a single pixel under the same field of view is calculated. The camera control board controls the repeated movement of the visible light camera through the PID algorithm until the visible light focal length is 1 / 6 of the infrared focal length.
[0009] Preferably, in step S3, the heterogeneous image descriptors of the visible light image and the infrared image include a phase consistency descriptor and a gradient descriptor; and the weighted correlation distance method is used for matching; the specific method is as follows: S301. Calculate the phase consistency descriptor of the heterogeneous image, which is used to measure the phase of a specific frequency component in the heterogeneous image; for each pixel, the phase can be calculated by the following formula: ; in, are pixel coordinates, w are different scales, is the phase at scale w, M represents the number of sizes; S302. Calculate the gradient descriptor of the heterogeneous image; The gradient direction descriptor of the heterogeneous image is as follows: ; ; in, and They are the gradients in the x and y directions when the scale is m, I is the brightness of the image; thus, the gradient descriptor of the heterogeneous image is expressed as:
[0010] ; In the formula, Indicates the direction of the gradient, that is, the direction of the brightness change of the image at the point (x, y); S303. Set the statistical scale to m, and take the (x, y) pixel as the center and the gradient histogram of the surrounding 10×10 pixels as follows: ; S304. Based on the image target size, take M / 2 scales upward and M / 2 scales downward, for a total of M scales; ; Phase consistency descriptor at the mth scale , gradient descriptor , gradient histogram It constitutes the descriptor vector at the mth scale : ; S305. Use the weighted correlation distance method to perform matching; the expression is as follows: ; Where WCD represents the weighted correlation distance, which is the weighted sum of the differences between the descriptor vectors of the visible light image and the infrared image from scale 1 to scale M; m is the scale of the descriptor; M represents the number of sizes; and Represent the multi-scale descriptor vector at the mth scale in the visible light image and infrared image respectively; is the weight of the mth scale, expressed as: ; is the descriptor vector of the mth scale and The variance of When the WCD value is greater than 0.5, it is considered and The match is successful; the projection relationship between the coordinates of each pixel in the visible light image and the infrared image is stored as matrix A.
[0011] Preferably, step S4 specifically includes the following sub-steps: S401. Calculate the local contrast of the visible light image and the infrared image; normalize the local contrast of the visible light image and the infrared image to obtain the weight of the local contrast of the visible light image and the infrared image; S402. Calculate the information entropy of the visible light image and the information entropy of the infrared image, normalize the information entropy of the visible light image and the infrared image, and obtain the weights of the information entropy of the visible light image and the infrared image; S403. Convert the RGB format file of the visible light image to YUV, and make the Y channel brightness value of the visible light image Y CCD and infrared image Y channel brightness value Y IR superposition, pixel-by-pixel fusion, to generate a registered fused image Y fused, the expression is as follows: ; In the formula, Y fused means to register the fused image. Y CCD represents the Y channel brightness value of the visible light image. Y ir is the Y channel brightness value of the infrared image; represents the visible light image weight based on local contrast, represents the infrared image weight based on local contrast; represents the weight of the visible light image based on information entropy, Represents the infrared image weight based on information entropy.
[0012] Preferably, step S401 specifically includes the following sub-steps: S4011. Determine a local area centered on the feature, apply a mean filter to the local area to obtain the local average brightness, calculate the standard deviation of the deviation between the pixel value in the local area and the local average brightness, and take the maximum value of the standard deviation as the local contrast; The calculation formulas for the local standard deviation of visible light images and infrared images are as follows: ; ; In the formula, is the visible image at coordinates ( x , y ), is the infrared image at coordinates ( x , y ), is the local area Ω in the visible light image or infrared image f The average pixel value, |Ω f ∣ represents the local area Ω in the visible light image or infrared image f The total number of pixels; The local contrast expression of a visible light image or infrared image is as follows: CCDLocalContrast=max( ); IRLocalContrast=max( ); S4012. Normalize the local contrast of the visible light image and the infrared image so that the sum of CCDLocalContrast and IRLocalContrast is 1; obtain the weight of the local contrast of the visible light image and the infrared image: ; In the formula, represents the visible light image weight based on local contrast, Represents the infrared image weight based on local contrast.
[0013] Preferably, step S402 specifically includes the following sub-steps: S4021. Use a histogram to represent the number of times the gray value i appears in the visible light image or infrared image; for each pixel in the gray image, the gray value or , do the following: ; In the formula, and Represents visible histogram and infrared histogram; i represents grayscale value; represents the indicator function; when ;when ; Represents the grayscale value of the pixel with coordinates (x, y) in the visible image. Represents the grayscale value of the pixel with coordinates (x, y) in the infrared image; S4022. Perform normalization to convert the histogram into a probability distribution by dividing the frequency of each gray value by the total number of pixels in the image: ; ; In the formula, and are the probability distribution of each gray value of the visible light image and infrared image respectively, and are the width and height of the visible light image, respectively. and are the width and height of the infrared image respectively; S4023. Using the Shannon information entropy formula, multiply the probability of each gray value by its logarithm with base 2, and accumulate all 256 possible gray values to calculate the information entropy of the visible light image. H CCD and infrared image information entropy H ir; the calculation formula is as follows: ; ; S4024. Normalize the information entropy of the visible light image and the infrared image so that H CCD and H ir is 1, and the weights of the information entropy of the visible light image and the infrared image are obtained: ; In the formula, represents the weight of the visible light image based on information entropy, Represents the infrared image weight based on information entropy.
[0014] Preferably, the value range of information entropy is 0 to 8 bits; when all pixels have the same grayscale value, H CCD = 0, H ir = 0; when the probability of each gray value appearing is equal, the information entropy H CCD = 8, H ir =8.
[0015] Compared with the prior art, the present invention can achieve the following beneficial effects: The present invention only needs to simply calibrate the visible and infrared field of view angles on the ground. After zooming, the registration algorithm is run on the onboard computer, and the efficiency and accuracy of feature matching are improved by combining multi-scale descriptors and optimized search strategies. It is suitable for the registration of visible infrared images with different resolutions and under the condition that the visible infrared radar is a zoom lens, and is particularly suitable for the registration of images under the conditions of the integrated load of the photoelectric radar on the unmanned aerial vehicle, the variable focal length visible camera and the variable ground resolution infrared radar. It has broad application prospects and practical application value, and significantly reduces the workload of registration and calibration. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 The present invention provides a flowchart of a method for registration and fusion of visible light and infrared images for an optoelectronic turret of a UAV according to an embodiment of the present invention.
[0017] Figure 2 It is a visible light image taken by a drone according to an embodiment of the present invention.
[0018] Figure 3 This is an infrared image taken by a drone according to an embodiment of the present invention.
[0019] Figure 4 It is a fused registration image generated by fusing the visible light image and the infrared image on the drone provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0020] Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. In the following description, the same modules are represented by the same reference numerals. In the case of the same reference numerals, their names and functions are also the same. Therefore, the detailed description thereof will not be repeated.
[0021] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and do not constitute a limitation of the present invention.
[0022] The present invention aims to solve the limitations of the prior art and provide a new image registration method, which is applicable to the integrated payload system of the photoelectric radar onboard the UAV, can reduce the calibration workload and improve the efficiency and accuracy of image registration. By performing a simple field of view angle calibration on the ground, combined with multi-scale descriptors and optimized search strategies, the registration algorithm can be run in real time on the onboard computer to meet the needs of real-time image processing of the UAV.
[0023] See also Figure 1 The present invention provides a visible light and infrared image registration and fusion method for an unmanned aerial vehicle optoelectronic turret, which specifically comprises the following steps: S1. Ground calibration: Install the visible light camera and infrared camera on the optoelectronic turret on the drone; measure and calibrate the relationship between the focal length of the visible light camera and the visible light Y-direction field of view angle and the relationship between the focal length of the infrared camera and the infrared Y-direction field of view angle, record the relationship between the field of view angle and the focal length as a file, and store it on the camera control board; The measurement and calibration method specifically includes: using a reentrant visible infrared dual light common field light tube (the light tube contains crosshairs, and the step length is 0.1m) to gradually measure the Y-direction field angle of the visible light camera and the Y-direction field angle of the infrared camera; Specifically, the optoelectronic turret is equipped with a measured azimuth and pitch encoder; assuming that the focal length of the visible light camera lens is CCD_F at this time, the pitch angle of the optoelectronic turret is locked to 0, align the upper edge of the visible light camera with the crosshairs of the light tube, and read the azimuth angle CCDup of the optoelectronic turret at this time; rotate the optoelectronic turret to align the lower edge of the visible light camera with the crosshairs of the light tube, and read the azimuth angle CCDdown of the optoelectronic turret at this time, then when the focal length of the visible light camera is CCD_F, the visible light Y-direction field of view angle is CCD_Y=CCDup-CCDdown; record the corresponding relationship between the focal length of the visible light lens and the field of view angle in array c; similarly, measure the Y-direction field of view angle of the infrared camera, IR_Y=IRup-IRdown; record the corresponding relationship between the focal length of the infrared lens and the field of view angle in array d, and store it in the optoelectronic turret recorder on the drone.
[0024] S2. Rough matching of field of view angle: The camera control board controls the movement of the visible light camera or infrared camera through the PID algorithm to make the field of view angle of a single pixel of the visible light image equal to the field of view angle of a single pixel of the infrared image. The specific operations are as follows: If each pixel of the visible light image and the infrared image has the same field of view, the relationship between the focal lengths of the visible light lens and the infrared lens is derived as follows: Visible light pixel size: ; Infrared pixel size: ; The focal length of the visible light lens is fvi ; The focal length of the infrared lens is fir ; The angular resolution θ can be expressed by the following formula: θ = pixel size / focal length; The angular resolution of the visible light image is θ vis = dvis / fvis ; The angular resolution of the infrared image is ; To make θ vis Equal to θ ir , the following equation can be established: ; That is, when the visible light pixel size is 2.5 μm and the infrared pixel size is 15 μm, that is, the visible focal length is 1 / 6 of the infrared focal length, the field of view of a single pixel in the visible light image is equal to the field of view of a single pixel in the infrared image.
[0025] The visible light camera and infrared camera use external triggering to ensure that the visible and infrared are exposed at the same time.
[0026] The method of adjusting the field of view angle of a single pixel of a visible light image to be equal to the field of view angle of a single pixel of an infrared image, that is, adjusting the visible focal length to 1 / 6 of the infrared focal length, is as follows: When the UAV performs a mission, if the visible lens is used as the main lens and infrared is integrated, the following steps are performed: when the visible lens is used as the main lens and the ground station sends a large field of view or small field of view command, only the visible lens responds; after the ground station control ends, the visible lens is in a static state. At this time, the focal length value g of the visible light is read out. CCD ; According to the focal length of visible light g CCD , visible pixel size and infrared pixel size, calculate the infrared focal length of a single pixel under the same field of view, and the camera control board controls the repeated movement of the infrared camera through the PID algorithm until the visible light focal length is 1 / 6 of the infrared focal length; When the UAV is performing a mission, if the infrared lens is used as the main lens and the visible lens is integrated, the following steps are performed: when the infrared lens is used as the main lens and the ground station sends a large field of view or a small field of view command, only the infrared lens responds; after the ground station control ends, the infrared lens is in a static state. At this time, the focal length value g of the infrared lens is read out. IR ; According to the focal length value g of the infrared lens IR , according to the visible pixel size and the infrared pixel size, the visible light focal length of a single pixel under the same field of view is calculated. The camera control board controls the repeated movement of the visible light camera through the PID algorithm until the visible light focal length is 1 / 6 of the infrared focal length.
[0027] S3. Image descriptor extraction and registration: extract heterogeneous image descriptors of visible light image and infrared image, match the descriptors, store the projection relationship of each pixel coordinate of visible light image and infrared image as matrix A; call matrix A to complete the registration; The heterogeneous image descriptors of visible light images and infrared images include phase consistency descriptors and gradient descriptors. The method for matching the descriptors is to extract the common feature descriptors of visible light images and infrared images by combining the phase consistency descriptors and gradient descriptors, and then use the weighted correlation distance (WCD) method for matching. The specific method is as follows: S301. Calculate the phase consistency descriptor of the heterogeneous image, which is used to measure the phase of a specific frequency component in the heterogeneous image; for each pixel, the phase can be calculated by the following formula: ; in, are pixel coordinates, w are different scales, is the phase at scale w, M represents the number of sizes (usually 10); S302. Calculate the gradient descriptor of the heterogeneous image; The gradient direction descriptor of the heterogeneous image is as follows: ; ; in, and They are the gradients in the x and y directions when the scale is m, I is the brightness of the image; thus, the gradient descriptor of the heterogeneous image is expressed as:
[0028] ; In the formula, Indicates the direction of the gradient, that is, the direction of the brightness change of the image at the point (x, y); S303. Set the statistical scale to m, and take the (x, y) pixel as the center and the gradient histogram of the surrounding 10×10 pixels as follows: ; S304. Based on the image target size, take M / 2 scales upward and M / 2 scales downward, for a total of M scales. Phase consistency descriptor under , gradient descriptor (gradient magnitude) , gradient histogram It constitutes the descriptor vector at the mth scale : ; The visible light image and infrared image are operated according to the above method, and each feature point in the obtained visible light image and infrared image generates a rich multi-scale descriptor vector and ,This descriptor effectively describes the local structural information of visible and infrared images, and provides a solid foundation for feature matching.
[0029] S305. Use the weighted correlation distance (WCD) method for matching; the expression is as follows: ; Where WCD represents the weighted correlation distance, which is the weighted sum of the differences between the descriptor vectors of the visible light image and the infrared image from scale 1 to scale M; m is the scale of the descriptor (the value of m ranges from 1 to M); M represents the number of sizes (usually 10); and Represent the multi-scale descriptor vector at the mth scale in the visible light image and infrared image respectively; is the weight of the mth scale, expressed as: ; is the descriptor vector of the mth scale and The variance of When the WCD value is greater than 0.5, it is considered and The match is successful; the projection relationship between the coordinates of each pixel in the visible light image and the infrared image is stored as matrix A.
[0030] Principle: After step S2, the visible and infrared fields of view are basically consistent in the Y direction in theory. However, due to the field of view angle calibration error in step S1 and the focus control error in step S2, there are still slight differences in the visible and infrared fields of view, so registration is required. The calculation of the common feature descriptors of visible light images and infrared images is a key step in the matching of visible light images and infrared images. It provides a unique vector representation for each feature point of the visible light image and the infrared image.
[0031] The weighted correlation distance (WCD) method not only considers the Euclidean distance between feature vectors, but also the correlation between feature dimensions. This method is particularly suitable for situations where there are intrinsic connections between feature dimensions.
[0032] Because visible infrared uses external triggering to ensure that visible infrared is exposed at the same time, after exposure, a new frame of visible light image and infrared image arrive at the onboard computer. Only by calling matrix A can the real-time registration of visible infrared be completed, so that the real-time performance of the registration is effectively guaranteed.
[0033] S4. Image fusion: According to the registered image, convert the visible light image format from RGB to YUV, and superimpose the corresponding brightness value of the infrared image on the Y channel, calculate the local contrast and information entropy of the visible light image and the infrared image, dynamically adjust the fusion ratio of the visible light image and the infrared image, and generate a registered fused image; specifically, it includes the following sub-steps: S401. Calculate the local contrast of the visible light image and the infrared image; normalize the local contrast of the visible light image and the infrared image to obtain the weight of the local contrast of the visible light image and the infrared image; specifically include the following sub-steps: S4011. Determine a local area centered on the feature, apply a mean filter to the local area to obtain the local average brightness, calculate the standard deviation of the deviation between the pixel values in the local area and the local average brightness, and take the maximum value of the standard deviation as the local contrast.
[0034] Local standard deviation It is a local area The measure of the internal pixel value fluctuation, the local standard deviation calculation formulas for visible light images and infrared images are as follows: ; ; In the formula, is the visible image at coordinates ( x , y ), is the infrared image at coordinates ( x , y ), is the local area Ω in the visible light image or infrared image f The average pixel value, |Ω f ∣ represents the local area Ω in the visible light image or infrared image f The total number of pixels.
[0035] The local standard deviation is calculated by calculating the local region Ω f Inner pixel value and its average value μf The sum of the squared deviations of , and then take the square root. This value reflects the dispersion of pixel intensity in the feature area and is an indicator of the complexity of local texture.
[0036] The local contrast of a visible light image or infrared image is defined as the maximum value of its local standard deviation: CCDLocalContrast=max( ); IRLocalContrast=max( ); S4012. Normalize the local contrast of the visible light image and the infrared image so that the sum of CCDLocalContrast and IRLocalContrast is 1; obtain the weight of the local contrast of the visible light image and the infrared image: ; In the formula, represents the visible light image weight based on local contrast, Represents the infrared image weight based on local contrast.
[0037] S402. Calculate the information entropy of the visible light image and the information entropy of the infrared image, normalize the information entropy of the visible light image and the infrared image, and obtain the weights of the information entropy of the visible light image and the infrared image; specifically, the following sub-steps are included: S4021. Use a histogram to represent the number of times the gray value i appears in the visible light image or infrared image; for each pixel in the gray image, the gray value or , do the following: ; In the formula, and Represents visible histogram and infrared histogram; i represents grayscale value; represents the indicator function; when ;when ; Represents the grayscale value of the pixel with coordinates (x, y) in the visible image. Represents the grayscale value of the pixel with coordinates (x, y) in the infrared image; S4022. Perform normalization to convert the histogram into a probability distribution by dividing the frequency of each gray value by the total number of pixels in the image: ; ; In the formula, and are the probability distribution of each gray value of the visible light image and infrared image respectively, and are the width and height of the visible light image, respectively. and are the width and height of the infrared image respectively.
[0038] S4023. Using the Shannon information entropy formula, multiply the probability of each gray value by its logarithm with base 2, and accumulate all 256 possible gray values to calculate the information entropy of the visible light image. H CCD and infrared image information entropy H ir; ; ; The range of information entropy is from 0 to a maximum of 8 bits. This range reflects the amount of information in an image from complete disorder (the grayscale value of each pixel is random and has equal probability) to complete order (all pixels have the same grayscale value); when all pixels have the same grayscale value (that is, the image is completely uniform), H CCD = 0, H ir=0; when the probability of each gray value appearing is equal, the information entropy H CCD = 8, H ir=8, reaching the maximum value.
[0039] S4024. Normalize the information entropy of the visible light image and the infrared image so that H CCD and H ir is 1, and the weights of the information entropy of the visible light image and the infrared image are obtained: ; In the formula, represents the weight of the visible light image based on information entropy, Represents the infrared image weight based on information entropy.
[0040] S403. Convert the RGB format file of the visible light image to YUV, and make the Y channel brightness value of the visible light image Y CCD and infrared image Y channel brightness value Y IR superposition, pixel-by-pixel fusion, to generate a registered fused image Y fused, the expression is as follows: ; In the formula, Y fused means to register the fused image. Y CCD represents the Y channel brightness value of the visible light image. Y ir is the Y channel brightness value of the infrared image; represents the visible light image weight based on local contrast, represents the infrared image weight based on local contrast; represents the weight of the visible light image based on information entropy, Represents the infrared image weight based on information entropy.
[0041] In summary, the present invention simplifies the ground calibration process and only needs to calibrate the field of view and imaging parameters of the visible light camera and infrared. After the focal length or parameter changes, the registration algorithm is run on the onboard computer to extract the heterogeneous image descriptors, match the descriptors of the visible light and infrared images, and store the projection relationship of each pixel coordinate of the visible light and infrared as a matrix A. When the focal length or parameter configuration remains unchanged, the matrix A only needs to be calculated once and stored in the onboard computer.
[0042] Because visible light and infrared use synchronous triggering to ensure that visible light and infrared acquire data at the same time, after data acquisition, a new frame of visible light image and infrared image arrive at the onboard computer at the same time, and only need to call matrix A to complete the real-time registration of visible light and infrared, so that the real-time registration is effectively guaranteed. After each frame of image is registered by matrix A, the visible light video format is converted from RGB to YUV, and the corresponding brightness value of infrared is superimposed on the Y channel, and the local contrast and information entropy of visible light and infrared are calculated. According to the local contrast and information entropy, the fusion ratio of visible light Y and infrared brightness values is dynamically adjusted to maximize the information content of the fused image.
[0043] The method of the present invention is suitable for image registration under conditions of different resolutions and when the visible light camera and infrared camera are in variable focal length or variable parameter configuration, and is particularly suitable for the fields of image registration of variable focal length visible light camera and infrared image with integrated load of photoelectric radar onboard unmanned aerial vehicle, etc. It has broad application prospects and practical application value, and significantly reduces the workload of registration and calibration.
[0044] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the disclosure of the present invention can be performed in parallel, sequentially or in different orders, as long as the desired results of the technical solution disclosed in the present invention can be achieved, and this document does not limit this.
[0045] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A visible light and infrared image registration and fusion method for an unmanned aerial vehicle optoelectronic turret, characterized in that: The specific steps include: S1. Ground calibration: measure and calibrate the relationship between the focal length of the visible light camera and the field angle in the Y direction of the visible light, and the relationship between the focal length of the infrared camera and the field angle in the Y direction of the infrared light, and record the relationship between the field angle and the focal length as a file and store it on the camera control board; S2. Coarse matching of field of view angle: The camera control board controls the movement of the visible light camera or infrared camera through the PID algorithm, so that the field of view angle of a single pixel of the visible light image is equal to the field of view angle of a single pixel of the infrared image; S3. Image descriptor extraction and registration: extract heterogeneous image descriptors of visible light image and infrared image, match the descriptors, store the projection relationship of each pixel coordinate of visible light image and infrared image as matrix A; call matrix A to complete the registration; S4. Image fusion: According to the registered image, the visible light image format is converted from RGB to YUV, and the corresponding brightness value of the infrared image is superimposed on the Y channel. The local contrast and information entropy of the visible light image and the infrared image are calculated, and the fusion ratio of the visible light image and the infrared image is dynamically adjusted to generate a registered fused image.
2. The visible light and infrared image registration and fusion method for an unmanned aerial vehicle optoelectronic turret according to claim 1 is characterized in that: The measurement and calibration method in step S1 specifically includes: using a reentrant visible infrared dual light common field light tube to gradually measure the Y direction field angle of the visible light camera and the Y direction field angle of the infrared camera; the reentrant visible infrared dual light common field light tube contains a crosshair, and the step length is 0.1m.
3. The visible light and infrared image registration and fusion method for the optoelectronic turret of a UAV according to claim 2 is characterized by: The method for adjusting the field of view angle of a single pixel of the visible light image to be equal to the field of view angle of a single pixel of the infrared image in step S2 is specifically as follows: When the UAV performs a mission, if the visible lens is used as the main lens and infrared is integrated, the following steps are performed: when the visible lens is used as the main lens and the ground station sends a large field of view or small field of view command, only the visible lens responds; after the ground station control ends, the visible lens is in a static state. At this time, the focal length value g of the visible light is read out. CCD ; According to the focal length of visible light g CCD , visible pixel size and infrared pixel size, calculate the infrared focal length of a single pixel under the same field of view, and the camera control board controls the repeated movement of the infrared camera through the PID algorithm until the visible light focal length is 1 / 6 of the infrared focal length; When the UAV is performing a mission, if the infrared lens is used as the main lens and the visible lens is integrated, the following steps are performed: when the infrared lens is used as the main lens and the ground station sends a large field of view or a small field of view command, only the infrared lens responds; after the ground station control ends, the infrared lens is in a static state. At this time, the focal length value g of the infrared lens is read out. IR ; According to the focal length value g of the infrared lens IR , according to the visible pixel size and the infrared pixel size, the visible light focal length of a single pixel under the same field of view is calculated. The camera control board controls the repeated movement of the visible light camera through the PID algorithm until the visible light focal length is 1 / 6 of the infrared focal length.
4. The visible light and infrared image registration and fusion method for an unmanned aerial vehicle optoelectronic turret according to claim 1 is characterized in that: In step S3, the heterogeneous image descriptors of the visible light image and the infrared image include a phase consistency descriptor and a gradient descriptor; the weighted correlation distance method is used for matching; the specific method is as follows: S301. Calculate the phase consistency descriptor of the heterogeneous image, which is used to measure the phase of a specific frequency component in the heterogeneous image; for each pixel, the phase can be calculated by the following formula: ; in, are pixel coordinates, w are different scales, is the phase at scale w, M represents the number of sizes; S302. Calculate the gradient descriptor of the heterogeneous image; The gradient direction descriptor of the heterogeneous image is as follows: ; ; in, and They are the gradients in the x and y directions when the scale is m, I is the brightness of the image; thus, the gradient descriptor of the heterogeneous image is expressed as: ; In the formula, Indicates the direction of the gradient, that is, the direction of the brightness change of the image at the point (x, y); S303. Set the statistical scale to m, and take the (x, y) pixel as the center and the gradient histogram of the surrounding 10×10 pixels as follows: ; S304. Based on the image target size, take M / 2 scales upward and M / 2 scales downward, for a total of M scales; ; Phase consistency descriptor at the mth scale , gradient descriptor , gradient histogram It constitutes the descriptor vector at the mth scale : ; S305. Use the weighted correlation distance method to perform matching; the expression is as follows: ; Where WCD represents the weighted correlation distance, which is the weighted sum of the differences between the descriptor vectors of the visible light image and the infrared image from scale 1 to scale M; m is the scale of the descriptor; M represents the number of sizes; and Represent the multi-scale descriptor vector at the mth scale in the visible light image and infrared image respectively; is the weight of the mth scale, expressed as: ; is the descriptor vector of the mth scale and The variance of When the WCD value is greater than 0.5, it is considered and The match is successful; the projection relationship between the coordinates of each pixel in the visible light image and the infrared image is stored as matrix A.
5. The visible light and infrared image registration and fusion method for the optoelectronic turret of a UAV according to claim 1 is characterized by: The step S4 specifically includes the following sub-steps: S401. Calculate the local contrast of the visible light image and the infrared image; normalize the local contrast of the visible light image and the infrared image to obtain the weight of the local contrast of the visible light image and the infrared image; S402. Calculate the information entropy of the visible light image and the information entropy of the infrared image, normalize the information entropy of the visible light image and the infrared image, and obtain the weights of the information entropy of the visible light image and the infrared image; S403. Convert the RGB format file of the visible light image to YUV, and make the Y channel brightness value of the visible light image Y CCD and infrared image Y channel brightness value Y IR superposition, pixel-by-pixel fusion, to generate a registered fused image Y fused, the expression is as follows: ; In the formula, Y fused means to register the fused image. Y CCD represents the Y channel brightness value of the visible light image. Y ir is the Y channel brightness value of the infrared image; represents the visible light image weight based on local contrast, represents the infrared image weight based on local contrast; represents the weight of the visible light image based on information entropy, Represents the infrared image weight based on information entropy.
6. The visible light and infrared image registration and fusion method for the optoelectronic turret of a UAV according to claim 5 is characterized by: The step S401 specifically includes the following sub-steps: S4011. Determine a local area centered on the feature, apply a mean filter to the local area to obtain the local average brightness, calculate the standard deviation of the deviation between the pixel value in the local area and the local average brightness, and take the maximum value of the standard deviation as the local contrast; The calculation formulas for the local standard deviation of visible light images and infrared images are as follows: ; ; In the formula, is the visible image at coordinates ( x , y ), is the infrared image at coordinates ( x , y ), is the local area Ω in the visible light image or infrared image f The average pixel value, |Ω f ∣ represents the local area Ω in the visible light image or infrared image f The total number of pixels; The local contrast expression of a visible light image or infrared image is as follows: CCDLocalContrast=max( ); IRLocalContrast=max( ); S4012. Normalize the local contrast of the visible light image and the infrared image so that the sum of CCDLocalContrast and IRLocalContrast is 1; obtain the weight of the local contrast of the visible light image and the infrared image: ; In the formula, represents the visible light image weight based on local contrast, Represents the infrared image weight based on local contrast.
7. The visible light and infrared image registration and fusion method for the optoelectronic turret of a UAV according to claim 6 is characterized by: The step S402 specifically includes the following sub-steps: S4021. Use a histogram to represent the number of times the gray value i appears in the visible light image or infrared image; for each pixel in the gray image, the gray value or , do the following: ; In the formula, and Represents visible histogram and infrared histogram; i represents grayscale value; represents the indicator function; when ;when ; Represents the grayscale value of the pixel with coordinates (x, y) in the visible image. Represents the grayscale value of the pixel with coordinates (x, y) in the infrared image; S4022. Perform normalization to convert the histogram into a probability distribution by dividing the frequency of each gray value by the total number of pixels in the image: ; ; In the formula, and are the probability distribution of each gray value of the visible light image and infrared image respectively, and are the width and height of the visible light image, respectively. and are the width and height of the infrared image respectively; S4023. Using the Shannon information entropy formula, multiply the probability of each gray value by its logarithm with base 2, and accumulate all 256 possible gray values to calculate the information entropy of the visible light image. H CCD and infrared image information entropy H ir; the calculation formula is as follows: ; ; S4024. Normalize the information entropy of the visible light image and the infrared image so that H CCD and H ir is 1, and the weights of the information entropy of the visible light image and the infrared image are obtained: ; In the formula, represents the weight of the visible light image based on information entropy, Represents the infrared image weight based on information entropy.
8. The visible light and infrared image registration and fusion method for an unmanned aerial vehicle optoelectronic turret according to claim 7 is characterized in that: The value range of the information entropy is 0 to 8 bits; when all pixels have the same gray value, H CCD = 0, H ir = 0; when the probability of each gray value appearing is equal, the information entropy H CCD = 8, H ir =8.
Citation Information
Patent Citations
Visible light image and infrared thermal imaging image fusion correction method
CN112367472A
Different-source image matching method based on gradient and phase consistency
CN112712510A
Visible light and infrared image registration method for equalization second-order gradient histogram descriptor
CN114331879A
Zoom visible light image and infrared image registration method and system
CN116740152A
Control method, recording medium, method for manufacturing product, and system
CN117182890A
Cited By
Adaptive enhancement method for sensor data in high-dust environment
CN121541480A
Adaptive enhancement method for sensor data in high dust environment
CN121541480B