CN107507237A - Laser interference effects emulation mode based on measuring image - Google Patents
Laser interference effects emulation mode based on measuring image Download PDFInfo
- Publication number
- CN107507237A CN107507237A CN201710576134.1A CN201710576134A CN107507237A CN 107507237 A CN107507237 A CN 107507237A CN 201710576134 A CN201710576134 A CN 201710576134A CN 107507237 A CN107507237 A CN 107507237A
- Authority
- CN
- China
- Prior art keywords
- laser
- msub
- hot spot
- basic
- mrow
- 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.)
- Granted
Links
- 230000000694 effects Effects 0.000 title claims abstract description 25
- 238000000034 method Methods 0.000 claims abstract description 34
- 238000004364 calculation method Methods 0.000 claims abstract description 16
- 238000005094 computer simulation Methods 0.000 claims description 17
- 238000012545 processing Methods 0.000 claims description 16
- 239000000284 extract Substances 0.000 claims description 7
- 239000000463 material Substances 0.000 claims description 7
- 238000000605 extraction Methods 0.000 claims 1
- 238000004088 simulation Methods 0.000 abstract description 10
- 238000003384 imaging method Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 238000011160 research Methods 0.000 description 5
- 230000011218 segmentation Effects 0.000 description 4
- 238000002474 experimental method Methods 0.000 description 3
- 238000005259 measurement Methods 0.000 description 3
- 230000007812 deficiency Effects 0.000 description 2
- 238000013459 approach Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000009533 lab test Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 230000005693 optoelectronics Effects 0.000 description 1
- 238000005293 physical law Methods 0.000 description 1
- 230000005855 radiation Effects 0.000 description 1
- 238000009877 rendering Methods 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/40—Analysis of texture
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T17/00—Three dimensional [3D] modelling, e.g. data description of 3D objects
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/40—Scaling of whole images or parts thereof, e.g. expanding or contracting
- G06T3/4007—Scaling of whole images or parts thereof, e.g. expanding or contracting based on interpolation, e.g. bilinear interpolation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/136—Segmentation; 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
本发明涉及一种基于实测图像的激光干扰效应仿真方法,该方法包括:获取基础激光光斑图像;提取所述基础激光光斑图像中激光光斑的能量信息;根据所述能量信息生成基础激光的光斑纹理图;根据所述基础激光的光斑纹理图计算目标激光的光斑纹理图;在仿真软件中写入并解析所述目标激光的光斑纹理图。本发明通过根据实测图像对理论建模生成的激光光斑进行了纹理的优化,并以其为基础进行插值计算,使其具备更高的真实感和灵活性。
The invention relates to a laser interference effect simulation method based on measured images, the method comprising: acquiring a basic laser spot image; extracting energy information of the laser spot in the basic laser spot image; generating a basic laser spot texture according to the energy information Fig. Calculating the spot texture map of the target laser according to the spot texture map of the basic laser; writing and analyzing 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 based on it, so that it has higher sense of reality and flexibility.
Description
技术领域technical field
本发明属于计算机仿真技术相关领域,特别涉及一种基于实测图像的激光干扰效应仿真方法。The invention belongs to the related field of computer simulation technology, in particular to a laser interference effect simulation method based on measured images.
背景技术Background technique
在光电对抗领域,激光武器利用高能激光对远距离的目标进行精确打击或用于防御导弹等的武器,具有其他武器不可比拟的优点。光电成像系统主要利用各类光电探测器,通过对观测区域进行高分辨率成像获取目标及场景的图像,提供给观察人员或图像处理系统对目标进行鉴别、测距及瞄准等应用。而激光因其具有的单色性、方向性及相干性等特性,对红外及可见光的光电成像系统在远距离也可以造成辐照干扰与损伤。激光干扰作为作用在探测器上的高能量光斑干扰,在现代光电对抗中越发受到关注。目前对于激光干扰效应的研究主要有两种方法:一种是利用激光干扰的成像原理进行理论计算;另一种在实物实验下,使用摄像机实拍获取激光光斑图像。In the field of photoelectric countermeasures, laser weapons use high-energy lasers to precisely strike long-distance targets or to defend against missiles, etc., which have incomparable advantages to other weapons. The photoelectric imaging system mainly uses various photoelectric detectors to obtain images of targets and scenes through high-resolution imaging of the observation area, and provides them to observers or image processing systems for target identification, ranging, and aiming applications. Due to its monochromaticity, directionality and coherence, laser can also cause irradiation interference and damage to infrared and visible light photoelectric imaging systems at long distances. As a high-energy spot interference acting on the detector, laser interference has attracted more and more attention in modern optoelectronic countermeasures. At present, there are mainly two methods for the research of laser interference effect: one is to use the imaging principle of laser interference to conduct theoretical calculations; the other is to use a camera to take real shots to obtain laser spot images under physical experiments.
利用理论计算得到激光光斑,当激光源在探测器的视场内时,激光辐射对探测器造成的干扰中,体现在图像上干扰的主要是饱和、串扰和过饱和现象。可以通过对物理现象的精细建模,得到符合物理规律的三维模型,得到一种预处理的,离线计算出的比较逼真的外观,但建立起来的关系和模型通常较为复杂,计算过于复杂,耗时过长,外观轮廓过于规则,与真实的光斑还存在差距,一般来说这样的外观模型很难支持实时计算以及仿真。The laser spot is obtained by theoretical calculation. When the laser source is in the field of view of the detector, among the interference caused by laser radiation to the detector, the interference on the image is mainly reflected in saturation, crosstalk and oversaturation. Through fine modeling of physical phenomena, a 3D model that conforms to physical laws can be obtained, and a preprocessed, more realistic appearance calculated off-line can be obtained, but the relationship and model established are usually complicated, and the calculation is too complicated. 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 laser interference effect and achieved a series of research results. In the research approach, the physical experiment is the main way, including the field test and the laboratory experiment. Through the physical experiment, the laser spot image and the real and detailed experimental data can be obtained. This method can compare the images before and after the interference, and can be very intuitive. Obtaining the performance changes of the imaging system before and after system interference has high reliability, but it is highly dependent on laboratory and experimental conditions, the image cannot be reproduced and is inflexible, and it is easy to damage or damage laboratory devices. high cost.
可以看出,利用理论计算和实验室实拍获取激光光斑图都存在不足。It can be seen that there are deficiencies in obtaining laser spot images by using theoretical calculations and laboratory real shots.
发明内容Contents of the invention
因此,为解决现有技术存在的技术缺陷和不足,本发明提出一种基于实测图像的激光干扰效应仿真方法。Therefore, in order to solve the technical defects and deficiencies existing in the prior art, the present invention proposes a laser interference effect simulation method based on measured images.
具体地,本发明一个实施例提出的一种基于实测图像的激光干扰效应仿真方法,包括:Specifically, an embodiment of the present invention proposes a laser interference effect simulation method based on measured images, including:
S11、获取基础激光光斑图像;S11. Acquiring a basic laser spot image;
S12、提取所述基础激光光斑图像中激光光斑的能量信息;S12. Extract energy information of the laser spot in the basic laser spot image;
S13、根据所述能量信息生成基础激光的光斑纹理图;S13. Generate a spot texture map of the basic laser according to the energy information;
S14、根据所述基础激光的光斑纹理图计算目标激光的光斑纹理图;S14. Calculate the spot texture map of the target laser according to the spot texture map of the basic laser;
S15、写入并解析所述目标激光的光斑纹理图。S15. Writing and analyzing the spot texture map of the target laser.
其中,所述基础激光光斑图像为一组特定功率的激光入射探测器产生的激光光斑图像。Wherein, the basic laser spot image is a laser spot image generated by a group of laser incident detectors with specific power.
在本发明的一个实施例中,所述一组特定功率的激光包括两个或两个以上特定功率的激光。In one embodiment of the present invention, the set of lasers with specific power includes two or more lasers with specific power.
在本发明的一个实施例中,步骤S12中提取所述基础激光光斑图像中激光光斑的能量信息包括:根据阈值分割技术,从0~255范围之间选择适当的阈值,提取所述基础激光光斑图像中激光光斑的能量信息。In one 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 the range of 0 to 255 according to threshold segmentation technology, and extracting the basic laser spot Energy information of the laser spot in the image.
在本发明的一个实施例中,步骤S13中根据所述能量信息生成基础激光的光斑纹理图包括:根据所述能量信息生成一组特定功率的基础激光的光斑纹理图,并保存所述基础激光的光斑纹理图。In one embodiment of the present invention, generating the spot texture map of the basic laser according to the energy information in step S13 includes: generating a set of spot texture maps of the basic laser with a specific power according to the energy information, and saving the basic laser speckle texture map.
在本发明的一个实施例中,步骤S14中根据所述基础激光的光斑纹理图计算所述目标激光的光斑纹理包括:In one embodiment of the present invention, calculating the spot texture 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 two basic lasers according to the power of the target laser;
S142、对所述两个基础激光的光斑纹理图进行逐点插值处理,计算出所述目标激光的能量信息;S142. Perform point-by-point interpolation processing on the spot texture maps of the two basic lasers to calculate 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 one embodiment of the present invention, the formula of point-by-point interpolation processing described in step S142 is:
其中,k2、k1为两个基础激光的功率,kz为插值计算的目标激光的功率,为插值计算的目标激光的光斑纹理图,为两个基础激光的光斑纹理图。Among them, k 2 and k 1 are the powers of the two basic lasers, k z is the power of the target laser calculated by interpolation, Spot texture map of target laser calculated for interpolation, Spot texture maps for two basic lasers.
在本发明的一个实施例中,所述光斑纹理图包括高能量的光斑纹理和较小能量的光斑纹理;其中,计算目标激光的光斑内部的能量信息时,对所述高能量的光斑纹理和较小能量的光斑纹理都进行插值处理;计算目标激光的光斑外部能量信息时,对所述高能量的光斑纹理进行插值处理。In an embodiment of the present invention, the spot texture map includes a high-energy spot texture and a small-energy spot texture; wherein, when calculating the energy information inside the spot of the target laser, the high-energy spot texture and the All light spot textures with smaller energy are subjected to interpolation processing; when calculating the external energy information of the light spot of the target laser, interpolation processing is performed on the high-energy light spot texture.
在本发明的一个实施例中,步骤S15中写入并解析所述目标激光的光斑纹理图包括:In one embodiment of the present invention, writing and analyzing the spot texture map of the target laser in step S15 includes:
S151、在三维仿真软件中,提取所述目标激光的光斑纹理图作为公告板图元;S151. In the three-dimensional simulation software, extract the spot texture map of the target laser as the bulletin board graphic element;
S152、利用图形编程语言将所述目标激光的光斑纹理图写入材质脚本的纹理单元中;S152. Write the spot texture map of the target laser into the texture unit of the material script by using a graphics programming language;
S153、通过GPU解析所述目标激光的光斑纹理图,并将所述目标激光的光斑纹理载入显存中执行以终得到GPU动态仿真结果。S153. Analyze the speckle texture map of the target laser through the GPU, and load the speckle 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 possesses following advantage:
第一,由于本发明在基于GPU的激光干扰效应动态仿真时,使用的是一组实拍图像对纹理细节的恢复及相关纹理映射,且提取理论模型作为母版即基础激光的光斑纹理图,克服了人工设计或者理论计算十分耗时和在目标形状特征、细节程度方面都有着各种各样的缺点,使得本发明满足实际应用中实时及真实感等各方面的需要。First, because the present invention uses a group of real-shot images to restore texture details and related texture mapping during GPU-based dynamic simulation of laser interference effects, and extracts a 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 the target shape features and detail levels, so that the present invention meets the needs of real-time and realism in practical applications.
第二,由于本发明在基于GPU的激光干扰效应动态仿真时,用实拍激光光斑图像的纹理作为基础,克服了实拍光斑图不能重现和不灵活的缺点和实验获取实拍图条件苛刻和成本高,使得本发明可以应用于各种功率下激光干扰效应动态仿真。Second, because the present invention uses the texture of the real-shot laser spot image as the basis during the dynamic simulation of the laser interference effect based on the GPU, it overcomes the shortcomings that the real-shot spot image cannot be reproduced and is inflexible and the 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 more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For Those of ordinary skill in the art can also obtain other drawings based on these drawings without making creative efforts.
通过以下参考附图的详细说明,本发明的其它方面和特征变得明显。但是应当知道,该附图仅仅为解释的目的设计,而不是作为本发明的范围的限定,这是因为其应当参考附加的权利要求。还应当知道,除非另外指出,不必要依比例绘制附图,它们仅仅力图概念地说明此处描述的结构和流程。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 purposes of illustration only and not as a limitation of the scope of the invention since reference should be made to the appended claims. It should also be understood that, unless otherwise indicated, the drawings are not necessarily drawn to scale and are merely intended to conceptually illustrate the structures and processes described herein.
图1为本发明实施例一提供的一种基于实测图像的激光干扰效应仿真方法流程示意图;Fig. 1 is a schematic flowchart of a method for simulating laser interference effects based on measured images provided by Embodiment 1 of the present invention;
图2为本发明实施例二提供的一种基于实测图像的激光干扰效应仿真方法流程图;FIG. 2 is a flow chart of a method for simulating laser interference effects based on measured images provided in Embodiment 2 of the present invention;
图3为本发明实施例三提供的一种基于实测图像的激光干扰效应仿真方法流程逻辑图;FIG. 3 is a flow logic diagram of a method for simulating laser interference effects based on measured images provided by Embodiment 3 of the present invention;
图4为本发明实施例三提供的一种实拍激光光斑图像;FIG. 4 is a real shot laser spot image provided by Embodiment 3 of the present invention;
图5为本发明实施例三提供的一种根据能量信息生成的激光光斑纹理图;FIG. 5 is a laser spot texture map generated according to energy information provided by Embodiment 3 of the present invention;
图6为本发明实施例三提供的一种插值计算在2.6μW下的激光干扰纹理图;Fig. 6 is a laser interference texture map at 2.6 μW provided by an interpolation calculation provided by Embodiment 3 of the present invention;
图7为本发明实施例三提供的一种基于GPU的实拍激光干扰效应动态仿真图;FIG. 7 is a real-shot dynamic simulation diagram of laser interference effect based on GPU provided by Embodiment 3 of the present invention;
图8为本发明实施例三提供的一种基于GPU插值计算在2.6μW下的激光干扰效应动态仿真图。FIG. 8 is a dynamic simulation diagram of laser interference effect at 2.6 μW based on GPU interpolation calculation provided by Embodiment 3 of the present invention.
具体实施方式detailed description
为使本发明的上述目的、特征和优点能够更加明显易懂,下面结合附图对本发明的具体实施方式做详细的说明。In order to make the above objects, features and advantages of the present invention more comprehensible, specific implementations of the present invention will be described in detail below in conjunction with the accompanying drawings.
实施例一Embodiment one
请参见图1,图1为本发明实施例一提供的一种基于实测图像的激光干扰效应仿真方法流程示意图。该方法包括如下步骤:Please refer to FIG. 1 . FIG. 1 is a schematic flowchart of a method for simulating laser interference effects based on measured images according to Embodiment 1 of the present invention. The method comprises the steps of:
S11、获取基础激光光斑图像;S11. Acquiring a basic laser spot image;
S12、提取所述基础激光光斑图像中激光光斑的能量信息;S12. Extract energy information of the laser spot in the basic laser spot image;
S13、根据所述能量信息生成基础激光的光斑纹理图;S13. Generate a spot texture map of the basic laser according to the energy information;
S14、根据所述基础激光的光斑纹理图计算目标激光的光斑纹理图;S14. Calculate the spot texture map of the target laser according to the spot texture map of the basic laser;
S15、在仿真软件中写入并解析所述目标激光的光斑纹理图。S15. Writing and analyzing the 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 group of laser incident detectors with specific power.
具体地,所述一组特定功率的激光包括两个或两个以上特定功率的激光。Specifically, the set of lasers with specific power includes two or more lasers with specific power.
优选地,步骤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 the range of 0 to 255 according to threshold segmentation technology, 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 set 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 basic laser in step S14 may include:
S141、根据所述目标激光的功率选取两个基础激光的光斑纹理图;S141. Select the spot texture maps of two basic lasers according to the power of the target laser;
S142、对所述两个基础激光的光斑纹理图进行逐点插值处理,计算出所述目标激光的能量信息;S142. Perform point-by-point interpolation processing on the spot texture maps of the two basic lasers to calculate 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 of point-by-point interpolation processing described in step S142 is shown in formula 1.1:
公式1.1 Formula 1.1
其中,k2、k1为两个基础激光的功率,kz为插值计算的目标激光的功率,为插值计算的目标激光的光斑纹理图,为两个基础激光的光斑纹理图。Among them, k 2 and k 1 are the powers of the two basic lasers, k z is the power of the target laser calculated by interpolation, Spot texture map of target laser calculated for interpolation, Spot texture maps for two basic lasers.
优选地,所述光斑纹理图包括高能量的光斑纹理和较小能量的光斑纹理;其中,计算目标激光的光斑内部的能量信息时,对所述高能量的光斑纹理和较小能量的光斑纹理都进行插值处理;计算目标激光的光斑外部能量信息时,对所述高能量的光斑纹理进行插值处理。Preferably, 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 smaller-energy spot texture Both perform interpolation processing; when calculating the external energy information of the light spot of the target laser, 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 billboard (Billboard) technology to extract the spot texture map of the target laser as a Billboard graphic element;
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 speckle texture map of the target laser through the GPU, and load the speckle 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 based on it, so that it has a higher sense of reality and flexibility.
实施例二Embodiment two
请参见图2,图2为本发明实施例二提供的一种基于实测图像的激光干扰效应仿真方法流程图。该流程包括:Please refer to FIG. 2 . FIG. 2 is a flowchart of a method for simulating laser interference effects based on measured images according to Embodiment 2 of the present invention. The process includes:
S21、获取一组实拍激光光斑图像;S21. Obtain a group 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 picture;
S23、根据能量信息在软仿真件中生成一组特定功率的基础光斑纹理图,并将纹理图保存成一定的格式;S23. Generate a set of basic light spot texture maps of specific power in the software simulation software according to the energy information, and save the texture maps in a certain format;
其中,基础光斑纹理图不小于两个。Among them, there are no less than two basic light spot texture maps.
S24、利用线性插值法得到目标功率的光斑纹理;S24. Obtain the light spot texture of the target power by using a linear interpolation method;
具体地,插值处理的公式见实施例一中公式1.1。Specifically, for the formula of interpolation processing, see formula 1.1 in Embodiment 1.
其中,在进行插值计算光斑的纹理时,光斑的纹理由两部分组成,即高能量的光斑纹理和较小能量的光斑纹理,因此计算光斑内部能量时,对两者都插值,在光斑外部只计算高能量部分,这样有利于节省计算时间。Among them, when performing interpolation to calculate the texture of the spot, the texture of the spot is composed of two parts, namely, the high-energy spot texture and the small-energy spot texture, so when calculating the internal energy of the spot, both are interpolated, and only Calculate the high-energy part, which is beneficial to save calculation time.
S25、利用公告板(Billboard)技术,提取光斑纹理做Billboard图元;S25. Using billboard (Billboard) technology to extract light spot textures to make Billboard graphic elements;
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 in the texture unit of the material script;
其中,激光与探测器之间成像距离的改变,造成的激光能量大小变化较小,成像面受到的激光照射能量变化不大,因此在动态仿真时可以不用关心光斑能量的变化,即可认为光斑纹理不变。Among them, the change of the imaging distance between the laser and the detector will cause a small change in the laser energy, and the energy of the laser irradiation on the imaging surface will not change much. The texture is unchanged.
S27、结合三维仿真软件,通过可编程图形处理单元GPU对于材质脚本的解析,并将其载入显存中执行,对于最终得到GPU动态仿真结果。S27. Combining with the 3D simulation software, the programmable graphics processing unit GPU analyzes the material script, loads it into the video memory and executes it, and finally obtains a dynamic simulation result of the GPU.
本发明根据实拍的激光光斑,利用其真实的外观进行加工,得到它的模型,并以其为基础进行插值计算到不同条件下的光斑模型,加载到 Billboard中,利用图形编程语言Cg语言写入材质脚本中,利用GPU的高效并行计算和高性能图形渲染的优点,应用在动态仿真场景中,提高仿真场景的真实感。According to the real laser spot, the present invention uses its real appearance to process, obtains its model, and based on it, interpolates and calculates the spot model under different conditions, loads it into the Billboard, and uses the graphic programming language Cg language to write Into the material script, using the advantages of 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 three
为便于更清楚地理解,下面特举具体例子对本发明的一种基于实测图像的激光干扰效应仿真方法进行详细描述。For a clearer understanding, a specific example is given below to describe in detail a method for simulating laser interference effects based on measured images in the present invention.
具体地,请参见图3,图3为本发明实施例三提供的一种基于实测图像的激光干扰效应仿真方法流程逻辑图,该方法包括:Specifically, please refer to FIG. 3. FIG. 3 is a flow logic diagram of a method for simulating laser interference effects based on measured images provided by Embodiment 3 of the present invention. The method includes:
步骤1,读入实拍激光光斑图像。Step 1, read in the real laser spot image.
获取实测图:通过真实激光入射探测器产生的激光光斑作为实测图。Obtain the actual measurement map: the laser spot generated by the real laser incident detector is used as the actual measurement map.
其中,激光光斑实测图由可见光CCD(Charge-coupledDevice,电荷耦合元件)拍摄得到;Among them, the laser spot measurement map is obtained 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 by 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 real-shot laser spot images 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 picture, an appropriate threshold can be selected from the range of 0 to 255 according to the threshold segmentation technology to extract the laser light in the real picture. Energy information of the spot;
进一步地,请参见图5,图5为本发明实施例三提供的一种根据能量信息生成的激光光斑纹理图,包括:激光功率为1.1μW、3.5μW以及350μW 时的激光光斑纹理图。Further, please refer to FIG. 5 . FIG. 5 is a laser spot texture map generated according to energy information provided by 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 spot texture map.
仿真支持PNG、JPEG、TGA、TITF和DDS几种图像的纹理。The simulation supports textures of PNG, JPEG, TGA, TITF and DDS images.
步骤4,判断仿真目标激光能量是否与实测图能量。Step 4, judging whether the simulated target laser energy is the same as the actual measured image energy.
步骤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 an interference texture image;
步骤4.2,若仿真目标激光能量与实测图能量不一致;则利用线性插值计算法出目标激光的光斑纹理图。In step 4.2, if the energy of the simulated target laser 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, for the formula of interpolation processing, see formula 1.1 in Embodiment 1.
优选地,利用公式1.1,选取功率值为2.6μW的激光,插值计算512×512 像素的纹理图,请参见图6,图6为本发明实施例三提供的一种插值计算在 2.6μW下的激光干扰纹理图。Preferably, using Formula 1.1, select a laser with a power value of 2.6 μW, and interpolate and calculate a texture map of 512×512 pixels, please refer to Figure 6, Figure 6 is a kind of interpolation calculation under 2.6 μW provided by Embodiment 3 of the present invention Laser interference texture map.
步骤5,利用Billboard技术,将目标激光的光斑纹理图添加至仿真场景,实现动态仿真。Step 5: Using 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 the Billboard, the distance does not change much during real-time simulation, and the spot energy hardly changes. This principle can be used to realize 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 realize the dynamic simulation effect. Please refer to FIG. 7, which is a dynamic simulation diagram of a GPU-based real shot laser interference effect 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 laser interference effect under 2.6 μW based on GPU interpolation calculation provided by Embodiment 3 of the present invention.
本发明结合激光干扰效应的基本原理中激光光斑能量衰减小和利用实拍激光光斑图,提出一种基于GPU的激光干扰效应的动态仿真方法,不仅可以节约成本,为实验室实物提供结果预测,还可以验证激光干扰理论的准确性,为完善理论提供支持。本方法可以明显减弱理论计算时间长、激光光斑形态过理论化和实拍图像不能重现、不灵活(静态、姿态过固化) 的缺点。The present invention combines the small attenuation of laser spot energy in the basic principle of laser interference effect and the use of real-shot laser spot images to propose a dynamic simulation method for laser interference effects based on GPU, which can not only save costs, but also provide result prediction for laboratory objects. It can also verify the accuracy of the laser interference theory and provide support for perfecting the theory. This method can significantly reduce the shortcomings of long theoretical calculation time, over-theorized laser spot shape, unreproducible real-shot images, and inflexibility (static, over-fixed attitude).
综上所述,本文中应用了具体个例对本发明的原理和方法进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制,本发明的保护范围应以所附的权利要求为准。In summary, the principles and methods of the present invention have been described with specific examples in this paper, 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 of ordinary skill in the art According to the idea of the present invention, there will be changes in the specific implementation and scope of application. In summary, the content of this specification should not be understood as limiting the present invention, and the scope of protection of the present invention should be determined by the appended rights Requirements prevail.
Claims (10)
- A kind of 1. laser interference effects emulation mode based on measuring image, it is characterised in that including:S11, obtain basic laser light spot image;The energy information of laser facula in S12, the extraction basic laser light spot image;S13, the hot spot texture maps according to energy information generation basic laser;S14, the hot spot texture maps according to the hot spot texture maps of basic laser calculating target laser;S15, write-in and the hot spot texture maps for parsing the target laser.
- 2. according to the method for claim 1, it is characterised in that the basic laser light spot image is one group of certain power Representation of laser facula caused by laser light incident detector.
- 3. according to the method for claim 2, it is characterised in that the laser of one group of certain power includes two or two The laser of above certain power.
- 4. according to the method for claim 1, it is characterised in that extracted in step S12 in the basic laser light spot image The energy information of laser facula includes:According to Threshold sementation, from appropriate threshold value is selected between 0~255 scope, institute is extracted State the energy information of laser facula in basic laser light spot image.
- 5. according to the method for claim 1, it is characterised in that swashed in step S13 according to energy information generation basis The hot spot texture maps of light include:The hot spot texture maps of the basic laser of one group of certain power are generated according to the energy information, and Preserve the hot spot texture maps of the basic laser.
- 6. according to the method for claim 1, it is characterised in that according to the hot spot texture of the basic laser in step S14 The hot spot texture maps that figure calculates target laser include:S141, the hot spot texture maps according to the power of the target laser two basic lasers of selection;S142, the hot spot texture maps to described two basic lasers carry out point-by-point interpolation processing, calculate the target laser Energy information;S143, the hot spot texture maps according to the energy information of the target laser generation target laser.
- 7. according to the method for claim 6, it is characterised in that the power of target laser is between described described in step S141 Between the power of two basic lasers.
- 8. according to the method for claim 6, it is characterised in that point-by-point interpolation described in step S142 processing formula be:<mrow> <msub> <mi>L</mi> <msub> <mi>k</mi> <mi>z</mi> </msub> </msub> <mrow> <mo>(</mo> <mi>x</mi> <mo>,</mo> <mi>y</mi> <mo>)</mo> </mrow> <mo>=</mo> <mfrac> <mrow> <msub> <mi>k</mi> <mi>z</mi> </msub> <mo>-</mo> <msub> <mi>k</mi> <mn>1</mn> </msub> </mrow> <mrow> <msub> <mi>k</mi> <mn>2</mn> </msub> <mo>-</mo> <msub> <mi>k</mi> <mn>1</mn> </msub> </mrow> </mfrac> <msub> <mi>L</mi> <msub> <mi>k</mi> <mn>2</mn> </msub> </msub> <mrow> <mo>(</mo> <mi>x</mi> <mo>,</mo> <mi>y</mi> <mo>)</mo> </mrow> <mo>+</mo> <mfrac> <mrow> <msub> <mi>k</mi> <mn>2</mn> </msub> <mo>-</mo> <msub> <mi>k</mi> <mi>z</mi> </msub> </mrow> <mrow> <msub> <mi>k</mi> <mn>2</mn> </msub> <mo>-</mo> <msub> <mi>k</mi> <mn>1</mn> </msub> </mrow> </mfrac> <msub> <mi>L</mi> <msub> <mi>k</mi> <mn>1</mn> </msub> </msub> <mrow> <mo>(</mo> <mi>x</mi> <mo>,</mo> <mi>y</mi> <mo>)</mo> </mrow> </mrow>Wherein, k2、k1For the power of two basic lasers, kzFor the power of the target laser of interpolation calculation,For interpolation The hot spot texture maps of the target laser of calculating,For the hot spot texture maps of two basic lasers.
- 9. according to the method for claim 6, it is characterised in that the hot spot texture of hot spot texture maps including high-energy and The hot spot texture of smaller energy;Wherein, when calculating the energy information inside the hot spot of target laser, to the hot spot of the high-energy The hot spot texture of texture and smaller energy all carries out interpolation processing;When calculating the hot spot external energy information of target laser, to institute The hot spot texture for stating high-energy carries out interpolation processing.
- 10. according to the method for claim 1, it is characterised in that write in step S15 and parse the light of the target laser Spot texture maps include:S151, in three-dimensional artificial software, extract the hot spot texture maps of the target laser as bulletin board pel;S152, using graphical programming language the hot spot texture maps of the target laser are write in the texture cell of material script;S153, the hot spot texture maps for parsing by GPU the target laser, and the hot spot texture maps of the target laser are loaded into Performed in video memory to obtain GPU Dynamic Simulation Results eventually.
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 true CN107507237A (en) | 2017-12-22 |
CN107507237B 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) |
Cited By (2)
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)
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 |
-
2017
- 2017-07-14 CN CN201710576134.1A patent/CN107507237B/en active Active
Patent Citations (2)
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)
Title |
---|
刘超: "实时无缝全景图像拼接技术研究与实现", 《中国优秀硕士学位论文全文数据库(电子期刊)信息科技辑》 * |
郝燕云: "面向红外场景仿真的遥感图像处理方法研究", 《中国优秀硕士学位论文全文数据库(电子期刊)信息科技辑》 * |
Cited By (2)
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 |
Also Published As
Publication number | Publication date |
---|---|
CN107507237B (en) | 2020-10-30 |
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 | |
CN108932742B (en) | A real-time rendering method of large-scale infrared terrain scene based on remote sensing image classification | |
quan Li et al. | Construction and accuracy test of a 3D model of non-metric camera images using Agisoft PhotoScan | |
CN108460841A (en) | A kind of indoor scene light environment method of estimation based on single image | |
CN108257204B (en) | Vertex color drawing baking method and system applied to Unity engine | |
CN107093207A (en) | A kind of dynamic and visual method of the natural gas leaking diffusion based on GPGPU | |
CN103679802A (en) | Method for drawing surface of SPH (smoothed particle hydrodynamics) fluid in real time on basis of screen spaces | |
KR20180023856A (en) | Graphics processing systems and graphics processors | |
CN107507237B (en) | Laser interference effect simulation method based on actual measurement image | |
CN103413346B (en) | A kind of sense of reality fluid real-time reconstruction method and system thereof | |
Liu et al. | Creating simplified 3D models with high quality textures | |
Ma et al. | Reconstructing and simulating dynamic 3d objects with mesh-adsorbed gaussian splatting | |
CN103617593B (en) | The implementation method of three-dimensional fluid physic animation engine and device | |
CN111627100A (en) | Numerical simulation method for evaluating photogrammetry precision | |
CN105139433A (en) | Method for simulating infrared small target image sequence based on mean value model | |
Chen et al. | Large-Scale 3D Terrain Reconstruction Using 3D Gaussian Splatting for Visualization and Simulation | |
CN117456074A (en) | Three-dimensional rendering method and equipment for offshore wind power scour pits based on digital twin simulation | |
Li et al. | An occlusion detection algorithm for 3d texture reconstruction of multi-view images | |
CN116245989A (en) | Method and device for processing volume video, storage medium and computer equipment | |
CN110889889A (en) | Oblique photography modeling data generation method applied to immersive display equipment | |
Wang et al. | Dynamic simulation of noise in 3D infrared scene simulation | |
Dong | Application of Deep Learning Intelligent Laser Scanning Technology in Mural Digitization | |
Yu et al. | Den-SOFT: Dense Space-Oriented Light Field DataseT for 6-DOF Immersive Experience | |
KR102648938B1 (en) | Method and apparatus for 3D image reconstruction based on few-shot neural radiance fields using geometric consistency |
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 |