Research Article

## FCDFusion: a fast, low color deviation method for fusing visible and infrared image pairs

Hesong Li 1 and Ying Fu 1 ( B )

© The Author(s) 2022.

Abstract Visible and infrared image fusion (VIF) aims to combine information from visible and infrared images into a single fused image. Previous VIF methods usually employ a color space transformation to keep the hue and saturation from the original visible image. However, for fast VIF methods, this operation accounts for the majority of the calculation and is the bottleneck preventing faster processing. In this paper, we propose a fast fusion method, FCDFusion, with little color deviation. It preserves color information without color space transformations, by directly operating in RGB color space. It incorporates gamma correction at little extra cost, allowing color and contrast to be rapidly improved. We regard the fusion process as a scaling operation on 3D color vectors, greatly simplifying the calculations. A theoretical analysis and experiments show that our method can achieve satisfactory results in only 7 FLOPs per pixel. Compared to state-of-the-art fast, color-preserving methods using HSV color space, our method provides higher contrast at only half of the computational cost. We further propose a new metric, color deviation, to measure the ability of a VIF method to preserve color. It is specifically designed for VIF tasks with color visible-light images, and overcomes deficiencies of existing VIF metrics used for this purpose. Our code is available at https://github.com/HeasonLee/FCDFusion.

Keywords infrared images, visible and infrared image fusion; gamma correction; real-time display; color metrics; color deviation

## 1 Introduction

Visible and infrared image fusion (VIF) aims to combine information from visible and infrared images into a single

1 School of Computer Science and Technology, Beijing Institute of Technology, Beijing 100081, China. E-mail: H. Li, 3120211055@bit.edu.cn; Y. Fu, fuying@bit.edu.cn ( B ).

Manuscript received: 2022-01-01; accepted: 2022-01-01

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-d72ce67b-1288-46ec-af25-abd62372e0a6.jpg)

fused image. In dark or dazzling extreme environments, an image taken by a visible camera may be unclear, but an infrared camera can usually obtain clear object outlines due to differences in temperature. A VIF output image has both color and temperature information, making objects in the output image clearer and more distinguishable. Therefore, VIF technology has been an active research field for many years, and has abundant applications [1] in many fields such as object detection [2-5], tracking [6-8], recognition [9-11], surveillance [12-14], color vision [15], and remote sensing [16, 17]. Several fast VIF methods simply average two input images in different color spaces [18], taking no more than 20 FLOPs for each pixel pair. Their main goal is to fuse video at highspeed for real-time display, so they trade off quality of results for speed. When putting image quality first, rather than speed, other methods are used; representative ones being based on domain transformation [19-24], deep learning [25-29], or hybrid methods [30-35]. These methods provide impressive results but involve much more complex calculation, often taking over 1000 times as many FLOPs as simple averaging methods. arXiv:2408.01080v1  [cs.CV]  2 Aug 2024

Previous VIF methods usually employ a color space transformation to keep the hue and saturation from the original visible image. However, for fast VIF methods, this operation accounts for the main part of the calculation, and is the bottleneck preventing improved processing speed. In this paper, we propose a fast fusion method, FCDFusion, with little color deviation; it can preserve color information without color space transformations. It directly operates in RGB color space and embeds gamma correction with little extra computation, so both color and contrast can be quickly improved. We regard the fusion process as a scaling operation on 3D color vectors, which greatly simplifies the calculations. Theoretical analysis and experimental results show that our method can achieve satisfactory results using only 7 FLOPs per pixel. Compared to state-of-the-art fast, color-preserving methods using HSV

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-d8430a52-5dcd-43b8-8aea-a8a7c4d0b5a7.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-28d8cd28-571f-4c08-8c85-235d124c4415.jpg)

color space, our method provides higher contrast in half the number of FLOPs.

We further observe that existing evaluation metrics for the VIF task mainly consider the sharpness of the fused image (via entropy [36], average gradient [37], etc.) and its overall structural similarity to the original images (via structural similarity index measure [38], root mean squared error [39], etc.), and ignore the color information. Thus, some methods achieve high scores by changing the hue and saturation of the original color to improve the contrast. In this work, we propose a new metric called color deviation to measure how well a VIF method preserves colour. It is specifically designed for VIF tasks using color visible images and aims to remove the deficiencies of existing VIF metrics by assessing color information.

The main contributions of this work are thus:

- · a simple and effective VIF method, FCDFusion, which can preserve color and improve contrast in only 7 FLOPs per pixel,
- · a metric, color deviation, specifically designed to measure the ability of a VIF method, using color visible images, to preserve color,
- · a theoretical analysis, based on color deviation, of the color-preserving abilities of our method and averaging methods in RGB, YIQ, and HSV color spaces; these results are also verified experimentally.

## 2 Related work

In this section, we first review existing VIF methods and their strategies for preserving color. Then we give a brief introduction to existing metrics used to evaluate VIF results.

## 2.1 VIF methods

## 2.1.1 Problems with simple averaging

A simple VIF method working in RGB color space is to average the red, green, and blue components of a visible image with an infrared image separately. Unfortunately, there are two problems to be solved. Firstly, one of the input images usually contains more details, while the other is blurred. A simple averaging operation cannot deliberately select the image containing more detail, and therefore, after the averaging operation, the original clear details become blurred. Secondly, because the infrared image contains only one channel (monochromatic), averaging the red, green, and blue components of the visible image with the same gray value will cause a decline in saturation, resulting in poor appearance. Existing VIF methods have developed strategies to solve the above two problems, to help them keep details and colors in the fused image.

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-dd1cd372-f319-4f8e-8310-4736401dc3cb.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-e9220867-6b89-47a1-bb93-04f41092dfcd.jpg)

## 2.1.2 Detail-preserving methods

To selectively keep details from both input images, various more complex fusion methods have been proposed.

Some transform the two input images into a new domain to extract principal (low-frequency) parts and detail (highfrequency) parts from the input images. Typical domain transformations include principal component analysis [19], Laplacian pyramids [20], wavelet transforms [21], contourlet transforms [22], multi-resolution singular value decomposition [23] and latent low-rank representation [24]. In these methods, the two parts of the output image are fused in different ways. The high-frequency part of the output image is usually the sum or the maximum value of the two input images, while the low-frequency part is usually formed by averaging. Such processing aims to preserve the details of the two input images as well as possible.

Toachieve better overall quality and avoid the disadvantages of a single method, some hybrid methods [30-33] mix the results of multiple methods to get the best effects in the output images.

Moreover, with the rapid development of deep learning, somedeeplearning-based methods [25, 26] are also emerging. These methods take some evaluation metrics as training objectives and use various artificial neural network models for parameter training to achieve better fusion results.

Recently, most methods combine neural networks with other techniques to improve the fusion effect. Inspired by domain transformation methods, Luo et al. [34] use an ℓ 1 -ℓ 0 decomposition model to obtain the base and detail layers before fusion, and employ Laplacian and Gaussian pyramids to decompose the detail layers and decision map obtained by a convolutional neural network. To fully preserve visual details, Yin et al. [35] employ a weighted mean curvature-based multiscale transform fusion scheme which can effectively suppress noise and keep valuable details. Xu et al. [27] use convolutional neural networks as encoders to extract multi-level features from the input image pair, and then use a decoder to fuse these features. Tang et al. design an illumination-aware sub-network in PIAFusion [28] to estimate the illumination distribution and calculate the illumination probability, then use the illumination probability to construct an illumination-aware loss to guide training of the fusion network. It thus performs well on target maintenance and texture preservation in areas with different illumination. In SeAFusion [29], Tang et al. cascade an image fusion module and a semantic segmentation module, using semantic loss to guide the flow of high-level semantic information back to the image fusion module, effectively boosting the performance

Fig. 1 Color-preservation strategy of VIF methods using a color space transformation T .

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-e74c2de8-3422-4dde-9168-cd4c7fd17772.jpg)

of high-level vision tasks on fused images, such as semantic segmentation and object detection.

Theabovemethodstrade off speed for better quality of fused results. Although the SeAFusion [29] model is simplified to improve its speed, it still requires more calculation than early deep learning-based methods like CNN [26], and about 10,000 times that of simple averaging methods [18]. Here, we propose a simple and effective VIF method to achieve high quality fusion results with extremely low computational requirements, akin to those of simple averaging methods.

## 2.1.3 Color-preserving methods

To keep the hue and saturation of the original visible image, VIF methods can be modified to operate in another color space in which one component represents brightness, and two other components represent hue and saturation [18]. Only the brightness component of the two images is fused, and the hue and saturation of the original color image is retained. Such a color-preservation strategy is also commonly used in other image enhancement methods operating on color images [40, 41]. As Fig. 1 illustrates, color-preserving VIF methods first use a color space transformation T to divide the visible image into hue and saturation components and a brightness component. They then fuse the brightness component with the infrared image using some particular fusion strategy, and finally, they use the inverse transformation T -1 to transform the result back to RGB color space.

Two commonly used color spaces are YIQ and HSV [42, 43]. When using YIQ color space, both T and T -1 are 3 × 3 matrices, so the VIF method needs two matrix multiplications. When using HSV color space, saturation is better preserved but the conversion is more complex and requires more time.

Somerecentmethods[28,29]useYUV(alsocalledYCrCb) [44] color space, which is similar to YIQ color space. The transformation from RGB to YUV needs a 3 × 3 matrix multiplication and two scalar additions.

Color space transformations can help VIF methods keep the hue and saturation from the original visible image. But for fast

Fig. 2 Color vectors in RGB color space.

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-a2906e1e-2898-4f8b-a471-715558e82107.jpg)

VIF methods, transformations account for the majority of the calculation and act as a bottleneck to improving processing speed. Our method proposed in this paper directly operates in RGB color space and uses vector scaling instead of color space transformations.

## 2.2 VIF metrics

Numerous metrics used to evaluate image quality can also be used to evaluate the quality of fusion results. None of the proposed metrics is universally better than all others; they are complementary. Typical metrics used in VIF result evaluation [45] include information theory-based metrics (e.g. crossentropy (CE) [46], entropy (EN) [36], mutual information (MI) [47], and peak signal-to-noise ration (PSNR) [39]), structural similarity-based metrics (e.g. structural similarity index measure (SSIM) [38], and root mean squared error (RMSE) [39]), image feature-based metrics (e.g. average gradient (AG) [37], edge intensity (EI) [48], standard deviation (SD) [49], spatial frequency (SF) [50], and gradient-based fusion performance ( Q AB/F ) [51]) and human perception inspired metrics (e.g. the Chen-Blum metric ( Q CB) [52], and the Chen-Varshney metric ( Q CV) [53]).

These existing metrics either measure the overall contrast of the output image or its similarity to each of the two original input images. However, for VIF tasks with colored visible images, color information and brightness information of the image are usually processed separately, so it is necessary to design a metric that specifically measures color changes. In this work, we propose a new metric. color deviation, to measure the color preservation ability of a VIF method.

## 3 FCDFusion method

In this section, we first formulate the VIF problem and motivate our method. Then we introduce our FCDFusion fast fusion method with low color deviation for high-speed VIF tasks demanding color preservation. It can greatly reduce the

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-5fe264a1-63c6-4afa-9b5e-c6ea17fea72f.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-eac6f642-30a4-4add-87e9-802bd1160882.jpg)

Fig. 3 FCDFusion Framework. Gamma correction uses γ = 2 . Scaling multiplies each input RGB component by the same factor k .

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-fdd9f3f7-511c-455b-84ab-355c28da67c9.jpg)

computational load while ensuring good contrast and color quality in the fused image.

## 3.1 Formulation and motivation

In the visible and infrared image fusion (VIF) problem, two images of the same scene are taken by a visible camera and an infrared camera; we assume they have been aligned by a registration algorithm, so that each has the same size and each object has the same position in both images. For pixel-level VIF methods, the goal is to calculate the fused pixel color c f by using the visible pixel color c v and the infrared pixel color c i for each pixel pair across the two images. c f , c v , and c i are color vectors in RGB color space with three elements:

$$c _ { f } = \left [ \begin{array} { c } r _ { f }$$

saturation are represented by the direction of the vector. See, for example, Fig. 2. The four color vectors c 1 , c 2 , c 3 , and c 5 have the same lengths but different directions, so have the same brightness and different hues and saturations. The closer the direction is to the main diagonal of the color space cube, the lower its saturation, and the closer it is to gray. So although the three color c 1 , c 2 , and c 3 have the same hue, c 3 is completely gray while c 1 has the highest saturation. Another aspect, also shown in Fig. 2, is illustrated by the three color vectors c 4 , c 5 , and c 6 , which have the same direction but different lengths. They thus have the same hue and saturation but different brightnesses. Therefore, a colorpreserving fusion process can be considered to be one which simultaneously multiplies the red, green, and blue values by a common scaling factor k . In our method, k depends on both input images.

where r , g , b , r f f f v , g v , b v , and v i are integers, usually in the range [0,255].

Because the three elements of the infrared color c i have the same value v i (it is monochromatic), fusing the red, green and blue components of the visible image with the same gray value may cause a decline in saturation, giving the output image a poor appearance. Thus, existing colorpreserving methods [18] introduce a color transformation to a new color space such as YIQ or HSV to improve the color quality of the output image (see Fig. 1). They first transform the RGB color of the visible image into hue and saturation components and a brightness component, then fuse the brightness component with the infrared image, and finally use inverse transformation to transform the result back to RGB color space. The majority of the computation in this process lie in the color space transformation and the inverse transformation, while the fusion process is usually a simple averaging.

However, if we consider the RGB color as a vector in RGB color space, this process can be greatly simplified: the brightness is the length of the vector, and the hue and

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-a622399e-5e7c-4eb8-b2fc-4b6f6c439343.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-427f1fba-b765-4999-8339-438f0bf3b46a.jpg)

## 3.2 Method

The framework of the proposed method is shown in Fig. 3. We first compute the scaling factor k using the input pixel pair, then fuse the pixel pair by scaling the visible input color vector by this factor k . We proceed in stages to determine k .

## 3.2.1 Scaling ratio

The output color can be seen as a scaled version of the original visible color vector c v , where the scaling ratio α depends on the magnitude of the infrared value v i :

$$\begin{array} {$$

where the infrared input value v i is normalised to [0,1], and the exponent γ is used to improve the contrast of the infrared image and reduce noise.

Gamma correction uses an exponential function to adjust the relative brightness of an image. Using γ &gt; 1 enhances contrast in the bright parts of the picture and reduces contrast in the dark parts [54]. There is always noise in dark areas due to the lower signal-to-noise ratio, and reducing the contrast in dark areas acts to suppress this noise. In the proposed method

we set γ = 2 , allowing generic exponentiation to be replaced by a simpler and faster single multiplication in this case.

The scaling ratio α represents the relative value of k α . = 1 means k should take its maximal value β m, to maximize the length of c v ; α = 0 means k should take its minimal value 0, making c v black.

## 3.2.2 Maximal scaling factor

To simplify the calculation, we take the brightness of the color c v to be approximately given by the maximum value of all three components. However, as v m appears in a denominator later, we prevent division by zero by ensuring v m ⩾ 1 :

$$v _ { m } = \max ( r _ { \nu }, g _ { \nu }$$

To ensure that all color vectors have a chance to be enlarged, we define the ceiling of the scaled vector to have value v m +255 , so the maximal scaling factor is:

$$\beta _ { m } = \frac { v _ { m } + 2 5 5 } { v$$

Thus, with a maximal scaling ratio α = 1 , the color component with greatest value is scaled to the ceiling v m +255 ; the other two components are also scaled by the same factor β m.

## 3.2.3 Scaling factor

The initial scaling factor β is now obtained by multiplying the maximum scaling factor β m by the scaling ratio α :

$$\beta = \alpha \beta _ { \text{m} }.$$

A scaling operation directly using the factor β is too severe: the brightness of the output image differs too much from that of the visible image. Averaging this value with the original visible image reduces this difference:

$$c _ { s } = \frac { \beta c _ { v } + c _ { v } } { 2 } = k c _ { v }, \quad \quad ( 6 ) \quad \text{ope} \\. \quad \cdot \quad \cdot \cdot \cdot \cdot \cdot \cdot$$

where c s is the scaled color vector after averaging with the original color vector c v . Combining Eqs. (4-6), we obtain the final scaling factor k as:

$$k = \frac { \alpha \beta _ { \text{m} } + 1 } { 2 } = \frac { \alpha ( v _ { \text{m} } + 2 5 5 ) / 2 } { v _ { \text{m} } } + 0. 5, \quad ( 7 ) \quad \text{(Eq.}$$

where the calculation of ( v m + 255) divided by 2 can be quickly performed by a right-shift operation on the integer ( v m +255) .

## 3.2.4 Fusion via vector scaling

The proposed method fuses the pixel pair by scaling the visible input color vector by the computed scaling factor k . It changes the length of the vector but keeps its direction. Therefore, while the visible image adds brightness information from the infrared image, its color information is preserved.

However, after the scaling by k , some component of the color c s may be greater than 255. The output color c f is finally

## Algorithm 1 FCDFusion method

Input: RGB color c v of visible pixel and corresponding value v i of infrared pixel.

Output: RGB color c f of fused pixel.

$$& \cdot \\ \alpha & \longleftarrow v _ { i } / 2 5 5. 0 ; \\ \alpha & \longleftarrow \alpha \times \alpha ; \\ v _ { \text{m} } & \longleftarrow 1 ; \\ \dots & \dots \text{m} \circ \text{m} \dots$$

for each RGB colour component c v of color c v do

$$\text{if } c _ { \nu } & > v _ { m } \text{ then } \\ v _ { m } & \longleftarrow c _ { \nu } ;$$

## end if

end for

$$k = ( v _ { \mathrm m } + 2 5 5 ) > > 1 ;$$

$$k \longleftarrow k \times \alpha / v _ { \mathrm m } + 0. 5 ;$$

for each RGB component c v of color c v , and corresponding component c f of color c f do

$$c _ { f } & \stackrel {. } { \longleftarrow } k \times c _ { \nu } ; \\ \text{if } c _ { f } & > 2 5 5 \text{ then } \\ c _ { f } & \stackrel {. } { \longleftarrow } 2 5 5 ; \\ & \cdots$$

$$\begin{matrix} \nu _ { i } \cdots & \nu _ { i } \cdots \nu _ { i } \\ \text{if $c_{f}>25$ then} \\ c_{f} \longleftarrow 25 5 ; \\ \text{end if} \end{matrix}$$

obtained by limiting the three channels of c s to [0,255]:

$$\mathbf c _ { f } = \left [ \begin{array} { c } r _ { f } \\ g _ { f } \\ b _ { f } \end{array} \right ] = \left [ \begin{array} { c } \min ( k r _ { v }, 2 5 5 ) \\ \min ( k g _ { v }, 2 5 5 ) \\ \min ( k b _ { v }, 2 5 5 ) \end{array} \right ]. \quad \ \ ( 8 )$$

The overall computation is presented in Algorithm 1.

The analysis of arithmetic operations given in Tab. 1 shows that simple averaging methods only use simple integer operations and no floating point operations during fusion. In fast, color-preserving methods like YIQ-AVG and HSVAVG, color space transformations account for the majority of floating point operations. Our method uses vector scaling (Eq. 8) instead of color space transformations, so is faster. Further discussion is provided in Sec. 5.

## 4 Color deviation metric

In this section, we propose a new metric, color deviation (CD), to measure the color-preservation ability of a VIF method. It is specifically designed for VIF tasks with color visible images and is intended to avoid the deficiencies of existing VIF metrics used to evaluate color preservation. We first motivate and define color deviation, and then analyze the color preservation ability of several fast VIF methods using this metric.

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-32282c99-dc03-4fc0-bc6e-45ab447a664b.jpg)

Table 1 FLOPs required by various fusion methods, per fused pixel, and their color-preservation performance. Columns 2-4 give the FLOPs for the 3 main stages: transformation from RGB color space, fusion, and inverse color space transformation.

| Method           |   From RGB |   Fusion |   To RGB |   Total | Color preservation   |
|------------------|------------|----------|----------|---------|----------------------|
| RGB-AVG          |          0 |        0 |        0 |       0 | poor                 |
| YIQ-AVG          |          9 |        0 |        9 |      18 | intermediate         |
| HSV-AVG          |          6 |        0 |        8 |      14 | good                 |
| FCDFusion (ours) |          0 |        7 |        0 |       7 | good                 |

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-ef45f212-3ba6-4393-9ee6-94437a3c9e9c.jpg)

Fig. 4 Color comparison of three fused images (a), (b), and (c), obtained by RGB-AVG, MST-SR, and our method, respectively. Only (c) presents a good visual effect and retains color information.

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-39f9d77f-7faf-4666-80da-4cdf5dc0caf5.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-b1d0aed2-a0e6-4de7-a924-62fdc61762fc.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-bd7984c9-fd26-4a39-8195-bd091b2baea5.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-9efffcfe-f257-48bf-8de4-ab26db744cd1.jpg)

## 4.1 Motivation and definition

Fig. 4 illustrates the deficiencies which can result when using existing VIF metrics. From both perspectives of clarity and color preservation, Fig. 4(c) provides a superior fused image to Figs. 4(a,b) for the same two input images. The man in the car's shadow is enhanced in Fig. 4(c), which also shows that the man wears a brown or orange coat. This color information is lost in Figs. 4(a,b) by the changes in hue and saturation. However, when evaluated by existing metrics, which consider similarity or contrast, Fig. 4(c) is not considered to be the best result. The main reason is that the existing metrics are defined specifically for monochrome images.

Similarity-related metrics (such as PSNR [39], SSIM [38] and RMSE [39]) compare the fused image to both input images. Since the infrared image is monochromatic and it is given the same importance as the visible image, a fused image with saturation between the two input images is more likely to obtain a higher score. Thus, evaluated by such metrics, Fig. 4(a) has the highest score among the three output images in Fig. 4. In fact, only the visible image has hue and saturation information, so the similarity of hue and saturation should be compared to the visible image individually.

Contrast-related metrics (such as CE [46], EN [36], MI [47], AG [37], EI [48], SD [49], SF [50], Q AB/F [51], Q CB [52] and Q CB [53]) measure the whole contrast of the fused image, including contrasts in hue, saturation and brightness. Therefore, a fused image can obtain a higher score by increasing the contrast in hue and saturation channels, which may lead to large differences in hue and saturation between the visible image and the fused image. Using such metrics, Fig. 4(b) generally has the highest score of the three output images in Fig. 4. Instead, to preserve color information from the visible image, hue and saturation need to be unchanged during fusion.

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-3352b514-5b44-440b-9768-4677e2d5b99e.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-89a809a7-3c19-4a5b-8212-75f4aac8e65f.jpg)

To avoid these problems, in VIF tasks with color visible images, color information and brightness information should be measured respectively. Brightness information ( i.e. , the brightness similarity of the two input images and the fused image, and the brightness contrast of the fused image itself) can be assessed by existing metrics after changing the visible image and fused image into grayscale images. For color information, the color deviation (CD) between the visible input color and fused color can be measured by the angle between the two color vectors c f and c v :

$$\text{CD} ( \mathbf c _ { v }, \mathbf c _ { f } ) = \arccos \frac { \overset { \cdot } { c _ { v } } \cdot \mathbf c _ { f } } { | \mathbf c _ { v } | \, | \mathbf c _ { f } | }, \text{ \quad \ \ } ( 9 )$$

with arccos returning its principal value in the range [0 , π ] . A small color deviation value indicates that hue and saturation

Fig. 5 Directional comparison of input color vectors ( i.e. , c v and c i ) and fused color vectors ( i.e. , c f-RGB, c f- YIQ , c f-HSV, and c f-Ours ).

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-65757f77-35eb-4d79-a6d2-f3003c0f6c1a.jpg)

are well preserved from the visible input color. When angles are small, the differences from their cosine values are not obvious, so we use angles instead of their cosine values.

To assess the overall color preservation ability of a VIF method for an input image pair, the average color deviation over all pixels is used.

## 4.2 Color deviation of existing fast methods

Here, we analyze the color-preserving ability of four existing fast VIF methods using color deviation. In Fig. 5, the Y axis of YIQ color space is the diagonal of RGB color space, on which each color has the same red, green and blue value. So the infrared color c i is along on the Y axis.

The VIF averaging method in RGB color space simply averages c v with c i , so the fused vector c f-RGB is the midpoint of the line segment connecting c v and c i . As Fig. 5 shows, this averaging operation causes a large angle between c v and c f-RGB.

The VIF averaging method in YIQ color space averages c v with c i only in the Y channel. As Fig. 5 indicates, doing so moves c v along a straight line ℓ which is parallel to the axis Y . More specifically, the fused vector c f- YIQ is the midpoint of the line segment connecting c v and c i 's projection point on the line ℓ . As Fig. 5 shows, this averaging operation causes a small angle between c v and c f- YIQ .

The VIF averaging method in HSV color space averages c v with c i only in the V channel (the length of the color vector) and keeps H (hue) channel and S (saturation) channel unchanged, so c v and c f-HSV are collinear. As Fig. 5 shows, the angle between c v and c f-HSV is close to 0.

Our method scales c v by the scaling factor k , so c v and the scaled vector c s are collinear. The bounding operation limits the three channels of c s to the range of [0,255], which may cause a tiny angle between c v and c f-Ours , as shown in Fig. 5.

In general, given the same input images, the relationship of color deviation corresponding to these four methods is:

$$0 \approx C D _ { \text{Ours} } \approx C D _ { \text{HSV} } < C D _ { \text{YIQ} } < C D _ { \text{RGB} }. \quad ( 1 0 ) \quad \text{ber o}!$$

Thus, our method (FCDFusion) and averaging in HSV color space better preserve the hue and saturation of the visible image, a conclusion confirmed by our experimental results in the next section.

Unlike averaging in HSV color space, our method does not need color space transformations and embeds gamma correction to improve contrast, so is faster and can provide clearer objects in fused images.

## 5 Results

In this section, we compare our method to several state-of-theart VIF methods. We first introduce the data set, evaluation metrics, and comparison methods used in the experiment, and then compare the fusion methods using metrics and visual effects.

## 5.1 Dataset

To ensure fairness and to reflect the processing of color information, we used visible and infrared image pairs from the visible and infrared image fusion benchmark (VIFB) [55] for real data experiments. VIFB is the only existing benchmark that provides image pairs with color visible images and provides unified procedures for state-of-art methods and evaluation metrics on the same computing platform. It provides 21 image pairs, a code library for 20 fusion algorithms, and 13 evaluation metrics. The average image size is 452 × 368 .

VIFB not only provides visible and infrared image pairs of dim scenes but also provides some for backlight scenes, to ensure a comprehensive evaluation of fusion methods.

## 5.2 Metrics

We first use 13 existing VIF metrics provided by VIFB: CE [46], EN [36], MI [47], AG [37], EI [48], SD [49], SF [50], Q AB/F [51], Q CB [52], Q CV [53], PSNR [39], SSIM [38], and RMSE [39]. As noted earlier, they mainly measure the contrast of the fused image itself and the similarity between the fused image and the two input images.

Since such existing metrics cannot fully assess the visual quality of the fused results, we invited 10 users to judge the relative quality of groups of fused images in VIFB (partly shown in Figs. 6 and 7), focusing on object clarity and color authenticity. In each image group, the fused images obtained by 8 methods were randomly reordered and scored from 1 to 8. Users can see the corresponding input images, but they do not know which method is used to obtain each output image.

We also counted the number of FLOPs and parameters used by each method. The FLOPs statistic measures the number of equivalent floating-point multiplications and divisions

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-1145d86a-de29-4372-85cc-18139471a2d2.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-60460c7d-fdd3-4374-9156-b896abefdf62.jpg)

required to fuse a pair of 452 × 368 input images. The parameters statistic measures the number of parameters to be learn in neural networks or to be manually set in filters and other transformations.

We also used the proposed color deviation (CD) metric to measure the color preservation abilities of the fusion methods.

## 5.3 Methods

We compared the proposed FCDFusion method to 3 simple averaging methods, the 2 highest-scoring methods from VIFB, and 2 state-of-the-art methods absent from VIFB.

The 3 simple averaging methods using RGB, YIQ, and HSV color spaces are named RGB-AVG, YIQ-AVG, and HSV-AVG for short.

The 2 highest-scoring methods from VIFB are MST-SR [32] and CNN [26]. MST-SR is a hybrid method, which has 6 top-three metric values in VIFB, for CE, EN, MI, Q AB/F , Q CB and Q CV. CNN is a deep learning method based on convolutional neural networks, which has 5 top-three metric values in VIFB, for MI, Q AB/F , Q CB, Q CV and SD. These two methods were originally designed to fuse grayscale images. In VIFB [55], they have been modified to fuse color images by fusing every channel of the RGB visible image with the corresponding infrared image.

The 2 state-of-the-art methods absent from VIFB are PIAFusion [28] and SeAFusion [29]. They are based on deep learning and use YUV (or the equivalent YCrCb) [44] color space.

## 5.4 Metric results

Results using contrast- and similarity-based metrics in Tab. 2 show that our method provides higher contrast than the three simple averaging methods, and retains more feature details from the input images than MST-SR, CNN, PIAFusion, and SeAFusion.

MST-SR and CNN score highly on contrast but destroy the color consistency with the original visible image, so have low scores for similarity. On the other hand, RGB-AVG scores highly for similarity to the the two input images, by simply averaging them, but gets low scores for contrast because of the low saturation of the infrared image. Our method balances these two aspects, so it lies in the middle of the 8 methods when evaluated by the 13 existing metrics.

Our user study shows that the images fused by our method have the best visual effects. Indeed, some complex methods based on multi-scale transformations (MST-SR) and deep learning (CNN, PIAFusion, and SeAFusion) are not even as

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-e18f0b28-44e2-4c9b-8697-da4b81048d2b.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-d923d55a-0ebc-45d0-b643-408d6996381f.jpg)

effective as simple averaging methods (RGB-AVG, YIQ-AVG, and HSV-AVG) in this respect.

The FLOPs metric shows the computational requirements of our method to be much lower than for state-of-the-art methods such as MST-SR, CNN, PIAFusion, and SeAFusion. Among the fast methods, RGB-AVG is the fastest, but also the least effective when considering color and contrast. Our method provides higher contrast and better visual effects than YIQ-AVG and HSV-AVG, and has a much greater processing speed. At the same time, our method does not need memory to store parameters, so the requirements for computing devices are very low.

The color deviation metric results show that our method and HSV-AVG better retain the hue and saturation of the visible image. As noted in Sec. 4.1, the final bounding operation (to a maximum of 255) in our method leads to bias; the bias angle of our method is slightly larger than that of HSV-AVG.

## 5.5 Visual effects

The groups of fused results in Figs. 6, 7 show two typical conditions found in VIF tasks, with objects in shadow and objects in strong light.

Objects in shadow need enhancement by brightening. As shown in Fig. 6, images fused by our method have more contrast than that those from RGB-AVG, YIQ-AVG, and HSV-AVG, making objects in shadows clearer. The reason is that our method uses gamma correction to improve contrast. Meanwhile, our method maintains the original color from the visible images, which avoids the loss of color information seen in the images fused by RGB-AVG, YIQ-AVG, MST-SR, CNN, PIAFusion, and SeAFusion. Our method only changes the brightness of the color by vector scaling, and keeps its original hue and saturation.

Objects in bright light need enhancement by dimming the light around them. As shown in Fig. 7, images fused by our method have more contrast than those from all other methods, making object in the bright light clearer, again due to the use of gamma correction. Deep learning-based methods ( i.e. , CNN, PIAFusion, and SeAFusion) do not perform under such conditions, partly because of the lack of training data for backlit scenes.

Color deviation values indicated in Figs. 6, 7 are consistent with the color differences between the visible images and fused images as can be observed visually and intuitively. This confirms that the proposed color deviation metric is a practical way of measuring the color preservation abilities of VIF methods. The examples in Fig. 7 have much smaller color

Table 2 Average metric values for 8 methods on 21 image pairs provided by VIFB. The best three values for each metric are indicated in red, green, and blue, respectively. ↑ means that a larger value is better, while ↓ means that a smaller value is better.

| Metric   | RGB-AVG   | YIQ-AVG   | HSV-AVG   | MST-SR   | CNN      | PIAFusion   | SeAFusion   | FCDFusion (ours)   |
|----------|-----------|-----------|-----------|----------|----------|-------------|-------------|--------------------|
| CE ↓     | 1.3335    | 1.3844    | 1.3639    | 0.9572   | 1.0299   | 1.2918      | 1.5195      | 1.5368             |
| EN ↑     | 6.6814    | 6.7032    | 6.7311    | 7.3391   | 7.3202   | 6.9962      | 6.9960      | 6.8778             |
| MI ↑     | 2.1976    | 2.1444    | 2.1233    | 2.8090   | 2.6533   | 2.4964      | 2.1438      | 2.2788             |
| AG ↑     | 3.2779    | 3.3192    | 3.5214    | 5.8513   | 5.8077   | 5.8780      | 5.6707      | 3.9498             |
| EI ↑     | 34.1354   | 34.6171   | 36.5583   | 60.7805  | 60.2406  | 60.9310     | 59.0180     | 41.1680            |
| SD ↑     | 34.1786   | 34.8890   | 34.9258   | 57.3134  | 60.0753  | 52.3719     | 50.0449     | 41.5048            |
| SF ↑     | 10.3152   | 10.4263   | 11.1832   | 18.8067  | 18.8130  | 18.7830     | 17.8480     | 12.7951            |
| Q AB/F ↑ | 0.3995    | 0.4037    | 0.4177    | 0.6611   | 0.6576   | 0.6394      | 0.5632      | 0.4839             |
| Q CB ↑   | 0.4415    | 0.4434    | 0.4465    | 0.6447   | 0.6215   | 0.5400      | 0.4627      | 0.5428             |
| Q CV ↓   | 747.9871  | 749.6857  | 767.9276  | 522.6890 | 512.5690 | 383.2480    | 405.2917    | 774.8971           |
| PSNR ↑   | 29.22745  | 29.2022   | 29.18195  | 28.9754  | 28.96605 | 28.81665    | 28.6775     | 28.8974            |
| SSIM ↑   | 0.7453    | 0.74205   | 0.7361    | 0.69515  | 0.69545  | 0.6962      | 0.69725     | 0.71645            |
| RMSE ↓   | 0.0516    | 0.05245   | 0.05295   | 0.05825  | 0.0589   | 0.06195     | 0.06625     | 0.0586             |
| User ↑   | 4.1833    | 5.3167    | 5.6333    | 3.2833   | 3.3000   | 3.8000      | 3.2500      | 7.2333             |
| Params ↓ | 0         | 0         | 0         | 84.40K   | 435.20K  | 1.18M       | 166.66K     | 0                  |
| FLOPs ↓  | 23.76K    | 2.99M     | 2.33M     | 257.86M  | 10.85G   | 195.46G     | 27.61G      | 1.16M              |
| CD ↓     | 0.0656    | 0.0411    | 0.0111    | 0.0711   | 0.0669   | 0.0366      | 0.0436      | 0.0117             |

deviation values than those in Fig. 6, as the visible images in Fig. 7 are less colorful.

## 6.2 Averaging

## 6 Discussion

We now discuss the important roles of gamma correction and averaging in our method, which properly adjust the contrast of the fused image.

## 6.1 Gamma correction

Using gamma correction in our method enhances contrast and reduces color noise, as demonstrated in Fig. 8.

Setting γ = 2 makes the objects clearest in both shadow and light, while keeping the background little changed from the visible image. Making γ too small or too great will lighten or darken the background respectively, resulting in a decrease in background contrast. Setting γ = 1 gives results like those of HSV-SVG.

Furthermore, setting γ = 2 suppresses color noise in dark areas of the visible images. Using HSV-AVG, γ = 0 5 . or γ = 1 lightens the dark areas in the visible images, such as the car's shadow in the first scene and the right area of the second scene. Thus color noise is magnified at the same time.

By setting γ = 2 , the exponential operation in Eq. (2) is reduced to squaring, which can be computed much faster than when using a general value for gamma. The FLOPs values given in Fig. 8 show that our method is faster than HSV-AVG or when using other γ settings (apart from γ = 1 ). Gamma correction using γ = 2 2 . is widely used in display enhancement [54]. Fig. 8 shows that using γ = 2 has very similar visual effects to using γ = 2 2 . , so we set γ = 2 for speed.

Average β and 1 when computing the scaling factor k in our method helps to avoid excessive changes in brightness, as demonstrated in Fig. 9. Without this averaging operation, objects are clear but some features in the background may becomeblurred, as the brightness information comes is mainly from the infrared image. The averaging operation provides brightness information from the visible image in the fused image. In applications that only focus on objects, the version without averaging may be better.

## 7 Conclusions

In this paper, we have proposed a simple and effective VIF method called FCDFusion, which preserves color information without color space transformations. It directly operates in RGB color space and embeds gamma correction using little extra computation, so color and contrast are quickly improved. A theoretical analysis and experimental results show that our method can achieve satisfactory results in only 7 FLOPs per pixel. Compared to state-of-the-art fast and color-preserving methods using HSV color space, our method provides higher contrast and the computational cost is only half.

In addition, we have proposed a new metric, color deviation, to measure the color preservation ability of a VIF method; it is specifically designed for VIF tasks using color visible images and overcomes the deficiencies of existing VIF metrics for color information evaluation.

## Acknowledgements

This work was supported by the National Natural Science Foundation of China under Grants Nos. 62171038, 61827901,

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-b01c717b-02f2-4e7b-9358-0a5c99fcd58e.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-521c4395-9947-4f42-9c44-42da929e9927.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-5464a528-67f4-49df-ba2d-8816afcd9195.jpg)

RGB-AVG

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-0779852e-94c4-4632-b235-d594bb982ca0.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-b8a4af3c-074f-4d80-8234-5f1dfc0ca9fa.jpg)

RGB-AVG

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-fa9aadbc-457e-4c04-a22b-bb8db093a4f6.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-cec557ae-533f-4ba2-a560-5cd46cdf4546.jpg)

MST-SR

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-afc90ae0-60ab-443d-9288-9f4c1a67bda6.jpg)

FCDFusion (ours

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-1b260b2b-cd05-4633-b6c0-98d41fe0a847.jpg)

MST-SR

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-4515d240-a953-4893-80bf-c03d59080712.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-ba3394b5-8d54-49fb-9b12-f3f6bed95ae4.jpg)

Infrared input

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-2c357efc-06db-4f00-876c-71321e4b27e9.jpg)

HSV-AVG

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-1966355b-2391-49f0-aeb4-afc4318db35b.jpg)

Se Fusion

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-3ade3eea-df83-4d8c-bfd6-66b01b86b387.jpg)

Infrared input

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-3afdcbf8-db20-4cc2-ac17-2aaea8555dfa.jpg)

HSV\_AVG

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-9dd7b883-3f1a-44d9-a06d-d0c17855c4f1.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-53af3c8f-1d32-4e0f-bc43-7553e9a326c5.jpg)

Visible input

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-2ca9ef7b-ad9b-48dd-8279-45a3e6a5b5ea.jpg)

YIQ-AVG

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-6e2c7bc1-964f-4f0d-ac99-04228d4d78ce.jpg)

PIA Fusion

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-669df328-59a2-4cb5-832f-94051d69304f.jpg)

Visible input

C0.0267 YIQ-AVG

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-fb4e559e-db1f-433c-8835-239065404958.jpg)

CNN

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-a4d6259f-875a-4ee8-a548-9620158eb85a.jpg)

PIAFusion

SeAFusion

FCDFusion (ours

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-aabe5ee5-3513-424f-a177-77ed41de950c.jpg)

Fig. 6 Fusion results showing objects in shadow. CD values give the corresponding color deviation metric; lower is better.

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-7d3b31bb-e175-4b00-ab8e-944070bba93e.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-f906033e-c2c7-42f0-a83f-19307c070393.jpg)

CU=0.0191 RGB-AVG

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-57940941-d438-4fd6-b0e9-16ce0f11fbb2.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-5ac07320-722f-426c-af94-edb0c73907a4.jpg)

RGB-AVG

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-43eec1d3-aff0-4bc4-8697-14439be47e7c.jpg)

Visible input

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-a3b5aa4a-4c1f-4ae4-b868-083622a19979.jpg)

YIO-AVG

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-117c4f42-87c5-4733-a2ae-358b2cfe7e26.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-7152038d-4e96-4938-b75f-c47358e19edd.jpg)

Visible input

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-a7829393-8c54-4c46-a1fa-d582747da109.jpg)

YIO-AVG

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-6a39cf84-4daf-40fa-8226-0d2c1f7433a0.jpg)

Infrared input

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-66d5b4ca-e3b3-4b4a-93f3-d7959ecbc634.jpg)

HSV\_AVC

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-eb5a18ba-5bc5-44a0-9d8c-85674ebb252f.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-06f76714-94b7-405b-9311-3c217eeba6b6.jpg)

Infrared input

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-84343288-42b3-4e8c-b5bf-89be73591776.jpg)

HSV\_AVG

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-d89caf64-049f-464e-90d6-6b66fe7661cb.jpg)

CD=0.0169 MST\_SR

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-794d6aeb-96d0-4bca-8786-6be8aa8ee74e.jpg)

FCDFusion (ours

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-74f03b5b-5241-4d40-95d8-5a4a67137a9f.jpg)

MST\_SR

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-615b51b6-e6e7-42f4-a4f2-ea46653e7f63.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-cec8dbca-4954-41df-bf98-ce9a5dbbc587.jpg)

FCDFusion (ours

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-b7efa845-6a60-4749-9f47-ec9f346dfb77.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-c4d22d9b-24f6-4d39-971e-6d5eebf1c7bc.jpg)

Fig. 7 Fusion results showing objects in strong light. CD values give the corresponding color deviation metric; lower is better.

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-9b18ee02-c10a-4446-90c3-0e9e64b2348f.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-3ff08f1c-1027-4bcd-86d4-2bf9b34b5449.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-af525060-ec76-42d0-864a-3be26089afed.jpg)

Visible input

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-083ba5ff-0b1c-4fcd-8b33-9462fadbaca0.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-d2af7e63-cace-4182-969d-71fb671f18a6.jpg)

Infrared input

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-6e154774-2673-4fc4-8831-986698a4a533.jpg)

HSV\_AVG

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-8e65c1ab-3a5b-4d85-9046-789947eeff61.jpg)

Visible input

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-120758e9-7f15-47f3-b7c2-725a2dc4e668.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-c56142b5-fc8d-467f-904c-675db382aff8.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-24e62cfe-e256-4468-90b5-c9e183650ff7.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-f1c52433-4d37-4ed6-bae5-a640f581ddc3.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-18ec8e92-8d54-42f8-8c27-39a308f61a04.jpg)

HSV\_AVG

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-a540d9d4-e35a-4703-9f29-0dcbc22bdbb7.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-bd096c64-79d8-4078-af4e-60a08125ba45.jpg)

Infrared input

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-85ce79d8-4c6b-43e5-a31a-78d293237348.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-d910c0ae-1339-4eea-9a47-1754095cfab3.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-bf59ee18-e017-45bc-adb4-c5ddf64d0ca5.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-bfd5be9e-0c13-4e20-8746-31ccc73e291d.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-1bd2d92a-a013-4421-9592-d3c5ad6775fe.jpg)

Fig. 8 Fusion results from HSV-AVG, and our method using different gamma correction. Orange boxes highlight areas with color noise.

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-28022331-5887-4bd7-ae9a-193a5a432424.jpg)

Fig. 9 Fusion results with and without averaging when computing scaling factor k .

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-49edcac1-f824-4547-8436-9fa10ea4a0e3.jpg)

and 62088101. We would like to thank all the authors who provided code to the visible and infrared image fusion benchmark.

- [2] Cao Y, Guan D, Huang W, Yang J, Cao Y, Qiao Y. Pedestrian detection with unsupervised multispectral feature learning using deep neural networks. Information Fusion , 2019, 46: 206-217.

## Declaration of competing interest

The authors have no competing interests to declare that are relevant to the content of this article.

## References

- [1] Ma J, Ma Y, Li C. Infrared and visible image fusion methods and applications: a survey. Information Fusion , 2019, 45: 153-178.
- [3] Gao S, Cheng Y, Zhao Y. Method of visual and infrared fusion for moving object detection. Optics Letters , 2013, 38(11): 1981-1983.
- [4] Han J, Bhanu B. Fusion of color and infrared video for moving human detection. Pattern Recognition , 2007, 40(6): 17711784.
- [5] Ulusoy I, Yuruk H. New method for the fusion of complementary information from infrared and visual images for object

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-7387f9b9-4149-4128-8584-5fd5fce96b4f.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-e4f3346c-7cd8-4d9f-8f4a-8a3510122538.jpg)

detection. IET Image Processing , 2011, 5(1): 36-48.

- [6] Li C, Zhu C, Huang Y, Tang J, Wang L. Cross-modal ranking with soft consistency and noisy labels for robust RGB-T tracking. In Proceedings of the European Conference on Computer Vision , 2018, 808-823.
- [7] Liu H, Sun F. Fusion tracking in color and infrared images using joint sparse representation. Science China Information Sciences , 2012, 55(003): 590-599.
- [8] Smith D, Singh S. Approaches to multisensor data fusion in target tracking: a survey. IEEE Transactions on Knowledge and Data Engineering , 2006, 18(12): 1696-1710.
- [9] Hariharan H, Koschan A, Abidi B, Gribok A, Abidi M. Fusion of visible and infrared images using empirical mode decomposition to improve face recognition. In IEEE International Conference on Image Processing , 2007, 2049-2052.
- [10] Heo J, Kong SG, Abidi BR, Abidi MA. Fusion of visual and thermal signatures with eyeglass removal for robust face recognition. In IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops , 2004, 122-122.
- [11] Kong SG, Heo J, Abidi BR, Paik J, Abidi MA. Recent advances in visual and infrared face recognition - a review. Computer Vision and Image Understanding , 2005, 97(1): 103-135.
- [12] Conaire C ´ , O'Connor NE, Cooke E, Smeaton AF. CompariO son of fusion methods for thermo-visual surveillance tracking. In International Conference on Information Fusion , 2006, 1-7.
- [13] Kumar P, Mittal A, Kumar P. Fusion of thermal infrared and visible spectrum video for robust surveillance. In Indian Conference on Computer Vision, Graphics &amp; Image Processing , 2006, 528-539.
- [14] Simone G, Farina A, Morabito FC, Serpico SB, Bruzzone L. Image fusion techniques for remote sensing applications. Information Fusion , 2002, 3(1): 3-15.
- [15] Yin S, Cao L, Ling Y, Jin G. One color contrast enhanced infrared and visible image fusion method. Infrared Physics &amp; Technology , 2010, 53(2): 146-150.
- [16] Fu MY, Zhao C. Fusion of infrared and visible images based on the second generation curvelet transform. Journal of Infrared and Millimeter Waves , 2009, 28(4): 254-258.
- [17] Li H, Ding W, Cao X, Liu C. Image Registration and Fusion of Visible and Infrared Integrated Camera for Medium-Altitude Unmanned Aerial Vehicle Remote Sensing. Remote Sensing , 2017, 9(5).
- [18] Al-Wassai FA, Kalyankar N, Al-Zuky AA. The IHS transformations based image fusion. arXiv:1107.4396 , 2011.
- [19] Patil U, Mudengudi U. Image fusion using hierarchical PCA. In International Conference on Image Information Processing , 2011, 1-6.
- [20] Bao-Shu W. Multi-sensor image fusion based on improved laplacian pyramid transform. Acta Optica Sinica , 2007, 27(9): 1605-1610.
- [21] Pajares G, Manuel de la Cruz J. A wavelet-based image fusion tutorial. Pattern Recognition , 2004, 37(9): 1855-1872.
- [22] Xiao Y, Wang K. Image fusion algorithm using nonsubsampled contourlet transform. In MIPPR 2007: Multispectral Image Processing , volume 6787, 2007, 435-443.
- [23] Naidu V. Image fusion technique using multi-resolution singular value decomposition. Defence Science Journal , 2011, 61(5): 479-484.
- [24] Li H, Wu XJ. Infrared and visible image fusion using latent low-rank representation. arXiv:1804.08992 , 2018.
- [25] Li H, Wu Xj, Durrani TS. Infrared and visible image fusion with ResNet and zero-phase component analysis. Infrared Physics &amp; Technology , 2019, 102: 103039.
- [26] Liu Y, Chen X, Cheng J, Peng H, Wang Z. Infrared and visible image fusion with convolutional neural networks. International Journal of Wavelets, Multiresolution and Information Processing , 2018, 16(03): 1850018.
- [27] Xu H, Gong M, Tian X, Huang J, Ma J. CUFD: An encoder-decoder network for visible and infrared image fusion based on common and unique feature decomposition. Computer Vision and Image Understanding , 2022, 218: 103407.
- [28] Tang L, Yuan J, Zhang H, Jiang X, Ma J. PIAFusion: A progressive infrared and visible image fusion network based on illumination aware. Information Fusion , 2022, 83-84: 7992.
- [29] Tang L, Yuan J, Ma J. Image fusion in the loop of high-level vision tasks: A semantic-aware real-time infrared and visible image fusion network. Information Fusion , 2022, 82: 28-42.
- [30] Wang Z, Gong C. A multi-faceted adaptive image fusion algorithm using a multi-wavelet-based matching measure in the PCNN domain. Applied Soft Computing , 2017, 61: 11131124.
- [31] Yin M, Duan P, Liu W, Liang X. A novel infrared and visible image fusion algorithm based on shift-invariant dual-tree complex shearlet transform and sparse representation. Neurocomputing , 2017, 226: 182-191.
- [32] Liu Y, Liu S, Wang Z. A general framework for image fusion based on multi-scale transform and sparse representation. Information fusion , 2015, 24: 147-164.
- [33] Zhang X, Ma Y, Fan F, Zhang Y, Huang J. Infrared and visible image fusion via saliency analysis and local edge-preserving multi-scale decomposition. Journal of the Optical Society of America A , 2017, 34(8): 1400-1410.
- [34] Luo Y, He K, Xu D, Yin W, Liu W. Infrared and visible image fusion based on visibility enhancement and hybrid multiscale decomposition. Optik , 2022, 258: 168914.
- [35] Yin W, He K, Xu D, Luo Y, Gong J. Significant target analysis and detail preserving based infrared and visible image fusion. Infrared Physics &amp; Technology , 2022, 121: 104041.
- [36] Roberts JW, Van Aardt JA, Ahmed FB. Assessment of image fusion procedures using entropy, image quality, and multispectral classification. Journal of Applied Remote Sensing , 2008, 2(1): 1-28.
- [37] Cui G, Feng H, Xu Z, Li Q, Chen Y. Detail preserved fusion of visible and infrared images using regional saliency extraction

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-fa94f7b5-e1c7-4ed0-b43e-2db137b848b6.jpg)

and multi-scale image decomposition. Optics Communications , 2015, 341: 199-209.

- [38] Wang Z, Bovik AC, Sheikh HR, Simoncelli EP. Image quality assessment: from error visibility to structural similarity. IEEE transactions on image processing , 2004, 13(4): 600-612.
- [39] Jagalingam P, Hegde AV. A review of quality metrics for fused image. In Aquatic Procedia , 2015, 133-142.
- [40] Mu Q, Wang X, Wei Y, Li Z. Low and non-uniform illumination color image enhancement using weighted guided image filtering. Computational Visual Media , 2021, 7: 529-546.
- [41] Li P, Huang Y, Yao K. Multi-algorithm fusion of RGB and HSV color spaces for image enhancement. In Chinese Control Conference , 2018, 9584-9589.
- [42] Schwarz MW, Cowan WB, Beatty JC. An experimental comparison of RGB, YIQ, LAB, HSV, and opponent colour models. ACM Transactions on Graphics , 1987, 6(2): 123-158.
- [43] Smith AR. Color gamut transform pairs. ACM Siggraph Computer Graphics , 1978, 12(3): 12-19.
- [44] Maller J. RGB and YUV Color. FXScript Reference , 2003.
- [45] Liu Z, Blasch E, Xue Z, Zhao J, Laganiere R, Wu W. Objective assessment of multiresolution image Fusion algorithms for context enhancement in night vision: a comparative study. IEEE Transactions on Pattern Analysis and Machine Intelligence , 2012, 34(1): 94-109.
- [46] Bulanon D, Burks T, Alchanatis V. Image fusion of visible and thermal images for fruit detection. Biosystems engineering , 2009, 103(1): 12-22.
- [47] Qu G, Zhang D, Yan P. Information measure for performance of image fusion. Electronics Letters , 2002, 38(7): 313-315.
- [48] Balakrishnan R, Priya R. Hybrid multimodality medical image fusion technique for feature enhancement in medical diagnosis. International Journal of Engineering Science Invention , 2018, 2(Special issue): 52-60.
- [49] Rao YJ. Review article: in-fibre bragg grating sensors. Measurement Science and Technology , 1997, 8(4): 355-375.
- [50] Eskicioglu AM, Fisher PS. Image quality measures and their performance. IEEE Transactions on Communications , 1995, 43(12): 2959-2965.
- [51] Xydeas C, , Petrovic V. Objective image fusion performance measure. Military Technical Courier , 2000, 56(4): 181-193.
- [52] Chen Y, Blum RS. A new automated quality assessment algorithm for image fusion. Image and Vision Computing , 2009, 27(10): 1421-1432.
- [53] Chen H, Varshney PK. A human perception inspired quality metric for image fusion based on regional information. Information Fusion , 2007, 8(2): 193-207.
- [54] Poynton C. Digital video and HD: algorithms and interfaces, 2012: 315-354.
- [55] Zhang X, Ye P, Xiao G. VIFB: a visible and infrared image fusion benchmark. In IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops , 2020, 468-478.

## Author biography

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-92799d46-9983-4f3e-94bf-3a9205171baa.jpg)

Hesong Li is a master's student at the School of Computer Science and Technology, Beijing Institute of Technology, , China. He received his bachelor's degree from the School of Science, Dalian Maritime University in 2021. His research interests include artificial intelligence and image processing.

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-95cedfb7-61c7-45b4-8866-b9dc491bf493.jpg)

Ying Fu received a B.S. degree in electronic engineering from Xidian University, Xi'an, China, in 2009, an M.S. degree in automation from Tsinghua University, Beijing, China, in 2012, and a Ph.D. degree in information science and technology from the University of Tokyo, Japan, in 2015. She is currently a Professor in the School of Computer Science and Technology, Beijing Institute of Technology. Her research interests include computer vision, image and video processing, and computational photography.

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-bbb93301-2c88-4da6-8514-5ae9ee76cf7c.jpg)

![image](https://ac.marcodsn.me/arxiv-markdown-images/2408.01080v1-figure-2bf28f88-4173-4ef0-ab0e-ab0fac9de286.jpg)
Hesong Li Ying Fu
FCDFusion: a Fast, Low Color Deviation Method for Fusing Visible and Infrared Image Pairs
Visible and infrared image fusion (VIF) aims to combine information from
visible and infrared images into a single fused image. Previous VIF methods
usually employ a color space transformation to keep the hue and saturation from
the original visible image. However, for fast VIF methods, this operation
accounts for the majority of the calculation and is the bottleneck preventing
faster processing. In this paper, we propose a fast fusion method, FCDFusion,
with little color deviation. It preserves color information without color space
transformations, by directly operating in RGB color space. It incorporates
gamma correction at little extra cost, allowing color and contrast to be
rapidly improved. We regard the fusion process as a scaling operation on 3D
color vectors, greatly simplifying the calculations. A theoretical analysis and
experiments show that our method can achieve satisfactory results in only 7
FLOPs per pixel. Compared to state-of-the-art fast, color-preserving methods
using HSV color space, our method provides higher contrast at only half of the
computational cost. We further propose a new metric, color deviation, to
measure the ability of a VIF method to preserve color. It is specifically
designed for VIF tasks with color visible-light images, and overcomes
deficiencies of existing VIF metrics used for this purpose. Our code is
available at https://github.com/HeasonLee/FCDFusion.