[go: up one dir, main page]

CN115412669B - Fog imaging method and device based on image signal-to-noise ratio analysis - Google Patents

Fog imaging method and device based on image signal-to-noise ratio analysis Download PDF

Info

Publication number
CN115412669B
CN115412669B CN202211032899.6A CN202211032899A CN115412669B CN 115412669 B CN115412669 B CN 115412669B CN 202211032899 A CN202211032899 A CN 202211032899A CN 115412669 B CN115412669 B CN 115412669B
Authority
CN
China
Prior art keywords
fog
camera
current
noise ratio
imaging system
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
CN202211032899.6A
Other languages
Chinese (zh)
Other versions
CN115412669A (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.)
Tsinghua University
Original Assignee
Tsinghua University
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 Tsinghua University filed Critical Tsinghua University
Priority to CN202211032899.6A priority Critical patent/CN115412669B/en
Publication of CN115412669A publication Critical patent/CN115412669A/en
Application granted granted Critical
Publication of CN115412669B publication Critical patent/CN115412669B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B21/00Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant
    • G01B21/16Measuring arrangements or details thereof, where the measuring technique is not covered by the other groups of this subclass, unspecified or not relevant for measuring distance of clearance between spaced objects
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01NINVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
    • G01N33/00Investigating or analysing materials by specific methods not covered by groups G01N1/00 - G01N31/00
    • G01N33/0004Gaseous mixtures, e.g. polluted air
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/70Denoising; Smoothing
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • G06T7/62Analysis of geometric attributes of area, perimeter, diameter or volume
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A90/00Technologies having an indirect contribution to adaptation to climate change
    • Y02A90/10Information and communication technologies [ICT] supporting adaptation to climate change, e.g. for weather forecasting or climate simulation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Chemical & Material Sciences (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Analytical Chemistry (AREA)
  • Biochemistry (AREA)
  • General Health & Medical Sciences (AREA)
  • Medicinal Chemistry (AREA)
  • Immunology (AREA)
  • Pathology (AREA)
  • Geometry (AREA)
  • Food Science & Technology (AREA)
  • Combustion & Propulsion (AREA)
  • Studio Devices (AREA)
  • Image Processing (AREA)

Abstract

本申请公开了一种基于图像信噪比分析的雾天成像方法及装置,其中,方法包括:获取当前雾天场景的实际雾气浓度或实际雾气能见度;基于实际雾气浓度或者实际雾气能见度和观测物距,利用预先构建的雾气成像系统的最小分辨模型确定雾气成像系统的当前所需视角数、当前时间帧数和当前相机的位深;利用预先训练的信噪比模型优化雾气成像系统的当前所需视角数、当前时间帧数和预设的其他相机参数,并根据优化后的当前所需视角数、当前时间帧数、预设的其他相机参数和当前相机的位深,得到当前物体场景的雾天成像结果。由此,解决了相关技术中,去雾算法仅考虑理想无噪声的情况,而在雾气浓度较高、传感器噪声无法忽略时,无法进行目标物重建的技术问题。

Figure 202211032899

The present application discloses a fog imaging method and device based on image signal-to-noise ratio analysis, wherein the method includes: obtaining the actual fog concentration or actual fog visibility of the current fog scene; Use the pre-built minimum resolution model of the fog imaging system to determine the current required viewing angle, current time frame number and current camera bit depth of the fog imaging system; use the pre-trained signal-to-noise ratio model to optimize the current required fog imaging system The required viewing angle, current time frame number and other preset camera parameters, and according to the optimized current required viewing angle, current time frame number, other preset camera parameters and current camera bit depth, get the current object scene Foggy imaging results. As a result, the technical problem that in the related art, the dehazing algorithm only considers the ideal noise-free situation, and the target cannot be reconstructed when the fog concentration is high and the sensor noise cannot be ignored, is solved.

Figure 202211032899

Description

基于图像信噪比分析的雾天成像方法及装置Foggy weather imaging method and device based on image signal-to-noise ratio analysis

技术领域Technical Field

本申请涉及计算机视觉与数字图像处理技术领域,特别涉及一种基于图像信噪比分析的雾天成像方法及装置。The present application relates to the technical field of computer vision and digital image processing, and in particular to a foggy weather imaging method and device based on image signal-to-noise ratio analysis.

背景技术Background Art

透过雾气成像是现有成像领域的研究热点之一,在安防监控、自动驾驶等方面具有广泛应用前景。Imaging through fog is one of the current research hotspots in the imaging field and has broad application prospects in security monitoring, autonomous driving, and other aspects.

相关技术中,去雾工作仅考虑理想无噪声情况下去雾算法及系统构建方案,但在雾气变浓,衰减严重的情况下,目标物的有效弹道光信号会按照e-βu指数级衰减,此时传感器噪声无法再被忽略,甚至在有效信号衰减严重的情况下,噪声已成为浓雾下目标物无法被重建的主要原因,因此亟需雾气图像的信噪比提升方案。In related technologies, defogging work only considers defogging algorithms and system construction solutions under ideal noise-free conditions. However, when the fog becomes thicker and the attenuation is severe, the effective ballistic light signal of the target will decay exponentially at e -βu . At this time, sensor noise can no longer be ignored. Even when the effective signal is severely attenuated, noise has become the main reason why the target cannot be reconstructed under dense fog. Therefore, there is an urgent need for a solution to improve the signal-to-noise ratio of fog images.

发明内容Summary of the invention

本申请提供一种基于图像信噪比分析的雾天成像方法及装置,以解决相关技术中,去雾算法仅考虑理想无噪声的情况,而在雾气浓度较高、传感器噪声无法忽略的情况下时,无法进行目标物重建的技术问题。The present application provides a foggy weather imaging method and device based on image signal-to-noise ratio analysis to solve the technical problem in the related art that the defogging algorithm only considers the ideal noise-free situation, but cannot reconstruct the target object when the fog concentration is high and the sensor noise cannot be ignored.

本申请第一方面实施例提供一种基于图像信噪比分析的雾天成像方法,包括以下步骤:获取当前雾天场景的实际雾气浓度或者实际雾气能见度;基于所述实际雾气浓度或者所述实际雾气能见度和观测物距,利用预先构建的雾气成像系统的最小分辨模型确定所述雾气成像系统的当前所需视角数、当前时间帧数和当前相机的位深;以及利用预先训练的信噪比模型优化所述雾气成像系统的当前所需视角数、当前时间帧数和预设的其他相机参数,并根据优化后的当前所需视角数、当前时间帧数、预设的其他相机参数和所述当前相机的位深,得到所述当前雾天场景的雾天成像结果。The first aspect of the present application provides a fog imaging method based on image signal-to-noise ratio analysis, comprising the following steps: obtaining the actual fog concentration or actual fog visibility of the current fog scene; based on the actual fog concentration or the actual fog visibility and the observed object distance, determining the current required number of viewing angles, the current number of time frames and the bit depth of the current camera of the fog imaging system using a pre-built minimum resolution model of the fog imaging system; and optimizing the current required number of viewing angles, the current number of time frames and other preset camera parameters of the fog imaging system using a pre-trained signal-to-noise ratio model, and obtaining the fog imaging result of the current fog scene based on the optimized current required number of viewing angles, the current number of time frames, the preset other camera parameters and the bit depth of the current camera.

可选地,在本申请的一个实施例中,所述利用预先训练的信噪比模型优化所述雾气成像系统的当前所需视角数、当前时间帧数和预设的其他相机参数,包括;提高相机的满井容量、降低像素面积,并将相机感光度调整至最低;在满足相机实际不过曝的情况下,增大光照强度、曝光时间、光谱响应函数和目标物反射率,减小镜头光圈值和所述观测物距,以满足所述当前所需视角数和当前时间帧数的同时,实现信噪比的优化目的。Optionally, in one embodiment of the present application, the use of a pre-trained signal-to-noise ratio model to optimize the current required number of viewing angles, the current number of time frames, and other preset camera parameters of the fog imaging system includes: increasing the full well capacity of the camera, reducing the pixel area, and adjusting the camera sensitivity to the minimum; while ensuring that the camera is not overexposed, increasing the light intensity, exposure time, spectral response function, and target reflectivity, reducing the lens aperture value and the observation object distance, so as to meet the current required number of viewing angles and the current number of time frames while achieving the purpose of optimizing the signal-to-noise ratio.

可选地,在本申请的一个实施例中,所述雾气成像系统的最小分辨模型为:Optionally, in one embodiment of the present application, the minimum resolution model of the fog imaging system is:

Figure SMS_1
Figure SMS_1

其中,ηlin表示线性工作区间的经验常数,bit_depth表示所述相机的位深,β表示雾气的散射系数,u表示相机到待观测目标物的物距,NF表示系统融合的时间帧数,NV表示系统具备的相机视角数。Among them, ηlin represents the empirical constant of the linear working interval, bit_depth represents the bit depth of the camera, β represents the scattering coefficient of fog, u represents the object distance from the camera to the target object to be observed, NF represents the number of time frames fused by the system, and NV represents the number of camera viewing angles of the system.

可选地,在本申请的一个实施例中,在利用所述预先构建的雾气成像系统的最小分辨模型确定所述雾气成像系统的当前所需视角数、当前时间帧数和当前相机的位深之前,还包括:定义相机Raw格式图像下的成像模型;基于所述成像模型,建立所述雾气成像系统拍摄所涉及硬件参数与图像信噪比间的模型关系的同时,确定硬件参数间的限制条件。Optionally, in one embodiment of the present application, before using the pre-built minimum resolution model of the fog imaging system to determine the current required number of viewing angles, the current number of time frames and the bit depth of the current camera of the fog imaging system, it also includes: defining an imaging model under the camera Raw format image; based on the imaging model, establishing a model relationship between the hardware parameters involved in the shooting of the fog imaging system and the image signal-to-noise ratio, and determining the restrictions between the hardware parameters.

可选地,在本申请的一个实施例中,所述模型关系中的信噪比平方公式为:Optionally, in one embodiment of the present application, the signal-to-noise ratio square formula in the model relationship is:

Figure SMS_2
Figure SMS_2

其中,SNR2表示信噪比平方,Spix表示传感器像素面积,t表示相机曝光时间,SRFc表示相机不同颜色通道的光谱响应函数,A表示场景光照强度,k表示恒常未知比例系数,fno表示镜头的光圈值,Jc表示目标物对应不同颜色通道的反射率,BRDF(θ)表示目标物表面反射特性带来的差异,T(u)表示光源类型带来的差异。Among them, SNR 2 represents the square of the signal-to-noise ratio, Spix represents the pixel area of the sensor, t represents the camera exposure time, SRF c represents the spectral response function of different color channels of the camera, A represents the scene light intensity, k represents the constant unknown proportional coefficient, fno represents the aperture value of the lens, J c represents the reflectivity of the target object corresponding to different color channels, BRDF(θ) represents the difference caused by the reflection characteristics of the target surface, and T(u) represents the difference caused by the light source type.

可选地,在本申请的一个实施例中,所述限制条件中的过曝限制为:Optionally, in an embodiment of the present application, the overexposure limit in the limiting condition is:

Figure SMS_3
Figure SMS_3

其中,Cfull表示相机的满井容量,ISO表示相机感光度。Among them, C full represents the full well capacity of the camera, and ISO represents the camera sensitivity.

本申请第二方面实施例提供一种基于图像信噪比分析的雾天成像装置,包括:获取模块,用于获取当前雾天场景的实际雾气浓度或者实际雾气能见度;确定模块,用于基于所述实际雾气浓度或者所述实际雾气能见度和观测物距,利用预先构建的雾气成像系统的最小分辨模型确定所述雾气成像系统的当前所需视角数、当前时间帧数和当前相机的位深;以及分析模块,用于利用预先训练的信噪比模型优化所述雾气成像系统的当前所需视角数、当前时间帧数和预设的其他相机参数,并根据优化后的当前所需视角数、当前时间帧数、预设的其他相机参数和所述当前相机的位深,得到所述当前雾天场景的雾天成像结果。The second aspect of the present application provides a fog imaging device based on image signal-to-noise ratio analysis, including: an acquisition module for acquiring the actual fog concentration or actual fog visibility of the current fog scene; a determination module for determining the current required number of viewing angles, the current number of time frames and the bit depth of the current camera of the fog imaging system based on the actual fog concentration or the actual fog visibility and the observed object distance using a pre-built minimum resolution model of the fog imaging system; and an analysis module for optimizing the current required number of viewing angles, the current number of time frames and other preset camera parameters of the fog imaging system using a pre-trained signal-to-noise ratio model, and obtaining the fog imaging result of the current fog scene based on the optimized current required number of viewing angles, the current number of time frames, other preset camera parameters and the bit depth of the current camera.

可选地,在本申请的一个实施例中,所述分析模块包括;第一调整单元,用于提高相机的满井容量、降低像素面积,并将相机感光度调整至最低;第二调整单元,用于在满足相机实际不过曝的情况下,增大光照强度、曝光时间、光谱响应函数和目标物反射率,减小镜头光圈值和所述观测物距,以满足所述当前所需视角数和当前时间帧数的同时,实现信噪比的优化目的。Optionally, in one embodiment of the present application, the analysis module includes: a first adjustment unit, used to increase the full well capacity of the camera, reduce the pixel area, and adjust the camera sensitivity to the minimum; a second adjustment unit, used to increase the light intensity, exposure time, spectral response function and target reflectivity, reduce the lens aperture value and the observed object distance, while ensuring that the camera is not overexposed, so as to meet the current required number of viewing angles and the current number of time frames, while achieving the purpose of optimizing the signal-to-noise ratio.

可选地,在本申请的一个实施例中,所述雾气成像系统的最小分辨模型为:Optionally, in one embodiment of the present application, the minimum resolution model of the fog imaging system is:

Figure SMS_4
Figure SMS_4

其中,ηlin表示线性工作区间的经验常数,bit_depth表示所述相机的位深,β表示雾气的散射系数,u表示相机到待观测目标物的物距,NF表示系统融合的时间帧数,NV表示系统具备的相机视角数。Wherein, ηlin represents an empirical constant of the linear working interval, bit_depth represents the bit depth of the camera, β represents the scattering coefficient of fog, u represents the object distance from the camera to the target object to be observed, NF represents the number of time frames fused by the system, and NV represents the number of camera viewing angles of the system.

可选地,在本申请的一个实施例中,还包括:定义模块,用于定义相机Raw格式图像下的成像模型;建模模块,用于基于所述成像模型,建立所述雾气成像系统拍摄所涉及硬件参数与图像信噪比间的模型关系的同时,确定硬件参数间的限制条件。Optionally, in one embodiment of the present application, it also includes: a definition module, used to define an imaging model under the camera Raw format image; a modeling module, used to establish a model relationship between the hardware parameters involved in the shooting of the fog imaging system and the image signal-to-noise ratio based on the imaging model, and determine the restriction conditions between the hardware parameters.

可选地,在本申请的一个实施例中,所述模型关系中的信噪比平方公式为:Optionally, in one embodiment of the present application, the signal-to-noise ratio square formula in the model relationship is:

Figure SMS_5
Figure SMS_5

其中,SNR2表示信噪比平方,Spix表示传感器像素面积,t表示相机曝光时间,SRFc表示相机不同颜色通道的光谱响应函数,A表示场景光照强度,k表示恒常未知比例系数,fno表示镜头的光圈值,Jc表示目标物对应不同颜色通道的反射率,BRDF(θ)表示目标物表面反射特性带来的差异,T(u)表示光源类型带来的差异。Among them, SNR 2 represents the square of the signal-to-noise ratio, Spix represents the pixel area of the sensor, t represents the camera exposure time, SRF c represents the spectral response function of different color channels of the camera, A represents the scene illumination intensity, k represents the constant unknown proportional coefficient, fno represents the aperture value of the lens, J c represents the reflectivity of the target object corresponding to different color channels, BRDF(θ) represents the difference caused by the reflective characteristics of the target surface, and T(u) represents the difference caused by the light source type.

可选地,在本申请的一个实施例中,所述限制条件中的过曝限制为:Optionally, in an embodiment of the present application, the overexposure limit in the limiting condition is:

Figure SMS_6
Figure SMS_6

其中,Cfull表示相机的满井容量,ISO表示相机感光度。Among them, C full represents the full well capacity of the camera, and ISO represents the camera sensitivity.

本申请第三方面实施例提供一种电子设备,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述程序,以实现如上述实施例所述的基于图像信噪比分析的雾天成像方法。The third aspect of the present application provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the foggy weather imaging method based on image signal-to-noise ratio analysis as described in the above embodiment.

本申请第四方面实施例提供一种计算机可读存储介质,所述计算机可读存储介质存储计算机程序,该程序被处理器执行时实现如上的基于图像信噪比分析的雾天成像方法。A fourth aspect of the present application provides a computer-readable storage medium, which stores a computer program. When the program is executed by a processor, it implements the above-mentioned foggy weather imaging method based on image signal-to-noise ratio analysis.

本申请实施例可以以抑制噪声、提升图像信噪比为导向,从硬件层面出发,建立雾气成像系统拍摄所涉及硬件参数与图像信噪比间的模型关系,同时建立雾气成像系统最小分辨能力与所能面向最高雾气浓度间的关系,并以此优化雾气成像系统的各硬件参数,最终实现在面向任意雾气场景的雾气成像系统构建,从而提高雾气成像系统可成像的雾气浓度。由此,解决了相关技术中,去雾算法仅考虑理想无噪声的情况,而在雾气浓度较高、传感器噪声无法忽略时,无法进行目标物重建的技术问题。The embodiments of the present application can be guided by suppressing noise and improving the image signal-to-noise ratio. Starting from the hardware level, a model relationship between the hardware parameters involved in the shooting of the fog imaging system and the image signal-to-noise ratio is established. At the same time, the relationship between the minimum resolution capability of the fog imaging system and the highest fog concentration that can be faced is established, and the hardware parameters of the fog imaging system are optimized in this way, and finally a fog imaging system for any fog scene is constructed, thereby increasing the fog concentration that can be imaged by the fog imaging system. In this way, the technical problem that the defogging algorithm in the related technology only considers the ideal noise-free situation, and cannot reconstruct the target object when the fog concentration is high and the sensor noise cannot be ignored is solved.

本申请附加的方面和优点将在下面的描述中部分给出,部分将从下面的描述中变得明显,或通过本申请的实践了解到。Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through the practice of the present application.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

本申请上述的和/或附加的方面和优点从下面结合附图对实施例的描述中将变得明显和容易理解,其中:The above and/or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

图1为根据本申请实施例提供的一种基于图像信噪比分析的雾天成像方法的流程图;FIG1 is a flow chart of a foggy weather imaging method based on image signal-to-noise ratio analysis according to an embodiment of the present application;

图2为根据本申请一个实施例的基于图像信噪比分析的雾天成像方法的原理示意图;FIG2 is a schematic diagram showing the principle of a foggy weather imaging method based on image signal-to-noise ratio analysis according to an embodiment of the present application;

图3为根据本申请一个实施例的基于图像信噪比分析的雾天成像方法的离线模型构建方法的流程图;FIG3 is a flow chart of an offline model building method of a foggy weather imaging method based on image signal-to-noise ratio analysis according to an embodiment of the present application;

图4为根据本申请一个实施例的基于图像信噪比分析的雾天成像方法的流程图;FIG4 is a flow chart of a foggy weather imaging method based on image signal-to-noise ratio analysis according to an embodiment of the present application;

图5为根据本申请实施例提供的一种基于图像信噪比分析的雾天成像装置的结构示意图;FIG5 is a schematic diagram of the structure of a foggy weather imaging device based on image signal-to-noise ratio analysis according to an embodiment of the present application;

图6为根据本申请实施例提供的电子设备的结构示意图。FIG6 is a schematic diagram of the structure of an electronic device provided according to an embodiment of the present application.

具体实施方式DETAILED DESCRIPTION

下面详细描述本申请的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,旨在用于解释本申请,而不能理解为对本申请的限制。The embodiments of the present application are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

下面参考附图描述本申请实施例的基于图像信噪比分析的雾天成像方法及装置。针对上述背景技术中心提到的相关技术中,去雾算法仅考虑理想无噪声的情况,而在雾气浓度较高、传感器噪声无法忽略时,无法进行目标物重建的技术问题,本申请提供了一种基于图像信噪比分析的雾天成像方法,在该方法中,可以以抑制噪声、提升图像信噪比为导向,从硬件层面出发,建立雾气成像系统拍摄所涉及硬件参数与图像信噪比间的模型关系,同时建立雾气成像系统最小分辨能力与所能面向最高雾气浓度间的关系,并以此优化雾气成像系统的各硬件参数,最终实现在面向任意雾气场景的雾气成像系统构建,从而提高雾气成像系统可成像的雾气浓度。由此,解决了相关技术中,去雾算法仅考虑理想无噪声的情况,而在雾气浓度较高、传感器噪声无法忽略时,无法进行目标物重建的技术问题。The following describes the foggy weather imaging method and device based on image signal-to-noise ratio analysis of the embodiment of the present application with reference to the accompanying drawings. In view of the technical problem that the defogging algorithm in the related technology mentioned in the background technology center only considers the ideal noise-free situation, and when the fog concentration is high and the sensor noise cannot be ignored, the target object cannot be reconstructed, the present application provides a foggy weather imaging method based on image signal-to-noise ratio analysis. In this method, it can be guided by suppressing noise and improving the image signal-to-noise ratio. Starting from the hardware level, a model relationship between the hardware parameters involved in the shooting of the fog imaging system and the image signal-to-noise ratio is established. At the same time, the relationship between the minimum resolution capability of the fog imaging system and the highest fog concentration that can be faced is established, and the hardware parameters of the fog imaging system are optimized in this way, and finally the fog imaging system for any fog scene is constructed, thereby improving the fog concentration that can be imaged by the fog imaging system. As a result, the technical problem that the defogging algorithm in the related technology only considers the ideal noise-free situation, and when the fog concentration is high and the sensor noise cannot be ignored, the target object cannot be reconstructed is solved.

具体而言,图1为本申请实施例所提供的一种基于图像信噪比分析的雾天成像方法的流程示意图。Specifically, FIG1 is a flow chart of a foggy weather imaging method based on image signal-to-noise ratio analysis provided in an embodiment of the present application.

如图1所示,该基于图像信噪比分析的雾天成像方法包括以下步骤:As shown in FIG1 , the foggy weather imaging method based on image signal-to-noise ratio analysis includes the following steps:

在步骤S101中,获取当前雾天场景的实际雾气浓度或者实际雾气能见度。In step S101, the actual fog concentration or actual fog visibility of the current foggy scene is obtained.

在实际执行过程中,本申请实施例可以基于技术人员目测,或通过相应设备如雾度计、能见度计、水雾浓度测量仪等,获取当前露天场景的实际雾气浓度β0或雾气能见度Vis0,并确定观测物距u。In actual implementation, the embodiments of the present application can obtain the actual fog concentration β 0 or fog visibility Vis 0 of the current open-air scene and determine the observed object distance u based on visual observation by technicians or through corresponding equipment such as a haze meter, visibility meter, water mist concentration meter, etc.

在步骤S102中,基于实际雾气浓度或者实际雾气能见度和观测物距,利用预先构建的雾气成像系统的最小分辨模型确定雾气成像系统的当前所需视角数、当前时间帧数和当前相机的位深。In step S102, based on the actual fog concentration or actual fog visibility and the observed object distance, the pre-built minimum resolution model of the fog imaging system is used to determine the current required viewing angles, the current time frame number and the bit depth of the current camera of the fog imaging system.

作为一种可能实现的方式,本申请实施例可以利用预先构建的雾气成像系统的最小分辨模型,基于获取的当前露天场景的实际雾气浓度β0或雾气能见度Vis0,以及观测物距u,得到雾气成像系统在当前雾气浓度或实际雾气能见度下所需的视角数NF,时间帧数NV和相机的位深bit_depth,使得雾气成像系统可以针对不同雾气浓度调配硬件参数,实现雾气成像系统构建,保证雾气成像系统可面向任意雾气场景,其中,β0和Vis0之间可以等效替换,β0=2.996/Vis0As a possible implementation method, the embodiment of the present application can use the pre-built minimum resolution model of the fog imaging system, based on the actual fog concentration β0 or fog visibility Vis0 of the current open-air scene, and the observed object distance u, to obtain the number of viewing angles NF , the number of time frames NV and the bit depth bit_depth of the camera required by the fog imaging system under the current fog concentration or actual fog visibility, so that the fog imaging system can adjust the hardware parameters for different fog concentrations, realize the construction of the fog imaging system, and ensure that the fog imaging system can be used for any fog scene, wherein β0 and Vis0 can be equivalently replaced, β0 = 2.996/ Vis0 .

其中,建立雾气成像系统拍摄所涉及的硬件参数与图像信噪比间的模型关系,同时给出硬件参数间的限制条件,并基于硬件参数分析雾气成像系统的最小分辨能力,建立最小分辨能力与所能面向最高雾气浓度间的关系。Among them, a model relationship between the hardware parameters involved in the shooting of the fog imaging system and the image signal-to-noise ratio is established, and the restrictions between the hardware parameters are given. The minimum resolution capability of the fog imaging system is analyzed based on the hardware parameters, and the relationship between the minimum resolution capability and the highest fog concentration that can be faced is established.

需要注意的是,预先构建的雾气成像系统的最小分辨模型会在下文进行详细阐述。It should be noted that the minimum resolution model of the pre-built fog imaging system will be elaborated in detail below.

可选地,在本申请的一个实施例中,在利用预先构建的雾气成像系统的最小分辨模型确定雾气成像系统的当前所需视角数、当前时间帧数和当前相机的位深之前,还包括:定义相机Raw格式图像下的成像模型;基于成像模型,建立雾气成像系统拍摄所涉及硬件参数与图像信噪比间的模型关系的同时,确定硬件参数间的限制条件。Optionally, in one embodiment of the present application, before using a pre-built minimum resolution model of the fog imaging system to determine the current required number of viewing angles, the current number of time frames, and the bit depth of the current camera of the fog imaging system, it also includes: defining an imaging model under the camera Raw format image; based on the imaging model, establishing a model relationship between the hardware parameters involved in the shooting of the fog imaging system and the image signal-to-noise ratio, and determining the restrictions between the hardware parameters.

具体地,本申请实施例可以定义相机Raw格式图像下的成像模型:Specifically, the embodiment of the present application may define an imaging model under a camera Raw format image:

Figure SMS_7
Figure SMS_7

其中,Ic表示相机的Raw格式图像某像素点强度,c∈{R,G,B}表示相机图像红(Red)、绿(Green)、蓝(Blue)三个颜色通道,Spix表示传感器像素面积,t表示相机曝光时间,SRFc表示相机不同颜色通道的光谱响应函数,Ec表示传感器平面辐照度,g表示相机增益,由可调参数相机感光度ISO控制(ISO≥1),即g=Ucam/ISO,其中,Ucam的单位与g相同,属于相机的固定参数,由相机出厂时的满井容量Cfull和位深bit_depth决定,即2bit_depth·Ucam≈Cfull,n表示传感器噪声,主要由散粒噪声ns、读出噪声nr和量化噪声nQ三类零均值噪声构成,其方差分别可以为

Figure SMS_8
Figure SMS_9
Where I c represents the intensity of a pixel in the Raw format image of the camera, c∈{R,G,B} represents the three color channels of the camera image: red, green, and blue, Spix represents the pixel area of the sensor, t represents the exposure time of the camera, SRF c represents the spectral response function of different color channels of the camera, E c represents the irradiance of the sensor plane, g represents the camera gain, which is controlled by the adjustable parameter camera sensitivity ISO (ISO≥1), that is, g=U cam /ISO, where the unit of U cam is the same as that of g and it is a fixed parameter of the camera, which is determined by the full well capacity C full and the bit depth bit_depth when the camera leaves the factory, that is, 2 bit_depth ·U cam ≈C full , and n represents the sensor noise, which is mainly composed of three types of zero-mean noise: shot noise ns , readout noise n r and quantization noise n Q , and their variances can be respectively
Figure SMS_8
and
Figure SMS_9

考虑相机增益g的影响,Raw格式图像Ic的噪声方差可以表示为:Considering the influence of camera gain g, the noise variance of the Raw format image I c can be expressed as:

Figure SMS_10
Figure SMS_10

由于雾气成像的光照足够,相机进光量大,因此噪声以散粒噪声ns为主体,可忽略其余两类噪声的影响,同时相机采集还需要满足非过曝要求,即:Since fog imaging has sufficient illumination and the camera receives a large amount of light, the noise is mainly shot noise ns , and the influence of the other two types of noise can be ignored. At the same time, the camera acquisition also needs to meet the non-overexposure requirement, that is:

Figure SMS_11
Figure SMS_11

此外,传感器平面的辐照度

Figure SMS_12
为雾气下弹道光辐照度
Figure SMS_13
和环境光辐照度Es的加和,公式表述可以如下:In addition, the irradiance at the sensor plane
Figure SMS_12
is the ballistic light irradiance under fog
Figure SMS_13
The sum of the ambient light irradiance Es can be expressed as follows:

Figure SMS_14
Figure SMS_14

Figure SMS_15
Figure SMS_15

Figure SMS_16
Figure SMS_16

Figure SMS_17
Figure SMS_17

Figure SMS_18
Figure SMS_18

其中,A表示场景光照强度,k表示恒常未知比例系数,用于公式表述简易,fno表示镜头的光圈值,Jc表示目标物对应不同颜色通道的反射率,取值范围为Jc∈(0,1),u表示相机到待观测目标物的物距,β表示雾气的散射系数,反映雾气浓度,也可以用雾气能见度Vis替换表示,即β=2.996/Vis,T(u)表示光源类型带来的差异,BRDF(θ)表示目标物表面反射特性带来的差异,在自然光照下,所有目标物都视为漫反射类目标物,Δl表示点光源球壳半径,视具体点光源型号而定。Where A represents the scene illumination intensity, k represents a constant unknown proportional coefficient for the sake of simplicity, fno represents the aperture value of the lens, Jc represents the reflectivity of the target corresponding to different color channels, and its value range is Jc∈ (0,1), u represents the object distance from the camera to the target to be observed, β represents the scattering coefficient of fog, reflecting the fog concentration, and can also be replaced by the fog visibility Vis, that is, β=2.996/Vis, T(u) represents the difference caused by the light source type, BRDF(θ) represents the difference caused by the reflective characteristics of the target surface, and under natural light, all targets are regarded as diffuse reflection targets, Δl represents the radius of the spherical shell of the point light source, which depends on the specific point light source model.

在雾气成像中,仅Ic中的弹道光部分

Figure SMS_19
可作为有效信号,即:In fog imaging, only the ballistic light part in I c
Figure SMS_19
Can be used as a valid signal, namely:

Figure SMS_20
Figure SMS_20

其余部分为Ic中的环境干扰项,由此雾气图像Ic的信噪比平方SNR2(Ic)可以为:The rest is the environmental interference term in I c , so the square signal-to-noise ratio SNR 2 (I c ) of the fog image I c can be:

Figure SMS_21
Figure SMS_21

可选地,在本申请的一个实施例中,模型关系中的信噪比平方公式为:Optionally, in one embodiment of the present application, the signal-to-noise ratio square formula in the model relationship is:

Figure SMS_22
Figure SMS_22

其中,SNR2表示信噪比平方,Spix表示传感器像素面积,t表示相机曝光时间,SRFc表示相机不同颜色通道的光谱响应函数,A表示场景光照强度,k表示恒常未知比例系数,fno表示镜头的光圈值,Jc表示目标物对应不同颜色通道的反射率,BRDF(θ)表示目标物表面反射特性带来的差异,T(u)表示光源类型带来的差异。Among them, SNR 2 represents the square of the signal-to-noise ratio, Spix represents the pixel area of the sensor, t represents the camera exposure time, SRF c represents the spectral response function of different color channels of the camera, A represents the scene light intensity, k represents the constant unknown proportional coefficient, fno represents the aperture value of the lens, J c represents the reflectivity of the target object corresponding to different color channels, BRDF(θ) represents the difference caused by the reflection characteristics of the target surface, and T(u) represents the difference caused by the light source type.

进一步地,考虑雾气下雾气成像系统硬件层面多时间帧融合与多视角融合的信噪比提升作用,用NF表示系统融合的时间帧数,NV表示系统具备的相机视角数,最终的信噪比平方公式可以为:Furthermore, considering the signal-to-noise ratio improvement effect of multi-time frame fusion and multi-view fusion at the hardware level of fog imaging system under fog, NF is used to represent the number of time frames fused by the system, and NV is used to represent the number of camera views of the system. The final signal-to-noise ratio square formula can be:

Figure SMS_23
Figure SMS_23

可选地,在本申请的一个实施例中,限制条件中的过曝限制为:Optionally, in one embodiment of the present application, the overexposure limit in the limiting condition is:

Figure SMS_24
Figure SMS_24

其中,Cfull表示相机的满井容量,ISO表示相机感光度。Among them, C full represents the full well capacity of the camera, and ISO represents the camera sensitivity.

可选地,在本申请的一个实施例中,雾气成像系统的最小分辨模型为:Optionally, in one embodiment of the present application, the minimum resolution model of the fog imaging system is:

Figure SMS_25
Figure SMS_25

其中,ηlin表示线性工作区间的经验常数,bit_depth表示相机的位深,β表示雾气的散射系数,u表示相机到待观测目标物的物距,NF表示系统融合的时间帧数,NV表示系统具备的相机视角数。Among them, ηlin represents the empirical constant of the linear working range, bit_depth represents the bit depth of the camera, β represents the scattering coefficient of fog, u represents the object distance from the camera to the target object to be observed, NF represents the number of time frames fused by the system, and NV represents the number of camera viewing angles of the system.

在实际执行过程中,本申请实施例可以定义多帧多视雾气成像系统的灵敏度阈值(AST):In the actual implementation process, the embodiment of the present application can define the sensitivity threshold (AST) of the multi-frame multi-view fog imaging system:

Figure SMS_26
Figure SMS_26

而在雾气成像中分辨极限的定义可以为,雾气下图像的最小有效信号

Figure SMS_27
至少要大于系统的灵敏度阈值(AST),即:The definition of the resolution limit in fog imaging can be the minimum effective signal of the image under fog
Figure SMS_27
At least greater than the system sensitivity threshold (AST), that is:

Figure SMS_28
Figure SMS_28

代入系统参硬件参数后,即:After substituting the system hardware parameters, that is:

Figure SMS_29
Figure SMS_29

而在没有雾气的情况下,对目标物成像在相机的有效工作区间,即:In the absence of fog, the target object is imaged within the effective working range of the camera, that is:

Figure SMS_30
Figure SMS_30

其中,ηlin表示线性工作区间的经验常数,一般取ηlin∈(0.2,0.6),结合上述两公式,可以得到雾气成像系统的最小分辨模型:Among them, η lin represents the empirical constant of the linear working range, and η lin ∈(0.2,0.6) is generally taken. Combining the above two formulas, the minimum resolution model of the fog imaging system can be obtained:

Figure SMS_31
Figure SMS_31

在步骤S103中,利用预先训练的信噪比模型优化雾气成像系统的当前所需视角数、当前时间帧数和预设的其他相机参数,并根据优化后的当前所需视角数、当前时间帧数、预设的其他相机参数和当前相机的位深,得到当前雾天场景的雾天成像结果。In step S103, the pre-trained signal-to-noise ratio model is used to optimize the current required number of viewing angles, the current number of time frames, and other preset camera parameters of the fog imaging system, and the fog imaging result of the current foggy scene is obtained based on the optimized current required number of viewing angles, the current number of time frames, other preset camera parameters, and the bit depth of the current camera.

作为一种可能实现的方式,本申请实施例可以假定系统需要对雾气下点光照照明的漫反射目标物成像,则依据信噪比模型制定硬件参数优化策略,其中,硬件参数为不包括相机位深的其他相机参数。As a possible implementation method, the embodiment of the present application may assume that the system needs to image a diffusely reflecting target object illuminated by point lighting under fog, and then formulate a hardware parameter optimization strategy based on the signal-to-noise ratio model, where the hardware parameters are other camera parameters excluding camera bit depth.

需要注意的是,预设的其他相机参数会在下文进行阐述。It should be noted that other preset camera parameters will be explained below.

可选地,在本申请的一个实施例中,利用预先训练的信噪比模型优化雾气成像系统的当前所需视角数、当前时间帧数和预设的其他相机参数,包括;提高相机的满井容量、降低像素面积,并将相机感光度调整至最低;在满足相机实际不过曝的情况下,增大光照强度、曝光时间、光谱响应函数和目标物反射率,减小镜头光圈值和观测物距,以满足当前所需视角数和当前时间帧数的同时,实现信噪比的优化目的。Optionally, in one embodiment of the present application, a pre-trained signal-to-noise ratio model is used to optimize the current required number of viewing angles, the current number of time frames, and other preset camera parameters of the fog imaging system, including: increasing the full well capacity of the camera, reducing the pixel area, and adjusting the camera sensitivity to the minimum; while ensuring that the camera is not overexposed, increasing the light intensity, exposure time, spectral response function, and target reflectivity, and reducing the lens aperture value and observation object distance to meet the current required number of viewing angles and the current number of time frames while achieving the purpose of optimizing the signal-to-noise ratio.

具体地,为提高雾气图像信噪比,本申请实施例首先可以提高相机的满井容量Cfull,降低像素面积Spix,将相机感光度ISO调至最低;其次在满足相机实际不过曝的前提下,本申请实施例可以尽量增大光照强度A、曝光时间t、光谱响应函数SRFc和目标物反射率Jc,尽量减小镜头光圈值fno和物距u,其中,由于反射率Jc、镜头光圈值fno和物距u在信噪比平方公式中的幂次较大,相比其他参数需要优先被调节;最后本申请实施例可以在满足最小分辨模型所需的视角数和时间帧数的基础上,继续提高NF和NV以提升信噪比。Specifically, in order to improve the signal-to-noise ratio of the fog image, the embodiment of the present application can first increase the full well capacity C full of the camera, reduce the pixel area Spix , and adjust the camera sensitivity ISO to the minimum; secondly, under the premise that the camera is not actually overexposed, the embodiment of the present application can maximize the light intensity A, exposure time t, spectral response function SRF c and target reflectivity J c , and minimize the lens aperture value fno and object distance u, wherein, since the reflectivity J c , lens aperture value fno and object distance u have a larger power in the signal-to-noise ratio square formula, they need to be adjusted first compared with other parameters; finally, the embodiment of the present application can continue to increase NF and NV to improve the signal-to-noise ratio on the basis of satisfying the number of viewing angles and time frames required by the minimum resolution model.

当面向其他光源类型和目标物反射特性时的分析过程同上,由此通过有效调节硬件参数,实现在面向任意雾气场景的雾气成像系统构建。The analysis process for other light source types and target reflectance characteristics is the same as above. By effectively adjusting the hardware parameters, the construction of a fog imaging system for any fog scene can be achieved.

结合图2至图4所示,以一个实施例对本申请实施例的基于图像信噪比分析的雾天成像方法的工作原理进行详细阐述。With reference to FIGS. 2 to 4 , the working principle of the foggy weather imaging method based on image signal-to-noise ratio analysis according to an embodiment of the present application is described in detail with reference to an embodiment.

如图2所示,为本申请实施例的逻辑示意图,本申请实施例可以根据雾气浓度β0或雾气能见度Vis0和观测物距u,由最小分辨模型确定系统视角数NV、系统帧数NF和相机位深bit_depth,由信噪比模型指导优化系统视角数NV、系统帧数NF和相机其他参数,将上述两个模型进行综合,构成以去噪为目的信噪比提升雾气成像系统,从而得到当前雾天场景的雾天成像结果。As shown in FIG2 , it is a logical schematic diagram of an embodiment of the present application. In the embodiment of the present application, the system viewing angle NV , the system frame number NF and the camera bit depth bit_depth can be determined by the minimum resolution model according to the fog concentration β0 or the fog visibility Vis0 and the observation object distance u. The system viewing angle NV , the system frame number NF and other camera parameters are optimized under the guidance of the signal-to-noise ratio model. The above two models are integrated to form a fog imaging system with improved signal-to-noise ratio for the purpose of denoising, thereby obtaining the fog imaging result of the current foggy scene.

其中,硬件系统的参数可以包括:视角数NV、帧数NF、相机位深bit_depth以及其他相机参数(光圈,满井容量,像素尺寸,ISO等)。The parameters of the hardware system may include: the number of viewing angles NV , the number of frames NF , the camera bit depth bit_depth, and other camera parameters (aperture, full well capacity, pixel size, ISO, etc.).

在实际执行过程中,本申请实施例可以包括离线模型构建部分和在线应用部分。During the actual implementation process, the embodiments of the present application may include an offline model building part and an online application part.

如图3所示,本申请实施例的离线模型构建过程可以包括以下步骤:As shown in FIG3 , the offline model building process of the embodiment of the present application may include the following steps:

步骤S301:面向雾天场景,建立雾气成像系统拍摄所涉及硬件参数与图像信噪比间的模型关系,同时给出硬件参数间的限制条件。Step S301: For foggy scenes, a model relationship between the hardware parameters involved in fog imaging system shooting and the image signal-to-noise ratio is established, and constraints between the hardware parameters are given.

具体地,本申请实施例可以定义相机Raw格式图像下的成像模型:Specifically, the embodiment of the present application may define an imaging model under a camera Raw format image:

Figure SMS_32
Figure SMS_32

其中,Ic表示相机的Raw格式图像某像素点强度,c∈{R,G,B}表示相机图像红(Red)、绿(Green)、蓝(Blue)三个颜色通道,Spix表示传感器像素面积,t表示相机曝光时间,SRFc表示相机不同颜色通道的光谱响应函数,Ec表示传感器平面辐照度,g表示相机增益,由可调参数相机感光度ISO控制(ISO≥1),即g=Ucam/ISO,其中,Ucam的单位与g相同,属于相机的固定参数,由相机出厂时的满井容量Cfull和位深bit_depth决定,即2bit_depth.Ucam≈Cfull,n表示传感器噪声,主要由散粒噪声ns、读出噪声nr和量化噪声nQ三类零均值噪声构成,其方差分别可以为

Figure SMS_33
Figure SMS_34
Where I c represents the intensity of a pixel in the Raw format image of the camera, c∈{R,G,B} represents the three color channels of the camera image: red, green, and blue, Spix represents the pixel area of the sensor, t represents the exposure time of the camera, SRF c represents the spectral response function of different color channels of the camera, E c represents the irradiance of the sensor plane, g represents the camera gain, which is controlled by the adjustable parameter camera sensitivity ISO (ISO≥1), that is, g=U cam /ISO, where the unit of U cam is the same as that of g and it is a fixed parameter of the camera, which is determined by the full well capacity C full and the bit depth bit_depth when the camera leaves the factory, that is, 2 bit_depth .U cam ≈C full , and n represents the sensor noise, which is mainly composed of three types of zero-mean noise: shot noise ns , readout noise n r and quantization noise n Q , and their variances can be respectively
Figure SMS_33
and
Figure SMS_34

考虑相机增益g的影响,Raw格式图像Ic的噪声方差可以表示为:Considering the influence of camera gain g, the noise variance of the Raw format image I c can be expressed as:

Figure SMS_35
Figure SMS_35

由于雾气成像的光照足够,相机进光量大,因此噪声以散粒噪声ns为主体,可忽略其余两类噪声的影响,同时相机采集还需要满足非过曝要求,即:Since fog imaging has sufficient illumination and the camera receives a large amount of light, the noise is mainly shot noise ns , and the influence of the other two types of noise can be ignored. At the same time, the camera acquisition also needs to meet the non-overexposure requirement, that is:

Figure SMS_36
Figure SMS_36

此外,传感器平面的辐照度

Figure SMS_37
为雾气下弹道光辐照度
Figure SMS_38
和环境光辐照度Es的加和,公式表述可以如下:In addition, the irradiance at the sensor plane
Figure SMS_37
is the ballistic light irradiance under fog
Figure SMS_38
The sum of the ambient light irradiance Es can be expressed as follows:

Figure SMS_39
Figure SMS_39

Figure SMS_40
Figure SMS_40

Figure SMS_41
Figure SMS_41

Figure SMS_42
Figure SMS_42

Figure SMS_43
Figure SMS_43

其中,A表示场景光照强度,k表示恒常未知比例系数,用于公式表述简易,fno表示镜头的光圈值,Jc表示目标物对应不同颜色通道的反射率,取值范围为Jc∈(0,1),u表示相机到待观测目标物的物距,β表示雾气的散射系数,反映雾气浓度,也可以用雾气能见度Vis替换表示,即β=2.996/Vis,T(u)表示光源类型带来的差异,BRDF(θ)表示目标物表面反射特性带来的差异,在自然光照下,所有目标物都视为漫反射类目标物,Δl表示点光源球壳半径,视具体点光源型号而定。Where A represents the scene illumination intensity, k represents a constant unknown proportional coefficient for the sake of simplicity, fno represents the aperture value of the lens, Jc represents the reflectivity of the target corresponding to different color channels, and its value range is Jc∈ (0,1), u represents the object distance from the camera to the target to be observed, β represents the scattering coefficient of fog, reflecting the fog concentration, and can also be replaced by the fog visibility Vis, that is, β=2.996/Vis, T(u) represents the difference caused by the light source type, BRDF(θ) represents the difference caused by the reflective characteristics of the target surface, and under natural light, all targets are regarded as diffuse reflection targets, Δl represents the radius of the spherical shell of the point light source, which depends on the specific point light source model.

在雾气成像中,仅Ic中的弹道光部分

Figure SMS_44
可作为有效信号,即:In fog imaging, only the ballistic light part in I c
Figure SMS_44
Can be used as a valid signal, namely:

Figure SMS_45
Figure SMS_45

其余部分为Ic中的环境干扰项,由此雾气图像Ic的信噪比平方SNR2(Ic)可以为:The rest is the environmental interference term in I c , so the square signal-to-noise ratio SNR 2 (I c ) of the fog image I c can be:

Figure SMS_46
Figure SMS_46

进一步地,考虑雾气下雾气成像系统硬件层面多时间帧融合与多视角融合的信噪比提升作用,用NF表示系统融合的时间帧数,NV表示系统具备的相机视角数,最终的信噪比平方公式可以为:Furthermore, considering the signal-to-noise ratio improvement effect of multi-time frame fusion and multi-view fusion at the hardware level of fog imaging system under fog, NF is used to represent the number of time frames fused by the system, and NV is used to represent the number of camera views of the system. The final signal-to-noise ratio square formula can be:

Figure SMS_47
Figure SMS_47

限制条件中的过曝限制为:The overexposure limits in the constraints are:

Figure SMS_48
Figure SMS_48

其中,Cfull表示相机的满井容量,ISO表示相机感光度。Among them, C full represents the full well capacity of the camera, and ISO represents the camera sensitivity.

步骤S302:基于硬件参数分析系统的最小分辨能力,并建立最小分辨能力与所能面向最高雾气浓度间的关系。Step S302: Analyze the minimum resolution of the system based on hardware parameters, and establish a relationship between the minimum resolution and the maximum fog concentration that can be faced.

在实际执行过程中,本申请实施例可以定义多帧多视雾气成像系统的灵敏度阈值(AST):In the actual implementation process, the embodiment of the present application can define the sensitivity threshold (AST) of the multi-frame multi-view fog imaging system:

Figure SMS_49
Figure SMS_49

而在雾气成像中分辨极限的定义可以为,雾气下图像的最小有效信号

Figure SMS_50
至少要大于系统的灵敏度阈值(AST),即:The definition of the resolution limit in fog imaging can be the minimum effective signal of the image under fog
Figure SMS_50
At least greater than the system sensitivity threshold (AST), that is:

Figure SMS_51
Figure SMS_51

代入系统参硬件参数后,即:After substituting the system hardware parameters, that is:

Figure SMS_52
Figure SMS_52

而在没有雾气的情况下,对目标物成像在相机的有效工作区间,即:In the absence of fog, the target object is imaged within the effective working range of the camera, that is:

Figure SMS_53
Figure SMS_53

其中,ηlin表示线性工作区间的经验常数,一般取ηlin∈(0.2,0.6),结合上述两公式,可以得到雾气成像系统的最小分辨模型:Among them, η lin represents the empirical constant of the linear working range, and η lin ∈(0.2,0.6) is generally taken. Combining the above two formulas, the minimum resolution model of the fog imaging system can be obtained:

Figure SMS_54
Figure SMS_54

如图4所示,本申请实施例的在线应用过程可以包括以下步骤:As shown in FIG4 , the online application process of the embodiment of the present application may include the following steps:

步骤S401:获取当前雾天场景的实际雾气浓度或者实际雾气能见度。本申请实施例可以获取当前露天场景的实际雾气浓度β0或雾气能见度Vis0,并确定观测物距u。Step S401: Acquire the actual fog concentration or actual fog visibility of the current foggy scene. The embodiment of the present application can acquire the actual fog concentration β 0 or fog visibility Vis 0 of the current open-air scene and determine the observed object distance u.

步骤S402:利用提出最小分辨能力模型确定雾气成像系统所需的硬件参数。本申请实施例可以利用预先建立的最小分辨模型确定雾气成像系统成像所需的视角数NF,时间帧数NV和相机的位深bit_depth。Step S402: Determine the hardware parameters required for the fog imaging system using the proposed minimum resolution model. The embodiment of the present application can use the pre-established minimum resolution model to determine the number of viewing angles NF , the number of time frames NV and the bit depth of the camera required for the fog imaging system.

步骤S403:利用所提出的信噪比模型进一步优化各硬件参数,实现面向任意雾气场景的雾气成像系统的构建。进一步地,本申请实施例可以假定系统需要对雾气下点光照照明的漫反射目标物成像,则依据信噪比模型制定硬件参数优化策略。Step S403: Utilize the proposed signal-to-noise ratio model to further optimize the hardware parameters, and realize the construction of a fog imaging system for any fog scene. Furthermore, the embodiment of the present application may assume that the system needs to image a diffuse reflective target object illuminated by a point in the fog, and then formulate a hardware parameter optimization strategy based on the signal-to-noise ratio model.

为提高雾气图像信噪比,本申请实施例首先可以提高相机的满井容量Cfull,降低像素面积Spix,将相机感光度ISO调至最低;其次在满足相机实际不过曝的前提下,本申请实施例可以尽量增大光照强度A、曝光时间t、光谱响应函数SRFc和目标物反射率Jc,尽量减小镜头光圈值fno和物距u,其中,由于反射率Jc、镜头光圈值fno和物距u在信噪比平方公式中的幂次较大,相比其他参数需要优先被调节;最后本申请实施例可以在满足最小分辨模型所需的视角数和时间帧数的基础上,继续提高NF和NV以提升信噪比。In order to improve the signal-to-noise ratio of the fog image, the embodiment of the present application can first increase the full well capacity C full of the camera, reduce the pixel area Spix , and adjust the camera sensitivity ISO to the minimum; secondly, under the premise that the camera is not actually overexposed, the embodiment of the present application can maximize the light intensity A, exposure time t, spectral response function SRF c and target reflectivity J c , and minimize the lens aperture value fno and object distance u, wherein, since the reflectivity J c , lens aperture value fno and object distance u have a larger power in the signal-to-noise ratio square formula, they need to be adjusted first compared with other parameters; finally, the embodiment of the present application can continue to increase NF and NV to improve the signal-to-noise ratio on the basis of satisfying the number of viewing angles and time frames required by the minimum resolution model.

当面向其他光源类型和目标物反射特性时的分析过程同上,由此通过有效调节硬件参数,实现在面向任意雾气场景的雾气成像系统构建。The analysis process for other light source types and target reflectance characteristics is the same as above. By effectively adjusting the hardware parameters, the construction of a fog imaging system for any fog scene can be achieved.

根据本申请实施例提出的基于图像信噪比分析的雾天成像方法,可以以抑制噪声、提升图像信噪比为导向,从硬件层面出发,建立雾气成像系统拍摄所涉及硬件参数与图像信噪比间的模型关系,同时建立雾气成像系统最小分辨能力与所能面向最高雾气浓度间的关系,并以此优化雾气成像系统的各硬件参数,最终实现在面向任意雾气场景的雾气成像系统构建,从而提高雾气成像系统可成像的雾气浓度。由此,解决了相关技术中,去雾算法仅考虑理想无噪声的情况,而在雾气浓度较高、传感器噪声无法忽略时,无法进行目标物重建的技术问题。According to the foggy weather imaging method based on image signal-to-noise ratio analysis proposed in the embodiment of the present application, it can be guided by suppressing noise and improving image signal-to-noise ratio. Starting from the hardware level, a model relationship between the hardware parameters involved in the shooting of the fog imaging system and the image signal-to-noise ratio is established. At the same time, the relationship between the minimum resolution capability of the fog imaging system and the highest fog concentration that can be faced is established, and the various hardware parameters of the fog imaging system are optimized in this way, and finally a fog imaging system for any fog scene is constructed, thereby improving the fog concentration that can be imaged by the fog imaging system. In this way, the technical problem that the defogging algorithm in the related art only considers the ideal noise-free situation, and cannot reconstruct the target object when the fog concentration is high and the sensor noise cannot be ignored is solved.

其次参照附图描述根据本申请实施例提出的基于图像信噪比分析的雾天成像装置。Next, a foggy weather imaging device based on image signal-to-noise ratio analysis proposed in an embodiment of the present application is described with reference to the accompanying drawings.

图5是本申请实施例的基于图像信噪比分析的雾天成像装置的方框示意图。FIG5 is a block diagram of a foggy weather imaging device based on image signal-to-noise ratio analysis according to an embodiment of the present application.

如图5所示,该基于图像信噪比分析的雾天成像装置10包括:获取模块100、确定模块200和分析模块300。As shown in FIG. 5 , the foggy weather imaging device 10 based on image signal-to-noise ratio analysis includes: an acquisition module 100 , a determination module 200 and an analysis module 300 .

具体地,获取模块100,用于获取当前雾天场景的实际雾气浓度或者实际雾气能见度。Specifically, the acquisition module 100 is used to acquire the actual fog concentration or actual fog visibility of the current foggy scene.

确定模块200,用于基于实际雾气浓度或者实际雾气能见度和观测物距,利用预先构建的雾气成像系统的最小分辨模型确定雾气成像系统的当前所需视角数、当前时间帧数和当前相机的位深.The determination module 200 is used to determine the current required viewing angle number, the current time frame number and the current camera bit depth of the fog imaging system based on the actual fog concentration or the actual fog visibility and the observed object distance using the pre-built minimum resolution model of the fog imaging system.

分析模块300,用于利用预先训练的信噪比模型优化雾气成像系统的当前所需视角数、当前时间帧数和预设的其他相机参数,并根据优化后的当前所需视角数、当前时间帧数、预设的其他相机参数和当前相机的位深,得到当前雾天场景的雾天成像结果。The analysis module 300 is used to optimize the current required number of viewing angles, the current number of time frames and other preset camera parameters of the fog imaging system using a pre-trained signal-to-noise ratio model, and obtain the fog imaging result of the current foggy scene based on the optimized current required number of viewing angles, the current number of time frames, other preset camera parameters and the bit depth of the current camera.

可选地,在本申请的一个实施例中,分析模块300包括;第一调整单元和第二调整单元。Optionally, in one embodiment of the present application, the analysis module 300 includes: a first adjustment unit and a second adjustment unit.

其中,第一调整单元,用于提高相机的满井容量、降低像素面积,并将相机感光度调整至最低;The first adjustment unit is used to increase the full well capacity of the camera, reduce the pixel area, and adjust the camera sensitivity to the minimum;

第二调整单元,用于在满足相机实际不过曝的情况下,增大光照强度、曝光时间、光谱响应函数和目标物反射率,减小镜头光圈值和观测物距,以满足当前所需视角数和当前时间帧数的同时,实现信噪比的优化目的。The second adjustment unit is used to increase the light intensity, exposure time, spectral response function and target reflectivity, and reduce the lens aperture value and observation object distance while ensuring that the camera is not overexposed, so as to meet the current required number of viewing angles and the current number of time frames while achieving the purpose of optimizing the signal-to-noise ratio.

可选地,在本申请的一个实施例中,雾气成像系统的最小分辨模型为:Optionally, in one embodiment of the present application, the minimum resolution model of the fog imaging system is:

Figure SMS_55
Figure SMS_55

其中,ηlin表示线性工作区间的经验常数,bit_depth表示相机的位深,β表示雾气的散射系数,u表示相机到待观测目标物的物距,NF表示系统融合的时间帧数,NV表示系统具备的相机视角数。Among them, ηlin represents the empirical constant of the linear working range, bit_depth represents the bit depth of the camera, β represents the scattering coefficient of fog, u represents the object distance from the camera to the target object to be observed, NF represents the number of time frames fused by the system, and NV represents the number of camera viewing angles of the system.

可选地,在本申请的一个实施例中,基于图像信噪比分析的雾天成像装置10还包括:定义模块和建模模块。Optionally, in one embodiment of the present application, the foggy weather imaging device 10 based on image signal-to-noise ratio analysis further includes: a definition module and a modeling module.

其中,定义模块,用于定义相机Raw格式图像下的成像模型。The definition module is used to define the imaging model of the camera's Raw format image.

建模模块,用于基于成像模型,建立雾气成像系统拍摄所涉及硬件参数与图像信噪比间的模型关系的同时,确定硬件参数间的限制条件。The modeling module is used to establish the model relationship between the hardware parameters involved in the shooting of the fog imaging system and the image signal-to-noise ratio based on the imaging model, and to determine the restriction conditions between the hardware parameters.

可选地,在本申请的一个实施例中,模型关系中的信噪比平方公式为:Optionally, in one embodiment of the present application, the signal-to-noise ratio square formula in the model relationship is:

Figure SMS_56
Figure SMS_56

其中,SNR2表示信噪比平方,Spix表示传感器像素面积,t表示相机曝光时间,SRFc表示相机不同颜色通道的光谱响应函数,A表示场景光照强度,k表示恒常未知比例系数,fno表示镜头的光圈值,Jc表示目标物对应不同颜色通道的反射率,BRDF(θ)表示目标物表面反射特性带来的差异,T(u)表示光源类型带来的差异。Among them, SNR 2 represents the square of the signal-to-noise ratio, Spix represents the pixel area of the sensor, t represents the camera exposure time, SRF c represents the spectral response function of different color channels of the camera, A represents the scene illumination intensity, k represents the constant unknown proportional coefficient, fno represents the aperture value of the lens, J c represents the reflectivity of the target object corresponding to different color channels, BRDF(θ) represents the difference caused by the reflective characteristics of the target surface, and T(u) represents the difference caused by the light source type.

可选地,在本申请的一个实施例中,限制条件中的过曝限制为:Optionally, in one embodiment of the present application, the overexposure limit in the limiting condition is:

Figure SMS_57
Figure SMS_57

其中,Cfull表示相机的满井容量,ISO表示相机感光度。Among them, C full represents the full well capacity of the camera, and ISO represents the camera sensitivity.

需要说明的是,前述对基于图像信噪比分析的雾天成像方法实施例的解释说明也适用于该实施例的基于图像信噪比分析的雾天成像装置,此处不再赘述。It should be noted that the above explanation of the embodiment of the foggy weather imaging method based on image signal-to-noise ratio analysis is also applicable to the foggy weather imaging device based on image signal-to-noise ratio analysis of this embodiment, which will not be repeated here.

根据本申请实施例提出的基于图像信噪比分析的雾天成像装置,可以以抑制噪声、提升图像信噪比为导向,从硬件层面出发,建立雾气成像系统拍摄所涉及硬件参数与图像信噪比间的模型关系,同时建立雾气成像系统最小分辨能力与所能面向最高雾气浓度间的关系,并以此优化雾气成像系统的各硬件参数,最终实现在面向任意雾气场景的雾气成像系统构建,从而提高雾气成像系统可成像的雾气浓度。由此,解决了相关技术中,去雾算法仅考虑理想无噪声的情况,而在雾气浓度较高、传感器噪声无法忽略时,无法进行目标物重建的技术问题。According to the foggy weather imaging device based on image signal-to-noise ratio analysis proposed in the embodiment of the present application, it can be guided by suppressing noise and improving image signal-to-noise ratio. Starting from the hardware level, a model relationship between the hardware parameters involved in the shooting of the fog imaging system and the image signal-to-noise ratio is established. At the same time, the relationship between the minimum resolution capability of the fog imaging system and the highest fog concentration that can be faced is established, and the various hardware parameters of the fog imaging system are optimized in this way, and finally a fog imaging system for any fog scene is constructed, thereby improving the fog concentration that can be imaged by the fog imaging system. In this way, the technical problem that the defogging algorithm in the related art only considers the ideal noise-free situation, and cannot reconstruct the target object when the fog concentration is high and the sensor noise cannot be ignored is solved.

图6为本申请实施例提供的电子设备的结构示意图。该电子设备可以包括:FIG6 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may include:

存储器601、处理器602及存储在存储器601上并可在处理器602上运行的计算机程序。A memory 601 , a processor 602 , and a computer program stored in the memory 601 and executable on the processor 602 .

处理器602执行程序时实现上述实施例中提供的基于图像信噪比分析的雾天成像方法。When the processor 602 executes the program, the foggy weather imaging method based on image signal-to-noise ratio analysis provided in the above embodiment is implemented.

进一步地,电子设备还包括:Furthermore, the electronic device also includes:

通信接口603,用于存储器601和处理器602之间的通信。The communication interface 603 is used for communication between the memory 601 and the processor 602 .

存储器601,用于存放可在处理器602上运行的计算机程序。The memory 601 is used to store computer programs that can be executed on the processor 602 .

存储器601可能包含高速RAM存储器,也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。The memory 601 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

如果存储器601、处理器602和通信接口603独立实现,则通信接口603、存储器601和处理器602可以通过总线相互连接并完成相互间的通信。总线可以是工业标准体系结构(Industry Standard Architecture,简称为ISA)总线、外部设备互连(PeripheralComponent,简称为PCI)总线或扩展工业标准体系结构(Extended Industry StandardArchitecture,简称为EISA)总线等。总线可以分为地址总线、数据总线、控制总线等。为便于表示,图6中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。If the memory 601, the processor 602 and the communication interface 603 are implemented independently, the communication interface 603, the memory 601 and the processor 602 can be connected to each other through a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in FIG6, but it does not mean that there is only one bus or one type of bus.

可选地,在具体实现上,如果存储器601、处理器602及通信接口603,集成在一块芯片上实现,则存储器601、处理器602及通信接口603可以通过内部接口完成相互间的通信。Optionally, in a specific implementation, if the memory 601, the processor 602 and the communication interface 603 are integrated on a chip, the memory 601, the processor 602 and the communication interface 603 can communicate with each other through an internal interface.

处理器602可能是一个中央处理器(Central Processing Unit,简称为CPU),或者是特定集成电路(Application Specific Integrated Circuit,简称为ASIC),或者是被配置成实施本申请实施例的一个或多个集成电路。The processor 602 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application.

本实施例还提供一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如上的基于图像信噪比分析的雾天成像方法。This embodiment further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the foggy weather imaging method based on image signal-to-noise ratio analysis as described above is implemented.

在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本申请的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不必须针对的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任一个或N个实施例或示例中以合适的方式结合。此外,在不相互矛盾的情况下,本领域的技术人员可以将本说明书中描述的不同实施例或示例以及不同实施例或示例的特征进行结合和组合。In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本申请的描述中,“N个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

流程图中或在此以其他方式描述的任何过程或方法描述可以被理解为,表示包括一个或N个用于实现定制逻辑功能或过程的步骤的可执行指令的代码的模块、片段或部分,并且本申请的优选实施方式的范围包括另外的实现,其中可以不按所示出或讨论的顺序,包括根据所涉及的功能按基本同时的方式或按相反的顺序,来执行功能,这应被本申请的实施例所属技术领域的技术人员所理解。Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or N executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by technicians in the technical field to which the embodiments of the present application belong.

在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行系统、装置或设备(如基于计算机的系统、包括处理器的系统或其他可以从指令执行系统、装置或设备取指令并执行指令的系统)使用,或结合这些指令执行系统、装置或设备而使用。就本说明书而言,"计算机可读介质"可以是任何可以包含、存储、通信、传播或传输程序以供指令执行系统、装置或设备或结合这些指令执行系统、装置或设备而使用的装置。计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或N个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。The logic and/or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or N wirings (electronic devices), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways as necessary and then storing it in a computer memory.

应当理解,本申请的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,N个步骤或方法可以用存储在存储器中且由合适的指令执行系统执行的软件或固件来实现。如,如果用硬件来实现和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that the various parts of the present application can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiment, the N steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

本技术领域的普通技术人员可以理解实现上述实施例方法携带的全部或部分步骤是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,该程序在执行时,包括方法实施例的步骤之一或其组合。A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

此外,在本申请各个实施例中的各功能单元可以集成在一个处理模块中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。所述集成的模块如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。In addition, each functional unit in each embodiment of the present application may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

上述提到的存储介质可以是只读存储器,磁盘或光盘等。尽管上面已经示出和描述了本申请的实施例,可以理解的是,上述实施例是示例性的,不能理解为对本申请的限制,本领域的普通技术人员在本申请的范围内可以对上述实施例进行变化、修改、替换和变型。The storage medium mentioned above may be a read-only memory, a disk or an optical disk, etc. Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present application. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present application.

Claims (7)

1.一种基于图像信噪比分析的雾天成像方法,其特征在于,包括以下步骤:1. a fog imaging method based on image signal-to-noise ratio analysis, is characterized in that, comprises the following steps: 获取当前雾天场景的实际雾气浓度或者实际雾气能见度;Obtain the actual fog concentration or actual fog visibility of the current fog scene; 基于所述实际雾气浓度或者所述实际雾气能见度和观测物距,利用预先构建的雾气成像系统的最小分辨模型确定所述雾气成像系统的当前所需视角数、当前时间帧数和当前相机的位深,其中,所述雾气成像系统的最小分辨模型为:Based on the actual fog concentration or the actual fog visibility and observed object distance, use the pre-built minimum resolution model of the fog imaging system to determine the current required viewing angle, current time frame number and current camera position of the fog imaging system deep, wherein the minimum resolution model of the fog imaging system is:
Figure FDA0004134204110000011
Figure FDA0004134204110000011
其中,ηlin表示线性工作区间的经验常数,bit_depth表示所述相机的位深,β表示雾气浓度,u表示观测物距,NF表示系统融合的时间帧数,NV表示系统具备的相机视角数;以及Among them, η lin represents the empirical constant of the linear working range, bit_depth represents the bit depth of the camera, β represents the fog concentration, u represents the distance of the observed object, NF represents the number of time frames for system fusion, and N V represents the camera angle of view possessed by the system number; and 利用预先训练的信噪比模型优化所述雾气成像系统的当前所需视角数、当前时间帧数和预设的其他相机参数,其中,提高相机的满井容量、降低像素面积,并将相机感光度调整至最低,在满足相机实际不过曝的情况下,增大光照强度、曝光时间、光谱响应函数和目标物反射率,减小镜头光圈值和所述观测物距,以满足所述当前所需视角数和当前时间帧数的同时,实现信噪比的优化目的;Use the pre-trained signal-to-noise ratio model to optimize the current required viewing angle, current time frame number and other preset camera parameters of the fog imaging system, wherein the full well capacity of the camera is improved, the pixel area is reduced, and the camera is sensitive Adjust the degree to the minimum, increase the light intensity, exposure time, spectral response function and object reflectivity, reduce the lens aperture value and the observed object distance under the condition that the camera is not overexposed to meet the current requirements. The number of viewing angles and the number of current time frames are required to achieve the optimization of the signal-to-noise ratio; 并根据优化后的当前所需视角数、当前时间帧数、预设的其他相机参数和所述当前相机的位深,得到所述当前雾天场景的雾天成像结果,其中,所述预设的其他相机参数为相机的满井容量、像素面积、相机感光度、相机是否实际不过曝、光照强度、曝光时间、光谱响应函数、目标物反射率、镜头光圈值和观测物距。And according to the optimized current required viewing angle, the current time frame number, other preset camera parameters and the bit depth of the current camera, the fog imaging result of the current foggy scene is obtained, wherein the preset Other camera parameters of the camera are the full well capacity of the camera, pixel area, camera sensitivity, whether the camera is actually overexposed, light intensity, exposure time, spectral response function, target reflectivity, lens aperture value, and observed object distance.
2.根据权利要求1所述的方法,其特征在于,在利用所述预先构建的雾气成像系统的最小分辨模型确定所述雾气成像系统的当前所需视角数、当前时间帧数和当前相机的位深之前,还包括:2. The method according to claim 1, wherein the minimum resolution model of the pre-built fog imaging system is used to determine the current required viewing angle of the fog imaging system, the current time frame number and the current camera. Before bit depth, also include: 定义相机Raw格式图像下的成像模型;Define the imaging model under the camera Raw format image; 基于所述成像模型,建立所述雾气成像系统拍摄所涉及硬件参数与图像信噪比间的模型关系的同时,确定硬件参数间的限制条件。Based on the imaging model, while establishing a model relationship between the hardware parameters involved in the photography of the fog imaging system and the signal-to-noise ratio of the image, constraints between the hardware parameters are determined. 3.根据权利要求2所述的方法,其特征在于,所述模型关系中的信噪比平方公式为:3. method according to claim 2, is characterized in that, the signal-to-noise ratio square formula in the described model relation is:
Figure FDA0004134204110000012
Figure FDA0004134204110000012
其中,SNR2表示信噪比平方,Spix表示传感器像素面积,t表示相机曝光时间,SRFc表示相机不同颜色通道的光谱响应函数,A表示场景光照强度,k表示恒常未知比例系数,fno表示镜头的光圈值,Jc表示目标物对应不同颜色通道的反射率,BRDF(θ)表示目标物表面反射特性带来的差异,T(u)表示光源类型带来的差异。Among them, SNR 2 represents the square of the signal-to-noise ratio, Spix represents the pixel area of the sensor, t represents the exposure time of the camera, SRF c represents the spectral response function of different color channels of the camera, A represents the scene light intensity, k represents the constant unknown scale coefficient, and fno represents The aperture value of the lens, J c represents the reflectance of the target object corresponding to different color channels, BRDF(θ) represents the difference caused by the surface reflection characteristics of the target object, and T(u) represents the difference caused by the type of light source.
4.根据权利要求3所述的方法,其特征在于,所述限制条件中的过曝限制为:4. The method according to claim 3, characterized in that the overexposure limit in the limiting conditions is:
Figure FDA0004134204110000021
Figure FDA0004134204110000021
其中,Cfull表示相机的满井容量,ISO表示相机感光度。Among them, C full represents the full well capacity of the camera, and ISO represents the camera sensitivity.
5.一种基于图像信噪比分析的雾天成像装置,其特征在于,包括:5. A fog imaging device based on image signal-to-noise ratio analysis, characterized in that it comprises: 获取模块,用于获取当前雾天场景的实际雾气浓度或者实际雾气能见度;The obtaining module is used to obtain the actual fog concentration or actual fog visibility of the current foggy scene; 确定模块,用于基于所述实际雾气浓度或者所述实际雾气能见度,利用预先构建的雾气成像系统的最小分辨模型确定所述雾气成像系统的当前所需视角数、当前时间帧数和当前相机的位深,其中,所述雾气成像系统的最小分辨模型为:A determination module, configured to determine the current required viewing angle, current time frame number, and current camera angle of the fog imaging system by using a pre-built minimum resolution model of the fog imaging system based on the actual fog concentration or the actual fog visibility. bit depth, wherein the minimum resolution model of the fog imaging system is:
Figure FDA0004134204110000022
Figure FDA0004134204110000022
其中,ηlin表示线性工作区间的经验常数,bit_depth表示所述相机的位深,β表示雾气浓度,u表示观测物距,NF表示系统融合的时间帧数,NV表示系统具备的相机视角数;以及Among them, η lin represents the empirical constant of the linear working range, bit_depth represents the bit depth of the camera, β represents the fog concentration, u represents the distance of the observed object, NF represents the number of time frames for system fusion, and N V represents the camera angle of view possessed by the system number; and 分析模块,用于利用预先训练的信噪比模型优化所述雾气成像系统的当前所需视角数、当前时间帧数和预设的其他相机参数,其中,提高相机的满井容量、降低像素面积,并将相机感光度调整至最低,在满足相机实际不过曝的情况下,增大光照强度、曝光时间、光谱响应函数和目标物反射率,减小镜头光圈值和所述观测物距,以满足所述当前所需视角数和当前时间帧数的同时,实现信噪比的优化目的,并根据优化后的当前所需视角数、当前时间帧数、预设的其他相机参数和所述当前相机的位深,得到所述当前雾天场景的雾天成像结果,其中,所述预设的其他相机参数为相机的满井容量、像素面积、相机感光度、相机是否实际不过曝、光照强度、曝光时间、光谱响应函数、目标物反射率、镜头光圈值和观测物距。The analysis module is used to optimize the current required viewing angle, current time frame number and other preset camera parameters of the fog imaging system by using the pre-trained signal-to-noise ratio model, wherein the full well capacity of the camera is increased and the pixel area is reduced , and adjust the camera sensitivity to the minimum, and increase the light intensity, exposure time, spectral response function and object reflectivity, and reduce the lens aperture value and the observed object distance under the condition that the camera is not over-exposed. While satisfying the currently required number of viewing angles and the current number of time frames, the purpose of optimizing the signal-to-noise ratio is achieved, and according to the optimized current required number of viewing angles, the current number of time frames, other preset camera parameters and the current The bit depth of the camera is used to obtain the foggy imaging result of the current foggy scene, wherein the other preset camera parameters are the full well capacity of the camera, the pixel area, the sensitivity of the camera, whether the camera is actually overexposed, the light intensity , exposure time, spectral response function, target reflectance, lens aperture value and observed object distance.
6.一种电子设备,其特征在于,包括:存储器及处理器,所述存储器上存储可在所述处理器上运行的计算机程序,所述处理器执行所述程序,以实现如权利要求1-4任一项所述的基于图像信噪比分析的雾天成像方法。6. An electronic device, characterized in that it comprises: a memory and a processor, the memory stores a computer program that can run on the processor, and the processor executes the program, so as to realize the requirements of claim 1 The fog imaging method based on image signal-to-noise ratio analysis described in any one of -4. 7.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行,以用于实现如权利要求1-4任一项所述的基于图像信噪比分析的雾天成像方法。7. A computer-readable storage medium on which a computer program is stored, characterized in that the program is executed by a processor for realizing the analysis based on the image signal-to-noise ratio as described in any one of claims 1-4 Fog imaging method.
CN202211032899.6A 2022-08-26 2022-08-26 Fog imaging method and device based on image signal-to-noise ratio analysis Active CN115412669B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211032899.6A CN115412669B (en) 2022-08-26 2022-08-26 Fog imaging method and device based on image signal-to-noise ratio analysis

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211032899.6A CN115412669B (en) 2022-08-26 2022-08-26 Fog imaging method and device based on image signal-to-noise ratio analysis

Publications (2)

Publication Number Publication Date
CN115412669A CN115412669A (en) 2022-11-29
CN115412669B true CN115412669B (en) 2023-06-06

Family

ID=84162598

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211032899.6A Active CN115412669B (en) 2022-08-26 2022-08-26 Fog imaging method and device based on image signal-to-noise ratio analysis

Country Status (1)

Country Link
CN (1) CN115412669B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104091310A (en) * 2014-06-24 2014-10-08 三星电子(中国)研发中心 Image defogging method and device
CN105160653A (en) * 2015-07-13 2015-12-16 中国人民解放军陆军军官学院 Quality evaluation method for fog-degraded images
CN110246101A (en) * 2019-06-13 2019-09-17 Oppo广东移动通信有限公司 Image processing method and device

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6067110A (en) * 1995-07-10 2000-05-23 Honda Giken Kogyo Kabushiki Kaisha Object recognizing device
US9197789B2 (en) * 2011-08-03 2015-11-24 Indian Institute Of Technology, Kharagpur Method and system for removal of fog, mist, or haze from images and videos
CN104067608B (en) * 2012-01-18 2017-10-24 英特尔公司 Intelligence computation imaging system
CN102571202A (en) * 2012-03-08 2012-07-11 大连大学 Laser link loss calculating method under complex weather
CN107545544A (en) * 2016-06-29 2018-01-05 诺基亚技术有限公司 The method and apparatus for removing the turbid object in image
CN107481199B (en) * 2017-07-27 2020-01-10 Oppo广东移动通信有限公司 Image defogging method and device, storage medium and mobile terminal
CN107295261B (en) * 2017-07-27 2020-05-26 Oppo广东移动通信有限公司 Image dehazing processing method, device, storage medium and mobile terminal
CN107424133B (en) * 2017-07-27 2020-01-10 Oppo广东移动通信有限公司 Image defogging method and device, computer storage medium and mobile terminal
US10752158B2 (en) * 2018-02-07 2020-08-25 Massachusetts Institute Of Technology Methods and apparatus for imaging through fog
CN109086803B (en) * 2018-07-11 2022-10-14 南京邮电大学 A haze visibility detection system and method based on deep learning and personalized factors
CN113256538B (en) * 2021-06-23 2021-10-15 浙江师范大学 An unsupervised rain removal method based on deep learning

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104091310A (en) * 2014-06-24 2014-10-08 三星电子(中国)研发中心 Image defogging method and device
CN105160653A (en) * 2015-07-13 2015-12-16 中国人民解放军陆军军官学院 Quality evaluation method for fog-degraded images
CN110246101A (en) * 2019-06-13 2019-09-17 Oppo广东移动通信有限公司 Image processing method and device

Also Published As

Publication number Publication date
CN115412669A (en) 2022-11-29

Similar Documents

Publication Publication Date Title
CN108683862B (en) Imaging control method, imaging control device, electronic equipment and computer-readable storage medium
US10997696B2 (en) Image processing method, apparatus and device
CN107977940B (en) Background blurring processing method, device and equipment
CN107948538B (en) Imaging method, device, mobile terminal and storage medium
US9710715B2 (en) Image processing system, image processing device, and image processing method
US7626614B1 (en) Transfer function and high dynamic range images
JP4236433B2 (en) System and method for simulating fill flash in photography
US9948864B2 (en) Photography illumination compensation method, compensation apparatus, and user equipment
WO2019011147A1 (en) Human face region processing method and apparatus in backlight scene
CN108024057B (en) Background blurring processing method, device and equipment
KR101319048B1 (en) Camera flash mitigation
WO2018201809A1 (en) Double cameras-based image processing device and method
CN107835372A (en) Imaging method, device, mobile terminal and storage medium based on dual camera
CN107358593B (en) Image forming method and apparatus
CN108024056B (en) Imaging method and device based on dual cameras
CN107800965B (en) Image processing method, image processing device, computer-readable storage medium and computer equipment
CN107249105A (en) Exposure compensation, device and terminal device
CN106921829A (en) A kind of photographic method and device and photographing device
JP2001186325A (en) Method and device for processing picture, recording medium and transmitting medium
WO2019105260A1 (en) Depth of field obtaining method, apparatus and device
CN112995525B (en) Camera exposure method and device for self-propelled equipment
CN110378944A (en) Depth map processing method and device and electronic equipment
WO2019011110A1 (en) Face area processing method and device for backlight scene
WO2018196704A1 (en) Dual-core focusing image sensor, focusing control method thereof, and imaging device
CN110688926A (en) Subject detection method and apparatus, electronic device, and computer-readable storage medium

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