[go: up one dir, main page]

CN107507237B - Laser interference effect simulation method based on actual measurement image - Google Patents

Laser interference effect simulation method based on actual measurement image Download PDF

Info

Publication number
CN107507237B
CN107507237B CN201710576134.1A CN201710576134A CN107507237B CN 107507237 B CN107507237 B CN 107507237B CN 201710576134 A CN201710576134 A CN 201710576134A CN 107507237 B CN107507237 B CN 107507237B
Authority
CN
China
Prior art keywords
laser
spot
basic
texture map
energy
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
CN201710576134.1A
Other languages
Chinese (zh)
Other versions
CN107507237A (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.)
Xidian University
Original Assignee
Xidian 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 Xidian University filed Critical Xidian University
Priority to CN201710576134.1A priority Critical patent/CN107507237B/en
Publication of CN107507237A publication Critical patent/CN107507237A/en
Application granted granted Critical
Publication of CN107507237B publication Critical patent/CN107507237B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/40Analysis of texture
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4007Scaling of whole images or parts thereof, e.g. expanding or contracting based on interpolation, e.g. bilinear interpolation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/136Segmentation; Edge detection involving thresholding

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Computer Graphics (AREA)
  • Geometry (AREA)
  • Software Systems (AREA)
  • Image Generation (AREA)
  • Image Processing (AREA)

Abstract

本发明涉及一种基于实测图像的激光干扰效应仿真方法,该方法包括:获取基础激光光斑图像;提取所述基础激光光斑图像中激光光斑的能量信息;根据所述能量信息生成基础激光的光斑纹理图;根据所述基础激光的光斑纹理图计算目标激光的光斑纹理图;在仿真软件中写入并解析所述目标激光的光斑纹理图。本发明通过根据实测图像对理论建模生成的激光光斑进行了纹理的优化,并以其为基础进行插值计算,使其具备更高的真实感和灵活性。

Figure 201710576134

The invention relates to a method for simulating a laser interference effect based on a measured image. The method includes: acquiring a basic laser spot image; extracting energy information of the laser spot in the basic laser spot image; generating a spot texture of the basic laser according to the energy information Figure; calculate the spot texture map of the target laser according to the spot texture map of the basic laser; write and analyze the spot texture map of the target laser in the simulation software. The invention optimizes the texture of the laser spot generated by theoretical modeling according to the measured image, and performs interpolation calculation on the basis of the measured image, so that it has higher realism and flexibility.

Figure 201710576134

Description

基于实测图像的激光干扰效应仿真方法Simulation Method of Laser Interference Effect Based on Measured Image

技术领域technical field

本发明属于计算机仿真技术相关领域,特别涉及一种基于实测图像的激光干扰效应仿真方法。The invention belongs to the related field of computer simulation technology, and particularly relates to a laser interference effect simulation method based on a measured image.

背景技术Background technique

在光电对抗领域,激光武器利用高能激光对远距离的目标进行精确打击或用于防御导弹等的武器,具有其他武器不可比拟的优点。光电成像系统主要利用各类光电探测器,通过对观测区域进行高分辨率成像获取目标及场景的图像,提供给观察人员或图像处理系统对目标进行鉴别、测距及瞄准等应用。而激光因其具有的单色性、方向性及相干性等特性,对红外及可见光的光电成像系统在远距离也可以造成辐照干扰与损伤。激光干扰作为作用在探测器上的高能量光斑干扰,在现代光电对抗中越发受到关注。目前对于激光干扰效应的研究主要有两种方法:一种是利用激光干扰的成像原理进行理论计算;另一种在实物实验下,使用摄像机实拍获取激光光斑图像。In the field of photoelectric countermeasures, laser weapons use high-energy lasers to precisely strike long-distance targets or weapons for defense against missiles, which have incomparable advantages over other weapons. The photoelectric imaging system mainly uses various types of photoelectric detectors to obtain the images of the target and the scene through high-resolution imaging of the observation area, and provides it to the observer or the image processing system to identify, measure and target the target. Due to its monochromaticity, directionality and coherence, laser can also cause radiation interference and damage to infrared and visible light photoelectric imaging systems at long distances. As the high-energy spot interference acting on the detector, laser interference has attracted more and more attention in modern optoelectronic countermeasures. At present, there are two main methods for the research of laser interference effect: one is to use the imaging principle of laser interference for theoretical calculation;

利用理论计算得到激光光斑,当激光源在探测器的视场内时,激光辐射对探测器造成的干扰中,体现在图像上干扰的主要是饱和、串扰和过饱和现象。可以通过对物理现象的精细建模,得到符合物理规律的三维模型,得到一种预处理的,离线计算出的比较逼真的外观,但建立起来的关系和模型通常较为复杂,计算过于复杂,耗时过长,外观轮廓过于规则,与真实的光斑还存在差距,一般来说这样的外观模型很难支持实时计算以及仿真。The laser spot is obtained by theoretical calculation. When the laser source is in the field of view of the detector, the interference caused by the laser radiation to the detector is mainly reflected in the saturation, crosstalk and supersaturation phenomenon on the image. Through fine modeling of physical phenomena, a three-dimensional model that conforms to physical laws can be obtained, and a pre-processed, offline-calculated more realistic appearance can be obtained. If the time is too long, the appearance outline is too regular, and there is still a gap with the real light spot. Generally speaking, such an appearance model is difficult to support real-time calculation and simulation.

实拍获取激光光斑,国内外的研究机构都对激光干扰效应展开了研究,并取得了一系列的研究成果。在研究途径中实物实验是主要途径,包括外场试验和实验室实验,通过实物实验可以得到激光光斑图像和真实详细的实验数据,这种方法,可以对干扰前后的图像进行对比,能够很直观的获得系统干扰前后的成像系统的性能变化情况,可信度较高,但对实验室和实验条件的依赖性高,图像不能重现和不灵活,并且容易使实验室器件受到损伤或损坏,实验成本高。The laser spot is obtained by real shooting. Research institutions at home and abroad have carried out research on the effect of laser interference, and have achieved a series of research results. In the research approach, physical experiments are the main way, including field tests and laboratory experiments. Through physical experiments, laser spot images and real and detailed experimental data can be obtained. This method can compare the images before and after interference, which can be very intuitive. The performance changes of the imaging system before and after system interference are obtained, with high reliability, but high dependence on laboratory and experimental conditions, images cannot be reproduced and inflexible, and laboratory devices are easily damaged or damaged. high cost.

可以看出,利用理论计算和实验室实拍获取激光光斑图都存在不足。It can be seen that the use of theoretical calculation and laboratory real shooting to obtain the laser spot map is insufficient.

发明内容SUMMARY OF THE INVENTION

因此,为解决现有技术存在的技术缺陷和不足,本发明提出一种基于实测图像的激光干扰效应仿真方法。Therefore, in order to solve the technical defects and deficiencies existing in the prior art, the present invention proposes a method for simulating laser interference effects based on an actual measured image.

具体地,本发明一个实施例提出的一种基于实测图像的激光干扰效应仿真方法,包括:Specifically, a method for simulating a laser interference effect based on a measured image proposed by an embodiment of the present invention includes:

S11、获取基础激光光斑图像;S11. Obtain a basic laser spot image;

S12、提取所述基础激光光斑图像中激光光斑的能量信息;S12, extracting the energy information of the laser spot in the basic laser spot image;

S13、根据所述能量信息生成基础激光的光斑纹理图;S13, generating a spot texture map of the basic laser according to the energy information;

S14、根据所述基础激光的光斑纹理图计算目标激光的光斑纹理图;S14, calculating the spot texture map of the target laser according to the spot texture map of the basic laser;

S15、写入并解析所述目标激光的光斑纹理图。S15, write and parse the light spot texture map of the target laser light.

其中,所述基础激光光斑图像为一组特定功率的激光入射探测器产生的激光光斑图像。Wherein, the basic laser spot image is a laser spot image generated by a set of laser incident detectors with a specific power.

在本发明的一个实施例中,所述一组特定功率的激光包括两个或两个以上特定功率的激光。In one embodiment of the present invention, the group of lasers with specific powers includes two or more lasers with specific powers.

在本发明的一个实施例中,步骤S12中提取所述基础激光光斑图像中激光光斑的能量信息包括:根据阈值分割技术,从0~255范围之间选择适当的阈值,提取所述基础激光光斑图像中激光光斑的能量信息。In an embodiment of the present invention, extracting the energy information of the laser spot in the basic laser spot image in step S12 includes: selecting an appropriate threshold from a range of 0 to 255 according to a threshold segmentation technique, and extracting the basic laser spot The energy information of the laser spot in the image.

在本发明的一个实施例中,步骤S13中根据所述能量信息生成基础激光的光斑纹理图包括:根据所述能量信息生成一组特定功率的基础激光的光斑纹理图,并保存所述基础激光的光斑纹理图。In an embodiment of the present invention, generating the spot texture map of the base laser according to the energy information in step S13 includes: generating a set of spot texture maps of the base laser with a specific power according to the energy information, and saving the base laser flare texture map.

在本发明的一个实施例中,步骤S14中根据所述基础激光的光斑纹理图计算所述目标激光的光斑纹理包括:In an embodiment of the present invention, calculating the spot texture of the target laser according to the spot texture map of the base laser in step S14 includes:

S141、根据所述目标激光的功率选取两个基础激光的光斑纹理图;S141, select the spot texture maps of the two basic lasers according to the power of the target laser;

S142、对所述两个基础激光的光斑纹理图进行逐点插值处理,计算出所述目标激光的能量信息;S142, performing point-by-point interpolation processing on the spot texture maps of the two basic lasers to calculate the energy information of the target laser;

S143、根据所述目标激光的能量信息生成所述目标激光的光斑纹理图。S143. Generate a spot texture map of the target laser light according to the energy information of the target laser light.

其中,步骤S141中所述目标激光的功率介于所述两个基础激光的功率之间。Wherein, the power of the target laser in step S141 is between the powers of the two basic lasers.

在本发明的一个实施例中,步骤S142中所述逐点插值处理的公式为:In an embodiment of the present invention, the formula for the point-by-point interpolation processing in step S142 is:

Figure GDA0002644973860000031
Figure GDA0002644973860000031

其中,k2、k1为两个基础激光的功率,kz为插值计算的目标激光的功率,

Figure GDA0002644973860000032
为插值计算的目标激光的光斑纹理图,
Figure GDA0002644973860000033
为两个基础激光的光斑纹理图。Among them, k 2 and k 1 are the power of the two basic lasers, k z is the power of the target laser calculated by interpolation,
Figure GDA0002644973860000032
The spot texture map of the target laser calculated for the interpolation,
Figure GDA0002644973860000033
Spot texture map for the two base lasers.

在本发明的一个实施例中,所述光斑纹理图包括高能量的光斑纹理和较小能量的光斑纹理;其中,计算目标激光的光斑内部的能量信息时,对所述高能量的光斑纹理和较小能量的光斑纹理都进行插值处理;计算目标激光的光斑外部能量信息时,对所述高能量的光斑纹理进行插值处理。In an embodiment of the present invention, the spot texture map includes a high-energy spot texture and a smaller-energy spot texture; wherein, when calculating the energy information inside the spot of the target laser, the high-energy spot texture and the spot texture are calculated. Interpolation processing is performed on the light spot texture with smaller energy; when calculating the external energy information of the target laser light spot, interpolation processing is performed on the high energy light spot texture.

在本发明的一个实施例中,步骤S15中写入并解析所述目标激光的光斑纹理图包括:In an embodiment of the present invention, writing and parsing the spot texture map of the target laser in step S15 includes:

S151、在三维仿真软件中,提取所述目标激光的光斑纹理图作为公告板图元;S151. In the three-dimensional simulation software, extract the light spot texture map of the target laser as a bulletin board primitive;

S152、利用图形编程语言将所述目标激光的光斑纹理图写入材质脚本的纹理单元中;S152, using a graphic programming language to write the spot texture map of the target laser into the texture unit of the material script;

S153、通过GPU解析所述目标激光的光斑纹理图,并将所述目标激光的光斑纹理载入显存中执行以终得到GPU动态仿真结果。S153: Analyze the spot texture map of the target laser through the GPU, and load the spot texture of the target laser into the video memory for execution to finally obtain a GPU dynamic simulation result.

基于此,本发明具备如下优点:Based on this, the present invention has the following advantages:

第一,由于本发明在基于GPU的激光干扰效应动态仿真时,使用的是一组实拍图像对纹理细节的恢复及相关纹理映射,且提取理论模型作为母版即基础激光的光斑纹理图,克服了人工设计或者理论计算十分耗时和在目标形状特征、细节程度方面都有着各种各样的缺点,使得本发明满足实际应用中实时及真实感等各方面的需要。First, because the present invention uses a set of real-shot images to restore texture details and related texture mapping during the dynamic simulation of the laser interference effect based on GPU, and extracts the theoretical model as the master, that is, the spot texture map of the basic laser, It overcomes the time-consuming manual design or theoretical calculation and various shortcomings in terms of target shape characteristics and detail level, so that the present invention meets the needs of real-time and real-life feeling in practical applications.

第二,由于本发明在基于GPU的激光干扰效应动态仿真时,用实拍激光光斑图像的纹理作为基础,克服了实拍光斑图不能重现和不灵活的缺点和实验获取实拍图条件苛刻和成本高,使得本发明可以应用于各种功率下激光干扰效应动态仿真。Second, because the present invention uses the texture of the real-shot laser spot image as the basis in the dynamic simulation of the laser interference effect based on GPU, it overcomes the shortcomings of the real-shot spot image that cannot be reproduced and is inflexible, and the experimental conditions for obtaining the real-shot image are harsh. And the cost is high, so that the present invention can be applied to the dynamic simulation of laser interference effect under various powers.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions of the embodiments of the present invention more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.

通过以下参考附图的详细说明,本发明的其它方面和特征变得明显。但是应当知道,该附图仅仅为解释的目的设计,而不是作为本发明的范围的限定,这是因为其应当参考附加的权利要求。还应当知道,除非另外指出,不必要依比例绘制附图,它们仅仅力图概念地说明此处描述的结构和流程。Other aspects and features of the present invention will become apparent from the following detailed description with reference to the accompanying drawings. It should be understood, however, that the drawings are designed for illustrative purposes only and are not intended to limit the scope of the invention, as reference should be made to the appended claims. It should also be understood that unless otherwise indicated, the drawings are not necessarily to scale, and are merely intended to conceptually illustrate the structures and processes described herein.

图1为本发明实施例一提供的一种基于实测图像的激光干扰效应仿真方法流程示意图;1 is a schematic flowchart of a method for simulating a laser interference effect based on an actual measured image provided by Embodiment 1 of the present invention;

图2为本发明实施例二提供的一种基于实测图像的激光干扰效应仿真方法流程图;2 is a flowchart of a method for simulating a laser interference effect based on an actual measured image provided by Embodiment 2 of the present invention;

图3为本发明实施例三提供的一种基于实测图像的激光干扰效应仿真方法流程逻辑图;FIG. 3 is a flowchart logic diagram of a method for simulating laser interference effects based on an actual measured image provided by Embodiment 3 of the present invention;

图4为本发明实施例三提供的一种实拍激光光斑图像;FIG. 4 is a real-shot laser spot image provided in Embodiment 3 of the present invention;

图5为本发明实施例三提供的一种根据能量信息生成的激光光斑纹理图;5 is a texture map of a laser spot generated according to energy information according to Embodiment 3 of the present invention;

图6为本发明实施例三提供的一种插值计算在2.6μW下的光斑纹理图;FIG. 6 is a light spot texture map under 2.6 μW of interpolation calculation provided by Embodiment 3 of the present invention;

图7为本发明实施例三提供的一种基于GPU的实拍激光干扰效应动态仿真图;7 is a dynamic simulation diagram of a GPU-based real-shot laser interference effect provided by Embodiment 3 of the present invention;

图8为本发明实施例三提供的一种基于GPU插值计算在2.6μW下的激光干扰效应动态仿真图。FIG. 8 is a dynamic simulation diagram of a laser interference effect at 2.6 μW based on GPU interpolation calculation according to Embodiment 3 of the present invention.

具体实施方式Detailed ways

为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合附图对本发明的具体实施方式做详细的说明。In order to make the above objects, features and advantages of the present invention more clearly understood, the specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

实施例一Example 1

请参见图1,图1为本发明实施例一提供的一种基于实测图像的激光干扰效应仿真方法流程示意图。该方法包括如下步骤:Please refer to FIG. 1. FIG. 1 is a schematic flowchart of a method for simulating a laser interference effect based on a measured image according to Embodiment 1 of the present invention. The method includes the following steps:

S11、获取基础激光光斑图像;S11. Obtain a basic laser spot image;

S12、提取所述基础激光光斑图像中激光光斑的能量信息;S12, extracting the energy information of the laser spot in the basic laser spot image;

S13、根据所述能量信息生成基础激光的光斑纹理图;S13, generating a spot texture map of the basic laser according to the energy information;

S14、根据所述基础激光的光斑纹理图计算目标激光的光斑纹理图;S14, calculating the spot texture map of the target laser according to the spot texture map of the basic laser;

S15、在仿真软件中写入并解析所述目标激光的光斑纹理图。S15, write and analyze the light spot texture map of the target laser in the simulation software.

其中,所述基础激光光斑图像为一组特定功率的激光入射探测器产生的激光光斑图像。Wherein, the basic laser spot image is a laser spot image generated by a set of laser incident detectors with a specific power.

具体地,所述一组特定功率的激光包括两个或两个以上特定功率的激光。Specifically, the group of lasers with specific powers includes two or more lasers with specific powers.

优选地,步骤S12中提取所述基础激光光斑图像中激光光斑的能量信息可以包括:根据阈值分割技术,从0~255范围之间选择适当的阈值,提取所述基础激光光斑图像中激光光斑的能量信息。Preferably, extracting the energy information of the laser spot in the basic laser spot image in step S12 may include: selecting an appropriate threshold from a range of 0 to 255 according to a threshold segmentation technique, and extracting the energy information of the laser spot in the basic laser spot image energy information.

优选地,步骤S13中根据所述能量信息生成基础激光的光斑纹理图可以包括:根据所述能量信息生成一组特定功率的基础激光的光斑纹理图,并保存所述基础激光的光斑纹理图。Preferably, generating the spot texture map of the basic laser according to the energy information in step S13 may include: generating a group of spot texture maps of the basic laser with a specific power according to the energy information, and saving the spot texture map of the basic laser.

优选地,步骤S14中根据所述基础激光的光斑纹理图计算所述目标激光的光斑纹理可以包括:Preferably, calculating the spot texture of the target laser according to the spot texture map of the base laser in step S14 may include:

S141、根据所述目标激光的功率选取两个基础激光的光斑纹理图;S141, select the spot texture maps of the two basic lasers according to the power of the target laser;

S142、对所述两个基础激光的光斑纹理图进行逐点插值处理,计算出所述目标激光的能量信息;S142, performing point-by-point interpolation processing on the spot texture maps of the two basic lasers to calculate the energy information of the target laser;

S143、根据所述目标激光的能量信息生成所述目标激光的光斑纹理图。S143. Generate a spot texture map of the target laser light according to the energy information of the target laser light.

其中,步骤S141中所述目标激光的功率介于所述两个基础激光的功率之间。Wherein, the power of the target laser in step S141 is between the powers of the two basic lasers.

具体地,步骤S142中所述逐点插值处理的公式见公式1.1:Specifically, the formula for the point-by-point interpolation processing in step S142 is shown in formula 1.1:

公式1.1

Figure GDA0002644973860000071
Equation 1.1
Figure GDA0002644973860000071

其中,k2、k1为两个基础激光的功率,kz为插值计算的目标激光的功率,

Figure GDA0002644973860000072
为插值计算的目标激光的光斑纹理图,
Figure GDA0002644973860000073
为两个基础激光的光斑纹理图。Among them, k 2 and k 1 are the power of the two basic lasers, k z is the power of the target laser calculated by interpolation,
Figure GDA0002644973860000072
The spot texture map of the target laser calculated for the interpolation,
Figure GDA0002644973860000073
Spot texture map for the two base lasers.

优选地,所述光斑纹理图包括高能量的光斑纹理和较小能量的光斑纹理;其中,计算目标激光的光斑内部的能量信息时,对所述高能量的光斑纹理和较小能量的光斑纹理都进行插值处理;计算目标激光的光斑外部能量信息时,对所述高能量的光斑纹理进行插值处理。Preferably, the light spot texture map includes a high-energy light spot texture and a low-energy light spot texture; wherein, when calculating the energy information inside the light spot of the target laser, the high-energy light spot texture and the low-energy light spot texture Interpolation processing is performed on all of them; when calculating the external energy information of the target laser light spot, interpolation processing is performed on the high-energy light spot texture.

优选地,步骤S15可以包括:Preferably, step S15 may include:

S151、在三维仿真软件中,利用公告板(Billboard)技术,提取所述目标激光的光斑纹理图做Billboard图元;S151. In the three-dimensional simulation software, use the billboard technology to extract the light spot texture map of the target laser as a Billboard primitive;

S152、利用图形编程语言,如Cg(C for Graphics)将所述目标激光的光斑纹理图写入材质脚本的纹理单元中;S152, using a graphics programming language, such as Cg (C for Graphics), to write the spot texture map of the target laser into the texture unit of the material script;

S153、通过GPU解析所述目标激光的光斑纹理图,并将所述目标激光的光斑纹理载入显存中执行以终得到GPU动态仿真结果。S153: Analyze the spot texture map of the target laser through the GPU, and load the spot texture of the target laser into the video memory for execution to finally obtain a GPU dynamic simulation result.

本发明通过根据实测图像对理论建模生成的激光光斑进行了纹理的优化,并以其为基础进行插值计算,使其具备更高的真实感和灵活性。The invention optimizes the texture of the laser spot generated by theoretical modeling according to the measured image, and performs interpolation calculation on the basis of the measured image, so that it has higher realism and flexibility.

实施例二Embodiment 2

请参见图2,图2为本发明实施例二提供的一种基于实测图像的激光干扰效应仿真方法流程图。该流程包括:Please refer to FIG. 2. FIG. 2 is a flowchart of a method for simulating a laser interference effect based on a measured image according to Embodiment 2 of the present invention. The process includes:

S21、获取一组实拍激光光斑图像;S21. Obtain a set of real-shot laser spot images;

S22、根据阈值分割技术,通过设定适当的阈值,提取出实拍图中的激光光斑的能量信息;S22, according to the threshold segmentation technology, by setting an appropriate threshold, extract the energy information of the laser spot in the real shot image;

S23、根据能量信息在软仿真件中生成一组特定功率的基础光斑纹理图,并将纹理图保存成一定的格式;S23. Generate a set of basic light spot texture maps with a specific power in the software simulation software according to the energy information, and save the texture maps in a certain format;

其中,基础光斑纹理图不小于两个。Among them, the basic light spot texture map is not less than two.

S24、利用线性插值法得到目标功率的光斑纹理;S24, using the linear interpolation method to obtain the light spot texture of the target power;

具体地,插值处理的公式见实施例一中公式1.1。Specifically, the formula for interpolation processing is shown in formula 1.1 in the first embodiment.

其中,在进行插值计算光斑的纹理时,光斑的纹理由两部分组成,即高能量的光斑纹理和较小能量的光斑纹理,因此计算光斑内部能量时,对两者都插值,在光斑外部只计算高能量部分,这样有利于节省计算时间。Among them, when calculating the texture of the light spot by interpolation, the texture of the light spot consists of two parts, that is, the high-energy light spot texture and the light spot texture with lower energy. Therefore, when calculating the internal energy of the light spot, both are interpolated, and only outside the light spot Calculate the high-energy part, which is beneficial to save calculation time.

S25、利用公告板(Billboard)技术,提取光斑纹理做Billboard图元;S25, using the Billboard technology to extract the light spot texture to make Billboard primitives;

S26、并利用图形编程语言Cg(C for Graphics)将步骤S25中获得的纹理写入材质脚本的纹理单元中;S26, and utilize the graphics programming language Cg (C for Graphics) to write the texture obtained in step S25 into the texture unit of the material script;

其中,激光与探测器之间成像距离的改变,造成的激光能量大小变化较小,成像面受到的激光照射能量变化不大,因此在动态仿真时可以不用关心光斑能量的变化,即可认为光斑纹理不变。Among them, the change of the imaging distance between the laser and the detector causes a small change in the size of the laser energy, and the laser irradiation energy received by the imaging surface does not change much. Therefore, in the dynamic simulation, it is not necessary to care about the change of the spot energy, and it can be considered that the spot Texture does not change.

S27、结合三维仿真软件,通过可编程图形处理单元GPU对于材质脚本的解析,并将其载入显存中执行,对于最终得到GPU动态仿真结果。S27. Combined with the three-dimensional simulation software, the programmable graphics processing unit GPU parses the material script, and loads it into the video memory for execution, and finally obtains the GPU dynamic simulation result.

本发明根据实拍的激光光斑,利用其真实的外观进行加工,得到它的模型,并以其为基础进行插值计算到不同条件下的光斑模型,加载到Billboard中,利用图形编程语言Cg语言写入材质脚本中,利用GPU的高效并行计算和高性能图形渲染的优点,应用在动态仿真场景中,提高仿真场景的真实感。According to the real-shot laser light spot, the present invention uses its real appearance to process to obtain its model, and based on it, performs interpolation calculation to the light spot model under different conditions, loads it into Billboard, and uses the graphic programming language Cg language to write Into the material script, using the advantages of the GPU's efficient parallel computing and high-performance graphics rendering, it is applied in the dynamic simulation scene to improve the realism of the simulation scene.

实施例三Embodiment 3

为便于更清楚地理解,下面特举具体例子对本发明的一种基于实测图像的激光干扰效应仿真方法进行详细描述。To facilitate a clearer understanding, a method for simulating a laser interference effect based on a measured image of the present invention is described in detail below with specific examples.

具体地,请参见图3,图3为本发明实施例三提供的一种基于实测图像的激光干扰效应仿真方法流程逻辑图,该方法包括:Specifically, please refer to FIG. 3. FIG. 3 is a flow chart of a method for simulating a laser interference effect based on an actual measured image provided in Embodiment 3 of the present invention. The method includes:

步骤1,读入实拍激光光斑图像。Step 1, read in the real shot laser spot image.

获取实测图:通过真实激光入射探测器产生的激光光斑作为实测图。Obtain the measured image: The laser spot generated by the real laser incident detector is used as the measured image.

其中,激光光斑实测图由可见光CCD(Charge-coupledDevice,电荷耦合元件)拍摄得到;Among them, the measured laser spot image is captured by visible light CCD (Charge-coupled Device, charge-coupled device);

进一步地,请参见图4,图4为本发明实施例三提供的一种实拍激光光斑图像,包括:激光功率为1.1μW、3.5μW以及350μW时的激光光斑图像。其中,实拍激光光斑图像的分辨率均为512×512像素。Further, please refer to FIG. 4 . FIG. 4 is a real-shot laser spot image provided in Embodiment 3 of the present invention, including: laser spot images when the laser power is 1.1 μW, 3.5 μW, and 350 μW. Among them, the resolution of the actual laser spot image is 512 × 512 pixels.

步骤2,提取光斑的能量信息。Step 2, extracting the energy information of the light spot.

由于激光光斑在实拍图中属于高亮度(高灰度值)的点的集合,故可根据阈值分割技术,从0~255范围之间选择一个适当的阈值,提取出实拍图中的激光光斑的能量信息;Since the laser spot belongs to a collection of points with high brightness (high gray value) in the real shot, an appropriate threshold can be selected from the range of 0 to 255 according to the threshold segmentation technology to extract the laser in the real shot. The energy information of the spot;

进一步地,请参见图5,图5为本发明实施例三提供的一种根据能量信息生成的激光光斑纹理图,包括:激光功率为1.1μW、3.5μW以及350μW时的激光光斑纹理图。Further, please refer to FIG. 5 , which is a laser spot texture map generated according to energy information according to Embodiment 3 of the present invention, including: laser spot texture maps when the laser power is 1.1 μW, 3.5 μW, and 350 μW.

步骤3,保存光斑纹理图。Step 3, save the light spot texture map.

仿真支持PNG、JPEG、TGA、TITF和DDS几种图像的纹理。The emulation supports textures for several images of PNG, JPEG, TGA, TITF and DDS.

步骤4,判断仿真目标激光能量是否与实测图能量一致。Step 4: Determine whether the laser energy of the simulated target is consistent with the energy of the measured image.

步骤4.1,若仿真目标激光能量与实测图能量一致;则将该实物图转化为光斑纹理图;Step 4.1, if the laser energy of the simulated target is consistent with the energy of the measured image; then convert the physical image into a spot texture image;

步骤4.2,若仿真目标激光能量与实测图能量不一致;则利用线性插值计算法获得目标激光的光斑纹理图。Step 4.2, if the laser energy of the simulated target is inconsistent with the energy of the measured image; use the linear interpolation calculation method to obtain the spot texture map of the target laser.

具体地,插值处理的公式见实施例一中公式1.1。Specifically, the formula for interpolation processing is shown in formula 1.1 in the first embodiment.

优选地,利用公式1.1,选取功率值为2.6μW的激光,插值计算512×512像素的纹理图,请参见图6,图6为本发明实施例三提供的一种插值计算在2.6μW下的光斑纹理图。Preferably, using formula 1.1, a laser with a power value of 2.6 μW is selected, and a texture map of 512×512 pixels is calculated by interpolation. Please refer to FIG. 6 . FIG. 6 is an interpolation calculation provided by the third embodiment of the present invention. Spot texture map.

步骤5,利用Billboard技术,将目标激光的光斑纹理图添加至仿真场景,实现动态仿真。Step 5, using the Billboard technology, add the spot texture map of the target laser to the simulation scene to realize dynamic simulation.

步骤5.1,提取光斑纹理图做Billboard图元。Step 5.1, extract the light spot texture map to make Billboard primitives.

将提取到的光斑纹理图放到Billboard,在实时仿真时距离变化不大,光斑能量几乎没有改变,可以利用这个原理来实现动态的仿真。Put the extracted spot texture map on Billboard, the distance changes little during real-time simulation, and the spot energy hardly changes. This principle can be used to achieve dynamic simulation.

步骤5.2,生成纹理单元。Step 5.2, generate texture units.

利用图形编程语言Cg将步骤5获得的纹理写入材质脚本的纹理单元中。Use the graphics programming language Cg to write the texture obtained in step 5 into the texture unit of the material script.

步骤5.3,添加至仿真场景。Step 5.3, add to the simulation scene.

将激光干扰光斑的纹理加载到飞行器的飞行场景中实现动态仿真效果,请参见图7,图7为本发明实施例三提供的一种基于GPU的实拍激光干扰效应动态仿真图;The texture of the laser interference spot is loaded into the flight scene of the aircraft to achieve a dynamic simulation effect, please refer to FIG. 7 , which is a GPU-based real-shot laser interference effect dynamic simulation diagram provided by Embodiment 3 of the present invention;

进一步地,请参见图8,图8为本发明实施例三提供的一种基于GPU插值计算在2.6μW下的激光干扰效应动态仿真图。Further, please refer to FIG. 8 . FIG. 8 is a dynamic simulation diagram of a laser interference effect under 2.6 μW based on GPU interpolation calculation according to Embodiment 3 of the present invention.

本发明结合激光干扰效应的基本原理中激光光斑能量衰减小和利用实拍激光光斑图,提出一种基于GPU的激光干扰效应的动态仿真方法,不仅可以节约成本,为实验室实物提供结果预测,还可以验证激光干扰理论的准确性,为完善理论提供支持。本方法可以明显减弱理论计算时间长、激光光斑形态过理论化和实拍图像不能重现、不灵活(静态、姿态过固化)的缺点。In combination with the basic principle of the laser interference effect, the invention proposes a dynamic simulation method of the laser interference effect based on the low attenuation of the laser spot energy and the use of the real-shot laser spot diagram, which can not only save costs, but also provide result predictions for laboratory objects. It can also verify the accuracy of the laser interference theory and provide support for improving the theory. This method can significantly reduce the shortcomings of long theoretical calculation time, over-theoretical laser spot shape, unreproducible real-shot images, and inflexibility (static, over-cured posture).

综上所述,本文中应用了具体个例对本发明的原理和方法进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制,本发明的保护范围应以所附的权利要求为准。To sum up, the principles and methods of the present invention are described herein using specific examples, and the descriptions of the above embodiments are only used to help understand the methods and core ideas of the present invention; meanwhile, for those skilled in the art , according to the idea of the present invention, there will be changes in the specific implementation and application scope. To sum up, the content of this specification should not be construed as a limitation to the present invention, and the protection scope of the present invention should be determined by the appended rights. Requirements shall prevail.

Claims (9)

1.一种基于实测图像的激光干扰效应仿真方法,其特征在于,包括:1. a laser interference effect simulation method based on measured image, is characterized in that, comprises: S11、获取基础激光光斑图像;S11. Obtain a basic laser spot image; S12、提取所述基础激光光斑图像中激光光斑的能量信息;S12, extracting the energy information of the laser spot in the basic laser spot image; S13、根据所述能量信息生成基础激光的光斑纹理图;S13, generating a spot texture map of the basic laser according to the energy information; S14、根据所述基础激光的光斑纹理图计算目标激光的光斑纹理图;S14, calculating the spot texture map of the target laser according to the spot texture map of the basic laser; S15、写入并解析所述目标激光的光斑纹理图;S15, writing and parsing the spot texture map of the target laser; 其中,步骤S14中根据所述基础激光的光斑纹理图计算目标激光的光斑纹理图包括:Wherein, calculating the spot texture map of the target laser according to the spot texture map of the basic laser in step S14 includes: S141、根据所述目标激光的功率选取两个基础激光的光斑纹理图;S141, select the spot texture maps of the two basic lasers according to the power of the target laser; S142、对所述两个基础激光的光斑纹理图进行逐点插值处理,计算出所述目标激光的能量信息;S142, performing point-by-point interpolation processing on the spot texture maps of the two basic lasers to calculate the energy information of the target laser; S143、根据所述目标激光的能量信息生成所述目标激光的光斑纹理图;S143, generating a spot texture map of the target laser according to the energy information of the target laser; 具体地,根据所述目标激光的能量信息生成所述目标激光的光斑纹理图,包括:判断所述目标激光能量与基础激光光斑图像能量是否一致,若所述目标激光能量与基础激光光斑图像能量一致,则将所述基础激光光斑图像转化为光斑纹理图;若所述目标激光能量与基础激光光斑图像能量不一致,则利用线性插值计算法获得目标激光的光斑纹理图。Specifically, generating the spot texture map of the target laser according to the energy information of the target laser includes: judging whether the energy of the target laser is consistent with the energy of the basic laser spot image, if the energy of the target laser and the energy of the basic laser spot image are consistent If they are consistent, the basic laser spot image is converted into a spot texture map; if the target laser energy is inconsistent with the basic laser spot image energy, a linear interpolation calculation method is used to obtain the spot texture map of the target laser. 2.根据权利要求1所述的方法,其特征在于,所述基础激光光斑图像为一组特定功率的激光入射探测器产生的激光光斑图像。2 . The method according to claim 1 , wherein the basic laser spot image is a laser spot image generated by a group of laser incident detectors with a specific power. 3 . 3.根据权利要求2所述的方法,其特征在于,所述一组特定功率的激光包括两个或两个以上特定功率的激光。3 . The method according to claim 2 , wherein the group of lasers with specific powers comprises two or more lasers with specific powers. 4 . 4.根据权利要求1所述的方法,其特征在于,步骤S12中提取所述基础激光光斑图像中激光光斑的能量信息包括:根据阈值分割技术,从0~255范围之间选择适当的阈值,提取所述基础激光光斑图像中激光光斑的能量信息。4. The method according to claim 1, wherein extracting the energy information of the laser spot in the basic laser spot image in step S12 comprises: selecting an appropriate threshold from a range of 0 to 255 according to a threshold segmentation technique, Extract the energy information of the laser spot in the basic laser spot image. 5.根据权利要求1所述的方法,其特征在于,步骤S13中根据所述能量信息生成基础激光的光斑纹理图包括:根据所述能量信息生成一组特定功率的基础激光的光斑纹理图,并保存所述基础激光的光斑纹理图。5 . The method according to claim 1 , wherein generating the spot texture map of the basic laser according to the energy information in step S13 comprises: generating a group of spot texture maps of the basic laser with a specific power according to the energy information, 6 . And save the spot texture map of the basic laser. 6.根据权利要求5所述的方法,其特征在于,步骤S141中所述目标激光的功率介于所述两个基础激光的功率之间。6 . The method according to claim 5 , wherein the power of the target laser in step S141 is between the powers of the two basic lasers. 7 . 7.根据权利要求5所述的方法,其特征在于,步骤S142中所述逐点插值处理的公式为:7. The method according to claim 5, wherein the formula for the point-by-point interpolation processing in step S142 is:
Figure FDA0002592690990000021
Figure FDA0002592690990000021
其中,k2、k1为两个基础激光的功率,kz为插值计算的目标激光的功率,
Figure FDA0002592690990000022
为插值计算的目标激光的光斑纹理图,
Figure FDA0002592690990000023
为两个基础激光的光斑纹理图。
Among them, k 2 and k 1 are the power of the two basic lasers, k z is the power of the target laser calculated by interpolation,
Figure FDA0002592690990000022
The spot texture map of the target laser calculated for the interpolation,
Figure FDA0002592690990000023
Spot texture map for the two base lasers.
8.根据权利要求5所述的方法,其特征在于,所述光斑纹理图包括高能量的光斑纹理和较小能量的光斑纹理;其中,计算目标激光的光斑内部的能量信息时,对所述高能量的光斑纹理和较小能量的光斑纹理都进行插值处理;计算目标激光的光斑外部能量信息时,对所述高能量的光斑纹理进行插值处理。8. The method according to claim 5, wherein the light spot texture map includes a high-energy light spot texture and a low-energy light spot texture; wherein, when calculating the energy information inside the light spot of the target laser, the Both the high-energy light spot texture and the low-energy light spot texture are subjected to interpolation processing; when calculating the external energy information of the target laser light spot, the high-energy light spot texture is subjected to interpolation processing. 9.根据权利要求1所述的方法,其特征在于,步骤S15中写入并解析所述目标激光的光斑纹理图包括:9. The method according to claim 1, wherein writing and parsing the spot texture map of the target laser in step S15 comprises: S151、在三维仿真软件中,提取所述目标激光的光斑纹理图作为公告板图元;S151. In the three-dimensional simulation software, extract the light spot texture map of the target laser as a bulletin board primitive; S152、利用图形编程语言将所述目标激光的光斑纹理图写入材质脚本的纹理单元中;S152, using a graphic programming language to write the spot texture map of the target laser into the texture unit of the material script; S153、通过GPU解析所述目标激光的光斑纹理图,并将所述目标激光的光斑纹理图载入显存中执行以终得到GPU动态仿真结果。S153: Analyze the spot texture map of the target laser through the GPU, and load the spot texture map of the target laser into a video memory for execution to finally obtain a GPU dynamic simulation result.
CN201710576134.1A 2017-07-14 2017-07-14 Laser interference effect simulation method based on actual measurement image Active CN107507237B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710576134.1A CN107507237B (en) 2017-07-14 2017-07-14 Laser interference effect simulation method based on actual measurement image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710576134.1A CN107507237B (en) 2017-07-14 2017-07-14 Laser interference effect simulation method based on actual measurement image

Publications (2)

Publication Number Publication Date
CN107507237A CN107507237A (en) 2017-12-22
CN107507237B true CN107507237B (en) 2020-10-30

Family

ID=60679711

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710576134.1A Active CN107507237B (en) 2017-07-14 2017-07-14 Laser interference effect simulation method based on actual measurement image

Country Status (1)

Country Link
CN (1) CN107507237B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108269252A (en) * 2018-01-05 2018-07-10 西安电子科技大学 Laser irradiates the saturation crosstalk of TDI-CCD and side spot modeling and simulating method
CN116778051A (en) * 2023-06-14 2023-09-19 北京未尔锐创科技有限公司 A laser interference image simulation method, device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102236896A (en) * 2010-03-30 2011-11-09 株式会社尼康 Image processing method, computer-readable storage medium, image processing apparatus, and imaging apparatus
FR3004253A1 (en) * 2013-04-05 2014-10-10 Centre Nat Rech Scient HIGH SENSITIVITY WAVEFRONT MEASUREMENT METHOD AND CORRESPONDING MEASURER

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102236896A (en) * 2010-03-30 2011-11-09 株式会社尼康 Image processing method, computer-readable storage medium, image processing apparatus, and imaging apparatus
FR3004253A1 (en) * 2013-04-05 2014-10-10 Centre Nat Rech Scient HIGH SENSITIVITY WAVEFRONT MEASUREMENT METHOD AND CORRESPONDING MEASURER

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
实时无缝全景图像拼接技术研究与实现;刘超;《中国优秀硕士学位论文全文数据库(电子期刊)信息科技辑》;20110115;第33页第9段以及第34页第1段 *
面向红外场景仿真的遥感图像处理方法研究;郝燕云;《中国优秀硕士学位论文全文数据库(电子期刊)信息科技辑》;20170315;第11页第1段和第4段、第19页第1段、第47页第1段以及第53页第1段 *

Also Published As

Publication number Publication date
CN107507237A (en) 2017-12-22

Similar Documents

Publication Publication Date Title
US9704055B2 (en) Occlusion render mechanism for point clouds
CN103400003B (en) Based on GPU programming realization laser radar scene simulation method
CN108257204B (en) Vertex color drawing baking method and system applied to Unity engine
CN107330964B (en) Display method and system of complex three-dimensional object
CN108460841A (en) A kind of indoor scene light environment method of estimation based on single image
CN107093207A (en) A kind of dynamic and visual method of the natural gas leaking diffusion based on GPGPU
CN110706325B (en) Real-time dynamic rendering method and system for three-dimensional submarine environment
CN103279974A (en) High-accuracy high-resolution satellite imaging simulation engine and implementation method
CN107507237B (en) Laser interference effect simulation method based on actual measurement image
KR20180023856A (en) Graphics processing systems and graphics processors
CN109064556B (en) An ISR-Oriented Terrain High-precision Simulation Modeling System
CN103413346B (en) A kind of sense of reality fluid real-time reconstruction method and system thereof
CN114169264A (en) An infrared simulation method of ship wake
Ma et al. Reconstructing and simulating dynamic 3d objects with mesh-adsorbed gaussian splatting
CN110208764A (en) Dynamic sea large scene echo simulation method based on electromagnetism Scattering Calculation
CN111830810A (en) Method and device for generating computational hologram representing real illumination on voxels
CN105139433A (en) Method for simulating infrared small target image sequence based on mean value model
CN118587425A (en) Target detection method, system, storage medium and electronic device
Wang et al. Factorized point based global illumination
CN117456074A (en) Three-dimensional rendering method and equipment for offshore wind power scour pits based on digital twin simulation
CN114332364B (en) A 3D cloud scene modeling and visualization method based on ground-based cloud images
CN116645352A (en) Powder spraying defect detection method based on improved YOLOV7
Dong Application of Deep Learning Intelligent Laser Scanning Technology in Mural Digitization
CN110889889A (en) Oblique photography modeling data generation method applied to immersive display equipment
CN117745926B (en) Global illumination rendering method

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