Image fusion method, device, image processing equipment and binocular system
Thermal imaging images and visible light images are processed through registration transformation and brightness fusion strategies to generate fusion images that adapt to the brightness of different environments. This solves the problem in the existing technology that the fusion results have greatly different effects in different environments, and improves the adaptability of image fusion. and details preserved.
Patent Information
- Application Number
- CN202011601689.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-30
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2040-12-30
AI Technical Summary
In the existing technology, the fusion results of thermal imaging images and visible light images have greatly different effects in different brightness environments, making it difficult to adapt to environmental changes.
By acquiring the visible light image and the thermal imaging image to be fused, the pre-obtained registration transformation parameters are used to perform the registration transformation, and the fusion brightness value is determined according to the brightness value after the registration transformation and the preset brightness fusion strategy, and the fusion brightness value is determined based on the brightness value and the preset brightness fusion strategy. The corresponding relationship between color values generates a fused image.
It improves the fusion effect of thermal imaging images and visible light images, enables the fused image to adapt to different environmental brightness, and significantly improves the fusion adaptability and detail retention of the image.
Smart Images

Figure CN112614164B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image processing technology, and in particular to an image fusion method, device, image processing equipment and binocular system. Background Art
[0002] Visible light images are images captured by image acquisition equipment based on the light reflection of the target object, and thermal imaging images are images captured by image acquisition equipment based on the radiation of the target object itself. Visible light images contain rich detail information, but are easily affected by factors such as lighting conditions and weather. Especially when the color difference between the target object and the background is small, it is difficult to distinguish the target object. Thermal imaging images mainly reflect the heat information of the target object, and can well display the target object with heat, which is less affected by lighting conditions and bad weather. However, due to the limitations of the imaging principle, the contrast of thermal imaging images is low and the detail information of the target object is poor. Fusion of thermal imaging images with visible light images can well make up for the shortcomings of the two images and has very high application value.
[0003] In the corresponding technology, the fusion of visible light images and thermal imaging images includes two schemes. One is to superimpose the high-frequency component of visible light with the low-frequency component of thermal imaging to obtain a fusion result; the other is to perform weighted summation of the low-frequency components in the visible light image and the thermal imaging image to obtain a low-frequency fusion component, and then superimpose the low-frequency fusion component with the high-frequency component to obtain the final fusion result.
[0004] However, both low-frequency components and high-frequency components are easily affected by the ambient brightness, resulting in large differences in the fusion results obtained by the above scheme under different brightness environments. Summary of the invention
[0005] The purpose of the embodiments of the present invention is to provide an image fusion method, device, image processing equipment and binocular system to improve the fusion effect of visible light images and thermal imaging images. The specific technical solution is as follows:
[0006] In a first aspect, an embodiment of the present invention provides an image fusion method, the method comprising:
[0007] Acquire a visible light image and a thermal imaging image to be fused;
[0008] Using the pre-obtained registration transformation parameters, the visible light image and the thermal imaging image are registered and transformed, wherein the registration transformation refers to a transformation operation performed on one image based on another image;
[0009] Determine the fusion brightness value of the fusion pixel point at each position according to the brightness value of the pixel point at the same position in the visible light image and the thermal imaging image after the registration transformation and the preset brightness fusion strategy;
[0010] According to the fused brightness value of the fused pixel at each position and the correspondence between the preset brightness value and the color value, the color value of each fused pixel is determined respectively, and a fused image is obtained based on the color value of the fused pixel.
[0011] In a possible implementation manner, the registration transformation parameters are obtained by:
[0012] Acquire first coordinates of at least three designated targets in the visible light image and second coordinates of at least three designated targets in the thermal imaging image;
[0013] According to each first coordinate and each second coordinate, the registration transformation parameter is calculated using a preset coordinate transformation model.
[0014] In a possible implementation, the acquiring of first coordinates of at least three designated targets in the visible light image and second coordinates of at least three designated targets in the thermal imaging image includes:
[0015] Acquire each visible light image and each thermal imaging image when the designated target is located at at least three different designated positions, wherein the relative position between the visible light lens for acquiring each visible light image and the thermal imaging lens for acquiring each thermal imaging image remains unchanged;
[0016] The first coordinates of the designated target in each visible light image and the second coordinates of the designated target in each thermal imaging image are determined.
[0017] In a possible implementation, the step of determining the fused brightness value of the fused pixel point at the corresponding position according to the brightness value of the pixel point at the same position in the visible light image and the thermal imaging image after the registration transformation and the preset brightness fusion strategy includes:
[0018] According to the brightness values of the pixel points at the same position in the visible light image and the thermal imaging image after the registration transformation in the visible light image and the thermal imaging image after the registration transformation, the fused brightness values of the fused pixel points at the corresponding positions are determined according to the first preset mapping relationship, wherein the first preset mapping relationship is the correspondence between the brightness values of the pixel points at the same position in the visible light image and the brightness values in the thermal imaging image and the fused brightness values.
[0019] In a possible implementation, the fused brightness value recorded in the first preset mapping relationship is obtained by weighting the brightness value of a pixel at the same position in the visible light image and the brightness value in the thermal imaging image according to a weight coefficient calculated based on a preset weight model, wherein the weight model is set based on the size relationship between the brightness values of the visible light image and the thermal imaging image.
[0020] In a possible implementation, the step of determining the color value of each fused pixel point according to the fused brightness value of the fused pixel point at each position and the preset correspondence between the brightness value and the color value includes:
[0021] For a fused pixel at any position, based on the fused brightness value of the fused pixel at that position, the color value of the fused pixel is determined according to a second preset mapping relationship, wherein the second preset mapping relationship is a one-to-one correspondence between the fused brightness value and the color value.
[0022] In a second aspect, an embodiment of the present invention provides an image fusion device, the device comprising:
[0023] An acquisition module, used for acquiring visible light images and thermal imaging images to be fused;
[0024] A registration module, used to perform registration transformation on the visible light image and the thermal imaging image using pre-acquired registration transformation parameters, wherein the registration transformation refers to a transformation operation performed on one image based on another image;
[0025] A fusion module, used to determine the fused brightness value of the fused pixel points at each position according to the brightness values of the pixel points at the same position in the visible light image and the thermal imaging image after the registration transformation and the preset brightness fusion strategy;
[0026] The color mapping module is used to determine the color value of each fused pixel point according to the fused brightness value of the fused pixel point at each position and the preset correspondence between the brightness value and the color value, and obtain a fused image based on the color value of the fused pixel point.
[0027] In a possible implementation, the device further includes:
[0028] A coordinate acquisition module, used to acquire first coordinates of at least three designated targets in the visible light image and second coordinates of at least three designated targets in the thermal imaging image;
[0029] The parameter acquisition module calculates the registration transformation parameters according to each first coordinate and each second coordinate using a preset coordinate transformation model.
[0030] In a possible implementation, the coordinate acquisition module is specifically used to: acquire each visible light image and each thermal imaging image when the designated target is located at at least three different designated positions, wherein the relative position between the visible light lens for acquiring each visible light image and the thermal imaging lens for acquiring each thermal imaging image remains unchanged; and determine the first coordinate of the designated target in each visible light image and the second coordinate of the designated target in each thermal imaging image.
[0031] In a possible implementation, the fusion module is specifically used to determine the fused brightness value of the fused pixel point at the corresponding position according to the brightness value of the pixel point at the same position in the visible light image and the thermal imaging image after the registration transformation, according to a first preset mapping relationship, wherein the first preset mapping relationship is the correspondence between the brightness value of the pixel point at the same position in the visible light image and the brightness value in the thermal imaging image and the fused brightness value.
[0032] In a possible implementation, the fused brightness value recorded in the first preset mapping relationship is obtained by weighting the brightness value of a pixel at the same position in the visible light image and the brightness value in the thermal imaging image according to a weight coefficient calculated based on a preset weight model, wherein the weight model is set based on the size relationship between the brightness values of the visible light image and the thermal imaging image.
[0033] In a possible implementation, the color mapping module is specifically used to: for a fused pixel point at any position, based on the fused brightness value of the fused pixel point at that position, determine the color value of the fused pixel point according to a second preset mapping relationship, wherein the second preset mapping relationship is a one-to-one correspondence between the fused brightness value and the color value.
[0034] In a third aspect, an embodiment of the present invention provides an image processing device, comprising a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the machine executable instructions are loaded and executed by the processor to implement the method provided in the first aspect of the embodiment of the present invention.
[0035] In a fourth aspect, an embodiment of the present invention provides a machine-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the method provided in the first aspect of the embodiment of the present invention is implemented.
[0036] In a fifth aspect, an embodiment of the present invention provides a binocular system, including a binocular camera and an image processing device; wherein the binocular camera includes an image sensor and an infrared sensor; the image sensor is used to collect visible light images; the infrared sensor is used to collect thermal imaging images;
[0037] The image processing device is used to receive a visible light image and a thermal imaging image to be fused sent by a binocular camera; perform a registration transformation on the visible light image and the thermal imaging image using pre-acquired registration transformation parameters, wherein the registration transformation refers to a transformation operation performed on another image based on one image; determine the fusion brightness value of the fused pixel points at each position according to the brightness value of the pixel points at the same position in the visible light image and the thermal imaging image after the registration transformation in the visible light image and the thermal imaging image after the registration transformation, and a pre-set brightness fusion strategy; determine the color value of each of the fused pixel points according to the fusion brightness value of the fused pixel points at each position, and a pre-set corresponding relationship between the brightness value and the color value, and obtain a fused image based on the color value of the fused pixel points.
[0038] In a possible implementation, the image processing device is specifically used to: obtain each first coordinate of at least three specified targets in the visible light image and each second coordinate in the thermal imaging image; and calculate the registration transformation parameters based on each first coordinate and each second coordinate using a preset coordinate transformation model.
[0039] In a possible implementation, the image processing device is specifically used to: obtain each visible light image and each thermal imaging image when the designated target is located at at least three different designated positions, wherein the relative position between the visible light lens for collecting each visible light image and the thermal imaging lens for collecting each thermal imaging image remains unchanged; determine the first coordinates of the designated target in each visible light image and the second coordinates of the designated target in each thermal imaging image.
[0040] In a possible embodiment, the image processing device is specifically used to determine the fused brightness value of the fused pixel point at the corresponding position according to the brightness value of the pixel point at the same position in the visible light image and the thermal imaging image after the registration transformation, according to a first preset mapping relationship, wherein the first preset mapping relationship is the correspondence between the brightness value of the pixel point at the same position in the visible light image and the brightness value in the thermal imaging image and the fused brightness value.
[0041] In a possible implementation, the fused brightness value recorded in the first preset mapping relationship is obtained by weighting the brightness value of a pixel at the same position in the visible light image and the brightness value in the thermal imaging image according to a weight coefficient calculated based on a preset weight model, wherein the weight model is set based on the size relationship between the brightness values of the visible light image and the thermal imaging image.
[0042] In a possible implementation, the image processing device is specifically used to: for a fused pixel point at any position, based on the fused brightness value of the fused pixel point at that position, determine the color value of the fused pixel point according to a second preset mapping relationship, wherein the second preset mapping relationship is a one-to-one correspondence between the fused brightness value and the color value.
[0043] An image fusion method, device, image processing equipment and binocular system provided by an embodiment of the present invention, after obtaining a visible light image and a thermal imaging image to be fused, use the pre-acquired registration transformation parameters to perform registration transformation on the visible light image and the thermal imaging image, determine the fusion brightness value of the fusion pixel points at each position according to the brightness value of the pixel points at the same position in the visible light image and the thermal imaging image after the registration transformation, and the pre-set brightness fusion strategy; determine the color value of each fusion pixel point according to the fusion brightness value of the fusion pixel points at each position, and the pre-set correspondence between the brightness value and the color value, and obtain a fusion image based on the color value of the fusion pixel point. By performing registration transformation on the visible light image and the thermal imaging image, the fusion brightness value is automatically obtained according to the brightness value of the pixel points in the visible light image and the thermal imaging image after the registration transformation, and then the color value of each pixel point is determined according to the fusion brightness value of each pixel point, so as to obtain a fusion image that can adapt to different ambient brightness, thereby improving the fusion effect of the visible light image and the thermal imaging image. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can be obtained based on these drawings without paying creative work.
[0045] Figure 1 Schematic diagram of the process of the image fusion method according to an embodiment of the present invention;
[0046] Figure 2 A schematic diagram of the interaction flow of each module in the image processing device according to an embodiment of the present invention;
[0047] Figure 3 Schematic diagram of the execution flow of the automatic registration module according to an embodiment of the present invention;
[0048] Figure 4 A schematic diagram of the execution flow of the adaptive fusion system according to an embodiment of the present invention;
[0049] Figure 5 is a schematic structural diagram of an image fusion device according to an embodiment of the present invention;
[0050] Figure 6 is a schematic structural diagram of an image processing device according to an embodiment of the present invention;
[0051] Figure 7 Schematic diagram of the structure of a binocular system according to an embodiment of the present invention. DETAILED DESCRIPTION
[0052] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0053] In order to improve the fusion effect of visible light images and thermal imaging images, the embodiments of the present invention provide an image fusion method, an apparatus, an image processing device, a machine-readable storage medium and a binocular system.
[0054] The image fusion method provided in the embodiment of the present invention can be applied to an image processing device, which refers to an electronic device with an image processing function. The image fusion method provided in the embodiment of the present invention can be implemented by at least one of software, hardware circuits, and logic circuits set in the image processing device.
[0055] like Figure 1 As shown, an image fusion method provided by an embodiment of the present invention may include the following steps.
[0056] S101, obtaining a visible light image and a thermal imaging image to be fused.
[0057] S102, using the pre-acquired registration transformation parameters, performing registration transformation on the visible light image and the thermal imaging image, wherein the registration transformation refers to a transformation operation performed on one image based on another image.
[0058] S103, determining a fused brightness value of a fused pixel point at each position according to the brightness values of the pixel points at the same position in the registered transformed visible light image and the thermal imaging image and a preset brightness fusion strategy.
[0059] S104, determining the color value of each fused pixel point according to the fused brightness value of the fused pixel point at each position and the preset correspondence between the brightness value and the color value, and obtaining a fused image based on the color value of the fused pixel point.
[0060] By applying the embodiment of the present invention, after obtaining the visible light image and the thermal imaging image to be fused, the visible light image and the thermal imaging image are fused by using the pre-acquired registration transformation parameters, and the fusion brightness value of the fused pixel points at each position is determined according to the brightness value of the pixel points at the same position in the visible light image and the thermal imaging image after the registration transformation, and the pre-set brightness fusion strategy; the color value of each fused pixel point is determined according to the fusion brightness value of the fused pixel points at each position, and the pre-set correspondence between the brightness value and the color value, and the fused image is obtained based on the color value of the fused pixel point. By performing the registration transformation on the visible light image and the thermal imaging image, the fusion brightness value is automatically obtained according to the brightness value of the pixel points in the visible light image and the thermal imaging image after the registration transformation, and then the color value of each pixel point is determined according to the fusion brightness value of each pixel point, so as to obtain a fused image that can adapt to different ambient brightness, thereby improving the fusion effect of the visible light image and the thermal imaging image.
[0061] The visible light image and thermal imaging image to be fused can be collected by a binocular camera (including an image sensor and an infrared sensor, wherein the image sensor is used to collect visible light images and the infrared sensor is used to collect thermal imaging images), or can be collected by distributed image sensors and infrared sensors on the same monitoring area. Of course, they can also be pre-collected and stored in a database and obtained from a database.
[0062] Since the image sensor and the infrared sensor are two different sensors, the size rules of the collected images are often not uniform. In order to better fuse them, it is necessary to first perform a registration transformation on the visible light image and the thermal imaging image to make the size rules of the two images uniform. The registration transformation refers to using one image as a reference and using the pre-acquired registration transformation parameters to transform the other image. For example, using the visible light image as a reference and using the registration transformation parameters to perform a registration transformation on the thermal imaging image, or using the thermal imaging image as a reference and using the registration transformation parameters to perform a registration transformation on the visible light image. Specific registration transformations include affine transformations, nonlinear transformations, perspective transformations, rigid body transformations, etc. The registration transformation parameters are related to the installation positions of the image sensor and the infrared sensor, shooting parameters, etc., and can be transformation matrices.
[0063] In an implementation of the embodiment of the present invention, the method for obtaining the registration transformation parameters may specifically include the following steps:
[0064] In the first step, first coordinates of at least three designated targets in the visible light image and second coordinates of at least three designated targets in the thermal imaging image are obtained.
[0065] In the second step, according to each first coordinate and each second coordinate, a preset coordinate transformation model is used to calculate the registration transformation parameters.
[0066] At least three different designated targets (these designated targets may have the same appearance) may be set in the space in advance, and then a binocular camera may be used to capture visible light images and thermal imaging images containing the three designated targets. The coordinates of each designated target are determined in the visible light image to obtain first coordinates; the coordinates of each designated target are determined in the thermal imaging image to obtain second coordinates. In one example, the above-mentioned acquisition of the first coordinates of at least three designated targets in the visible light image and the second coordinates in the thermal imaging image includes: acquiring each visible light image and each thermal imaging image when the designated target is located at at least three different designated positions, wherein the relative position between the visible light lens for capturing each visible light image and the thermal imaging lens for capturing each thermal imaging image remains unchanged; determining the first coordinates of the designated target in each visible light image and the second coordinates in each thermal imaging image.
[0067] When determining the registration transformation parameters, it is first necessary to locate the designated target (also called the target) in the field of view according to the visible light image and the thermal imaging image, and obtain the coordinates of the designated target. Specifically, the designated target (which can be a fixed shape, such as a rectangle, square, circle, etc.) is placed at different designated positions (such as the upper left, lower left, lower right, upper right, etc.) in the fixed scene, and the coordinates of the designated target are determined in the visible light image and the thermal imaging image (specifically, it can be the center point of the designated target). The algorithm for the center point of the target can refer to the center point algorithm in the relevant technology. In one example, the area of the designated target in the visible light image and the thermal imaging image can be obtained by computer vision technology, such as a foreground target and background segmentation algorithm, or a target recognition algorithm based on a deep learning model, and then the horizontal coordinates and vertical coordinates of each pixel in the area are averaged, so as to obtain the coordinates of the center point of the designated target. In other possible implementations, the key points of the designated target (points with obvious visual features, such as the corner points of a polygon, the key points of the eyes of a face, etc.) can also be selected as the coordinates of the designated target. The method for determining the key points can refer to the key point determination method in the relevant technology, which will not be repeated here.
[0068] In this way, the first coordinate (the coordinate in the visible light image) and the second coordinate (the coordinate in the thermal imaging image) of the specified target at different positions can be determined. For example, if the specified positions are the upper left, lower left, and upper right positions, three first coordinates can be obtained: (x1, y1), (x2, y2), (x3, y3) and three second coordinates can be obtained: (x1', y1'), (x2', y2'), (x3', y3').
[0069] Due to the influence of factors such as the installation position and shooting parameters, there is a certain coordinate transformation relationship between the visible light image and the thermal imaging image, which is specifically represented by a coordinate transformation model. For example, the coordinate transformation model can be:
[0070]
[0071] Wherein, θ refers to the angle relationship between the thermal imaging image and the visible light image, and k is a preset coefficient. According to the first coordinates and the second coordinates determined above, the coordinate transformation model shown in formula (1) is solved to obtain the registration transformation parameters.
[0072] After the visible light image and the thermal imaging image are registered and transformed using the registration transformation parameters, the visible light image and the thermal imaging image need to be fused. In the embodiment of the present invention, a brightness value fusion method is adopted instead of extracting low-frequency components and high-frequency components in the visible light image and the thermal imaging image for fusion. By obtaining a fusion strategy of adaptive weights according to the brightness values of the visible light image and the thermal imaging image, the same object can present a better fusion effect in different environments, thereby improving the adaptability of image fusion. For the pixel point at the same position in the registered visible light image and the thermal imaging image, the fused brightness value of the fused pixel point at the position is determined according to the brightness values of the pixel point at the same position in the registered visible light image and the thermal imaging image, respectively, and the preset brightness fusion strategy. Among them, the brightness fusion strategy can be to fuse the brightness values of the pixel point at the same position in the two images using a preset fusion calculation formula (such as direct addition or weighted summation, etc.), or to obtain the fused brightness value by looking up a preset fusion mapping table.
[0073] In a possible implementation, the step of determining the fused brightness value of the fused pixel point at the corresponding position according to the brightness value of the pixel point at the same position in the visible light image and the thermal imaging image after the registration transformation and the preset brightness fusion strategy includes: determining the fused brightness value of the fused pixel point at the corresponding position according to the brightness value of the pixel point at the same position in the visible light image and the thermal imaging image after the registration transformation and the first preset mapping relationship, wherein the first preset mapping relationship is the correspondence between the brightness value of the pixel point at the same position in the visible light image and the brightness value in the thermal imaging image and the fused brightness value.
[0074] Optionally, the preset weight model can be expressed as:
[0075]
[0076] Among them, A and B are preset parameters, A and B can be customized according to actual conditions and can be adjusted according to the required effects. j represents the brightness value of the corresponding pixel point in the visible light image, and i represents the brightness value of the corresponding pixel point in the thermal imaging image.
[0077] Based on the weight model of formula (2), the fused brightness value can be calculated using formula (3):
[0078]
[0079] Among them, the result of num(i,j) is the final fused brightness value.
[0080] It is understandable that the weight model is not limited to the form of formula (2), and can also be other forms of weight models related to the brightness value of the visible light image and the brightness value of the thermal imaging image. For example, it can also be expressed in the form of difference, such as A+(ji)B, etc.; or in the form of mean, such as: (Ai+Bj) / 2, etc.; or in the form of variance, such as: etc.; or use polynomial models such as Ai+Bj+C, Ai 2 +Bj 2 A and B are preset parameters, which can be adjusted according to the required effect. j represents the brightness value of the corresponding pixel in the visible light image, and i represents the brightness value of the corresponding pixel in the thermal imaging image.
[0081] In the process of calculating the fusion brightness value, the calculation method used is not limited to the distance model in formula (3) It can also be other polynomial models related to the brightness value of the visible light image and the brightness value of the thermal imaging image, such as ai+bj 3 Etc., at this time num(i,j) can be expressed as:
[0082]
[0083] The calculation of the fused brightness value also uses a norm model such as |i|+|j|, etc. At this time, num(i,j) can be expressed as:
[0084]
[0085] Wherein, M1 and M2 represent the corresponding weight models when j>i and j≤i. For example, when j>i, the weight coefficient M1 may be A+(ji)B, and when j≤i, the weight coefficient M2 may be A+(ij)B. Wherein, a and b are the weight coefficients of the model.
[0086] The calculation of the fused brightness value is also performed using other related models, all of which are within the protection scope of this application.
[0087] In one implementation of the embodiment of the present invention, in order to retain as much detail information as possible in the visible light image and the temperature distribution information in the thermal imaging image, the brightness values of the visible light image and the thermal imaging image may be fused in proportion according to the brightness values of the pixels at the same position in the visible light image and the thermal imaging image. When the temperature distribution information reflected by the target object in the thermal imaging image is small, the target object is more likely to be the background, and the background detail information can be retained by increasing the fusion weight of the target object in the thermal imaging image; and when the temperature distribution information reflected by the target object in the thermal imaging image is large, the target object is more likely to be a high-temperature target of interest, and the detail information of the target object can be retained by increasing the fusion weight of the target object in the visible light image.
[0088] In the process of actual application, if each pixel point uses a weight model to calculate the fused brightness value, it will bring great processing pressure to the computing resources. Therefore, the weight model can be used in advance to calculate the fused brightness value in various situations and save it as a first preset mapping relationship. In another implementation of the embodiment of the present invention, S103 can be specifically: according to the brightness value of the pixel point at the same position in the visible light image and the thermal imaging image after the registration transformation in the above-mentioned visible light image and the thermal imaging image after the registration transformation, according to the first preset mapping relationship, determine the fused brightness value of the fused pixel point at the corresponding position, wherein the above-mentioned first preset mapping relationship is the correspondence between the brightness value of the pixel point at the same position in the above-mentioned visible light image and the brightness value in the above-mentioned thermal imaging image and the fused brightness value. In an example, the first preset mapping relationship can be a fusion mapping table, and the fusion mapping table records the fused brightness value corresponding to the brightness value of the pixel point at the same position in the visible light image and the brightness value in the thermal imaging image.
[0089] In order to avoid a large amount of calculations when fusion of brightness values is performed and to improve operation efficiency, in an embodiment of the present invention, a fusion mapping table may be pre-established, in which the fusion mapping table records the fusion brightness values corresponding to the brightness values of the pixels at the same position in the visible light image and in the thermal imaging image, and the fusion brightness values corresponding to the brightness values of the pixels at the same position in the visible light image and in the thermal imaging image may be calculated using some specific algorithms. Specifically, assuming that the range of brightness values of visible light and the range of brightness values of thermal imaging are both [0,255], the fusion mapping table may be a 256*256 table, in which each element records the fusion brightness value corresponding to the brightness value indicated by the row number and the brightness value indicated by the column number.
[0090] In specific applications, the brightness value y of the pixel at the same position in the visible light image is extracted. R and the brightness value y in the thermal imageV Then, the above fusion mapping table is used as the lookup table. The horizontal axis of the fusion mapping table represents the brightness value i corresponding to the thermal imaging image, and the vertical axis represents the brightness value j corresponding to the visible light image. With (i, j) as the coordinate value, the mapping table is searched, and the element found is the fusion brightness value.
[0091] In another implementation method of the embodiment of the present invention, the fused brightness value recorded in the above-mentioned first preset mapping relationship is obtained by weighting the brightness value of the pixel point at the same position in the above-mentioned visible light image and the brightness value in the above-mentioned thermal imaging image according to the weight coefficient calculated based on a preset weight model, wherein the above-mentioned weight model is set based on the size relationship of the brightness values of the above-mentioned visible light image and the above-mentioned thermal imaging image.
[0092] As mentioned above, in order to retain as much detail information as possible in the visible light image and the temperature distribution information in the thermal imaging image, the fused brightness value can be determined according to the weight of the brightness value of the pixel point at the same position in the visible light image and the thermal imaging image. Then, the fused brightness value recorded in the first preset mapping relationship can be specifically obtained by weighting the brightness value of the visible light image and the brightness value of the thermal imaging image according to the preset weight coefficient obtained based on the preset weight model.
[0093] Assume that the brightness value of the pixel at the same position in the visible light image is j and the brightness value in the thermal image is i. If the brightness values of the pixel at the same position in the visible light image and the brightness values in the thermal image are fused in equal proportion, the fused brightness value is However, in order to adapt the fusion result and retain as much detail information as possible in the visible light image and the temperature distribution information in the thermal image, the brightness value of the pixel at the same position in the visible light image and the brightness value in the thermal image are compared, and the brightness value is fused according to the difference between the two brightness values and the corresponding weight coefficient. At this time, the fused brightness value can be calculated using formula (3).
[0094] After obtaining the fused brightness value of each pixel, the color value of each pixel can be determined according to the correspondence between the preset brightness value and the color value. The color value refers to the value in the pseudo color space, which is generally an RGB value. Each color value and the brightness value correspond to each other. According to the fused brightness value corresponding to the corresponding color space, the original fusion ratio is retained, and the color information is superimposed on this basis. After the brightness value is fused, the corresponding color value is determined. Therefore, based on the color value of each pixel, the color transition in the obtained fused image is natural, and the effect of the fused image is natural.
[0095] In another implementation method of the embodiment of the present invention, S104 can specifically be: for any pixel point, based on the fused brightness value of the pixel point, search the color value of the pixel point from a preset pseudo-color mapping table, wherein the pseudo-color mapping table records the color values corresponding one to one to the brightness values.
[0096] In order to avoid a large amount of calculation when determining the color value and improve the operating efficiency, in the embodiment of the present invention, a pseudo color mapping table can be pre-established, in which the color values corresponding to the brightness values are recorded one by one. Specifically, for each point (m, n) in the fused image, the fused brightness value is y f , assuming that the fusion brightness value range is [0,255], the corresponding pseudo-color mapping table, each pseudo-color mapping table vector is represented as [1,256,3], therefore, for each obtained y f Value, mapped to the three-channel color value (r, g, b) in the pseudo color mapping table f .
[0097] It can be seen from the above embodiments that a fused image can be automatically generated without manual intervention, and the generated fused image has a natural color transition and retains the original temperature change.
[0098] For ease of understanding, the image fusion method provided by the embodiment of the present invention is introduced below in conjunction with a specific example. In this embodiment, the image fusion method is applied to an image processing device. In order to realize the image fusion function, the image processing device mainly includes a target automatic registration module, an adaptive fusion system and a pseudo color mapping module, such as Figure 2 As shown in the figure, the interactive process of each module is as follows: the thermal imaging image and the visible light image are input into the target automatic registration module to obtain the registration transformation parameters, the registration transformation parameters are input into the adaptive fusion system to obtain the fusion brightness value of each pixel, and then the fusion brightness value of each pixel is input into the pseudo color mapping module, and finally the fusion image is output.
[0099] Among them, the execution process of the target automatic registration module is as follows: Figure 3 As shown, it includes: S301, placing the camera to be tested on the test fixture; S302, obtaining the coordinates of the target in the thermal imaging image and the visible light image according to the target detection algorithm; S303, solving the registration transformation parameters; S304, obtaining the transformed visible light image according to the registration transformation parameters.
[0100] Specifically, S302 is as follows: placing the designed rectangular target at the upper left, lower and upper right positions in a fixed scene, and the height position is adjustable; placing the target at the corresponding position and height according to the focal length of the camera to ensure that the target is located in the thermal imaging image and the visible light image; using an algorithm to detect the positions of the center points of the three rectangular frames in the thermal imaging image and the visible light image, and obtaining the coordinates of the target in the thermal imaging image and the visible light image respectively.
[0101] S303 may specifically be: obtaining three coordinate points (x1, y1), (x2, y2), (x3, y3) in the thermal imaging image and three coordinate points (x1', y1'), (x2', y2'), (x3', y3') in the visible light image, and establishing an affine transformation model according to the properties of the affine transformation. The affine transformation model is as follows:
[0102]
[0103] Where θ refers to the angle between the thermal image and the visible light image, k is a preset coefficient, and m 11 、m 12 ,t x 、m 21 、m 22 ,t y is the registration transformation parameter. The registration transformation parameter is calculated by fitting according to the principle of least squares method. The calculation method is as follows:
[0104]
[0105] in,
[0106] The execution process of the adaptive fusion system is as follows: Figure 4 As shown, the brightness value of each pixel of the input visible light image and thermal imaging image is extracted, and the fusion mapping table is queried to find the corresponding fusion brightness value. The fusion mapping table is established based on the fusion formula, which is:
[0107]
[0108] Among them, A and B are preset parameters. A and B can be customized according to actual conditions and can be adjusted according to the desired effect. The result of num(i,j) is the final fused brightness value. The brightness value of the pixel at the same position in the visible light image is j, and the brightness value in the thermal imaging image is i. Assuming that the brightness value range of visible light and the brightness value range of thermal imaging are both [0,255], the fusion mapping table can be a 256*256 table. Each element in the table records the fused brightness value corresponding to the brightness value indicated by the row number and the brightness value indicated by the column number. After extracting the brightness value y of the pixel at the same position in the visible light imageR and the brightness value y in the thermal image V Then, the above fusion mapping table is used as the lookup table. The horizontal axis of the fusion mapping table represents the brightness value i corresponding to the thermal imaging image, and the vertical axis represents the brightness value j corresponding to the visible light image. With (i, j) as the coordinate value, the mapping table is searched, and the element found is the fusion brightness value num(i, j).
[0109] After obtaining the fused brightness value of each pixel, since the color value in the pseudo-color color space corresponds to the brightness value one by one, the fused brightness value is mapped to the corresponding color space, retaining the original fusion ratio, and on this basis, the color information is superimposed, and the corresponding color value is determined after the brightness value is fused. Therefore, based on the color value of each pixel, the color transition in the obtained fused image is natural, and the effect of the fused image is natural. Specifically, for each point (m, n) in the fused image, the fused brightness value is y f , assuming that the fusion brightness value range is [0,255], the corresponding pseudo-color mapping table, each pseudo-color mapping table vector is represented as [1,256,3], therefore, for each obtained y f Value, mapped to the three-channel color value (r, g, b) in the pseudo color mapping table f .
[0110] In this embodiment, the registration transformation parameters are automatically obtained by using the registration transformation in the form of a fixed target. After the registration transformation, an adaptive fusion brightness value is automatically obtained according to the brightness values of the visible light and thermal imaging channels, and then the fusion brightness value is directly mapped to different color spaces to obtain a fused image with natural color transition, maintained temperature distribution, and rich details.
[0111] Corresponding to the above method embodiment, the embodiment of the present invention provides an image fusion device, such as Figure 5 As shown, the device may include:
[0112] An acquisition module 510 is used to acquire a visible light image and a thermal imaging image to be fused;
[0113] A registration module 520, used to perform a registration transformation on the visible light image and the thermal imaging image using the pre-acquired registration transformation parameters, wherein the registration transformation refers to a transformation operation performed on one image based on another image;
[0114] A fusion module 530 is used to determine the fusion brightness value of the fusion pixel point at each position according to the brightness value of the pixel point at the same position in the visible light image and the thermal imaging image after the registration transformation and the preset brightness fusion strategy;
[0115] The color mapping module 540 is used to determine the color value of each fused pixel point according to the fused brightness value of the fused pixel point at each position and the pre-set correspondence between the brightness value and the color value, and obtain a fused image based on the color value of the fused pixel point.
[0116] In a possible implementation, the device further includes:
[0117] A coordinate acquisition module, used to acquire first coordinates of at least three designated targets in the visible light image and second coordinates of at least three designated targets in the thermal imaging image;
[0118] The parameter acquisition module calculates the registration transformation parameters according to each first coordinate and each second coordinate using a preset coordinate transformation model.
[0119] In a possible implementation, the coordinate acquisition module is specifically used to: acquire each visible light image and each thermal imaging image when the designated target is located at at least three different designated positions, wherein the relative position between the visible light lens for acquiring each visible light image and the thermal imaging lens for acquiring each thermal imaging image remains unchanged; and determine the first coordinate of the designated target in each visible light image and the second coordinate of the designated target in each thermal imaging image.
[0120] In a possible implementation, the fusion module is specifically used to determine the fused brightness value of the fused pixel point at the corresponding position according to the brightness value of the pixel point at the same position in the visible light image and the thermal imaging image after the registration transformation, according to a first preset mapping relationship, wherein the first preset mapping relationship is the correspondence between the brightness value of the pixel point at the same position in the visible light image and the brightness value in the thermal imaging image and the fused brightness value.
[0121] In a possible implementation, the fused brightness value recorded in the first preset mapping relationship is obtained by weighting the brightness value of a pixel at the same position in the visible light image and the brightness value in the thermal imaging image according to a weight coefficient calculated based on a preset weight model, wherein the weight model is set based on the size relationship between the brightness values of the visible light image and the thermal imaging image.
[0122] In a possible implementation, the color mapping module is specifically used to: for a fused pixel point at any position, based on the fused brightness value of the fused pixel point at that position, determine the color value of the fused pixel point according to a second preset mapping relationship, wherein the second preset mapping relationship is a one-to-one correspondence between the fused brightness value and the color value.
[0123] By applying the embodiments of the present invention, by performing registration transformation on the visible light image and the thermal imaging image, a fused brightness value is automatically obtained based on the brightness values of the pixels in the visible light image and the thermal imaging image after the registration transformation, and then the color value of each pixel is determined based on the fused brightness value of each pixel, so as to obtain a fused image that can adapt to different environments, thereby improving the fusion effect of the visible light image and the thermal imaging image.
[0124] An embodiment of the present invention provides an image processing device, such as Figure 6 As shown, it includes a processor 601 and a memory 602, wherein the memory 602 stores machine executable instructions that can be executed by the processor 601, and the machine executable instructions are loaded and executed by the processor 601 to implement the image fusion method provided by the embodiment of the present invention.
[0125] The memory may include RAM (Random Access Memory), or NVM (Non-volatile Memory), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the processor.
[0126] The above-mentioned processor can be a general-purpose processor, including CPU, NP (Network Processor), etc.; it can also be a DSP (Digital Signal Processor), ASIC (Application Specific Integrated Circuit), FPGA (Field-Programmable Gate Array) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0127] Data can be transmitted between the memory 602 and the processor 601 via a wired connection or a wireless connection, and the image processing device can communicate with other devices via a wired communication interface or a wireless communication interface. Figure 6 What is shown is only an example of data transmission via a bus and is not intended to be a limitation on a specific connection method.
[0128] By applying the embodiments of the present invention, by performing registration transformation on the visible light image and the thermal imaging image, a fused brightness value is automatically obtained based on the brightness values of the pixels in the visible light image and the thermal imaging image after the registration transformation, and then the color value of each pixel is determined based on the fused brightness value of each pixel, so as to obtain a fused image that can adapt to different environments, thereby improving the fusion effect of the visible light image and the thermal imaging image.
[0129] In another embodiment of the present invention, a machine-readable storage medium is provided. The machine-readable storage medium stores a computer program. When the computer program is executed by a processor, the image fusion method provided in the embodiment of the present invention is implemented.
[0130] In another embodiment provided by the present invention, a computer program product including instructions is also provided. When the computer program product is run on a platform server, the platform server executes the image fusion method provided by the embodiment of the present invention.
[0131] The embodiment of the present invention also provides a binocular system, such as Figure 7 As shown, it includes a binocular camera 710 and an image processing device 720; wherein the binocular camera 710 includes an image sensor 711 and an infrared sensor 712; the image sensor 711 is used to collect visible light images; the infrared sensor 712 is used to collect thermal imaging images;
[0132] The image processing device 720 is used to receive the visible light image and the thermal imaging image to be fused sent by the binocular camera 710; perform registration transformation on the visible light image and the thermal imaging image using the pre-acquired registration transformation parameters, wherein the registration transformation refers to a transformation operation performed on one image based on another image; determine the fusion brightness value of the fused pixel points at each position according to the brightness values of the pixels at the same position in the visible light image and the thermal imaging image after the registration transformation in the above-mentioned visible light image and the thermal imaging image after the above-mentioned registration transformation, and a pre-set brightness fusion strategy; determine the color value of each of the above-mentioned fused pixel points according to the fusion brightness value of the fused pixel points at each position, and the pre-set corresponding relationship between the brightness value and the color value, and obtain a fused image based on the color values of the above-mentioned fused pixel points.
[0133] In a possible implementation, the image processing device is specifically used to: obtain each first coordinate of at least three specified targets in the visible light image and each second coordinate in the thermal imaging image; and calculate the registration transformation parameters based on each first coordinate and each second coordinate using a preset coordinate transformation model.
[0134] In a possible implementation, the image processing device is specifically used to: obtain each visible light image and each thermal imaging image when the designated target is located at at least three different designated positions, wherein the relative position between the visible light lens for collecting each visible light image and the thermal imaging lens for collecting each thermal imaging image remains unchanged; determine the first coordinates of the designated target in each visible light image and the second coordinates of the designated target in each thermal imaging image.
[0135] In a possible embodiment, the image processing device is specifically used to determine the fused brightness value of the fused pixel point at the corresponding position according to the brightness value of the pixel point at the same position in the visible light image and the thermal imaging image after the registration transformation, according to a first preset mapping relationship, wherein the first preset mapping relationship is the correspondence between the brightness value of the pixel point at the same position in the visible light image and the brightness value in the thermal imaging image and the fused brightness value.
[0136] In a possible implementation, the fused brightness value recorded in the first preset mapping relationship is obtained by weighting the brightness value of a pixel at the same position in the visible light image and the brightness value in the thermal imaging image according to a weight coefficient calculated based on a preset weight model, wherein the weight model is set based on the size relationship between the brightness values of the visible light image and the thermal imaging image.
[0137] In a possible implementation, the image processing device is specifically used to: for a fused pixel point at any position, based on the fused brightness value of the fused pixel point at that position, determine the color value of the fused pixel point according to a second preset mapping relationship, wherein the second preset mapping relationship is a one-to-one correspondence between the fused brightness value and the color value.
[0138] In an example, the image processing device can also implement any image fusion method described in the present invention.
[0139] By applying the embodiments of the present invention, by performing registration transformation on the visible light image and the thermal imaging image, a fused brightness value is automatically obtained based on the brightness values of the pixels in the visible light image and the thermal imaging image after the registration transformation, and then the color value of each pixel is determined based on the fused brightness value of each pixel, so as to obtain a fused image that can adapt to different environments, thereby improving the fusion effect of the visible light image and the thermal imaging image.
[0140] As for the device, image processor, machine-readable storage medium, computer program product and binocular system embodiments, since the method contents involved are basically similar to the aforementioned method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0141] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, DSL (Digital Subscriber Line, digital subscriber line)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, data center, etc. that contains one or more available media integrated. The available medium may be a magnetic medium (such as a floppy disk, a hard disk, a magnetic tape), an optical medium (such as a DVD (Digital Versatile Disc)), or a semiconductor medium (such as an SSD (Solid State Disk)).
[0142] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0143] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device, image processor, machine-readable storage medium, computer program product and binocular system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.
[0144] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.
Claims
1. An image fusion method, It is characterized in that The method comprises: Acquire a visible light image and a thermal imaging image to be fused, wherein the thermal imaging image contains a target object having heat; Using the pre-acquired registration transformation parameters, the visible light image and the thermal imaging image are subjected to registration transformation, wherein the registration transformation refers to a transformation operation performed on one image based on the other image; Extracting the brightness value of the pixel point at the same position in the visible light image and the brightness value in the thermal imaging image after the registration transformation, and using the extracted brightness value to query in a pre-established fusion mapping table to obtain the fused brightness value of the fused pixel point at the corresponding position; wherein the fusion mapping table records: the fused brightness value corresponding to the brightness value of the pixel point at the same position in the visible light image and the brightness value in the thermal imaging image, and the fused brightness value is obtained by calculating a weight coefficient according to the size relationship between the brightness value of the visible light image and the brightness value of the thermal imaging image, and weighting the brightness value of the pixel point at the same position in the visible light image and the brightness value in the thermal imaging image according to the weight coefficient; According to the fused brightness value of the fused pixel at each position and the one-to-one correspondence between the preset brightness value and the color value, the color value of each fused pixel is determined respectively, and a fused image is obtained based on the color value of the fused pixel.
2. The method according to claim 1, It is characterized in that The method for obtaining the registration transformation parameters includes: Acquire first coordinates of at least three designated targets in the visible light image and second coordinates of at least three designated targets in the thermal imaging image; According to each first coordinate and each second coordinate, a registration transformation parameter is calculated using a preset coordinate transformation model.
3. The method according to claim 2, It is characterized in that The step of obtaining first coordinates of at least three designated targets in the visible light image and second coordinates of at least three designated targets in the thermal imaging image includes: Acquire each visible light image and each thermal imaging image when the designated target is located at at least three different designated positions, wherein the relative position between the visible light lens for acquiring each visible light image and the thermal imaging lens for acquiring each thermal imaging image remains unchanged; The first coordinates of the designated target in each visible light image and the second coordinates of the designated target in each thermal imaging image are determined.
4. The method according to claim 1, It is characterized in that The step of determining the color value of each fused pixel point according to the fused brightness value of the fused pixel point at each position and the preset one-to-one correspondence between the brightness value and the color value comprises: For a fused pixel at any position, based on the fused brightness value of the fused pixel at that position, the color value of the fused pixel is determined according to a second preset mapping relationship, wherein the second preset mapping relationship is a one-to-one correspondence between the fused brightness value and the color value.
5. An image fusion device, It is characterized in that The device comprises: An acquisition module, used for acquiring a visible light image and a thermal imaging image to be fused, wherein the thermal imaging image contains a target object having heat; A registration module, used to perform a registration transformation on the visible light image and the thermal imaging image using a pre-acquired registration transformation parameter, wherein the registration transformation refers to a transformation operation performed on one image based on another image; A fusion module, used to extract the brightness value of the pixel point at the same position in the visible light image and the brightness value in the thermal imaging image after the registration transformation, and use the extracted brightness value to query the pre-established fusion mapping table to obtain the fusion brightness value of the fused pixel point at the corresponding position; wherein the fusion mapping table records: the fusion brightness value corresponding to the brightness value of the pixel point at the same position in the visible light image and the brightness value in the thermal imaging image, and the fusion brightness value is obtained by calculating a weight coefficient according to the size relationship between the brightness value of the visible light image and the brightness value of the thermal imaging image, and weighting the brightness value of the pixel point at the same position in the visible light image and the brightness value in the thermal imaging image according to the weight coefficient; The color mapping module is used to determine the color value of each fused pixel point according to the fused brightness value of the fused pixel point at each position and the one-to-one correspondence between the preset brightness value and the color value, and obtain a fused image based on the color value of the fused pixel point.
6. The device according to claim 5, It is characterized in that The device also includes: A coordinate acquisition module, used to acquire first coordinates of at least three designated targets in the visible light image and second coordinates of at least three designated targets in the thermal imaging image; The parameter acquisition module calculates the registration transformation parameters according to each first coordinate and each second coordinate using a preset coordinate transformation model.
7. The device according to claim 6, It is characterized in that The coordinate acquisition module is specifically used to: acquire each visible light image and each thermal imaging image when the designated target is located at at least three different designated positions, wherein the relative position between the visible light lens for acquiring each visible light image and the thermal imaging lens for acquiring each thermal imaging image remains unchanged; and determine the first coordinate of the designated target in each visible light image and the second coordinate of the designated target in each thermal imaging image.
8. The device according to claim 5, It is characterized in that The color mapping module is specifically used to: for a fused pixel point at any position, based on the fused brightness value of the fused pixel point at that position, determine the color value of the fused pixel point according to a second preset mapping relationship, wherein the second preset mapping relationship is a one-to-one correspondence between the fused brightness value and the color value.
9. An image processing device, It is characterized in that The method comprises a processor and a memory, wherein the memory stores machine executable instructions that can be executed by the processor, and the machine executable instructions are loaded and executed by the processor to implement the method according to any one of claims 1 to 4.
10. A binocular system, It is characterized in that It includes a binocular camera and an image processing device; the binocular camera includes an image sensor and an infrared sensor; the image sensor is used to collect visible light images; the infrared sensor is used to collect thermal imaging images; The image processing device is used to receive the visible light image and the thermal imaging image to be fused sent by the binocular camera, wherein the thermal imaging image contains a target object with heat; perform a registration transformation on the visible light image and the thermal imaging image using a pre-acquired registration transformation parameter, wherein the registration transformation refers to a transformation operation performed on another image based on one image; extract the brightness value of the pixel point at the same position in the visible light image after the registration transformation and the brightness value in the thermal imaging image, and use the extracted brightness value to query the pre-established fusion mapping table to obtain the fusion brightness value of the fused pixel point at the corresponding position; wherein the fusion mapping The mapping table records: a fused brightness value corresponding to the brightness value of a pixel at the same position in a visible light image and in a thermal imaging image, the fused brightness value being obtained by: calculating a weight coefficient according to a magnitude relationship between the brightness value of the visible light image and the brightness value of the thermal imaging image, and weighting the brightness value of the pixel at the same position in the visible light image and in the thermal imaging image according to the weight coefficient; determining the color value of each fused pixel respectively according to the fused brightness value of the fused pixel at each position and a one-to-one correspondence between the preset brightness value and the color value, and obtaining a fused image based on the color value of the fused pixel.
Citation Information
Cited By
Thermal imaging and visible light image fusion method
CN120450972A
Image fusion method and apparatus, image processing device, and binocular system
EP4273794B1
Image fusion method and apparatus, image processing device, and binocular system
WO2022142570A1
