[go: up one dir, main page]

CN114331922B - Multi-scale self-calibration aero-optical effect turbulent degradation image restoration method and system - Google Patents

Multi-scale self-calibration aero-optical effect turbulent degradation image restoration method and system Download PDF

Info

Publication number
CN114331922B
CN114331922B CN202210229047.XA CN202210229047A CN114331922B CN 114331922 B CN114331922 B CN 114331922B CN 202210229047 A CN202210229047 A CN 202210229047A CN 114331922 B CN114331922 B CN 114331922B
Authority
CN
China
Prior art keywords
feature map
calibration
image
aero
scale
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
Application number
CN202210229047.XA
Other languages
Chinese (zh)
Other versions
CN114331922A (en
Inventor
洪汉玉
罗心怡
马雷
张天序
张耀宗
熊伦
桑农
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Institute of Technology
Original Assignee
Wuhan Institute of Technology
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Wuhan Institute of Technology filed Critical Wuhan Institute of Technology
Priority to CN202210229047.XA priority Critical patent/CN114331922B/en
Publication of CN114331922A publication Critical patent/CN114331922A/en
Application granted granted Critical
Publication of CN114331922B publication Critical patent/CN114331922B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)

Abstract

本发明公开了一种多尺度自校准气动光学效应湍流退化图像复原方法,包括以下步骤:S1、提取原始气动光学效应湍流退化图像的特征图;S2、通过预先构建的自校准网络对特征图进行校准,得到针对湍流退化图像局部模糊区域校准的局部融合特征图;S3、对原始气动光学效应湍流退化图像的特征图进行多尺度卷积恢复,得到针对全局区域的全局恢复特征图;S4、将局部融合特征图和全局恢复特征图合并,并通过卷积对合并后的特征图进行图像复原。本发明能在利用图像潜在高、低分辨率空间信息的同时兼顾到图像的多尺度信息,从而精准复原气动光学效应湍流退化图像。

Figure 202210229047

The invention discloses a multi-scale self-calibration aero-optic effect turbulence degraded image restoration method, comprising the following steps: S1, extracting the feature map of the original aero-optic effect turbulence degraded image; S2, performing a pre-built self-calibration network on the feature map. Calibration to obtain a local fusion feature map calibrated for the local blurred region of the turbulent degraded image; S3. Perform multi-scale convolution recovery on the feature map of the original aero-optic effect turbulent degraded image to obtain a global restored feature map for the global region; S4. The local fusion feature map and the global restoration feature map are merged, and image restoration is performed on the merged feature map through convolution. The invention can take into account the multi-scale information of the image while utilizing the potential high and low resolution spatial information of the image, thereby accurately restoring the aero-optic effect turbulent degraded image.

Figure 202210229047

Description

多尺度自校准气动光学效应湍流退化图像复原方法及系统Multi-scale self-calibration aero-optical effect turbulent degradation image restoration method and system

技术领域technical field

本发明涉及图像处理领域,尤其涉及一种基于多尺度自校准网络的气动光学效应湍流退化图像复原方法及系统。The invention relates to the field of image processing, in particular to a method and system for restoring aero-optic effect turbulent flow degradation images based on a multi-scale self-calibration network.

背景技术Background technique

当飞行器到达一定的速度后周围空气产生的压缩效应会使流场密度发生改变,使光学系统成像的性能造成不利影响。由气动光学效应引起的图像模糊会受到各种因素的影响。和生活中的退化图像不同,湍流图像恢复的过程具有更多复杂的因素:1.大气折射率的改变会影响光学系统成像过程中图像的分辨率;2.空气层中的低空风切变和空气层中的不稳定性、湍流介质的影响及传输过程中设备的不完善造成图像质量下降;3.原图像退化的情况未知,难以从湍流退化图像中估计退化模型,且各种自然现象造成了随机因素的干扰。When the aircraft reaches a certain speed, the compression effect of the surrounding air will change the density of the flow field, which will adversely affect the imaging performance of the optical system. Image blur caused by aero-optical effects can be affected by various factors. Different from the degraded images in life, the process of turbulent image restoration has more complicated factors: 1. The change of the atmospheric refractive index will affect the resolution of the image during the imaging process of the optical system; 2. The low-level wind shear in the air layer and The instability in the air layer, the influence of the turbulent medium and the imperfect equipment during the transmission process lead to the degradation of the image quality; 3. The degradation of the original image is unknown, and it is difficult to estimate the degradation model from the turbulent degraded image, and various natural phenomena cause interference from random factors.

现有的传统气动光学效应退化图像复原方法通常采用三种方式:1、流场控制方法;2、自适应光学方法;3、数字图像复原方法。以上方法能够减小气动光学效应的影响,但现有的算法对其求解出的点扩散函数始终会有偏差。The existing traditional aero-optic effect degraded image restoration methods usually adopt three methods: 1. Flow field control method; 2. Adaptive optics method; 3. Digital image restoration method. The above methods can reduce the influence of aero-optical effects, but the point spread function solved by the existing algorithms will always have deviations.

发明内容SUMMARY OF THE INVENTION

本发明主要目的在于提供一种可以提高光学效应湍流退化图像复原精度的方法。The main purpose of the present invention is to provide a method that can improve the restoration accuracy of optical effect turbulent degraded images.

本发明所采用的技术方案是:The technical scheme adopted in the present invention is:

提供一种多尺度自校准气动光学效应湍流退化图像复原方法,包括以下步骤:Provided is a multi-scale self-calibration aero-optic effect turbulent degradation image restoration method, comprising the following steps:

S1、提取原始气动光学效应湍流退化图像的特征图,特征图大小为C×H×W,其中通道维数为CHW分别为湍流退化图像的高、宽;S1. Extract the feature map of the original aero-optic effect turbulent degraded image, the size of the feature map is C × H × W , where the channel dimension is C , and H and W are the height and width of the turbulent degraded image, respectively;

S2、通过预先构建的自校准网络对特征图进行校准,具体沿着通道维度将特征图分离为两个子特征图,每个子特征图的通道数为C/2,提取其中一个子特征图的高、低分辨率空间特征,并进行加权融合,得到校准空间特征;提取另一个子特征图的原始分辨率空间特征;将原始分辨率空间特征与校准空间特征进行融合,得到针对湍流退化图像局部模糊区域校准的局部融合特征图;S2. The feature map is calibrated through a pre-built self-calibration network, and the feature map is divided into two sub-feature maps along the channel dimension. The number of channels of each sub-feature map is C/ 2, and the height of one of the sub-feature maps is extracted. , low-resolution spatial features, and perform weighted fusion to obtain calibration spatial features; extract the original resolution spatial features of another sub-feature map; fuse the original resolution spatial features and calibration spatial features to obtain local blurring for turbulent degraded images Locally fused feature maps for regional calibration;

S3、对原始气动光学效应湍流退化图像的特征图进行多尺度卷积恢复,得到针对全局区域的全局恢复特征图;S3. Perform multi-scale convolution recovery on the feature map of the original aero-optical effect turbulent degraded image to obtain a global recovery feature map for the global region;

S4、将局部融合特征图和全局恢复特征图合并,并通过卷积对合并后的特征图进行图像复原。S4. Combine the local fusion feature map and the global restoration feature map, and perform image restoration on the combined feature map through convolution.

接上述技术方案,步骤S2中,将融合特征图作为输入,重复m次融合操作,将m个融合特征图进行级联,作为终的融合特征图,其中m为自然数。Following the above technical solution, in step S2, the fusion feature map is used as the input, and the fusion operation is repeated m times, and the m fusion feature maps are cascaded to obtain the final fusion feature map, where m is a natural number.

接上述技术方案,步骤S2中对高、低分辨率空间特征使用sigmoid函数进行加权融合,得到校准空间特征。Following the above technical solution, in step S2, the high-resolution and low-resolution spatial features are weighted and fused using the sigmoid function to obtain calibration spatial features.

接上述技术方案,步骤S2中具体采用卷积层提取湍流退化图像的特征图。Following the above technical solution, in step S2, a convolution layer is specifically used to extract the feature map of the turbulent degraded image.

接上述技术方案,步骤S3中,具体利用一多通道滤波器,不同通道中卷积核的空洞率不同,从而形成多尺度卷积,该多通道滤波器的通道数等于特征图的通道维数C;In connection with the above technical solution, in step S3, a multi-channel filter is specifically used, and the hole rates of the convolution kernels in different channels are different, thereby forming a multi-scale convolution, and the number of channels of the multi-channel filter is equal to the channel dimension of the feature map. C;

利用多尺度卷积将原始气动光学效应湍流退化图像的特征图感受野扩大,经过多尺度卷积后输出的全局区域恢复后的特征图。Multi-scale convolution is used to expand the receptive field of the feature map of the original aero-optic effect turbulent degraded image, and the feature map after multi-scale convolution is output after the global region restoration.

本发明还提供一种基于多尺度自校准网络的气动光学效应湍流退化图像复原系统,包括:The present invention also provides an aero-optical effect turbulent degradation image restoration system based on a multi-scale self-calibration network, comprising:

特征图像提取模块,用于提取原始气动光学效应湍流退化图像的特征图,特征图大小为C×H×W,其中通道维数为CHW分别为湍流退化图像的高、宽;The feature image extraction module is used to extract the feature map of the original aero-optic effect turbulent degraded image. The size of the feature map is C × H × W , where the channel dimension is C , and H and W are the height and width of the turbulent degraded image, respectively;

局部模糊区域校准模块,用于通过预先构建的自校准网络对特征图进行校准,具体沿着通道维度将特征图分离为两个子特征图,每个子特征图的通道数为C/2,提取其中一个子特征图的高、低分辨率空间特征,并进行加权融合,得到校准空间特征;提取另一个子特征图的原始分辨率空间特征;将原始分辨率空间特征与校准空间特征进行融合,得到针对湍流退化图像局部模糊区域校准的局部融合特征图;The local fuzzy area calibration module is used to calibrate the feature map through a pre-built self-calibration network. Specifically, the feature map is separated into two sub-feature maps along the channel dimension, and the number of channels of each sub-feature map is C/ 2. The high and low resolution spatial features of a sub-feature map are weighted and fused to obtain calibration spatial features; the original resolution spatial features of another sub-feature map are extracted; the original resolution spatial features and calibration spatial features are fused to obtain Local fusion feature maps calibrated for local blurred regions of turbulent degraded images;

全局区域恢复模块,用于对原始气动光学效应湍流退化图像的特征图进行多尺度卷积恢复,得到针对全局区域的全局恢复特征图;The global region restoration module is used to perform multi-scale convolution restoration on the feature map of the original aero-optical effect turbulent degraded image, and obtain the global restoration feature map for the global region;

图像复原模块,用于将局部融合特征图和全局恢复特征图合并,并通过卷积对合并后的特征图进行图像复原。The image restoration module is used to merge the local fusion feature map and the global restoration feature map, and perform image restoration on the merged feature map through convolution.

接上述技术方案,局部模糊区域校准模块还用于具体将融合特征图作为输入,重复m次融合操作,将m个融合特征图进行级联,作为终的融合特征图,其中m为自然数。Following the above technical solution, the local fuzzy area calibration module is further used to specifically take the fusion feature map as an input, repeat the fusion operation m times, and cascade m fusion feature maps as the final fusion feature map, where m is a natural number.

接上述技术方案,局部模糊区域校准模块具体对高、低分辨率空间特征使用sigmoid函数进行加权融合,得到校准空间特征。Following the above technical solution, the local fuzzy area calibration module specifically uses the sigmoid function to perform weighted fusion on the high-resolution and low-resolution spatial features to obtain the calibrated spatial features.

接上述技术方案,全局区域恢复模块具体用于:Following the above technical solutions, the global area recovery module is specifically used for:

具体利用一多通道滤波器,不同通道中卷积核的空洞率不同,从而形成多尺度卷积,该多通道滤波器的通道数等于特征图的通道维数C;Specifically, a multi-channel filter is used, and the hole rates of the convolution kernels in different channels are different, thereby forming a multi-scale convolution, and the number of channels of the multi-channel filter is equal to the channel dimension C of the feature map;

利用多尺度卷积将原始气动光学效应湍流退化图像的特征图感受野扩大,经过多尺度卷积后输出的全局区域恢复后的特征图。Multi-scale convolution is used to expand the receptive field of the feature map of the original aero-optic effect turbulent degraded image, and the feature map after multi-scale convolution is output after the global region restoration.

本发明还提供一种计算机存储装置,其内存储有可被处理器执行的计算机程序,该计算机程序执行上述技术方案所述的多尺度自校准气动光学效应湍流退化图像复原方法。The present invention also provides a computer storage device in which a computer program executable by a processor is stored, and the computer program executes the multi-scale self-calibration aero-optic effect turbulent degradation image restoration method described in the above technical solution.

本发明产生的有益效果是:本发明通过自校准网络对高、低分辨率空间特征加权融合得到校准空间特征,之后融合气动光学效应湍流退化图像特征图的校准空间特征和原始分辨率空间特征,在保留原始图像特征的同时对图像的局部区域进行了校准,得到局部融合特征图。进行多次校准后,局部模糊区域得到更精确的恢复。The beneficial effects produced by the present invention are: the present invention obtains the calibration spatial features by weighted fusion of the high-resolution and low-resolution spatial features through the self-calibration network, and then fuses the calibration spatial features and the original resolution spatial features of the aero-optical effect turbulent degraded image feature map, The local area of the image is calibrated while retaining the original image features, and the local fusion feature map is obtained. After multiple calibrations, local blurred regions are recovered more accurately.

进一步地,多尺度卷积利用不同空洞率的空洞卷积对全局模糊区域中的感受野进行不同程度的扩大并集成了不同尺度的特征,可学习到更大的模糊范围和多尺度信息,能够提取有利于恢复图像的细节信息。可见,本发明既校准了图像中的局部模糊区域,又使图像中全局区域中的细节得到有效复原,从而提升了图像整体复原的质量。Further, the multi-scale convolution uses the dilated convolution of different dilation rates to expand the receptive field in the global blurred area to different degrees and integrates features of different scales, which can learn a larger blurring range and multi-scale information. Extract detailed information that is beneficial to the restored image. It can be seen that the present invention not only calibrates the local blur area in the image, but also effectively restores the details in the global area in the image, thereby improving the overall restoration quality of the image.

附图说明Description of drawings

下面将结合附图及实施例对本发明作进一步说明,附图中:The present invention will be further described below in conjunction with the accompanying drawings and embodiments, in which:

图1为本发明实施例多尺度自校准气动光学效应湍流退化图像复原方法的流程图;1 is a flowchart of a method for restoring a multi-scale self-calibrating aero-optic effect turbulent degraded image according to an embodiment of the present invention;

图2为本发明另一实施例多尺度自校准气动光学效应湍流退化图像复原方法的流程图;2 is a flowchart of a method for restoring a multi-scale self-calibration aero-optic effect turbulent degraded image according to another embodiment of the present invention;

图3为本发明实施例多尺度自校准网络的示意图;3 is a schematic diagram of a multi-scale self-calibration network according to an embodiment of the present invention;

图4为本发明图像局部模糊区域自校准过程图;Fig. 4 is the self-calibration process diagram of the local blurred area of the image according to the present invention;

图5为本发明实施例测试结果。Fig. 5 is the test result of the embodiment of the present invention.

具体实施方式Detailed ways

为了使本发明的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本发明,并不用于限定本发明。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.

如图1所示,本发明实施例多尺度自校准气动光学效应湍流退化图像复原方法,包括以下步骤:As shown in FIG. 1 , the multi-scale self-calibration aero-optic effect turbulence degradation image restoration method according to an embodiment of the present invention includes the following steps:

S101、提取原始气动光学效应湍流退化图像的特征图,特征图大小为C×H×W,其中通道维数为CHW分别为湍流退化图像的高、宽;S101. Extract the feature map of the original aero-optic effect turbulent degraded image, the size of the feature map is C × H × W , where the channel dimension is C , and H and W are the height and width of the turbulent degraded image, respectively;

S102、通过预先构建的自校准网络对特征图进行校准,具体沿着通道维度将特征图分离为两个子特征图,每个子特征图的通道数为C/2,提取其中一个子特征图的高、低分辨率空间特征,并进行加权融合,得到校准空间特征;提取另一个子特征图的原始分辨率空间特征;将原始分辨率空间特征与校准空间特征进行融合,得到针对湍流退化图像局部模糊区域校准的局部融合特征图;S102. Calibrate the feature map through a pre-built self-calibration network, and specifically separate the feature map into two sub-feature maps along the channel dimension, the number of channels of each sub-feature map is C/ 2, and extract the height of one of the sub-feature maps. , low-resolution spatial features, and perform weighted fusion to obtain calibration spatial features; extract the original resolution spatial features of another sub-feature map; fuse the original resolution spatial features and calibration spatial features to obtain local blurring for turbulent degraded images Locally fused feature maps for regional calibration;

S103、对原始气动光学效应湍流退化图像的特征图进行多尺度卷积恢复,得到针对全局区域的全局恢复特征图;S103, performing multi-scale convolution recovery on the feature map of the original aero-optic effect turbulent degraded image, to obtain a global recovery feature map for the global region;

S104、将局部融合特征图和全局恢复特征图合并,并通过卷积对合并后的特征图进行图像复原。S104 , combine the local fusion feature map and the global restoration feature map, and perform image restoration on the combined feature map through convolution.

进一步地,步骤S102中,可将融合特征图作为输入,重复m次融合操作,将m个融合特征图进行级联,作为终的融合特征图,其中m为自然数。Further, in step S102, the fusion feature map may be used as an input, and the fusion operation may be repeated m times, and the m fusion feature maps may be cascaded to obtain the final fusion feature map, where m is a natural number.

步骤S102中对高、低分辨率空间特征使用sigmoid函数进行加权融合,得到校准空间特征。In step S102, the high-resolution and low-resolution spatial features are weighted and fused using the sigmoid function to obtain calibration spatial features.

进一步地,步骤S102中可具体采用卷积层提取湍流退化图像的特征图。Further, in step S102, a convolution layer may be specifically used to extract the feature map of the turbulent flow degradation image.

步骤S103中,具体利用一多通道滤波器,不同通道中卷积核的空洞率不同,从而形成多尺度卷积,该多通道滤波器的通道数等于特征图的通道维数C;In step S103, a multi-channel filter is specifically used, and the hole rates of the convolution kernels in different channels are different, thereby forming a multi-scale convolution, and the channel number of the multi-channel filter is equal to the channel dimension C of the feature map;

利用多尺度卷积将原始气动光学效应湍流退化图像的特征图感受野扩大,经过多尺度卷积后输出的全局区域恢复后的特征图。Multi-scale convolution is used to expand the receptive field of the feature map of the original aero-optic effect turbulent degraded image, and the feature map after multi-scale convolution is output after the global region restoration.

本发明通过空洞率不同的空洞卷积构建多尺度卷积。空洞率的不同对全局模糊区域的感受野扩大程度不同,因此多尺度卷积有助于集成不同尺度(不同的感受野)的特征,从而有助于对不同模糊范围、模糊程度的模糊区域进行复原。The present invention constructs multi-scale convolution through hole convolution with different hole rates. Different dilation rates have different degrees of expansion of the receptive field of the global blurred area, so multi-scale convolution helps to integrate the features of different scales (different receptive fields), which is helpful for blurred areas with different blur ranges and blur degrees. recovery.

本发明另一实施例的基于多尺度自校准网络的气动光学效应湍流退化图像复原方法,可在Linux 操作系统平台采用python语言编写,如图2所示,包括以下步骤:Another embodiment of the present invention is a multi-scale self-calibration network-based aero-optical effect turbulent degradation image restoration method, which can be written in python language on the Linux operating system platform, as shown in FIG. 2 , and includes the following steps:

S201、利用气动光学效应湍流退化图像仿真软件,获得气动光学效应序列湍流退化图像数据库,将数据库划分为训练集和测试集,并在测试样本集中加入真实场景气动光学效应湍流退化图像;S201, using aero-optic effect turbulence degradation image simulation software to obtain aero-optic effect sequence turbulence degradation image database, dividing the database into training set and test set, and adding real scene aero-optic effect turbulence degradation images to the test sample set;

S202、通过训练集中的样本数据训练预先构建的自校准网络,具体训练过程包括:S202, train the pre-built self-calibration network through the sample data in the training set, and the specific training process includes:

输入气动光学效应湍流退化图像,提取气动光学效应湍流退化图像特征图;关注气动光学效应湍流退化图像特征图的局部模糊区域,并多次校准特征图局部特征,得到针对湍流退化图像局部模糊区域校准的局部融合特征图;学习气动光学效应湍流退化图像特征图中更大的模糊范围和多尺度信息并恢复图像细节,得到全局恢复特征图;合并局部融合特征图和全局恢复特征图,并通过卷积对合并后的图进行复原。Input the turbulent degraded image of aero-optical effect, extract the feature map of the turbulent-degraded image of aero-optical effect; pay attention to the local fuzzy area of the feature map of the turbulent-degraded image of aero-optical effect, and calibrate the local features of the feature map multiple times to obtain the calibration for the local fuzzy area of the turbulent degraded image The local fusion feature map of the aero-optics effect; learn the larger blur range and multi-scale information in the aero-optic effect turbulent degraded image feature map and restore the image details to obtain the global restoration feature map; merge the local fusion feature map and the global restoration feature map, and pass the volume The product restores the merged graph.

提取原始气动光学效应湍流退化图像的特征图,特征图大小为C×H×W,其中通道维数为CHW分别为湍流退化图像的高、宽;Extract the feature map of the original aero-optic effect turbulent degraded image, the size of the feature map is C × H × W , where the channel dimension is C , and H and W are the height and width of the turbulent degraded image, respectively;

通过预先构建的自校准网络对特征图进行校准,具体沿着通道维度将特征图分离为两个子特征图,每个子特征图的通道数为C/2,提取其中一个子特征图的高、低分辨率空间特征,并进行加权融合,得到校准空间特征;提取另一个子特征图的原始分辨率空间特征;将原始分辨率空间特征与校准空间特征进行融合,得到针对湍流退化图像局部模糊区域校准的局部融合特征图;将局部融合特征图作为输入,重复m次融合操作,再将m个融合特征图进行级联,作为最终的局部融合特征图,其中m为自然数。The feature map is calibrated through a pre-built self-calibration network. Specifically, the feature map is divided into two sub-feature maps along the channel dimension. The number of channels in each sub-feature map is C/ 2, and the high and low values of one of the sub-feature maps are extracted. Resolution spatial features, and weighted fusion to obtain calibration spatial features; extract the original resolution spatial features of another sub-feature map; fuse the original resolution spatial features and calibration spatial features to obtain calibration for local blurred regions of turbulent degraded images The local fusion feature map of , takes the local fusion feature map as input, repeats the fusion operation m times, and then cascades m fusion feature maps as the final local fusion feature map, where m is a natural number.

对原始气动光学效应湍流退化图像的特征图进行多尺度卷积恢复,得到针对全局区域的全局恢复特征图;Perform multi-scale convolution restoration on the feature map of the original aero-optic effect turbulent degraded image, and obtain the global restoration feature map for the global region;

将局部融合特征图和全局恢复特征图合并;Merge the local fusion feature map and the global restoration feature map;

通过卷积对合并后的特征图进行图像复原。Image restoration is performed on the merged feature maps by convolution.

可采用端到端的训练策略,通过训练集对多尺度自校准网络进行不断优化,直到获得最优权重,得到训练好的自校准网络;The end-to-end training strategy can be used to continuously optimize the multi-scale self-calibration network through the training set until the optimal weight is obtained, and the trained self-calibration network is obtained;

S203、利用测试样本集对训练好的自校准网络进行测试,对该自校准网络的性能进行评估;S203, using the test sample set to test the trained self-calibration network, and evaluate the performance of the self-calibration network;

S204、将待复原的气动光学效应湍流退化图像输入到经评估符合要求的自校准网络,输出复原后的图像。S204: Input the turbulent degraded image of the aero-optical effect to be restored into the self-calibration network that has been evaluated to meet the requirements, and output the restored image.

进一步地,如图3所示,步骤S2中采用特征提取模块提取气动光学效应湍流退化图像特征图。该模块利用单个3×3的卷积层提取大小为C×H×W的气动光学效应湍流退化图像特征图。其中C表示特征图通道数,HW分别表示特征图的高和宽。所述提取的气动光学效应湍流退化图像特征图表示为:Further, as shown in FIG. 3 , in step S2, a feature extraction module is used to extract the feature map of the aero-optical effect turbulent degradation image. The module utilizes a single 3×3 convolutional layer to extract feature maps of size C × H × W turbulent degraded images of aero-optical effects. where C represents the number of feature map channels, and H and W represent the height and width of the feature map, respectively. The extracted aero-optic effect turbulent degradation image feature map is expressed as:

S SF =C SF (I SF ) S SF = C SF ( I SF )

I SF 表示输入的气动光学效应湍流退化图像,C SF (·)表示卷积操作,S SF 表示得到的气动光学效应湍流退化图像特征图。 I SF represents the input aero-optic effect turbulent degraded image, C SF (·) represents the convolution operation, and S SF represents the obtained aero-optic effect turbulent degraded image feature map.

步骤S3中,依据上一步得到的气动光学效应湍流退化图像特征图S SF ,将其沿着通道维度C分离为两个子特征图,每个子特征图的通道数为C/2。In step S3, according to the aero-optic effect turbulent degradation image feature map S SF obtained in the previous step, it is divided into two sub-feature maps along the channel dimension C, and the channel number of each sub-feature map is C/2.

本发明的自校准过程如图4所示,其中一个子特征图进行了下采样操作并使用卷积层进行特征提取,学习低分辨率特征空间的表示。同时对该子特征图进行上采样并使用卷积层进行特征提取,学习高分辨率特征空间的表示。对于一幅图像I(尺寸为M×N),对其进行s倍下采样,即得到(M/s)×(N/s)尺寸的分辨率图像。由于子特征图进行了下采样操作,意味着子特征图进行了图像缩小,这个缩小的图像分辨率低,当用卷积层提取特征的时候学习到的就是低分辨率特征空间的表示。同样的,对于上采样的子特征图,意味着子特征图进行了图像放大, 从而可以得到更高分辨率的图像,当用卷积层提取特征的时候学习到的就是高分辨率特征空间的表示。The self-calibration process of the present invention is shown in Figure 4, in which a sub-feature map is down-sampled and a convolutional layer is used for feature extraction to learn the representation of the low-resolution feature space. Simultaneously upsampling this sub-feature map and using convolutional layers for feature extraction to learn the representation of the high-resolution feature space. For an image I (dimension M×N), it is down-sampled by s times, that is, a resolution image of (M/s)×(N/s) size is obtained. Since the sub-feature map is down-sampling, it means that the sub-feature map is image reduced, and the resolution of this reduced image is low. When the convolution layer is used to extract features, what is learned is the representation of the low-resolution feature space. Similarly, for the up-sampled sub-feature map, it means that the sub-feature map is enlarged, so that a higher-resolution image can be obtained. When extracting features with a convolutional layer, what is learned is the high-resolution feature space. express.

可对高、低分辨率空间特征使用sigmoid函数进行加权融合,得到校准后的空间特征。The sigmoid function can be used for weighted fusion of high-resolution and low-resolution spatial features to obtain calibrated spatial features.

对于另外一个子特征图,利用卷积层提取原始分辨率空间的特征。For another sub-feature map, a convolutional layer is used to extract features in the original resolution space.

将原始分辨率空间的特征与校准特征进行融合得到输出Y 1The features of the original resolution space and the calibration features are fused to obtain the output Y 1 .

将融合得到输出Y 1作为输入,重复步骤S3的操作,得到输出Y 2,以此类推,重复m次操作。The output Y 1 obtained by fusion is used as the input, and the operation of step S3 is repeated to obtain the output Y 2 , and so on, and the operation is repeated m times.

将m个输出(Y 1), (Y 2), …,(Y m)进行级联,如图3所示展现了m个输出得到总输出Y M的级联过程,将Y M表示为:The m outputs ( Y 1 ), ( Y 2 ), …, ( Y m ) are cascaded, as shown in Figure 3, the cascade process of m outputs to obtain the total output Y M is shown, and Y M is expressed as:

Y M=C sum [(Y 1), (Y 2), …,(Y m)] Y M = C sum [( Y 1 ), ( Y 2 ), …,( Y m )]

Y M表示级联(Y 1), (Y 2), …,(Y m)的总输出,C sum 表示对(Y 1), (Y 2), …,(Y m)级联操作。Y m表示第m次的输出。 Y M represents the total output of the cascade ( Y 1 ), ( Y 2 ), …, ( Y m ), and C sum represents the cascade operation on ( Y 1 ), ( Y 2 ), …, ( Y m ). Y m represents the mth output.

进一步地,如图3所示,步骤S4中,具体利用一多通道滤波器,不同通道中卷积核的空洞率不同,从而形成多尺度卷积,该多通道滤波器的通道数等于特征图的通道维数C;Further, as shown in FIG. 3, in step S4, a multi-channel filter is specifically used, and the hole rates of the convolution kernels in different channels are different, thereby forming a multi-scale convolution, and the number of channels of the multi-channel filter is equal to the feature map. The channel dimension C of ;

利用多尺度卷积将原始气动光学效应湍流退化图像的特征图感受野扩大,经过多尺度卷积后输出的全局区域恢复后的特征图。Multi-scale convolution is used to expand the receptive field of the feature map of the original aero-optic effect turbulent degraded image, and the feature map after multi-scale convolution is output after the global region restoration.

进一步地,步骤S5中,将气动光学效应湍流退化图像特征图S SF 和的级联后的输出Y M进行逐像素相加,使局部模糊区域校准后的特征图和全局模糊区域恢复后的特征图进行组合并输出S DF Further, in step S5, the concatenated output Y M of the aero-optical effect turbulent degraded image feature maps S SF and SF is added pixel by pixel, so that the feature map after the calibration of the local fuzzy area and the feature after the restoration of the global fuzzy area are The graphs are combined and output S DF :

S DF= S SF +W SC C sum [(Y 1), (Y 2), …,(Y m)]= S SF +W SC Y M S DF= S SF + W SC C sum [( Y 1 ), ( Y 2 ), …,( Y m )]= S SF + W SC Y M

W SC 是设置在Y M后的3×3卷积的权重,S SF 表示原始的气动光学效应湍流退化图像特征图。 W SC is the weight of the 3 × 3 convolution set after Y M , and S SF represents the original aero-optic effect turbulence degraded image feature map.

采用3×3的卷积层将所述的组合后的特征图重建为清晰图像:I CI =C Rec (S DF ),C Rec 表示卷积操作,I CI 表示所述复原图像。A 3×3 convolutional layer is used to reconstruct the combined feature map into a clear image: I CI =C Rec ( S DF ), C Rec represents a convolution operation, and I CI represents the restored image.

进一步地,步骤S6具体采用训练样本集,通过自动微分技术、使用基于随机梯度下降和反向传播算法,构建损失函数

Figure 879711DEST_PATH_IMAGE002
,N表示数据集的总数量,H DRN 表示整个多尺度自校准网络, I i BI 表示训练集中的第i张气动光学效应湍流退化图像,I i CI 表示第i张原图像。利用损失函数L(θ)优化多尺度自校准网络,更新网络参数θ,获得训练样本集的权重;Further, step S6 specifically adopts the training sample set, and constructs a loss function through automatic differentiation technology, using algorithms based on stochastic gradient descent and back propagation
Figure 879711DEST_PATH_IMAGE002
, N represents the total number of datasets, H DRN represents the entire multi-scale self-calibration network, I i BI represents the ith aero-optic effect turbulent degradation image in the training set, and I i CI represents the ith original image. Use the loss function L ( θ ) to optimize the multi-scale self-calibration network, update the network parameters θ , and obtain the weight of the training sample set;

在采用训练集权重的基础上,测试样本集对多尺度自校准网络进行测试。测试采用的是经过训练后的自校准网络,测试相当于是将湍流退化图像送到网络中,它直接就会出来复原后的图像。从直观上来讲它变得更清晰了(视觉效果),但一般会将测试后的结果进行评估以此来验证网络的有效性(数据说明)。本发明实施例采用的是峰值信噪比(Peaksignal-to-noise ratio,PSNR)评价指标对测试之后的结果进行评价的。该评价指标是图像质量评估的常用指标,其值越大表明图像的质量越好。On the basis of using the weights of the training set, the test sample set is used to test the multi-scale self-calibration network. The test uses a trained self-calibration network. The test is equivalent to sending the turbulent degraded image to the network, and it will directly come out the restored image. Intuitively it becomes clearer (visual effects), but generally post-test results are evaluated to verify the effectiveness of the network (data illustration). In the embodiment of the present invention, a peak signal-to-noise ratio (Peak signal-to-noise ratio, PSNR) evaluation index is used to evaluate the results after the test. This evaluation index is a common index for image quality evaluation, and the larger the value, the better the image quality.

本发明提供一个实施案例,利用气动光学效应湍流退化图像仿真软件,获得气动光学效应序列湍流退化图像数据库,将数据库划分为训练集和测试集,并在测试样本集中加入真实场景气动光学效应湍流退化图像;其中1000 幅原图像和1000幅气动光学效应湍流退化图像作为训练集,50 幅图像作为测试数据集。数据集中图像大小均为256*256像素。The present invention provides an implementation case, using aero-optic effect turbulence degradation image simulation software to obtain aero-optic effect sequence turbulence degradation image database, dividing the database into training set and test set, and adding real scene aero-optic effect turbulence degradation to the test sample set Images; 1000 original images and 1000 aero-optic effect turbulent degradation images are used as training set, and 50 images are used as test data set. The images in the dataset are all 256*256 pixels in size.

如图5所示的测试结果表明和原先输入的湍流退化图像相比,其质量更好,这表明经过训练的网络模型对于湍流退化图像的复原是有效的。The test results shown in Figure 5 show that the quality is better than the original input turbulent degraded images, which indicates that the trained network model is effective for the restoration of turbulent degraded images.

用测试样本进行自校准网络测试时,具体可使用一个峰值信噪比(Peak signal-to-noise ratio,PSNR)评价指标对重建后的结果进行评价。在训练的每次迭代的过程中,初始学习率设置为10-4,参数设置:m=M=20,用PyTorch在GeForce GTX Titan V上实现整体模型架构,训练周期为800epoch,训练完成后保存最优的模型参数。When testing the self-calibration network with the test sample, a peak signal-to-noise ratio (PSNR) evaluation index can be used to evaluate the reconstructed result. During each iteration of training, the initial learning rate is set to 10 -4 , the parameters are set to: m = M = 20, the overall model architecture is implemented on GeForce GTX Titan V with PyTorch, the training period is 800 epoch, and the training is completed and saved optimal model parameters.

在测试阶段,从气动光学效应湍流退化图像数据集中另外选择50幅图像作为测试数据集,其中退化图的平均PSNR=20.006dB。采用训练得到的最优模型参数进行测试,得到复原图像,平均耗时1.18s,恢复图像的平均PSNR=32.361 dB,测试结果如图5所示。从图中可以很直观的看见我们输入的是PSNR=20.006dB的湍流退化图像,在最优模型的基础上经过整个网络恢复后得到了复原图像,且复原图像平均PSNR=32.361dB,有了明显的上升,这证明我们的网络对气动光学效应湍流退化图像的恢复是有效的。In the testing phase, another 50 images were selected from the aero-optic effect turbulent degradation image data set as the test data set, in which the average PSNR of the degradation map=20.006dB. The optimal model parameters obtained by training are used for testing, and the restored image is obtained. The average time is 1.18s, and the average PSNR of the restored image is 32.361 dB. The test results are shown in Figure 5. It can be seen intuitively from the figure that what we input is a turbulent degraded image with PSNR=20.006dB. Based on the optimal model, the restored image is obtained after the entire network is restored, and the average PSNR of the restored image is 32.361dB. rises, which proves that our network is effective for the recovery of turbulent degraded images of aero-optical effects.

本申请还提供一种计算机可读存储介质,如闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘、服务器、App应用商城等等,其上存储有计算机程序,程序被处理器执行时实现相应功能。本实施例的计算机可读存储介质用于在被处理器执行时实现方法实施例的多尺度自校准气动光学效应湍流退化图像复原方法。The present application also provides a computer-readable storage medium, such as flash memory, hard disk, multimedia card, card-type memory (eg, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory Memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Programmable Read-Only Memory (PROM), Magnetic Memory, Magnetic Disk, Optical Disc, Server, App Store, etc., on which computer programs, programs are stored The corresponding functions are implemented when executed by the processor. The computer-readable storage medium of this embodiment is used to implement, when executed by a processor, the multi-scale self-calibration aero-optic effect turbulent degradation image restoration method of the method embodiment.

应当理解的是,对本领域普通技术人员来说,可以根据上述说明加以改进或变换,而所有这些改进和变换都应属于本发明所附权利要求的保护范围。It should be understood that, for those skilled in the art, improvements or changes can be made according to the above description, and all these improvements and changes should fall within the protection scope of the appended claims of the present invention.

Claims (10)

1. A multi-scale self-calibration aero-optical effect turbulence degradation image restoration method is characterized by comprising the following steps:
s1, extracting a characteristic diagram of the original aero-optical effect turbulence degradation image, wherein the size of the characteristic diagram isC×H×WWherein the channel dimension isCHWRespectively the height and width of the turbulence degradation image;
s2, calibrating the feature map through a pre-constructed self-calibration network, specifically, separating the feature map into two sub-feature maps along the channel dimension, wherein the number of channels of each sub-feature map isC/2, extracting high-resolution and low-resolution spatial features of one of the sub-feature maps, and performing weighted fusion to obtain calibration spatial features; extracting the original resolution spatial features of the other sub-feature map; fusing the original resolution spatial features and the calibration spatial features to obtain a local fusion feature map calibrated for a local fuzzy region of the turbulence degradation image;
s3, carrying out multi-scale convolution recovery on the characteristic diagram of the original aero-optical effect turbulence degradation image to obtain a global recovery characteristic diagram for a global area;
and S4, merging the local fusion feature map and the global restoration feature map, and restoring the image of the merged feature map by convolution.
2. The multi-scale self-calibration aero-optical effect turbulence degradation image restoration method according to claim 1, wherein in step S2, the local fusion feature map is used as an input, the fusion operation is repeated m times, and m fusion feature maps are cascaded to be used as a final local fusion feature map, wherein m is a natural number.
3. The multi-scale self-calibration aero-optical effect turbulence degradation image restoration method according to claim 1, wherein in step S2, the sigmoid function is used to perform weighted fusion on the high-resolution spatial features and the low-resolution spatial features to obtain calibrated spatial features.
4. The method for recovering the turbulence degradation image based on the multi-scale self-calibration aero-optical effect of claim 1, wherein in step S2, the convolution layer is specifically used to extract the feature map of the turbulence degradation image.
5. The method for restoring a turbulence-degraded image with a multi-scale self-calibration aero-optical effect according to claim 1, wherein in step S3, a multi-channel filter is used, and the void rates of convolution kernels in different channels are different, so as to form a multi-scale convolution, wherein the number of channels of the multi-channel filter is equal to the channel dimension C of the feature map;
and expanding the receptive field of the characteristic diagram of the original aerooptical effect turbulence degradation image by utilizing multi-scale convolution, and outputting the characteristic diagram which is recovered in the global area after the multi-scale convolution.
6. A pneumatic optical effect turbulence degradation image restoration system based on a multi-scale self-calibration network is characterized by comprising:
the characteristic image extraction module is used for extracting a characteristic diagram of the original aerodynamic optical effect turbulence degradation image, and the size of the characteristic diagram isC×H×WWherein the channel dimension isCHWRespectively the height and width of the turbulence degradation image;
a local fuzzy region calibration module, configured to calibrate the feature map through a pre-constructed self-calibration network, specifically, separate the feature map into two sub-feature maps along a channel dimension, where the number of channels in each sub-feature map isCExtracting high-resolution and low-resolution spatial features of one of the sub-feature maps, and performing weighted fusion to obtain calibration spatial features; extracting the original resolution spatial features of the other sub-feature map; fusing the original resolution spatial features and the calibration spatial features to obtain a local fusion feature map calibrated for a local fuzzy region of the turbulence degradation image;
the global region recovery module is used for performing multi-scale convolution recovery on the feature map of the original aero-optical effect turbulence degradation image to obtain a global recovery feature map for a global region;
and the image restoration module is used for merging the local fusion feature map and the global restoration feature map and restoring the image of the merged feature map by convolution.
7. The system for restoring the turbulence degradation image of the aero-optical effect based on the multi-scale self-calibration network according to claim 6, wherein the local fuzzy region calibration module is further configured to repeat the fusion operation m times by using the fusion feature map as an input, and cascade m fusion feature maps as a final fusion feature map, wherein m is a natural number.
8. The pneumatic optical effect turbulence degradation image restoration system based on the multi-scale self-calibration network according to claim 6, wherein the local fuzzy region calibration module performs weighted fusion on the high-resolution spatial features and the low-resolution spatial features by using a sigmoid function to obtain calibrated spatial features.
9. The system for restoration of an aero-optical effect turbulence degradation image based on multi-scale self-calibration network according to claim 6, wherein the global area recovery module is specifically configured to:
specifically, a multi-channel filter is used, the void rates of convolution kernels in different channels are different, so that multi-scale convolution is formed, and the number of channels of the multi-channel filter is equal to the channel dimension C of the characteristic diagram;
and expanding the receptive field of the characteristic diagram of the original aerooptical effect turbulence degradation image by utilizing multi-scale convolution, and outputting the characteristic diagram which is recovered in the global area after the multi-scale convolution.
10. A computer storage device having stored therein a computer program executable by a processor to perform the multi-scale self-calibrating aero-optical effect turbulence-degraded image restoration method of any one of claims 1-5.
CN202210229047.XA 2022-03-10 2022-03-10 Multi-scale self-calibration aero-optical effect turbulent degradation image restoration method and system Active CN114331922B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210229047.XA CN114331922B (en) 2022-03-10 2022-03-10 Multi-scale self-calibration aero-optical effect turbulent degradation image restoration method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210229047.XA CN114331922B (en) 2022-03-10 2022-03-10 Multi-scale self-calibration aero-optical effect turbulent degradation image restoration method and system

Publications (2)

Publication Number Publication Date
CN114331922A CN114331922A (en) 2022-04-12
CN114331922B true CN114331922B (en) 2022-07-19

Family

ID=81033920

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210229047.XA Active CN114331922B (en) 2022-03-10 2022-03-10 Multi-scale self-calibration aero-optical effect turbulent degradation image restoration method and system

Country Status (1)

Country Link
CN (1) CN114331922B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115688637B (en) * 2023-01-03 2023-05-16 中国海洋大学 Turbulent mixing intensity calculation method, turbulent mixing intensity calculation system, computer device and storage medium
CN118780985B (en) * 2024-09-10 2024-12-13 中国科学院自动化研究所 Image reconstruction method, model training method, device, equipment, medium and product

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106157264A (en) * 2016-06-30 2016-11-23 北京大学 Large area image uneven illumination bearing calibration based on empirical mode decomposition
CN109685072A (en) * 2018-12-22 2019-04-26 北京工业大学 A kind of compound degraded image high quality method for reconstructing based on generation confrontation network

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9567056B2 (en) * 2014-03-06 2017-02-14 General Atomics Aeronautical Systems, Inc. Devices, systems and methods for passive control of flow
TWI546769B (en) * 2015-04-10 2016-08-21 瑞昱半導體股份有限公司 Image processing device and method thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106157264A (en) * 2016-06-30 2016-11-23 北京大学 Large area image uneven illumination bearing calibration based on empirical mode decomposition
CN109685072A (en) * 2018-12-22 2019-04-26 北京工业大学 A kind of compound degraded image high quality method for reconstructing based on generation confrontation network

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Adaptive denoising algorithm of aero-optical degraded image based on edge orientation;Lihui Sun et al.;《2012 IEEE 11th International Conference on Signal Processing》;20130404;第1001-1005页 *

Also Published As

Publication number Publication date
CN114331922A (en) 2022-04-12

Similar Documents

Publication Publication Date Title
CN110232394B (en) Multi-scale image semantic segmentation method
CN111369440B (en) Model training and image super-resolution processing method, device, terminal and storage medium
CN110490082B (en) Road scene semantic segmentation method capable of effectively fusing neural network features
CN114331922B (en) Multi-scale self-calibration aero-optical effect turbulent degradation image restoration method and system
CN111369442B (en) Remote sensing image super-resolution reconstruction method based on fuzzy kernel classification and attention mechanism
CN111259905A (en) A Semantic Segmentation Method of Remote Sensing Image Based on Feature Fusion Based on Downsampling
CN112699844A (en) Image super-resolution method based on multi-scale residual error level dense connection network
CN112001866B (en) Multi-degradation model terahertz image restoration method, device, storage medium and terminal
CN116819615B (en) A method for reconstructing seismic data
KR20240127952A (en) Image processing method and device
CN115496654A (en) Image super-resolution reconstruction method, device and medium based on self-attention mechanism
CN116883545A (en) Picture data set expansion method, medium and device based on diffusion model
CN112802076A (en) Reflection image generation model and training method of reflection removal model
CN113837941A (en) Training method and device for image hyper-resolution model and computer readable storage medium
CN116884005A (en) A fast semantic segmentation method and system that combines convolutional networks and graph features
CN116523897A (en) Semi-supervised enteromorpha detection method and system based on transconductance learning
CN111814693A (en) A deep learning-based method for marine ship recognition
CN113393385B (en) Multi-scale fusion-based unsupervised rain removing method, system, device and medium
CN114092803B (en) Cloud detection method, device, electronic equipment and medium based on remote sensing image
CN115937704A (en) Remote sensing image road segmentation method based on topology perception neural network
CN116071279A (en) Image processing method, device, computer equipment and storage medium
CN115238963A (en) Traffic prediction method, device, electronic device and storage medium
CN110570375A (en) image processing method, image processing device, electronic device and storage medium
JP7294275B2 (en) Image processing device, image processing program and image processing method
CN112508082A (en) Unsupervised learning remote sensing image space spectrum fusion method and system

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