CN118247161B - Infrared and visible light image fusion method under weak light - Google Patents
Infrared and visible light image fusion method under weak light Download PDFInfo
- Publication number
- CN118247161B CN118247161B CN202410631450.4A CN202410631450A CN118247161B CN 118247161 B CN118247161 B CN 118247161B CN 202410631450 A CN202410631450 A CN 202410631450A CN 118247161 B CN118247161 B CN 118247161B
- Authority
- CN
- China
- Prior art keywords
- infrared
- image
- visible light
- target
- detail
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/50—Image enhancement or restoration using two or more images, e.g. averaging or subtraction
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/70—Denoising; Smoothing
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/90—Dynamic range modification of images or parts thereof
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/10—Image acquisition modality
- G06T2207/10048—Infrared image
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20212—Image combination
- G06T2207/20221—Image fusion; Image merging
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/20—Special algorithmic details
- G06T2207/20212—Image combination
- G06T2207/20224—Image subtraction
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Image Processing (AREA)
- Closed-Circuit Television Systems (AREA)
Abstract
本发明公开一种弱光下的红外与可见光图像融合方法,包括以下步骤:可见光图像的增强:通过导向滤波器将原始可见光图像分解为基础层和细节层;通过亮度校正函数对基础层亮度进行调整;通过细节调节函数对细节层进行增强;整合可见光图像的细节层与基础层,得到增强可见光图像;红外图像的目标提取:采用形态学开操作重建红外背景图像;通过背景减法对红外目标进行粗提取,根据红外与可见光图像存在的差异,剔除冗余背景信息,得红外目标;图像融合:采用目标压缩比将红外目标融入到增强可见光图像中,获得最终的融合图像。本发明的技术方案在弱光环境下得到局部细节更清晰的融合图像,并使融合图像中目标的对比度更高。
The present invention discloses a method for fusing infrared and visible light images under weak light, comprising the following steps: enhancement of visible light images: decomposing the original visible light image into a base layer and a detail layer through a guided filter; adjusting the brightness of the base layer through a brightness correction function; enhancing the detail layer through a detail adjustment function; integrating the detail layer and the base layer of the visible light image to obtain an enhanced visible light image; target extraction of infrared images: reconstructing an infrared background image through a morphological opening operation; roughly extracting infrared targets through background subtraction, eliminating redundant background information according to the difference between infrared and visible light images, and obtaining infrared targets; image fusion: integrating the infrared targets into the enhanced visible light image using a target compression ratio to obtain a final fused image. The technical solution of the present invention obtains a fused image with clearer local details under weak light conditions, and makes the contrast of the targets in the fused image higher.
Description
技术领域Technical Field
本发明涉及图像处理技术领域,尤其涉及一种弱光下的红外与可见光图像融合方法。The present invention relates to the technical field of image processing, and in particular to a method for fusing infrared and visible light images under weak light conditions.
背景技术Background technique
单一传感器提供的图像信息有限,无法全面地描述场景,可能会造成决策者做出错误判断。图像融合技术可整合各个传感器优点得到一幅复杂且详细的图像,有助于提高后续任务决策的准确性。因此,融合技术在计算机视觉应用中发挥着越来越重要的作用。The image information provided by a single sensor is limited and cannot fully describe the scene, which may cause decision makers to make wrong judgments. Image fusion technology can integrate the advantages of each sensor to obtain a complex and detailed image, which helps to improve the accuracy of subsequent task decisions. Therefore, fusion technology plays an increasingly important role in computer vision applications.
在众多融合源图像中,红外与可见光图像融合在较多方面均具有一定优势。首先,可见光传感器依靠捕获反射光成像,得到的可见光图像细节丰富且空间分辨率较高,适合人类视觉系统感知,但易受气候环境因素干扰,而红外传感器依靠捕获热辐射成像,得到的红外图像可以较好地描述热目标,并且可以全时段全气候工作,但一般缺乏细节特征,故红外与可见光图像具有良好的互补性,二者的融合图像鲁棒性较好;其次,红外与可见光图像几乎可以呈现所有物体的固有特征;最后,红外与可见光图像的成像技术相对简单,相应的设备成本较低。综上所述,与其他融合方案相比,红外与可见光图像融合的应用范围更广泛,例如,道路监控、隐藏武器探测、野外侦查、目标识别与目标跟踪等均是其典型应用。然而,现有的针对弱光下的图像融合方法存在以下问题:融合图像局部细节模糊及目标对比度低。Among the many fusion source images, the fusion of infrared and visible light images has certain advantages in many aspects. First, the visible light sensor relies on capturing reflected light to form an image. The obtained visible light image is rich in details and has a high spatial resolution, which is suitable for human visual system perception, but is easily disturbed by climatic and environmental factors. The infrared sensor relies on capturing thermal radiation to form an image. The obtained infrared image can better describe the thermal target and can work in all weather conditions at all times, but generally lacks detailed features. Therefore, infrared and visible light images have good complementarity, and the fusion image of the two has good robustness; secondly, infrared and visible light images can almost present the inherent characteristics of all objects; finally, the imaging technology of infrared and visible light images is relatively simple, and the corresponding equipment cost is low. In summary, compared with other fusion schemes, the application range of infrared and visible light image fusion is wider, for example, road monitoring, hidden weapon detection, field reconnaissance, target recognition and target tracking are all its typical applications. However, the existing image fusion methods for low light have the following problems: the local details of the fused image are blurred and the target contrast is low.
中国专利公开号为“CN 115049570A”,名称为“一种低照度下的可见光与红外图像融合方法”,该方法首先通过非线性映射函数对可见光图像进行增强并用导向滤波器去噪;其次,利用非下采样剪切波对已增强可见光图像和红外图像进行多尺度分解;再次,分别通过自适应双通道脉冲耦合卷积神经网络和直觉模糊集构建高斯隶属度函数对高频子带和低频子带进行融合;最终,应用非下采样剪切波逆变换获得融合图像。该方法得到的融合图像局部细节不清晰,且红外热目标对比度差。The Chinese patent publication number is "CN 115049570A", and the name is "A method for fusion of visible light and infrared images under low illumination". This method first enhances the visible light image through a nonlinear mapping function and denoises it with a guided filter; secondly, the enhanced visible light image and infrared image are decomposed at multiple scales using non-subsampled shearlet; thirdly, the high-frequency sub-band and low-frequency sub-band are fused by constructing Gaussian membership functions through adaptive dual-channel pulse-coupled convolutional neural network and intuitionistic fuzzy sets respectively; finally, the fused image is obtained by applying non-subsampled shearlet inverse transform. The fused image obtained by this method has unclear local details and poor contrast of infrared thermal targets.
综上所述,如何在弱光环境下得到局部细节更清晰的融合图像,并使融合图像中目标的对比度更高是本领域技术人员亟需解决的技术问题。In summary, how to obtain a fused image with clearer local details in a low-light environment and make the contrast of the target in the fused image higher is a technical problem that those skilled in the art need to solve urgently.
发明内容Summary of the invention
本发明实施例的主要目的在于提出一种弱光下的红外与可见光图像融合方法,旨在设计一种在弱光环境下得到局部细节更清晰的融合图像,并使融合图像中目标的对比度更高的图像融合方法。The main purpose of the embodiment of the present invention is to propose a method for fusing infrared and visible light images under low light conditions, aiming to design an image fusion method that can obtain a fused image with clearer local details and make the contrast of the target in the fused image higher in a low light environment.
本发明解决上述技术问题的技术方案是,提供一种弱光下的红外与可见光图像融合方法,包括以下步骤:The technical solution of the present invention to solve the above technical problem is to provide a method for fusing infrared and visible light images under weak light, comprising the following steps:
(1)可见光图像的增强:(1) Enhancement of visible light images:
通过导向滤波器将原始可见光图像分解为基础层和细节层;The original visible light image is decomposed into a base layer and a detail layer by using a guided filter;
通过亮度校正函数对基础层亮度进行调整;Adjust the brightness of the base layer through the brightness correction function;
通过细节调节函数对细节层进行增强;Enhance the detail layer through the detail adjustment function;
整合可见光图像的细节层与基础层,得到增强可见光图像;Integrate the detail layer and the base layer of the visible light image to obtain an enhanced visible light image;
(2)红外图像的目标提取:(2) Target extraction from infrared images:
通过形态学开操作重建红外背景图像;Reconstruct the infrared background image through morphological opening operation;
通过背景减法对红外目标进行粗提取,根据红外与可见光图像存在的差异,剔除冗余背景信息,得红外目标;The infrared target is roughly extracted by background subtraction. According to the difference between infrared and visible light images, redundant background information is eliminated to obtain the infrared target.
(3)图像融合:(3) Image fusion:
通过目标压缩比将红外目标融入到增强可见光图像中,获得最终的融合图像。The infrared target is integrated into the enhanced visible light image through the target compression ratio to obtain the final fused image.
进一步地,所述通过导向滤波器将原始可见光图像分解为基础层和细节层的步骤包括:Furthermore, the step of decomposing the original visible light image into a base layer and a detail layer by using a guided filter comprises:
通过导向滤波平滑原始可见光图像计算得到基础层,计算公式为:;其中,表示导向滤波,表示基础层,表示可见光图像,表示滤波窗口大小,和分别表示可见光图像的宽和高,表示边缘保留度;The base layer is calculated by smoothing the original visible light image through guided filtering. The calculation formula is: ;in, represents guided filtering, represents the base layer, represents a visible light image, Indicates the filter window size, and Represent the width and height of the visible light image, respectively. Indicates the edge preservation degree;
在对数尺度上计算获得细节层,计算公式为:;其中,表示细节层,表示以常数e为底数的对数算子。进一步地,所述通过亮度校正函数对基础层亮度进行调整的步骤包括:The detail layer is calculated on a logarithmic scale using the following formula: ;in, Represents the detail layer, represents a logarithmic operator with a constant e as the base. Further, the step of adjusting the brightness of the base layer by using the brightness correction function comprises:
采用在对数尺度上的伽马校正对基础层进行亮度校正,校正公式为:;The brightness of the base layer is corrected using gamma correction on a logarithmic scale. The correction formula is: ;
其中,为尺度因子,参数控制对比度的压缩程度,参数控制图像的明暗程度;当时,基础层对比度被压缩;通过红外图像灰度值结合Sigmoid函数得到:;in, is the scale factor, parameter Controls the degree of contrast compression, parameters Controls the brightness of the image; when When , the base layer contrast is compressed; By combining the infrared image grayscale value with the Sigmoid function, we can get: ;
其中,表示归一化的红外图像;in, represents the normalized infrared image;
将设置为:;其中,用于求图像的最大值,exp以e为底的指数函数。Will Set as: ;in, Used to find the maximum value of an image, exp is an exponential function with base e.
进一步地,所述通过细节调节函数对细节层进行增强的步骤包括:Furthermore, the step of enhancing the detail layer by using the detail adjustment function includes:
通过细节调节函数进行调节,公式为:;其中,表示细节层的归一化局部标准差;DAF表示细节调节函数;Adjust through the detail adjustment function, the formula is: ;in, represents the normalized local standard deviation of the detail layer; DAF represents the detail adjustment function;
增强细节层,公式为: ;增强可见光图像,公式为:其中,为增强细节层,表示增强可见光图像。Enhance the detail layer, the formula is: ; Enhance visible light image, the formula is: in, To enhance the detail layer, Denotes enhanced visible light image.
进一步地,所述通过形态学开操作重建红外背景图像的步骤包括:Furthermore, the step of reconstructing the infrared background image through the morphological opening operation includes:
通过形态学开运算得到红外背景,表达式为:;其中,表示红外背景图像,表示红外图像,表示结构元,表示高斯滤波器, 为滤波窗口大小。The infrared background is obtained by morphological opening operation, and the expression is: ;in, represents the infrared background image, represents an infrared image, represents the structural element, represents a Gaussian filter, is the filter window size.
进一步地,所述通过背景减法对红外目标进行粗提取,根据红外与可见光图像存在的差异,剔除冗余背景信息,得红外目标的步骤包括:Furthermore, the step of roughly extracting the infrared target by background subtraction and removing redundant background information according to the difference between the infrared and visible light images to obtain the infrared target includes:
从原始红外图像中减去背景图像,对红外目标粗提取,公式为:;其中,表示粗略的红外目标;根据红外与可见光图像存在的差异,精确红外目标,公式为: ;Subtract the background image from the original infrared image to roughly extract the infrared target. The formula is: ;in, Indicates a rough infrared target; based on the difference between infrared and visible light images, the precise infrared target is expressed as follows: ;
其中,为精确红外目标, 表示冗余背景,参数通过非线性变换函数得到: ;其中,为反正切函数,为参数,用于从整体上控制抑制程度的大小,防止丢失过多红外目标,,,,表示归一化的冗余背景,反映冗余背景特征分布。in, For precise infrared targeting , Represents redundant background, parameter Through the nonlinear transformation function, we get: ;in, is the inverse tangent function, is a parameter used to control the overall suppression level to prevent the loss of too many infrared targets. , , , represents the normalized redundant background, Reflects the distribution of redundant background features.
进一步地,所述通过目标压缩比将红外目标融入到增强可见光图像中,获得最终的融合图像的步骤包括:对红外目标进行压缩,公式为:;其中,表示最终的红外目标,表示目标压缩比;Furthermore, the step of integrating the infrared target into the enhanced visible light image by the target compression ratio to obtain the final fused image includes: compressing the infrared target, the formula is: ;in, represents the final infrared target, Indicates the target compression ratio;
对增强可见光图像和精确的红外目标求和,得到最大值,当最大值小于等于255时,,红外目标保持不变;否则,由以下式子计算得到:;其中,,控制压缩程度;Enhanced Visible Light Image and precise infrared targeting Sum and get the maximum value. When the maximum value is less than or equal to 255, , the infrared target remains unchanged; otherwise, it is calculated by the following formula: ;in, , Control the degree of compression;
融合图像通过以下式子得到:,为图像融合。The fused image is obtained by the following formula: , For image fusion.
本发明的技术方案通过导向滤波变换把可见光图像分成基础层和细节层,针对不同层的特点,设计相应的增强方法。在基础层引入在对数尺度上的伽马校正,确保全局对比度得到提高,隐藏细节得以显示;在细节层设计一种自适应细节调节函数提高局部对比度,解决局部细节模糊的问题。通过形态学开运算与背景减法提取红外目标特征,并利用冗余背景的像素灰度分布进行优化,得到的红外目标通过压缩比注入到增强可见光图像中获得融合图像,压缩比的大小与结果中目标的对比度相关,从而解决融合图像红外目标对比度较差的问题。The technical solution of the present invention divides the visible light image into a base layer and a detail layer through guided filtering transformation, and designs corresponding enhancement methods according to the characteristics of different layers. In the base layer, gamma correction on a logarithmic scale is introduced to ensure that the global contrast is improved and hidden details can be displayed; an adaptive detail adjustment function is designed in the detail layer to improve the local contrast and solve the problem of blurred local details. The infrared target features are extracted through morphological opening operation and background subtraction, and the pixel grayscale distribution of the redundant background is used for optimization. The infrared target obtained is injected into the enhanced visible light image through a compression ratio to obtain a fused image. The size of the compression ratio is related to the contrast of the target in the result, thereby solving the problem of poor contrast of the infrared target in the fused image.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图示出的结构获得其他的附图。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 described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying any creative work.
图1为本发明所述弱光下的红外与可见光图像融合方法的步骤流程图;FIG1 is a flowchart of the steps of the method for fusing infrared and visible light images under weak light according to the present invention;
图2为本发明所述弱光下的红外与可见光图像融合方法的融合框图。FIG. 2 is a fusion block diagram of the infrared and visible light image fusion method under weak light conditions described in the present invention.
具体实施方式Detailed ways
下面将结合本发明说明书附图中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明的一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will be combined with the drawings in the accompanying drawings of the present invention specification 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.
需要说明,本发明实施例中所有方向性指示(诸如上、下、左、右、前、后……)仅用于解释在某一特定姿态(如附图所示)下各部件之间的相对位置关系、运动情况等,如果该特定姿态发生改变时,则该方向性指示也相应地随之改变。It should be noted that all directional indications (such as up, down, left, right, front, back, etc.) in the embodiments of the present invention are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
另外,在本发明中如涉及“第一”、“第二”等的描述仅用于描述目的,而不能理解为指示或暗示其相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本发明的描述中,“若干”、“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。In addition, in the present invention, descriptions such as "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "several" or "multiple" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
在本发明中,除非另有明确的规定和限定,术语“连接”、“固定”等应做广义理解,例如,“固定”可以是固定连接,也可以是可拆卸连接,或成一体;可以是机械连接,也可以是电连接;可以是直接相连,也可以通过中间媒介间接相连,可以是两个元件内部的连通或两个元件的相互作用关系,除非另有明确的限定。对于本领域的普通技术人员而言,可以根据具体情况理解上述术语在本发明中的具体含义。In the present invention, unless otherwise clearly specified and limited, the terms "connection", "fixation", etc. should be understood in a broad sense. For example, "fixation" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
另外,本发明各个实施例之间的技术方案可以相互结合,但是必须是以本领域普通技术人员能够实现为基础,当技术方案的结合出现相互矛盾或无法实现时应当认为这种技术方案的结合不存在,也不在本发明要求的保护范围之内。In addition, the technical solutions between the various embodiments of the present invention can be combined with each other, but it must be based on the fact that ordinary technicians in the field can implement it. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
本发明提出一种弱光下的红外与可见光图像融合方法,旨在设计一种在弱光环境下得到局部细节更清晰的融合图像,并使融合图像中目标的对比度更高的图像融合方法。The present invention proposes a method for fusing infrared and visible light images under weak light conditions, aiming to design an image fusion method that can obtain a fused image with clearer local details and make the contrast of the target in the fused image higher under weak light conditions.
下面将在具体实施例中对本发明提出的弱光下的红外与可见光图像融合方法进行说明:The infrared and visible light image fusion method under weak light conditions proposed by the present invention will be described in the following specific embodiments:
在本实施例的技术方案中,如图1、图2所示,一种弱光下的红外与可见光图像融合方法,包括以下步骤:In the technical solution of this embodiment, as shown in FIG. 1 and FIG. 2 , a method for fusing infrared and visible light images under weak light conditions includes the following steps:
(1)可见光图像的增强:(1) Enhancement of visible light images:
通过导向滤波器将原始可见光图像分解为基础层和细节层;The original visible light image is decomposed into a base layer and a detail layer by using a guided filter;
通过亮度校正函数对基础层亮度进行调整;Adjust the brightness of the base layer through the brightness correction function;
通过细节调节函数对细节层进行增强;Enhance the detail layer through the detail adjustment function;
整合可见光图像的细节层与基础层,得到增强可见光图像;Integrate the detail layer and the base layer of the visible light image to obtain an enhanced visible light image;
具体地,在增强过程中,引入亮度校正函数和细节调节函数,避免了手动调整增强参数,进而获得整体对比度较高且局部细节清晰的可见光图像。Specifically, during the enhancement process, a brightness correction function and a detail adjustment function are introduced to avoid manual adjustment of enhancement parameters, thereby obtaining a visible light image with high overall contrast and clear local details.
(2)红外图像的目标提取:(2) Target extraction from infrared images:
通过形态学开操作重建红外背景图像;Reconstruct the infrared background image through morphological opening operation;
通过背景减法对红外目标进行粗提取,根据红外与可见光图像存在的差异,剔除冗余背景信息,得红外目标;The infrared target is roughly extracted by background subtraction. According to the difference between infrared and visible light images, redundant background information is eliminated to obtain the infrared target.
具体地,在目标提取过程中,引入形态学开运算高效实现目标粗提取,同时,结合冗余背景特征分布去除干扰信息,进而获得更精确的红外目标。Specifically, in the target extraction process, the morphological opening operation is introduced to efficiently realize the rough extraction of the target. At the same time, the redundant background feature distribution is combined to remove the interference information, so as to obtain a more accurate infrared target.
(3)图像融合:(3) Image fusion:
通过目标压缩比将红外目标融入到增强可见光图像中,获得最终的融合图像。The infrared target is integrated into the enhanced visible light image through the target compression ratio to obtain the final fused image.
具体地,融合时利用压缩比抑制过曝现象的产生,进而获得目标对比度高且局部细节清晰的融合图像。Specifically, the compression ratio is used to suppress the overexposure phenomenon during fusion, thereby obtaining a fused image with high target contrast and clear local details.
可以理解地,通过导向滤波变换把可见光图像分成基础层和细节层,针对不同层的特点,设计相应的增强方法。在基础层引入在对数尺度上的伽马校正,确保全局对比度得到提高,隐藏细节得以显示;在细节层设计一种自适应细节调节函数提高局部对比度,解决局部细节模糊的问题。通过形态学开运算与背景减法提取红外目标特征,并利用冗余背景的像素灰度分布进行优化,得到的红外目标通过压缩比注入到增强可见光图像中获得融合图像,压缩比的大小与结果中目标的对比度相关,从而解决融合图像红外目标对比度较差的问题。It can be understood that the visible light image is divided into a base layer and a detail layer through guided filtering transformation, and corresponding enhancement methods are designed according to the characteristics of different layers. In the base layer, gamma correction on a logarithmic scale is introduced to ensure that the global contrast is improved and hidden details can be displayed; an adaptive detail adjustment function is designed in the detail layer to improve the local contrast and solve the problem of local detail blur. The infrared target features are extracted through morphological opening operation and background subtraction, and the pixel grayscale distribution of the redundant background is used for optimization. The infrared target obtained is injected into the enhanced visible light image through the compression ratio to obtain a fused image. The size of the compression ratio is related to the contrast of the target in the result, thereby solving the problem of poor contrast of the infrared target in the fused image.
进一步地,所述通过导向滤波器将原始可见光图像分解为基础层和细节层的步骤包括:Furthermore, the step of decomposing the original visible light image into a base layer and a detail layer by using a guided filter comprises:
通过导向滤波平滑原始可见光图像计算得到基础层,计算公式为:;其中,表示导向滤波,表示基础层,表示可见光图像,表示滤波窗口大小,和分别表示可见光图像的宽和高,表示边缘保留度;The base layer is calculated by smoothing the original visible light image through guided filtering. The calculation formula is: ;in, represents guided filtering, represents the base layer, represents a visible light image, Indicates the filter window size, and Represent the width and height of the visible light image, respectively. Indicates the edge preservation degree;
在对数尺度上计算获得细节层,计算公式为:;其中,表示细节层,表示以常数e为底数的对数算子。The detail layer is calculated on a logarithmic scale using the following formula: ;in, Represents the detail layer, Represents the logarithm operator with a constant base e.
可以理解地,导向滤波具备保边、抑制伪影和高效等特点,应用在图像分解中可取得较好的效果。任意两个灰度值和之间的对比度可表示为 。受此启发,细节层可以在对数尺度上获得,从而提升后续局部增强的效果。进一步地,所述通过亮度校正函数对基础层亮度进行调整的步骤包括:It can be understood that guided filtering has the characteristics of edge preservation, artifact suppression and high efficiency, and can achieve good results in image decomposition. and The contrast between them can be expressed as Inspired by this, the detail layer can be obtained on a logarithmic scale, thereby improving the effect of subsequent local enhancement. Further, the step of adjusting the brightness of the base layer by a brightness correction function includes:
采用在对数尺度上的伽马校正对基础层进行亮度校正,校正公式为:;其中,为尺度因子,参数控制对比度的压缩程度,参数控制图像的明暗程度;当时,基础层对比度被压缩;通过红外图像灰度值结合Sigmoid函数得到:;其中,表示归一化的红外图像;The brightness of the base layer is corrected using gamma correction on a logarithmic scale. The correction formula is: ;in, is the scale factor, parameter Controls the degree of contrast compression, parameters Controls the brightness of the image; when When , the base layer contrast is compressed; By combining the infrared image grayscale value with the Sigmoid function, we can get: ;in, represents the normalized infrared image;
具体地,通过上述操作,高对比度细节被充分压缩得以显示,但可能导致部分低对比度细节不可见,因此,需要调节参数使其恢复。当时会使图像更亮,同时为避免输出超出最大灰度,故将设置为::其中,用于求图像的最大值,exp以e为底的指数函数。Specifically, through the above operation, high-contrast details are fully compressed and displayed, but some low-contrast details may be invisible, so it is necessary to adjust the parameters to restore them. will make the image brighter, and in order to avoid the output exceeding the maximum grayscale, Set as: :in, Used to find the maximum value of an image, exp is an exponential function with base e.
可以理解地,基础层主要包含低频信息,对其进行亮度校正,可以提高全局对比度,进而显示淹没在高光区与暗区的细节。当时,基础层对比度被压缩。为了使压缩具备一定自适应性,通过红外图像灰度值结合Sigmoid函数得到,Sigmoid函数能够减少红外图像暗像素,起到防止过度压缩的作用。Understandably, the base layer mainly contains low-frequency information, and brightness correction can improve the global contrast and thus display the details submerged in the highlight and dark areas. , the base layer contrast is compressed. In order to make the compression adaptive, It is obtained by combining the grayscale value of the infrared image with the Sigmoid function. The Sigmoid function can reduce the dark pixels of the infrared image and prevent excessive compression.
进一步地,所述通过细节调节函数对细节层进行增强的步骤包括:Furthermore, the step of enhancing the detail layer by using the detail adjustment function includes:
受光照、环境等因素的影响,可见光图像存在部分模糊细节,需要进行增强使其更加清晰,通过的细节调节函数对细节层调节;Affected by factors such as lighting and environment, there are some blurred details in the visible light image, which need to be enhanced to make it clearer. The detail layer is adjusted through the detail adjustment function;
具体地,通过细节调节函数进行调节,公式为:;其中,表示细节层的归一化局部标准差;DAF表示细节调节函数;局部标准差反映图像对比度,其值越大,图像越清晰。工作原理如下:当接近1时,表示该细节特征具有较高的对比度,相应的较小,避免强边周围产生伪影和过增强现象;当接近0时表示平坦区域,相应的较小,防止噪声被放大;当时,达到最大值。增强细节层,公式为:;可以理解地,经过该细节调节函数的处理,可见光图像局部对比度得到自适应增强,模糊细节变得清晰。Specifically, the adjustment is performed through the detail adjustment function, and the formula is: ;in, It represents the normalized local standard deviation of the detail layer; DAF represents the detail adjustment function; the local standard deviation reflects the image contrast, the larger its value is, the clearer the image is. The working principle is as follows: When it is close to 1, it means that the detail feature has a higher contrast, and the corresponding Small to avoid artifacts and over-enhancement around strong edges; when When it is close to 0, it indicates a flat area, and the corresponding Small to prevent noise from being amplified; when hour, Reach the maximum value. Enhance the detail layer, the formula is: It can be understood that after being processed by the detail adjustment function, the local contrast of the visible light image is adaptively enhanced and the blurred details become clear.
增强可见光图像,公式为:;其中,为增强细节层,表示增强可见光图像。To enhance the visible light image, the formula is: ;in, To enhance the detail layer, Denotes enhanced visible light image.
由红外成像系统的特点可知,在弱光环境下,红外背景通常比红外目标更暗、更平滑,因此红外目标可通过背景减法获得:先对红外图像中的背景进行重建,然后将背景从原图像中减去,得到红外目标的图像。From the characteristics of infrared imaging systems, we can see that in low-light environments, the infrared background is usually darker and smoother than the infrared target. Therefore, the infrared target can be obtained by background subtraction: first reconstruct the background in the infrared image, and then subtract the background from the original image to obtain the image of the infrared target.
进一步地,所述通过形态学开操作重建红外背景图像的步骤包括:Furthermore, the step of reconstructing the infrared background image through the morphological opening operation includes:
通过形态学开运算得到红外背景,表达式为:;其中,表示红外背景图像,表示红外图像,表示结构元,结构元对背景重建的结果影响较大,结构元要足够大,大到不会拟合任何目标,因此,为一个半径为30的圆盘形结构元,表示高斯滤波器,为滤波窗口大小,起到平滑红外背景和抑制伪影的作用。可以理解地,形态学开运算是图像依次经过腐蚀运算、膨胀运算的过程,具有删除暗背景上的亮目标的作用。因此,该方法可以有效对红外背景进行重建。对于一幅红外图像,通过形态学开运算得到红外背景的表达。The infrared background is obtained by morphological opening operation, and the expression is: ;in, represents the infrared background image, represents an infrared image, Represents the structural element. The structural element has a great influence on the result of background reconstruction. The structural element should be large enough not to fit any target. Therefore, is a disk-shaped structural element with a radius of 30. represents a Gaussian filter, is the filter window size, which plays a role in smoothing the infrared background and suppressing artifacts. It can be understood that the morphological opening operation is a process in which the image undergoes corrosion operation and expansion operation in sequence, which has the effect of deleting bright targets on the dark background. Therefore, this method can effectively reconstruct the infrared background. For an infrared image, the expression of the infrared background is obtained through the morphological opening operation.
进一步地,所述通过背景减法对红外目标进行粗提取,根据红外与可见光图像存在的差异,剔除冗余背景信息,得红外目标的步骤包括:Furthermore, the step of roughly extracting the infrared target by background subtraction and removing redundant background information according to the difference between the infrared and visible light images to obtain the infrared target includes:
从原始红外图像中减去背景图像,对红外目标粗提取,公式为:;其中,表示粗略的红外目标;Subtract the background image from the original infrared image to roughly extract the infrared target. The formula is: ;in, Indicates a rough infrared target;
可以理解地,由于红外背景通常较为复杂,因此重建效果并不十分完美,这会导致提取到的红外目标混入了一些冗余背景信息。为解决该问题,需要对红外目标进一步优化。一般来说,红外目标比可见光图像具有更大的灰度值,因此,红外图像中比可见光图像灰度值更小的区域很可能属于背景,利用红外与可见光图像这种显著性差异可以有效估计出冗余背景。然而,该背景中存在部分红外目标特征,直接与粗略的红外目标作差,可能导致丢失较多目标特征,因此通过乘以一个适当的参数进行抑制。Understandably, since the infrared background is usually complex, the reconstruction effect is not perfect, which will cause the extracted infrared target to be mixed with some redundant background information. To solve this problem, the infrared target needs to be further optimized. Generally speaking, the infrared target has a larger gray value than the visible light image. Therefore, the area with a smaller gray value in the infrared image than the visible light image is likely to belong to the background. The significant difference between infrared and visible light images can effectively estimate the redundant background. However, there are some infrared target features in the background. Directly subtracting with the rough infrared target may result in the loss of more target features, so it is suppressed by multiplying by an appropriate parameter.
根据红外与可见光图像存在的差异,精确红外目标,公式为: ;其中,为精确红外目标, 表示冗余背景,参数通过非线性变换函数得到:;其中,为反正切函数,为参数,用于从整体上控制抑制程度的大小,防止丢失过多红外目标,,,,表示归一化的冗余背景,反映冗余背景特征分布。According to the difference between infrared and visible light images, the infrared target can be accurately determined using the formula: ;in, For precise infrared targeting , Represents redundant background, parameter Through the nonlinear transformation function, we get: ;in, is the inverse tangent function, is a parameter used to control the overall suppression level to prevent the loss of too many infrared targets. , , , represents the normalized redundant background, Reflects the distribution of redundant background features.
具体地,当值较大时,说明该特征属于红外目标的可能性较大,相应的参数也较大,表示抑制程度较大,避免丢失较多红外目标特征,用于全局控制抑制程度大小,随着的增加,相应的非线性变换逐渐加强,表明抑制效果更明显,设置为20。进一步地,所述通过目标压缩比将红外目标融入到增强可见光图像中,获得最终的融合图像的步骤包括:Specifically, when When the value is large, it means that the feature is more likely to belong to an infrared target, and the corresponding parameters is also larger, indicating a greater degree of suppression, avoiding the loss of more infrared target features. Used to globally control the degree of suppression. As the value of increases, the corresponding nonlinear transformation gradually strengthens, indicating that the suppression effect is more obvious. is set to 20. Furthermore, the step of integrating the infrared target into the enhanced visible light image through the target compression ratio to obtain the final fused image includes:
融合图像通过将红外目标直接注入到增强可见光图像获得,该方法有效且高效,但是有时会产生过曝现象,影响融合质量,因此,为解决上述问题的同时保持可见光信息,需要进一步对红外目标进行压缩。The fused image is obtained by directly injecting the infrared target into the enhanced visible light image. This method is effective and efficient, but sometimes it will cause overexposure, affecting the fusion quality. Therefore, in order to solve the above problem while maintaining the visible light information, the infrared target needs to be further compressed.
对红外目标进行压缩,公式为:;其中,表示最终的红外目标,表示目标压缩比;对于一幅图像来说,曝光程度可由最大灰度值来度量;因此,对增强可见光图像和精确的红外目标求和,得到最大值,当最大值小于等于255时,,红外目标保持不变;否则,由以下式子计算得到:;其中,,控制压缩程度;To compress the infrared target, the formula is: ;in, represents the final infrared target, represents the target compression ratio; for an image, the exposure level can be measured by the maximum grayscale value; therefore, for enhanced visible light images and precise infrared targeting Sum and get the maximum value. When the maximum value is less than or equal to 255, , the infrared target remains unchanged; otherwise, it is calculated by the following formula: ;in, , Control the degree of compression;
具体地,越大,压缩程度越小,得到的融合图像中的目标越显著,设置为2。融合图像通过以下式子得到:,为图像融合。specifically, The larger the value, the smaller the compression degree, and the more prominent the target in the obtained fused image. Set to 2. The fused image is obtained by the following formula: , For image fusion.
以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求的保护范围为准。The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims (4)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410631450.4A CN118247161B (en) | 2024-05-21 | 2024-05-21 | Infrared and visible light image fusion method under weak light |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410631450.4A CN118247161B (en) | 2024-05-21 | 2024-05-21 | Infrared and visible light image fusion method under weak light |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN118247161A CN118247161A (en) | 2024-06-25 |
| CN118247161B true CN118247161B (en) | 2024-07-19 |
Family
ID=91558922
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202410631450.4A Active CN118247161B (en) | 2024-05-21 | 2024-05-21 | Infrared and visible light image fusion method under weak light |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN118247161B (en) |
Families Citing this family (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN118968076A (en) * | 2024-08-05 | 2024-11-15 | 北京积加科技有限公司 | Black light night vision full-color image processing method, device, electronic device and readable medium |
| CN118887099B (en) * | 2024-08-29 | 2025-07-18 | 四川轻化工大学 | A multi-scale decomposition method based on robust self-sparse fuzzy clustering |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109035189A (en) * | 2018-07-17 | 2018-12-18 | 桂林电子科技大学 | Infrared and weakly visible light image fusion method based on Cauchy's ambiguity function |
| CN110490914A (en) * | 2019-07-29 | 2019-11-22 | 广东工业大学 | It is a kind of based on brightness adaptively and conspicuousness detect image interfusion method |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111062905B (en) * | 2019-12-17 | 2022-01-04 | 大连理工大学 | An infrared and visible light fusion method based on saliency map enhancement |
| CN117911822B (en) * | 2023-12-26 | 2024-07-26 | 湖南矩阵电子科技有限公司 | Multi-sensor fusion unmanned aerial vehicle target detection method, system and application |
-
2024
- 2024-05-21 CN CN202410631450.4A patent/CN118247161B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN109035189A (en) * | 2018-07-17 | 2018-12-18 | 桂林电子科技大学 | Infrared and weakly visible light image fusion method based on Cauchy's ambiguity function |
| CN110490914A (en) * | 2019-07-29 | 2019-11-22 | 广东工业大学 | It is a kind of based on brightness adaptively and conspicuousness detect image interfusion method |
Also Published As
| Publication number | Publication date |
|---|---|
| CN118247161A (en) | 2024-06-25 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US11127122B2 (en) | Image enhancement method and system | |
| Bai et al. | Underwater image enhancement based on global and local equalization of histogram and dual-image multi-scale fusion | |
| Tao et al. | Low-light image enhancement using CNN and bright channel prior | |
| CN118247161B (en) | Infrared and visible light image fusion method under weak light | |
| CN110047055B (en) | An infrared image detail enhancement and denoising method | |
| Park et al. | Generation of high dynamic range illumination from a single image for the enhancement of undesirably illuminated images | |
| CN109658447B (en) | Night image defogging method based on edge detail preservation | |
| CN105701783B (en) | A kind of single image to the fog method and device based on environment light model | |
| CN119107248B (en) | Image deep learning noise reduction method for night and tunnel low-light scene | |
| CN116797484A (en) | Image defogging method and system based on improved dark channel prior | |
| Liu et al. | Enhancement of low illumination images based on an optimal hyperbolic tangent profile | |
| Bataineh | Brightness and contrast enhancement method for color images via pairing adaptive gamma correction and histogram equalization | |
| Gu et al. | A novel Retinex image enhancement approach via brightness channel prior and change of detail prior | |
| Tao et al. | Improved Retinex for low illumination image enhancement of nighttime traffic | |
| Han et al. | Automatic illumination and color compensation using mean shift and sigma filter | |
| Yu et al. | Visibility Enhancement Based Real--Time Retinex for Diverse Environments | |
| Zhan et al. | Infrared image enhancement based on wavelet transformation and retinex | |
| Tong et al. | Infrared and visible image fusion under different illumination conditions based on illumination effective region map | |
| CN112825189B (en) | An image defogging method and related equipment | |
| Lian et al. | Learning intensity and detail mapping parameters for dehazing | |
| GUAN et al. | A dual-tree complex wavelet transform-based model for low-illumination image enhancement | |
| CN116681629B (en) | Visible light image self-adaptive contrast enhancement method and system for main transformer of transformer substation | |
| Fan et al. | Underwater image enhancement algorithm combining color correction and multi-scale fusion | |
| Dileep et al. | A comparison between different colour image contrast enhancement algorithms | |
| CN119379560A (en) | Image defogging method, device, storage medium and electronic device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |