CN107092752A - A kind of optical camera simulation imaging method and system based on ray tracing - Google Patents

A kind of optical camera simulation imaging method and system based on ray tracing Download PDF

Info

Publication number
CN107092752A
CN107092752A CN201710271834.XA CN201710271834A CN107092752A CN 107092752 A CN107092752 A CN 107092752A CN 201710271834 A CN201710271834 A CN 201710271834A CN 107092752 A CN107092752 A CN 107092752A
Authority
CN
China
Prior art keywords
simulation
image
camera
imaging
ccd
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
Application number
CN201710271834.XA
Other languages
Chinese (zh)
Other versions
CN107092752B (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.)
Beijing Institute of Technology BIT
Original Assignee
Beijing Institute of Technology BIT
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 Beijing Institute of Technology BIT filed Critical Beijing Institute of Technology BIT
Priority to CN201710271834.XA priority Critical patent/CN107092752B/en
Publication of CN107092752A publication Critical patent/CN107092752A/en
Application granted granted Critical
Publication of CN107092752B publication Critical patent/CN107092752B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N25/00Circuitry of solid-state image sensors [SSIS]; Control thereof
    • H04N25/70SSIS architectures; Circuits associated therewith
    • H04N25/71Charge-coupled device [CCD] sensors; Charge-transfer registers specially adapted for CCD sensors

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Transforming Light Signals Into Electric Signals (AREA)
  • Image Processing (AREA)

Abstract

本发明提出了一种基于光线追迹的光学相机仿真成像方法和系统,方法包括:光学系统仿真和成像与光电系统仿真;光学系统仿真包括:光学系统建模、相机畸变建模仿真、相机弥散斑建模仿真和相机杂散光建模仿真;成像与光电系统仿真包括光谱响应分析模块、CCD光电转换建模仿真、模拟电路建模仿真和数模量化建模仿真。本发明综合考虑遥感相机光学系统及CCD成像系统对成像结果的影响因素,建立详细完整的遥感相机参数数据库,使仿真图像与真实图像有更高的贴近度,具有较高地仿真精度。

The present invention proposes an optical camera simulation imaging method and system based on ray tracing, the method includes: optical system simulation and imaging and photoelectric system simulation; optical system simulation includes: optical system modeling, camera distortion modeling simulation, camera dispersion Spot modeling and simulation and camera stray light modeling and simulation; imaging and photoelectric system simulation includes spectral response analysis module, CCD photoelectric conversion modeling and simulation, analog circuit modeling and simulation, and digital-analog quantization modeling and simulation. The invention comprehensively considers the influence factors of the remote sensing camera optical system and the CCD imaging system on the imaging result, establishes a detailed and complete remote sensing camera parameter database, makes the simulation image and the real image have a higher degree of closeness, and has higher simulation accuracy.

Description

一种基于光线追迹的光学相机仿真成像方法和系统A ray tracing-based optical camera simulation imaging method and system

技术领域technical field

本发明涉及光学系统仿真成像技术领域,更具体地,涉及一种基于光线追迹的光学相机的建模仿真成像方法和系统。The present invention relates to the technical field of optical system simulation imaging, and more particularly, to a modeling and simulation imaging method and system of an optical camera based on ray tracing.

背景技术Background technique

卫星遥感成像技术是遥感领域中的一个重要技术,在军事和国民经济领域应用极其广泛,如军事侦察、导弹预警、环境监测、资源调查等。卫星遥感成像技术的研究和发展在民用和军事领域都有强烈的需求和应用背景。光学系统作为遥感卫星的重要组成部分,通过对遥感卫星光学系统进行仿真,可以在卫星设计之初,通过建立可信度高、科学完善的成像仿真系统,并将向着高精度、高性能和高扩展性方向发展。Satellite remote sensing imaging technology is an important technology in the field of remote sensing, and it is widely used in military and national economic fields, such as military reconnaissance, missile early warning, environmental monitoring, resource investigation, etc. The research and development of satellite remote sensing imaging technology has a strong demand and application background in both civilian and military fields. As an important part of the remote sensing satellite, the optical system can simulate the optical system of the remote sensing satellite. At the beginning of the satellite design, a reliable and scientific imaging simulation system can be established, and it will move towards high precision, high performance and high Development in the direction of expansion.

为了获得完整、仿真精度高的卫星仿真系统,需要依次对仿真系统的不同环节进行相应的仿真,深入针对成像仿真体系的各个环节影响因素进行分析,并由此建立科学完善、精确度高的仿真模型。In order to obtain a complete satellite simulation system with high simulation accuracy, it is necessary to perform corresponding simulations on different links of the simulation system in turn, analyze the influencing factors of each link of the imaging simulation system in depth, and establish a scientific and perfect simulation with high accuracy. Model.

传统的光学系统成像仿真成像方法是基于调制传递函数MTF与线扩展函数LSF、点扩散函数PSF之间的相互转化关系,通过光学系统MTF计算其二维PSF矩阵,通过对图像进行二维PSF矩阵退化处理,得到仿真图像。The traditional optical system imaging simulation imaging method is based on the mutual conversion relationship between the modulation transfer function MTF, the line spread function LSF, and the point spread function PSF. The two-dimensional PSF matrix is calculated through the optical system MTF. Degradation processing to obtain a simulated image.

但是MTF与PSF描述的是CCD(电荷耦合元件)成像的频率或者空间响应特性,然而在成像过程中,还存在着辐射响应特性,例如探测器的响应度、非均匀性等,仅仅使用MTF或者PSF的描述方式是不完整的。因此,传统的基于MTF或者PSF的仿真成像方法并不能实现对遥感相机光电转换系统进行全面、系统的仿真。However, MTF and PSF describe the frequency or spatial response characteristics of CCD (charge-coupled device) imaging. However, in the imaging process, there are also radiation response characteristics, such as the responsivity and non-uniformity of the detector. Only use MTF or The way PSF is described is incomplete. Therefore, the traditional simulation imaging methods based on MTF or PSF cannot realize comprehensive and systematic simulation of the photoelectric conversion system of remote sensing cameras.

因此,提供一种基于光线追迹的光学相机仿真成像方法和系统,结合光线追迹的物理机制及建模仿真,得到高精度的退化仿真图像,为科研领域提供最真实的遥感数据。Therefore, an optical camera simulation imaging method and system based on ray tracing is provided, combined with the physical mechanism of ray tracing and modeling simulation, to obtain high-precision degradation simulation images, and provide the most realistic remote sensing data for the scientific research field.

发明内容Contents of the invention

有鉴于此,本发明提供了一种基于光线追迹的光学相机仿真成像方法和系统,在考虑光学系统像差、CCD传感器影响的基础上,得到退化仿真图像,实现对遥感相机光学系统及成像系统的仿真。In view of this, the present invention provides an optical camera simulation imaging method and system based on ray tracing. On the basis of considering the optical system aberration and the influence of the CCD sensor, the degradation simulation image is obtained, and the remote sensing camera optical system and imaging are realized. Simulation of the system.

为了解决上述技术问题,本发明提出一种基于光线追迹的光学相机仿真成像方法,包括:光学系统仿真和成像与光电系统仿真;光学系统仿真在基于光线追迹光学系统建模的基础上,实现光学系统建模计算,其中,光学系统仿真包括:光学系统建模:根据光学系统的设计参数,在光学设计软件中建立光学系统模型,得到光学系统文件;相机畸变建模仿真:通过光学系统文件,结合CCD图像位置,建立相机畸变参数,并将相机入瞳辐亮度图像作为输入,经过畸变模型退化后,获得像面上的畸变图像;相机弥散斑建模仿真:通过对光学系统的光线追迹,结合光学系统文件,获取入瞳面上各个视场上物点在成像面上的弥散斑情况,得到弥散斑矩阵,对像面上的畸变图像进行弥散退化处理,获得像面上的弥散斑图像;相机杂散光建模仿真:借助杂散光仿真分析软件进行光线追迹,仿真不同视场下光学系统对杂散光的抑制情况,得到杂散光辐照度分布数据,对像面上的弥散斑图像进行杂散退化处理,获得像面上的杂散光辐照度图像;成像与光电系统仿真用于对像面上的杂散辐照度图像进行退化处理,以获取成像图像。其中,成像与光电系统仿真包括:光谱响应分析模块:根据入瞳辐亮度图像的波段和CCD的光谱响应曲线,计算对应波段的响应度;CCD光电转换建模仿真:根据CCD的参数文件及电路参数文件,对像面上的杂散辐照度图像进行光电转换与积分成像仿真,获得CCD光电转换仿真图像;模拟电路建模仿真:根据设计电路中模拟电压信号经过电路器件后的响应数据,获得模拟电路仿真文件;并对CCD光电转换仿真图像进行退化处理,得到模拟电路仿真图像;数模量化建模仿真:通过数字图像文件对输入的模拟电路仿真图像进行退化处理,得到模数量化仿真图像,即为输出相机的数字图像。In order to solve the above technical problems, the present invention proposes a ray tracing-based optical camera simulation imaging method, including: optical system simulation and imaging and photoelectric system simulation; optical system simulation is based on ray tracing optical system modeling, Realize the optical system modeling calculation, wherein the optical system simulation includes: optical system modeling: according to the design parameters of the optical system, the optical system model is established in the optical design software, and the optical system file is obtained; the camera distortion modeling simulation: through the optical system The file, combined with the CCD image position, establishes the camera distortion parameters, and takes the camera entrance pupil radiance image as input, and obtains the distorted image on the image plane after the distortion model degenerates; the camera diffuse spot modeling simulation: through the light of the optical system Tracking, combined with the optical system file, obtains the diffuse spots of the object points on the imaging plane on the entrance pupil plane, obtains the diffuse spot matrix, and performs diffusion degradation processing on the distorted image on the image plane to obtain the Diffuse speckle images; camera stray light modeling and simulation: ray tracing with the help of stray light simulation analysis software, simulate the suppression of stray light by the optical system under different fields of view, and obtain the stray light irradiance distribution data. The diffuse spot image is degraded by stray light to obtain the stray light irradiance image on the image plane; the imaging and photoelectric system simulation is used to degrade the stray irradiance image on the image plane to obtain the imaging image. Among them, the imaging and photoelectric system simulation includes: spectral response analysis module: calculate the responsivity of the corresponding band according to the band of the entrance pupil radiance image and the spectral response curve of the CCD; CCD photoelectric conversion modeling and simulation: according to the parameter file and circuit of the CCD Parameter file, conduct photoelectric conversion and integral imaging simulation on the stray irradiance image on the image surface, and obtain CCD photoelectric conversion simulation image; analog circuit modeling and simulation: according to the response data of the analog voltage signal in the designed circuit after passing through the circuit device, Obtain the analog circuit simulation file; and degrade the CCD photoelectric conversion simulation image to obtain the analog circuit simulation image; digital-analog quantitative modeling simulation: degrade the input analog circuit simulation image through the digital image file to obtain the analog and quantitative simulation The image is the digital image output from the camera.

进一步地,相机畸变建模仿真的具体方法,包括:根据入瞳直径等数据,计算最小采样间隔;依据CCD图像上位置,确定采样区域,结合最小采样间隔,确定采样区域内的采样点;调用光学系统软件,输入采样点坐标数据,根据该采样点的理想像高和实际像高确定该采样点的畸变值,根据各采样点的畸变值建立畸变模型;将相机入瞳辐亮度图像作为输入,经过视场畸变模型退化后,完成相机畸变仿真。Further, the specific method of camera distortion modeling and simulation includes: calculating the minimum sampling interval according to the data such as the entrance pupil diameter; determining the sampling area according to the position on the CCD image, and determining the sampling points in the sampling area in combination with the minimum sampling interval; calling Optical system software, input the coordinate data of the sampling point, determine the distortion value of the sampling point according to the ideal image height and actual image height of the sampling point, and establish the distortion model according to the distortion value of each sampling point; the entrance pupil radiance image of the camera is used as input , after the field of view distortion model degenerates, the camera distortion simulation is completed.

进一步地,相机弥散斑建模仿真的具体方法,包括:通过输入CCD成像中采样点的参数,生成相机弥散斑建模仿真输入文件;根据相机弥散斑建模仿真文件参数,调用光学设计软件,追踪物点发出的光线在像面上的位置,获取入瞳面上各个视场上物点在成像面上的弥散斑情况,得出采样点上的点扩散函数;对每一选定点的点扩散函数,选取预定的抽样尺度进行细化统计,得到采样点以主光线为中心的弥散斑矩阵;对像面上的畸变图像与弥散班矩阵进行卷积运算,获得像面上的弥散斑图像。Further, the specific method for modeling and simulating camera speckles includes: generating a camera speckle modeling and simulation input file by inputting parameters of sampling points in CCD imaging; calling optical design software according to the parameters of the camera speckle modeling and simulation file, Track the position of the light emitted by the object point on the image plane, obtain the diffuse spots of the object point on the imaging plane on each field of view on the entrance pupil plane, and obtain the point spread function on the sampling point; for each selected point Point spread function, select a predetermined sampling scale for detailed statistics, and obtain the diffuse speckle matrix centered on the chief ray at the sampling point; perform convolution operation on the distorted image on the image plane and the diffuse class matrix to obtain the diffuse speckle on the image plane image.

进一步地,相机杂散光建模仿真的具体方法,包括:Further, specific methods for modeling and simulating camera stray light include:

将光学设计软件的光学系统文件导入光线模拟软件中,在不进行其他设置的情况下,进行光线追迹,得到无杂散光像面辐照度文件,获取成像光源像面辐照度数据EiImport the optical system file of the optical design software into the ray simulation software, and perform ray tracing without other settings to obtain the image plane irradiance file without stray light, and obtain the imaging light source image plane irradiance data E i ;

将光学设计软件的光学系统文件导入光线模拟软件中,完成光源建模设置然后进行光线追迹,得到杂散光像面辐照度文件,获取包含杂散光与成像光的像面辐照度数据EhImport the optical system file of the optical design software into the light simulation software, complete the light source modeling setting and then perform ray tracing to obtain the stray light image plane irradiance file, and obtain the image plane irradiance data E including stray light and imaging light h ;

将得到的包含杂散光与成像光的像面辐照度数据Eh,与成像光源像面辐照度数据Ei,矩阵相减可算得到像面杂散光辐照度分布数据EsThe obtained image plane irradiance data E h including stray light and imaging light is subtracted from the imaging light source image plane irradiance data E i , and the matrix subtraction can be calculated to obtain the image plane stray light irradiance distribution data E s :

Es=Eh-Ei E s =E h -E i

根据杂散光辐照度分布数据Es,计算像面杂散光相对辐照度数据ErAccording to the stray light irradiance distribution data E s , calculate the image plane stray light relative irradiance data E r :

Er[i,j]=Es[i,j]/StryMaxE r [i, j] = E s [i, j] / StryMax

式中,Er[i,j]与Es[i,j]分别代表像面某点的杂散光相对辐照度与杂散光辐照度数据;StryMax代表成像光源像面最大辐照度数据。In the formula, E r [i, j] and E s [i, j] respectively represent the relative irradiance of stray light and the data of stray light irradiance at a certain point on the image plane; StryMax represents the maximum irradiance data of the image plane of the imaging light source .

依据像面杂散光相对辐照度数据与像面上的弥散斑图像,得到像面上的杂散光辐照度图像EfAccording to the relative irradiance data of stray light on the image plane and the diffuse spot image on the image plane, the stray light irradiance image E f on the image plane is obtained;

Ef[i,j]=Eimg[i,j]+IMax·Er[i,j]E f [i,j]=E img [i,j]+IMax E r [i,j]

式中,Eimg[i,j]代表弥散光图像在(i,j)点的灰度值;IMax代表图像最大灰度值。通过将杂散光辐照度数据叠加到弥散光图像中,实现了像面杂散光图像的仿真计算。In the formula, E img [i, j] represents the gray value of the diffuse light image at point (i, j); IMax represents the maximum gray value of the image. By superimposing the stray light irradiance data into the diffuse light image, the simulation calculation of the image plane stray light image is realized.

进一步地,CCD光电转换建模仿真的具体方法,包括:Further, the specific method of CCD photoelectric conversion modeling and simulation includes:

计算CCD各采样点在像面上杂散光辐照度图像上的坐标位置,确定采样像素的边界位置,重新划分图像像素;Calculate the coordinate position of each sampling point of the CCD on the stray light irradiance image on the image plane, determine the boundary position of the sampling pixel, and re-divide the image pixel;

通过杂散光辐照度数据及CCD占空比,计算CCD探元实际接收到的光照度:Calculate the illuminance actually received by the CCD detector through the stray light irradiance data and the CCD duty cycle:

Ereal=E×MSRE real = E × MSR

式中,MSR为CCD占空比,E为杂散光辐照度。In the formula, MSR is the CCD duty cycle, and E is the stray light irradiance.

计算每个波段λ对应的输出电压;Calculate the output voltage corresponding to each band λ;

则当曝光时间为时,单一波段对应的输出电压为:Then when the exposure time is , the output voltage corresponding to a single band is:

Vλ=Rλ×Ereal,λ×τV λ =R λ ×E real,λ ×τ

式中,Rλ为CCD响应度,τ为CCD积分时间,Eresl,λ为单一波段的电压值。In the formula, R λ is the CCD responsivity, τ is the CCD integration time, E resl, λ is the voltage value of a single band.

计算n个输入波段的输出电压:Compute the output voltage for n input bands:

计算探元图像亮度的不一致性;Calculate the inconsistency of the brightness of the detector image;

y[i]=k[i]×x[i]+b[i]y[i]=k[i]×x[i]+b[i]

其中,x[i]为第i个探元的输出电压值,y[i]为对应探元的输出,k[i]为第i个探元的不一致性响应系数;b[i]为第i个探元的不一致性偏置系数。Among them, x[i] is the output voltage value of the i-th probe, y[i] is the output of the corresponding probe, k[i] is the inconsistency response coefficient of the i-th probe; b[i] is the Inconsistency bias coefficient of i probes.

叠加噪声信号以获取真实输出电压信号;Superimpose the noise signal to obtain the real output voltage signal;

Vreal=V+Vnoise V real = V + V noise

式中,Vnoise为噪声电压。where V noise is the noise voltage.

根据CCD动态范围对单一探元输出电压的影响,保存CCD单一探元光电转换输出的电压图像文件VoutAccording to the influence of the dynamic range of the CCD on the output voltage of a single detector, the voltage image file V out of the photoelectric conversion output of the single detector of the CCD is saved.

输入像面上的杂散光辐照度图像,根据电压图像文件对杂散光辐照度图像进行退化处理,得到CCD光电转换仿真图像。The stray light irradiance image on the input image plane is degraded according to the voltage image file, and the CCD photoelectric conversion simulation image is obtained.

本发明还提出了一种基于光线追迹的光学相机仿真成像系统,包括:光学系统仿真单元和成像与光电系统仿真单元;其中,光学系统仿真单元包括:光学系统建模模块,用于在光学设计软件中建立光学系统模型,得到光学系统文件;相机畸变仿真模块,用于建立相机几何畸变参数,将相机入瞳辐亮度图像作为输入,经过畸变模型退化后,获得像面上的畸变图像;相机弥散斑仿真模块,用于计算入瞳面上各个视场上物点在成像面上的弥散斑情况,得到弥散斑矩阵,对像面上的畸变图像进行弥散退化处理,获得像面上的弥散斑图像;相机杂散光仿真模块,用于仿真不同视场下光学系统对杂散光的抑制情况,得到杂散光辐照度分布数据。对像面上的弥散斑图像进行杂散退化处理,获得像面上的杂散光辐照度图像。The present invention also proposes an optical camera simulation imaging system based on ray tracing, including: an optical system simulation unit and an imaging and photoelectric system simulation unit; wherein, the optical system simulation unit includes: an optical system modeling module for The optical system model is established in the design software, and the optical system file is obtained; the camera distortion simulation module is used to establish the geometric distortion parameters of the camera, and the entrance pupil radiance image of the camera is used as input, and the distorted image on the image plane is obtained after the distortion model is degraded; The camera speckle simulation module is used to calculate the speckle situation on the imaging surface of each object point on the entrance pupil plane, obtain the speckle matrix, and perform diffusion degradation processing on the distorted image on the image plane to obtain the speckle on the image plane. Diffuse spot image; camera stray light simulation module, used to simulate the suppression of stray light by the optical system under different fields of view, and obtain the stray light irradiance distribution data. The diffuse speckle image on the image plane is subjected to stray degradation processing, and the stray light irradiance image on the image plane is obtained.

进一步地,成像与光电系统仿真单元包括:光谱响应分析模块,用于根据入瞳辐亮度图像的波段和CCD的光谱响应曲线,计算对应波段的响应度;CCD光电转换仿真模块,用于建立CCD光电转换模型,根据CCD的参数文件及电路参数文件对杂散光辐照度图像进行光电转换与积分成像仿真,获得CCD光电转换仿真图像;模拟电路仿真模块,用于根据设计电路中模拟电压信号经过电路器件后的响应数据,获得模拟电路仿真文件;并对CCD光电转换仿真图像进行退化处理,得到模拟电路仿真图像;数模量化仿真模块,通过数字图像文件对输入的模拟电路仿真图像进行退化处理,得到模数量化仿真图像,即为输出相机的数字图像。Further, the imaging and optoelectronic system simulation unit includes: a spectral response analysis module, which is used to calculate the responsivity of the corresponding band according to the band of the entrance pupil radiance image and the spectral response curve of the CCD; the CCD photoelectric conversion simulation module is used to establish the CCD The photoelectric conversion model, according to the CCD parameter file and the circuit parameter file, performs photoelectric conversion and integral imaging simulation on the stray light irradiance image, and obtains the CCD photoelectric conversion simulation image; After the response data of the circuit device, the analog circuit simulation file is obtained; and the CCD photoelectric conversion simulation image is degraded to obtain the analog circuit simulation image; the digital-analog quantization simulation module degrades the input analog circuit simulation image through the digital image file , to obtain the analog and quantized simulation image, which is the digital image of the output camera.

与现有技术相比,本发明的基于光线追迹的光学相机仿真成像方法和系统,实现了如下的有益效果:Compared with the prior art, the ray tracing-based optical camera simulation imaging method and system of the present invention achieve the following beneficial effects:

(1)本发明所述基于光线追迹的光学相机仿真成像方法和系统,综合考虑遥感相机光学系统及CCD成像系统对成像结果的影响因素,建立详细完整的遥感相机参数数据库,使仿真图像与真实图像有更高的贴近度,具有较高地仿真精度。(1) The optical camera simulation imaging method and system based on ray tracing of the present invention comprehensively consider the influence factors of the remote sensing camera optical system and the CCD imaging system on the imaging results, and set up a detailed and complete remote sensing camera parameter database, so that the simulation image and The real image has a higher degree of closeness and a higher simulation accuracy.

(2)本发明所述基于光线追迹的光学相机仿真成像方法和系统,包含了相机光学系统畸变、弥散斑及杂散光的光学相机成像仿真方法,实现光学系统仿真模型计算;在实现基于光线追迹光学系统建模的基础上,设计精度自适应计算模型,在满足精度要求基础上,提高运算速度,实现短时间光学系统建模计算。(2) The optical camera simulation imaging method and system based on ray tracing of the present invention include the optical camera imaging simulation method of camera optical system distortion, diffuse spots and stray light, and realize the calculation of the optical system simulation model; On the basis of tracing the modeling of the optical system, the precision adaptive calculation model is designed, and on the basis of meeting the precision requirements, the calculation speed is improved, and the short-time optical system modeling calculation is realized.

(3)本发明所述基于光线追迹的光学相机仿真成像方法和系统,在详细的CCD相机设计参数的基础上对CCD相机成像过程中的各个子系统进行数学建模,在对各子系统建模的基础上,对整个遥感相机采用端到端的系统输入输出连接实现相机CCD成像系统的仿真,建立完备的仿真技术框架,对子系统建立准确模型。(3) The optical camera simulation imaging method and system based on ray tracing of the present invention carry out mathematical modeling to each subsystem in the CCD camera imaging process on the basis of detailed CCD camera design parameters, and each subsystem is On the basis of modeling, an end-to-end system input and output connection is used for the entire remote sensing camera to realize the simulation of the camera CCD imaging system, a complete simulation technical framework is established, and an accurate model is established for the subsystem.

当然,实施本发明的任一产品必不特定需要同时达到以上所述的所有技术效果。Of course, any product implementing the present invention does not necessarily need to achieve all the above-mentioned technical effects at the same time.

通过以下参照附图对本发明的示例性实施例的详细描述,本发明的其它特征及其优点将会变得清楚。Other features of the present invention and advantages thereof will become apparent from the following detailed description of exemplary embodiments of the present invention with reference to the accompanying drawings.

附图说明Description of drawings

被结合在说明书中并构成说明书的一部分的附图示出了本发明的实施例,并且连同其说明一起用于解释本发明的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention.

图1为本发明实施例所示基于光线追迹的光学相机仿真成像方法的流程示意图;Fig. 1 is a schematic flow chart of a simulation imaging method for an optical camera based on ray tracing shown in an embodiment of the present invention;

图2为本发明实施例所示相机畸变建模仿真方法的流程示意图;FIG. 2 is a schematic flowchart of a camera distortion modeling and simulation method shown in an embodiment of the present invention;

图3为本发明实施例所示相机杂散光建模仿真方法的流程示意图;FIG. 3 is a schematic flowchart of a modeling and simulation method for camera stray light shown in an embodiment of the present invention;

图4为本发明实施例所示CCD光电转换建模仿真方法的流程示意图;Fig. 4 is the schematic flow chart of CCD photoelectric conversion modeling simulation method shown in the embodiment of the present invention;

图5为本发明实施例所示基于光线追迹的光学相机仿真成像系统的构成图。FIG. 5 is a structural diagram of an optical camera simulation imaging system based on ray tracing shown in an embodiment of the present invention.

具体实施方式detailed description

现在将参照附图来详细描述本发明的各种示例性实施例。应注意到:除非另外具体说明,否则在这些实施例中阐述的部件和步骤的相对布置、数字表达式和数值不限制本发明的范围。Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangements of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention unless specifically stated otherwise.

以下对至少一个示例性实施例的描述实际上仅仅是说明性的,决不作为对本发明及其应用或使用的任何限制。The following description of at least one exemplary embodiment is merely illustrative in nature and in no way taken as limiting the invention, its application or uses.

对于相关领域普通技术人员已知的技术、方法和设备可能不作详细讨论,但在适当情况下,所述技术、方法和设备应当被视为说明书的一部分。Techniques, methods and devices known to those of ordinary skill in the relevant art may not be discussed in detail, but where appropriate, such techniques, methods and devices should be considered part of the description.

在这里示出和讨论的所有例子中,任何具体值应被解释为仅仅是示例性的,而不是作为限制。因此,示例性实施例的其它例子可以具有不同的值。In all examples shown and discussed herein, any specific values should be construed as exemplary only, and not as limitations. Therefore, other instances of the exemplary embodiment may have different values.

应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步讨论。It should be noted that like numerals and letters denote like items in the following figures, therefore, once an item is defined in one figure, it does not require further discussion in subsequent figures.

为了解决传统的光学系统成像仿真存在的问题,本发明提供了一种基于光线追迹的光学相机仿真成像方法和系统,建立针对遥感图像的高精度仿真系统,在考虑光学系统像差、CCD传感器影响的基础上,以光学系统入瞳辐亮度图像作为输入待仿真图像,依次通过各个模块仿真,得到退化仿真图像。以解决在现有光学相机建模的基础上,实现对遥感相机光学系统及光电转换系统的仿真。In order to solve the problems existing in traditional optical system imaging simulation, the present invention provides an optical camera simulation imaging method and system based on ray tracing, and establishes a high-precision simulation system for remote sensing images. Considering optical system aberration, CCD sensor On the basis of the impact, the entrance pupil radiance image of the optical system is used as the input image to be simulated, and the degradation simulation image is obtained through the simulation of each module in turn. Based on the existing optical camera modeling, the simulation of remote sensing camera optical system and photoelectric conversion system is realized.

图1为本发明实施例提供的一种基于光线追迹的光学相机仿真成像方法的流程示意图,该方法包括光学系统仿真和成像与光电系统仿真,其中光学系统仿真基于光线追迹光学系统建模的基础上,实现光学系统建模计算,包括如下步骤:Figure 1 is a schematic flowchart of a ray tracing-based optical camera simulation imaging method provided by an embodiment of the present invention, the method includes optical system simulation and imaging and optoelectronic system simulation, wherein the optical system simulation is based on ray tracing optical system modeling On the basis of , realize the modeling calculation of the optical system, including the following steps:

步骤101、光学系统建模:根据光学系统的设计参数,在光学设计软件中建立光学系统模型,得到光学系统文件;Step 101, optical system modeling: according to the design parameters of the optical system, the optical system model is established in the optical design software, and the optical system file is obtained;

根据光学系统的设计参数(如:镜面的材质与表面类型,焦距,曲率半径等)依次输入光学系统设计软件(如ZEMAX)的界面中,建立光学系统模型,得到理想的光学系统文件,用于后续的相机成像建模仿真。According to the design parameters of the optical system (such as: material and surface type of the mirror, focal length, radius of curvature, etc.), input them into the interface of the optical system design software (such as ZEMAX) in sequence, establish the optical system model, and obtain the ideal optical system file for use Subsequent camera imaging modeling simulation.

步骤102、相机畸变建模仿真:通过光学系统文件,结合CCD图像位置,建立相机畸变参数,并将相机入瞳辐亮度图像作为输入,经过畸变模型退化后,获得像面上的畸变图像;Step 102, camera distortion modeling and simulation: through the optical system file, combined with the CCD image position, establish camera distortion parameters, and use the camera entrance pupil radiance image as input, after the distortion model degenerates, obtain the distorted image on the image plane;

在实际光学系统中,当视场较大时,一对共轭面上的放大率就要随视场而异,这样就会使图像相对于实物失去相似性,这种使图像变形的缺陷称为畸变。In an actual optical system, when the field of view is large, the magnification of a pair of conjugate surfaces will vary with the field of view, which will cause the image to lose its similarity to the real object. This defect that deforms the image is called for distortion.

根据光学系统建模得到的光学系统文件,结合CCD在像面上的位置,建立相机几何畸变参数,并将相机入瞳辐亮度图像作为输入,经过畸变模型退化后,获得像面上的畸变图像。According to the optical system file obtained by the optical system modeling, combined with the position of the CCD on the image plane, the geometric distortion parameters of the camera are established, and the entrance pupil radiance image of the camera is used as input. After the distortion model is degraded, the distorted image on the image plane is obtained. .

在一些可选的实施例中,相机畸变建模仿真的具体方法如图2所示,包括如下步骤:In some optional embodiments, the specific method of camera distortion modeling and simulation is shown in Figure 2, including the following steps:

步骤201、根据入瞳直径等数据,计算最小采样间隔;Step 201, calculating the minimum sampling interval according to data such as the entrance pupil diameter;

根据入瞳直径及地面目标到卫星相机的距离,根据如下公式计算地面目标的成像分辨率:According to the diameter of the entrance pupil and the distance from the ground target to the satellite camera, the imaging resolution of the ground target is calculated according to the following formula:

其中,D为入瞳直径,H为地面目标到卫星相机的距离,由此可获得光学系统的理想成像,λ为相机成像中心波长。Among them, D is the diameter of the entrance pupil, H is the distance from the ground target to the satellite camera, so that the ideal imaging of the optical system can be obtained, and λ is the center wavelength of the camera imaging.

在光学系统输入成像分辨率,即可得到采样间隔;Input the imaging resolution in the optical system to get the sampling interval;

其中,f为相机焦距。Among them, f is the focal length of the camera.

步骤202、依据CCD图像上位置,选取采样区域,结合最小采样间隔,确定采样区域内的采样点;Step 202, select a sampling area according to the position on the CCD image, and determine the sampling points in the sampling area in combination with the minimum sampling interval;

其中,最小采样间隔是指相邻两个采样点之间的预设距离,该预设距离由卫星遥感相机的分辨率确定。Wherein, the minimum sampling interval refers to the preset distance between two adjacent sampling points, and the preset distance is determined by the resolution of the satellite remote sensing camera.

步骤203、调用ZEMAX光学系统软件,输入采样点坐标数据,根据该采样点的理想像高和实际像高确定该采样点的畸变值,根据各采样点的畸变值建立畸变模型;Step 203, call the ZEMAX optical system software, input the coordinate data of the sampling point, determine the distortion value of the sampling point according to the ideal image height and the actual image height of the sampling point, and establish the distortion model according to the distortion value of each sampling point;

步骤204、将相机入瞳辐亮度图像作为输入,经过畸变模型退化后,完成相机畸变仿真,获得像面上的畸变图像。Step 204: Taking the entrance pupil radiance image of the camera as input, after the distortion model is degraded, the camera distortion simulation is completed, and the distorted image on the image plane is obtained.

步骤103、相机弥散斑建模仿真:通过对光学系统的光线追迹,结合光学系统文件,计算入瞳面上各个视场上物点在成像面上的弥散斑情况,得到弥散斑矩阵,对像面上的畸变图像进行弥散退化处理,获得像面上的弥散斑图像;Step 103. Modeling and simulation of camera blur spots: by tracing the rays of the optical system and combining with the optical system files, calculate the diffuse spot conditions of the object points on the imaging plane in each field of view on the entrance pupil plane, and obtain the diffuse spot matrix. The distorted image on the image plane is processed by diffusion degeneration to obtain the image of diffuse spots on the image plane;

在光学系统中并不是只存在畸变像差,还要考虑由于球差、彗差等像差,导致物点在像面上的成像不再是一个汇聚点,而为弥散斑。因此,对于相机畸变以外的像差仿真,建立弥散斑模型。该模型可通过ZEMAX软件对光学系统的光线追迹来计算得出。具体仿真方式如下:In the optical system, there are not only distortion aberrations, but also due to aberrations such as spherical aberration and coma, the imaging of the object point on the image plane is no longer a convergent point, but a diffuse spot. Therefore, for the simulation of aberrations other than camera distortion, a speckle model is established. The model can be calculated by ZEMAX software by tracing the rays of the optical system. The specific simulation method is as follows:

通过输入CCD成像中采样点的参数,生成相机弥散建模仿真输入文件;根据相机弥散斑建模仿真文件参数,调用ZEMAX光学系统软件,根据光学系统的光线追迹理论,追踪物点发出的光线在像面上的位置,获取入瞳面上各个视场上物点在成像面上的弥散斑情况,得出采样点上的点扩散函数(PSF);By inputting the parameters of the sampling points in the CCD imaging, the camera dispersion modeling simulation input file is generated; according to the parameters of the camera dispersion spot modeling simulation file, the ZEMAX optical system software is invoked, and the light emitted by the object point is traced according to the ray tracing theory of the optical system. On the position on the image plane, obtain the diffuse spots of the object points on the imaging plane on each field of view on the entrance pupil plane, and obtain the point spread function (PSF) on the sampling point;

对每一选定点的点扩散函数,选取适当的抽样尺度进行细化统计,得到采样点以主光线为中心的弥散斑矩阵;For the point spread function of each selected point, select an appropriate sampling scale for detailed statistics, and obtain the diffuse speckle matrix centered on the chief ray at the sampling point;

对步骤102得到的像面上的畸变图像与弥散班矩阵进行卷积运算,获得像面上的弥散斑图像。A convolution operation is performed on the distorted image on the image surface obtained in step 102 and the diffusion spot matrix to obtain a diffusion spot image on the image surface.

步骤104、相机杂散光建模仿真:借助光线模拟软件(TracePro)进行光线追迹,仿真不同视场下光学系统对杂散光的抑制情况,得到杂散光辐照度分布数据,对像面上的弥散斑图像进行杂散退化处理,获得像面上的杂散光辐照度图像;Step 104, camera stray light modeling and simulation: use light simulation software (TracePro) to perform ray tracing, simulate the suppression of stray light by the optical system under different fields of view, obtain the stray light irradiance distribution data, and compare the The diffuse speckle image is subjected to stray degradation processing to obtain the stray light irradiance image on the image plane;

杂散光是指远离吸收光的其它波长的入射光,由于光源发出的光经过光学元件表面时会发生反射,从光学元件表面以及大气中的灰尘也可以发生散射,这些都会产生杂散光,从而影响成像的清晰度。Stray light refers to the incident light of other wavelengths away from the absorbed light. Since the light emitted by the light source will reflect when it passes through the surface of the optical element, it can also be scattered from the surface of the optical element and dust in the atmosphere, which will generate stray light, which will affect Image clarity.

根据杂散光仿真的需要,通过对光学系统结构以及遮光罩进行建模,采用一种基于光线追迹算法的TracePro模型的杂散光建模仿真,计算像面辐照度图像,使图像仿真精度大幅度提高。According to the needs of stray light simulation, by modeling the structure of the optical system and the hood, a stray light modeling and simulation based on the TracePro model based on the ray tracing algorithm is used to calculate the irradiance image of the image plane, so that the accuracy of the image simulation is high. increase in magnitude.

在一些可选的实施例中,相机杂散光建模仿真的具体方法如图3所示:In some optional embodiments, the specific method of modeling and simulating camera stray light is shown in Figure 3:

步骤301、将ZAMAX光学设计软件的光学系统文件导入TracePro软件中,在不进行其他设置的情况下,进行光线追迹,得到无杂散光像面辐照度文件,获取成像光源像面辐照度数据EiStep 301, import the optical system file of the ZAMAX optical design software into the TracePro software, perform ray tracing without other settings, obtain the image plane irradiance file without stray light, and obtain the image plane irradiance of the imaging light source Data E i .

步骤302、将ZAMAX光学设计软件的光学系统文件导入TracePro软件中,完成光源建模设置然后进行光线追迹,得到杂散光像面辐照度文件,获取包含杂散光与成像光的像面辐照度数据EiStep 302, import the optical system file of ZAMAX optical design software into TracePro software, complete the light source modeling setting and then perform ray tracing to obtain the stray light image plane irradiance file, and obtain the image plane irradiance including stray light and imaging light degree data E i ;

具体地,将ZAMAX光学设计软件的光学系统文件作为原始光学系统导入TracePro软件中,根据相机参数设置光路中镜面的材质与表面类型;按照仿真需要,添加镜筒,遮光罩等部件完善杂散光建模仿真模型;设置仿真光源类型,依据光学系统光路情况设置格点光源的半径及范围,输入光源入射方向参数,设置入射光源波长,完成光源建模设置。然后进行光线追迹,得到杂散光像面辐照度文件,即为包含杂散光与成像光的像面辐照度数据EhSpecifically, the optical system file of the ZAMAX optical design software is imported into the TracePro software as the original optical system, and the material and surface type of the mirror surface in the optical path are set according to the camera parameters; Simulate the real model; set the type of simulated light source, set the radius and range of the grid light source according to the optical system optical path, input the parameters of the incident direction of the light source, set the wavelength of the incident light source, and complete the light source modeling settings. Then ray tracing is performed to obtain the stray light image plane irradiance file, which is the image plane irradiance data E h including stray light and imaging light.

作为一个实施例,可以选择格点光源作为仿真光源。As an example, a grid point light source may be selected as the simulated light source.

步骤303、将得到的包含杂散光与成像光的像面辐照度数据Eh,与成像光源像面辐照度数据Ei,矩阵相减可算得到像面杂散光辐照度分布数据EsStep 303, matrix subtracting the obtained image plane irradiance data E h including stray light and imaging light from the imaging light source image plane irradiance data E i , can be calculated to obtain the image plane stray light irradiance distribution data E s ;

Es=Eh-Ei E s =E h -E i

步骤304、根据杂散光辐照度分布数据Es,计算像面杂散光相对辐照度数据ErStep 304. According to the stray light irradiance distribution data E s , calculate the image plane stray light relative irradiance data E r ;

Er[i,j]=Es[i,j]/StryMaxE r [i, j] = E s [i, j] / StryMax

式中,Er[i,j]与Es[i,j]分别代表像面上某点的杂散光相对辐照度与杂散光辐照度数据;StryMax代表成像光源像面最大辐照度数据。In the formula, E r [i,j] and E s [i,j] respectively represent the relative irradiance of stray light and the data of stray light irradiance at a certain point on the image plane; StryMax represents the maximum irradiance of the imaging light source on the image plane data.

步骤305、依据像面杂散光相对辐照度数据与像面上的弥散斑图像,得到像面上的杂散光辐照度图像EfStep 305. Obtain the stray light irradiance image E f on the image plane according to the relative irradiance data of stray light on the image plane and the diffuse spot image on the image plane;

Ef[i,j]=Eimg[i,j]+IMax·Er[i,j]E f [i,j]=E img [i,j]+IMax E r [i,j]

式中,Eimg[i,j]代表弥散光图像在(i,j)点的灰度值;IMax代表图像最大灰度值。通过将杂散光辐照度数据叠加到弥散光图像中,实现了像面杂散光图像的仿真计算。In the formula, E img [i, j] represents the gray value of the diffuse light image at point (i, j); IMax represents the maximum gray value of the image. By superimposing the stray light irradiance data into the diffuse light image, the simulation calculation of the image plane stray light image is realized.

成像与光电系统仿真用于对像面上的杂散光辐照度图像进行退化处理,以获取成像图像。其中,成像与光电系统仿真包括:Imaging and optoelectronic system simulation is used to degrade the stray light irradiance image on the image plane to obtain imaging images. Among them, imaging and optoelectronic system simulation includes:

步骤105、光谱响应分析模块:根据入瞳辐亮度图像的波段和CCD的光谱响应曲线,计算对应波段的响应度;Step 105, spectral response analysis module: calculate the responsivity of the corresponding band according to the band of the entrance pupil radiance image and the spectral response curve of the CCD;

根据入瞳辐亮度图像的波长,及CCD的光谱响应曲线,计算对应成像波段范围在λi~λj(i<j)的光谱响应度(Rλi),CCD光谱响应度为:According to the wavelength of the entrance pupil radiance image and the spectral response curve of the CCD, the spectral responsivity (R λi ) corresponding to the imaging band range of λ i ~ λ j (i<j) is calculated, and the spectral responsivity of the CCD is:

步骤106、CCD光电转换建模仿真:根据CCD的参数文件及电路参数文件,对杂散辐照度图像进行光电转换与积分成像仿真,获得CCD输出的电压仿真图像;Step 106, CCD photoelectric conversion modeling and simulation: according to the CCD parameter file and the circuit parameter file, perform photoelectric conversion and integral imaging simulation on the stray irradiance image, and obtain the voltage simulation image output by the CCD;

CCD的光电转换过程主要是把入射在光敏元上的光信号转换为电信号的过程。仿真退化计算CCD光电转换对图像信息的处理过程,主要考虑的因素包括CCD传感器的占空比、响应度、噪声、暗电流、CCD器件探元不一致性。The photoelectric conversion process of the CCD is mainly the process of converting the optical signal incident on the photosensitive element into an electrical signal. The main factors to be considered in the simulation degradation calculation process of image information processing by CCD photoelectric conversion include duty cycle, responsivity, noise, dark current, and inconsistency of CCD device probes.

在一些可选的实施例中,CCD光电转换建模仿真具体步骤如图4所示:In some optional embodiments, the specific steps of CCD photoelectric conversion modeling and simulation are as shown in Figure 4:

步骤401、计算CCD各采样点在杂散仿真图像上的坐标位置,确定采样像素的边界位置,重新划分图像像素。Step 401: Calculate the coordinate position of each sampling point of the CCD on the spurious simulation image, determine the boundary position of the sampling pixel, and re-divide the image pixels.

步骤402、通过杂散光辐照度数据及CCD占空比,计算CCD探元实际接收到的光照度;Step 402, calculate the illuminance actually received by the CCD detector through the stray light irradiance data and the CCD duty cycle;

Ereal=E×MSRE real = E × MSR

式中,MSR为CCD占空比,E为杂散光辐照度。In the formula, MSR is the CCD duty cycle, and E is the stray light irradiance.

步骤403、计算每个波段λ对应的输出电压;Step 403, calculating the output voltage corresponding to each band λ;

当曝光时间为τ时,则单一波段对应的输出电压为:When the exposure time is τ, the output voltage corresponding to a single band is:

Vλ=Rλ×Ereal,λ×τV λ =R λ ×E real,λ ×τ

式中,Rλ为CCD响应度,τ为CCD积分时间,Eresl,λ为单一波段的电压值。In the formula, R λ is the CCD responsivity, τ is the CCD integration time, E resl, λ is the voltage value of a single band.

步骤404、计算n个输入波段的输出电压;Step 404, calculating the output voltages of n input bands;

步骤405、计算探元图像亮度的不一致性;Step 405, calculating the inconsistency of the brightness of the detector image;

由于探元响应的不一致性,在均匀光照下,各探元产生不同的电荷,导致各探元的图像亮度不同。Due to the inconsistency of the detector response, under uniform illumination, each detector generates different charges, resulting in different image brightness of each detector.

y[i]=k[i]×x[i]+b[i]y[i]=k[i]×x[i]+b[i]

其中,x[i]为第i个探元的输出电压值,y[i]为对应探元的输出,k[i]为第i个探元的不一致性响应系数;b[i]为第i个探元的不一致性偏置系数。Among them, x[i] is the output voltage value of the i-th probe, y[i] is the output of the corresponding probe, k[i] is the inconsistency response coefficient of the i-th probe; b[i] is the Inconsistency bias coefficient of i probes.

在CCD器件手册中通常会给出PRNU(光响应不一致性)和FPN(固定图形噪声),其中FPN的主要成分就是b[i],而PRNU-FPN就是k[i]的分布强度,这两个参数的分布服从正态分布,标准差由FPN和PRNU两个参数确定。In the CCD device manual, PRNU (photoresponse inconsistency) and FPN (fixed pattern noise) are usually given, where the main component of FPN is b[i], and PRNU-FPN is the distribution intensity of k[i]. The distribution of each parameter obeys the normal distribution, and the standard deviation is determined by the two parameters of FPN and PRNU.

在本实施例中,k[i]和b[i]由探元非均匀性参数逐探元给出。In this embodiment, k[i] and b[i] are given probe by probe by the probe non-uniformity parameter.

在具体实施例中,探元响应的不一致性可采用线性函数来表征。In a specific embodiment, the inconsistency of the probe response can be characterized by a linear function.

步骤406、叠加噪声信号以获取真实输出电压信号;Step 406, superimposing the noise signal to obtain the real output voltage signal;

CCD在存储和转移信息电荷的过程中,都有噪声的叠加,影响信号的真实再现,因此真实输出电压信号为:In the process of storing and transferring information charges, CCD has superposition of noise, which affects the true reproduction of the signal, so the real output voltage signal is:

Vreal=V+Vnoise V real = V + V noise

式中,Vnoise为噪声电压。where V noise is the noise voltage.

步骤407、根据CCD动态范围对单一探元输出电压的影响,保存CCD单一探元光电转换输出的电压图像文件VoutStep 407 , according to the influence of the dynamic range of the CCD on the output voltage of the single detector, save the voltage image file V out output by the photoelectric conversion of the single detector of the CCD.

其中,Vdark current为暗电流,即CCD成像器件在既无光注入又无电注入情况下的输出信号。Wherein, V dark current is the dark current, that is, the output signal of the CCD imaging device under the condition of no light injection and no electricity injection.

Vsat为饱和输出电压,即入射到光敏元上的曝光量大于某一限度时器件输出的信号电压值,此时器件输出不再随曝光量的增加而变化。V sat is the saturation output voltage, that is, the signal voltage value output by the device when the exposure incident on the photosensitive element is greater than a certain limit, and the output of the device no longer changes with the increase of the exposure.

步骤408、输入像面上的杂散光辐照度图像,根据电压图像文件对杂散仿真图像进行退化处理,得到CCD光电转换仿真图像。Step 408 , input the stray light irradiance image on the image plane, perform degeneration processing on the stray simulation image according to the voltage image file, and obtain the CCD photoelectric conversion simulation image.

步骤107、模拟电路建模仿真:根据设计电路中模拟电压信号经过电路器件后的响应数据,获得模拟电路仿真文件;并对CCD光电转换仿真图像进行退化处理,得到模拟电路仿真图像;Step 107, analog circuit modeling and simulation: according to the response data of the analog voltage signal in the designed circuit after passing through the circuit device, the analog circuit simulation file is obtained; and the CCD photoelectric conversion simulation image is degraded to obtain the analog circuit simulation image;

模拟电路仿真就是仿真模拟电路各个环节对模拟电压信号的响应,根据电路的特性参数,仿真信号经过这些电路模块后的响应数据,包括:Analog circuit simulation is to simulate the response of each link of the analog circuit to the analog voltage signal. According to the characteristic parameters of the circuit, the response data of the simulated signal after passing through these circuit modules includes:

根据预放电路的放大倍数,对CCD传感器输出的模拟电压信号进行阻抗匹配和放大;According to the amplification factor of the pre-amplification circuit, the impedance matching and amplification of the analog voltage signal output by the CCD sensor are performed;

根据低通滤波器频率对预放电路输出的模拟电压信号进行低通滤波;Perform low-pass filtering on the analog voltage signal output by the pre-amplification circuit according to the frequency of the low-pass filter;

根据后置放大器的增益放大倍数和偏置放大量,对滤波电路输出的模拟电压进行调整;Adjust the analog voltage output by the filter circuit according to the gain magnification and bias magnification of the post amplifier;

根据相机噪声仿真模块产生的电路噪声,对后置放大电路输出的电压信号叠加模拟电路噪声,最后保存输出模拟电路仿真文件;According to the circuit noise generated by the camera noise simulation module, the analog circuit noise is superimposed on the voltage signal output by the post amplifier circuit, and finally the output analog circuit simulation file is saved;

输入CCD光电转换仿真图像,根据电压图像文件对CCD光电转换仿真图像进行退化处理,得到CCD模拟电路仿真图像。The CCD photoelectric conversion simulation image is input, the CCD photoelectric conversion simulation image is degraded according to the voltage image file, and the CCD analog circuit simulation image is obtained.

步骤108、数模量化建模仿真:通过数字图像文件对输入的模拟电路仿真图像进行退化处理,得到模数量化仿真图像,即为输出相机的数字图像。Step 108, digital-analog quantization modeling and simulation: performing degeneration processing on the input analog circuit simulation image through the digital image file to obtain the analog and quantization simulation image, which is the digital image of the output camera.

本发明实施例,综合考虑遥感相机光学系统仿真及成像与光电系统仿真对成像结果的影响因素,建立详细完整的遥感相机参数数据库,使仿真图像与真实图像有更高的贴近度,具有较高地仿真精度。In the embodiment of the present invention, comprehensive consideration is given to the simulation of the optical system of the remote sensing camera and the influencing factors of the simulation of the imaging and photoelectric system on the imaging results, and a detailed and complete parameter database of the remote sensing camera is established, so that the simulated image and the real image have a higher degree of closeness, and have a higher degree of accuracy. Simulation accuracy.

图5为本发明实施例所示基于光线追迹的光学相机仿真成像系统的构成图;该仿真成像系统包括:光学系统仿真单元51和成像与光电系统仿真单元52。其中,光学系统仿真单元51包括:光学系统建模模块511、相机畸变仿真模块512、相机弥散斑仿真模块513和相机杂散光仿真模块514。FIG. 5 is a structural diagram of an optical camera simulation imaging system based on ray tracing shown in an embodiment of the present invention; the simulation imaging system includes: an optical system simulation unit 51 and an imaging and photoelectric system simulation unit 52 . Wherein, the optical system simulation unit 51 includes: an optical system modeling module 511 , a camera distortion simulation module 512 , a camera speckle simulation module 513 and a camera stray light simulation module 514 .

光学系统仿真单元51是在光线追迹光学系统建模的基础上,设计精度自适应计算模型,快速实现对入瞳辐亮度图像的退化仿真计算。The optical system simulation unit 51 is based on the modeling of the ray tracing optical system, and designs a precision adaptive calculation model to quickly realize the simulation calculation of the degradation of the entrance pupil radiance image.

光学系统建模模块511,用于在光学设计软件中建立光学系统模型,得到光学系统文件。The optical system modeling module 511 is used to establish an optical system model in the optical design software to obtain an optical system file.

相机畸变仿真模块512与光学系统建模模块511相连接,用于建立相机几何畸变参数,将相机入瞳处的辐亮度图像作为输入,经过畸变模型退化后,获得像面上的畸变图像。The camera distortion simulation module 512 is connected with the optical system modeling module 511, and is used to establish geometric distortion parameters of the camera, and takes the radiance image at the entrance pupil of the camera as input, and obtains the distorted image on the image plane after the distortion model degenerates.

相机畸变仿真模块512依据CCD图像上位置,确定采样区域,结合最小采样间隔,确定采样点坐标;调用ZEMAX光学系统软件,输入采样点坐标数据,获得视场畸变数据;将相机入瞳辐亮度图像作为输入,经过视场畸变模型退化后,完成相机畸变仿真,获得像面上的畸变图像。系统将相机畸变图像直接传输至相机弥散斑仿真模块513。The camera distortion simulation module 512 determines the sampling area according to the position on the CCD image, and determines the coordinates of the sampling points in combination with the minimum sampling interval; calls the ZEMAX optical system software, inputs the coordinate data of the sampling points, and obtains the distortion data of the field of view; As input, after the field of view distortion model degenerates, the camera distortion simulation is completed to obtain the distorted image on the image plane. The system directly transmits the camera distortion image to the camera speckle simulation module 513 .

相机弥散斑仿真模块513与相机畸变仿真模块512相连接,用于计算入瞳面上各个视场上物点在成像面上的弥散斑情况,得到弥散斑矩阵,对像面上的畸变图像进行弥散退化处理,获得像面上的弥散斑图像。The camera speckle simulation module 513 is connected with the camera distortion simulation module 512, and is used to calculate the speckle situation of the object points on the imaging plane on each field of view on the entrance pupil plane, obtain the speckle matrix, and perform a process on the distorted image on the image plane. Diffuse degeneration processing to obtain the image of diffuse spots on the image plane.

相机弥散斑仿真模块513根据光线追迹及光学系统文件,追踪物点发出的光线在像面的位置,获取弥散斑情况;调用ZEMAX光学系统软件,获取弥散板矩阵。将相机畸变仿真模块512输出的相机畸变图像进行弥散退化处理,获得像面上的弥散斑图像。系统将弥散斑图像传输至相机杂散光仿真单元514。The camera speckle simulation module 513 tracks the position of the light emitted by the object point on the image plane according to the ray tracing and the optical system file, and obtains the speckle situation; calls the ZEMAX optical system software to obtain the matrix of the diffuser plate. The camera distortion image output by the camera distortion simulation module 512 is subjected to a diffuse degradation process to obtain a diffuse speckle image on the image plane. The system transmits the speckle image to the camera stray light simulation unit 514 .

相机杂散光仿真模块514与相机弥散斑仿真模块513相连接,用于仿真不同视场下光学系统对杂散光的抑制情况,得到杂散光辐照度分布数据。对像面上的弥散斑图像进行杂散退化处理,获得像面上的杂散光辐照度图像。The camera stray light simulation module 514 is connected with the camera speckle simulation module 513, and is used to simulate the suppression of stray light by the optical system under different fields of view, and obtain the stray light irradiance distribution data. The diffuse speckle image on the image plane is subjected to stray degradation processing, and the stray light irradiance image on the image plane is obtained.

相机杂散光仿真模块514通过对光学系统结构以及遮光罩进行建模,仿真不同的光学市场,借助杂散光仿真分析软件(TracePro)进行光线追迹,得到成像光源像面辐照度数据Ei以及包含杂散光与成像光的像面辐照度数据Eh,通过二者矩阵可得到像面杂散光辐照度数据;通过与相机弥散斑仿真模块513输出的弥散斑图像相叠加,得到像面上的杂散光辐照度图像。系统将像面上的杂散光辐照度图像直接传输至成像与光电系统仿真单元52。The camera stray light simulation module 514 simulates different optical markets by modeling the optical system structure and the hood, and traces rays with the help of the stray light simulation analysis software (TracePro) to obtain the imaging light source image surface irradiance data E i and The image plane irradiance data E h including stray light and imaging light, the image plane stray light irradiance data can be obtained through the matrix of the two; by superimposing with the diffuse speckle image output by the camera speckle simulation module 513, the image plane The stray light irradiance image on . The system directly transmits the stray light irradiance image on the image plane to the imaging and optoelectronic system simulation unit 52 .

成像与光电系统仿真单元52包括:光谱响应分析模块521、CCD光电转换仿真模块522、模拟电路仿真模块523和数模量化仿真模块524。The imaging and optoelectronic system simulation unit 52 includes: a spectral response analysis module 521 , a CCD photoelectric conversion simulation module 522 , an analog circuit simulation module 523 and a digital-to-analog quantization simulation module 524 .

成像与光电系统仿真单元52用于对像面上的杂散光辐照度图像进行退化处理,以获取成像图像。The imaging and optoelectronic system simulation unit 52 is used to degrade the stray light irradiance image on the image plane to obtain an imaging image.

光谱响应分析模块521用于根据入瞳辐亮度图像的波段和CCD的光谱响应曲线,计算对应波段的响应度。The spectral response analysis module 521 is used to calculate the responsivity of the corresponding band according to the band of the entrance pupil radiance image and the spectral response curve of the CCD.

CCD光电转换仿真模块522与光学系统仿真单元51的相机杂散光仿真模块513和光谱响应分析模块521相连接,用于建立CCD光电转换模型,根据CCD的参数文件及电路参数文件对杂散光辐照度图像进行光电转换与积分成像仿真,获得CCD光电转换仿真图像。The CCD photoelectric conversion simulation module 522 is connected with the camera stray light simulation module 513 and the spectral response analysis module 521 of the optical system simulation unit 51, and is used to set up the CCD photoelectric conversion model, according to the parameter file of CCD and the circuit parameter file to stray light irradiation The simulation of photoelectric conversion and integral imaging is carried out on the high-degree image, and the simulation image of CCD photoelectric conversion is obtained.

CCD光电转换仿真模块522主要是把入射在光敏元上的光信号转换为电信号,结合CCD传感器的占空比、响应度、噪声、暗电流、CCD器件探元不一致性以及积分时间等影响因素,仿真CCD光电转换对相机杂散光仿真模块514输出的杂散光辐照度图像进行退化处理,得到CCD光电转换仿真图像。系统将光电转换仿真图像直接传输至模拟电路仿真模块523。The CCD photoelectric conversion simulation module 522 mainly converts the optical signal incident on the photosensitive element into an electrical signal, combined with the duty cycle, responsivity, noise, dark current, inconsistency of the CCD device detector element and integration time of the CCD sensor and other influencing factors , simulating CCD photoelectric conversion to degrade the stray light irradiance image output by the camera stray light simulation module 514 to obtain a CCD photoelectric conversion simulation image. The system directly transmits the photoelectric conversion simulation image to the analog circuit simulation module 523 .

模拟电路仿真模块523与CCD光电转换仿真模块522相连接,用于根据设计电路中模拟电压信号经过电路器件后的响应数据,获得模拟电路仿真文件;并对CCD光电转换仿真图像进行退化处理,得到模拟电路仿真图像。The analog circuit simulation module 523 is connected with the CCD photoelectric conversion simulation module 522, and is used to obtain the analog circuit simulation file according to the response data after the analog voltage signal in the design circuit passes through the circuit device; and degrades the CCD photoelectric conversion simulation image to obtain Analog circuit simulation image.

模拟电路仿真单元523用于电路中的模拟电压信号分别经过电路器件的阻抗匹配和放大,低通滤波,电压调整和噪声叠加处理后,得到模拟电路仿真文件。对CCD光电转换仿真模块522输出的CCD光电转换仿真图像,进行退化处理,得到CCD模拟电路仿真图像。系统将CCD模拟电路仿真图像直接传输至数模量化仿真模块524。The analog circuit simulation unit 523 is used to obtain an analog circuit simulation file after the analog voltage signal in the circuit undergoes impedance matching and amplification of circuit devices, low-pass filtering, voltage adjustment and noise superposition processing. Degradation processing is performed on the CCD photoelectric conversion simulation image output by the CCD photoelectric conversion simulation module 522 to obtain a CCD analog circuit simulation image. The system directly transmits the simulation image of the CCD analog circuit to the digital-analog quantization simulation module 524 .

数模量化仿真模块524与模拟电路仿真模块523相连接,通过数字图像文件对输入的模拟电路仿真图像进行退化处理,得到模数量化仿真图像,即为输出相机的数字图像。The digital-analog quantization simulation module 524 is connected with the analog circuit simulation module 523, and degrades the input analog circuit simulation image through the digital image file to obtain the analog and quantization simulation image, which is the digital image of the output camera.

通过上述实施例可知,本发明的基于光线追迹的光学相机仿真成像方法和系统,达到了如下的有益效果:It can be seen from the above embodiments that the ray tracing-based optical camera simulation imaging method and system of the present invention achieve the following beneficial effects:

(1)本发明所述基于光线追迹的光学相机仿真成像方法和系统,综合考虑遥感相机光学系统及CCD成像系统对成像结果的影响因素,建立详细完整的遥感相机参数数据库,使仿真图像与真实图像有更高的贴近度,具有较高地仿真精度。(1) The optical camera simulation imaging method and system based on ray tracing of the present invention comprehensively consider the influence factors of the remote sensing camera optical system and the CCD imaging system on the imaging results, and set up a detailed and complete remote sensing camera parameter database, so that the simulation image and The real image has a higher degree of closeness and a higher simulation accuracy.

(2)本发明所述基于光线追迹的光学相机仿真成像方法和系统,包含了相机光学系统畸变、弥散斑及杂散光的光学相机成像仿真方法,实现光学系统仿真模型计算;在实现基于光线追迹光学系统建模的基础上,设计精度自适应计算模型,在满足精度要求基础上,提高运算速度,实现短时间光学系统建模计算。(2) The optical camera simulation imaging method and system based on ray tracing of the present invention include the optical camera imaging simulation method of camera optical system distortion, diffuse spots and stray light, and realize the calculation of the optical system simulation model; On the basis of tracing the modeling of the optical system, the precision adaptive calculation model is designed, and on the basis of meeting the precision requirements, the calculation speed is improved, and the short-time optical system modeling calculation is realized.

(3)本发明所述基于光线追迹的光学相机仿真成像方法和系统,在详细的CCD相机设计参数的基础上对CCD相机成像过程中的各个子系统进行数学建模,在对各子系统建模的基础上,对整个遥感相机采用端到端的系统输入输出连接实现相机CCD成像系统的仿真,建立完备的仿真技术框架,对子系统建立准确模型。(3) The optical camera simulation imaging method and system based on ray tracing of the present invention carry out mathematical modeling to each subsystem in the CCD camera imaging process on the basis of detailed CCD camera design parameters, and each subsystem is On the basis of modeling, an end-to-end system input and output connection is used for the entire remote sensing camera to realize the simulation of the camera CCD imaging system, a complete simulation technical framework is established, and an accurate model is established for the subsystem.

本领域内的技术人员应明白,本发明的实施例可提供为方法、装置、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art should understand that the embodiments of the present invention may be provided as methods, apparatuses, or computer program products. Accordingly, the present invention can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

虽然已经通过例子对本发明的一些特定实施例进行了详细说明,但是本领域的技术人员应该理解,以上例子仅是为了进行说明,而不是为了限制本发明的范围。本领域的技术人员应该理解,可在不脱离本发明的范围和精神的情况下,对以上实施例进行修改。本发明的范围由所附权利要求来限定。Although some specific embodiments of the present invention have been described in detail through examples, those skilled in the art should understand that the above examples are for illustration only and not intended to limit the scope of the present invention. Those skilled in the art will appreciate that modifications can be made to the above embodiments without departing from the scope and spirit of the invention. The scope of the invention is defined by the appended claims.

Claims (7)

1.一种基于光线追迹的光学相机仿真成像方法,其特征在于,包括:光学系统仿真和成像与光电系统仿真;1. An optical camera simulation imaging method based on ray tracing, characterized in that, comprising: optical system simulation and imaging and photoelectric system simulation; 所述光学系统仿真在基于光线追迹光学系统建模的基础上,实现光学系统建模计算,其中,所述光学系统仿真包括:The optical system simulation realizes optical system modeling calculation based on ray tracing optical system modeling, wherein the optical system simulation includes: 光学系统建模:根据光学系统的设计参数,在光学设计软件中建立光学系统模型,得到光学系统文件;Optical system modeling: according to the design parameters of the optical system, the optical system model is established in the optical design software, and the optical system file is obtained; 相机畸变建模仿真:通过所述光学系统文件,结合CCD图像位置,建立相机畸变参数,并将相机入瞳辐亮度图像作为输入,经过畸变模型退化后,获得像面上的畸变图像;Modeling and simulation of camera distortion: through the optical system file, combined with the position of the CCD image, the camera distortion parameters are established, and the entrance pupil radiance image of the camera is used as input, after the distortion model is degraded, the distorted image on the image plane is obtained; 相机弥散斑建模仿真:通过对光学系统的光线追迹,结合所述光学系统文件,获取入瞳面上各个视场上物点在成像面上的弥散斑情况,得到弥散斑矩阵,对像面上的畸变图像进行弥散退化处理,获得像面上的弥散斑图像;Modeling and simulation of camera speckle: through ray tracing of the optical system, combined with the optical system file, the diffuse spot situation of each object point on the imaging surface on the entrance pupil plane is obtained, and the diffuse spot matrix is obtained. The distorted image on the image plane is processed by diffusion degradation to obtain the diffuse spot image on the image plane; 相机杂散光建模仿真:借助杂散光仿真分析软件进行光线追迹,仿真不同视场下光学系统对杂散光的抑制情况,得到杂散光辐照度分布数据,对所述像面上的弥散斑图像进行杂散退化处理,获得像面上的杂散光辐照度图像;Modeling and simulation of camera stray light: With the help of stray light simulation analysis software, ray tracing is carried out to simulate the suppression of stray light by the optical system under different fields of view, and the stray light irradiance distribution data is obtained, and the diffuse spots on the image surface The image is subjected to stray degradation processing to obtain a stray light irradiance image on the image plane; 所述成像与光电系统仿真用于对像面上的杂散辐照度图像进行退化处理,以获取成像图像;其中,成像与光电系统仿真包括:The imaging and optoelectronic system simulation is used to degrade the stray irradiance image on the image plane to obtain imaging images; wherein the imaging and optoelectronic system simulation includes: 光谱响应分析模块:根据入瞳辐亮度图像的波段和CCD的光谱响应曲线,计算对应波段的响应度;Spectral response analysis module: Calculate the responsivity of the corresponding band according to the band of the entrance pupil radiance image and the spectral response curve of the CCD; CCD光电转换建模仿真:根据CCD的参数文件及电路参数文件,对所述像面上的杂散辐照度图像进行光电转换与积分成像仿真,获得CCD光电转换仿真图像;CCD photoelectric conversion modeling and simulation: according to the CCD parameter file and circuit parameter file, perform photoelectric conversion and integral imaging simulation on the stray irradiance image on the image surface, and obtain the CCD photoelectric conversion simulation image; 模拟电路建模仿真:根据设计电路中模拟电压信号经过电路器件后的响应数据,获得模拟电路仿真文件;并对CCD光电转换仿真图像进行退化处理,得到模拟电路仿真图像;Analog circuit modeling and simulation: According to the response data of the analog voltage signal in the design circuit after passing through the circuit device, the analog circuit simulation file is obtained; and the CCD photoelectric conversion simulation image is degraded to obtain the analog circuit simulation image; 数模量化建模仿真:通过数字图像文件对输入的所述模拟电路仿真图像进行退化处理,得到模数量化仿真图像,即为输出相机的数字图像。Digital-analog quantitative modeling and simulation: performing degeneration processing on the input analog circuit simulation image through digital image files to obtain an analog and quantitative simulation image, which is the digital image of the output camera. 2.根据权利要求1所述的基于光线追迹的光学相机仿真成像方法,其特征在于,所述相机畸变建模仿真的具体方法,包括:2. The optical camera simulation imaging method based on ray tracing according to claim 1, wherein the specific method of the camera distortion modeling simulation includes: 根据入瞳直径等数据,计算最小采样间隔;According to the entrance pupil diameter and other data, calculate the minimum sampling interval; 依据CCD图像上位置,确定采样区域,结合最小采样间隔,确定采样区域内的采样点;Determine the sampling area according to the position on the CCD image, and determine the sampling points in the sampling area in combination with the minimum sampling interval; 调用光学系统软件,输入采样点坐标数据,根据该采样点的理想像高和实际像高确定该采样点的畸变值,根据各采样点的畸变值建立畸变模型;Call the optical system software, input the coordinate data of the sampling point, determine the distortion value of the sampling point according to the ideal image height and actual image height of the sampling point, and establish the distortion model according to the distortion value of each sampling point; 将相机入瞳辐亮度图像作为输入,经过视场畸变模型退化后,完成相机畸变仿真。The entrance pupil radiance image of the camera is used as input, and the camera distortion simulation is completed after the field of view distortion model is degenerated. 3.根据权利要求1所述的基于光线追迹的光学相机仿真成像方法,其特征在于,所述相机弥散斑建模仿真的具体方法,包括:3. The optical camera simulation imaging method based on ray tracing according to claim 1, characterized in that, the specific method of modeling and simulating the blurred spots of the camera comprises: 通过输入CCD成像中采样点的参数,生成相机弥散斑建模仿真输入文件;根据相机弥散斑建模仿真文件参数,调用所述光学设计软件,追踪物点发出的光线在像面上的位置,获取入瞳面上各个视场上物点在成像面上的弥散斑情况,得出所述采样点上的点扩散函数;By inputting the parameters of the sampling points in the CCD imaging, the camera blur spot modeling and simulation input file is generated; according to the parameters of the camera blur spot modeling and simulation file, the optical design software is called to track the position of the light emitted by the object point on the image plane, Obtaining the diffuse spots of the object points on the imaging plane on each field of view on the entrance pupil plane, and obtaining the point spread function on the sampling point; 对每一选定点的所述点扩散函数,选取预定的抽样尺度进行细化统计,得到采样点以主光线为中心的弥散斑矩阵;For the point spread function of each selected point, select a predetermined sampling scale to perform detailed statistics to obtain a diffuse spot matrix centered on the chief ray at the sampling point; 对所述像面上的畸变图像与所述弥散班矩阵进行卷积运算,获得像面上的弥散斑图像。Convolving the distorted image on the image plane with the diffusion spot matrix to obtain a diffuse spot image on the image plane. 4.根据权利要求1所述的基于光线追迹的光学相机仿真成像方法,其特征在于,所述相机杂散光建模仿真的具体方法,包括:4. The optical camera simulation imaging method based on ray tracing according to claim 1, wherein the specific method of modeling and simulating stray light of the camera comprises: 将光学设计软件的光学系统文件导入光线模拟软件中,在不进行其他设置的情况下,进行光线追迹,得到无杂散光像面辐照度文件,获取成像光源像面辐照度数据EiImport the optical system file of the optical design software into the ray simulation software, and perform ray tracing without other settings to obtain the image plane irradiance file without stray light, and obtain the imaging light source image plane irradiance data E i ; 将光学设计软件的光学系统文件导入光线模拟软件中,完成光源建模设置然后进行光线追迹,得到杂散光像面辐照度文件,获取包含杂散光与成像光的像面辐照度数据EhImport the optical system file of the optical design software into the light simulation software, complete the light source modeling setting and then perform ray tracing to obtain the stray light image plane irradiance file, and obtain the image plane irradiance data E including stray light and imaging light h ; 将得到的包含杂散光与成像光的像面辐照度数据Eh,与成像光源像面辐照度数据Ei,矩阵相减可算得到像面杂散光辐照度分布数据EsThe obtained image plane irradiance data E h including stray light and imaging light is subtracted from the imaging light source image plane irradiance data E i , and the matrix subtraction can be calculated to obtain the image plane stray light irradiance distribution data E s : Es=Eh-Ei E s =E h -E i 根据杂散光辐照度分布数据Es,计算像面杂散光相对辐照度数据ErAccording to the stray light irradiance distribution data E s , calculate the image plane stray light relative irradiance data E r : Er[i,j]=Es[i,j]/StryMaxE r [i, j] = E s [i, j] / StryMax 式中,Er[i,j]与Es[i,j]分别代表像面某点的杂散光相对辐照度与杂散光辐照度数据;StryMax代表成像光源像面最大辐照度数据;In the formula, E r [i, j] and E s [i, j] respectively represent the relative irradiance of stray light and the data of stray light irradiance at a certain point on the image plane; StryMax represents the maximum irradiance data of the image plane of the imaging light source ; 依据像面杂散光相对辐照度数据与像面上的弥散斑图像,得到像面上的杂散光辐照度图像EfAccording to the relative irradiance data of stray light on the image plane and the diffuse spot image on the image plane, the stray light irradiance image E f on the image plane is obtained; Ef[i,j]=Eimg[i,j]+IMax·Er[i,j]E f [i,j]=E img [i,j]+IMax E r [i,j] 式中,Eimg[i,j]代表弥散光图像在(i,j)点的灰度值;IMax代表图像最大灰度值;通过将杂散光辐照度数据叠加到弥散光图像中,实现了像面杂散光图像的仿真计算。In the formula, E img [i, j] represents the gray value of the diffuse light image at point (i, j); IMax represents the maximum gray value of the image; by superimposing the stray light irradiance data into the diffuse light image, the The simulation calculation of the stray light image of the image plane is carried out. 5.根据权利要求1所述的基于光线追迹的光学相机仿真成像方法,其特征在于,所述CCD光电转换建模仿真的具体方法,包括:5. the optical camera simulation imaging method based on ray tracing according to claim 1, is characterized in that, the concrete method of described CCD photoelectric conversion modeling simulation, comprises: 计算CCD各采样点在像面上杂散光辐照度图像上的坐标位置,确定采样像素的边界位置,重新划分图像像素;Calculate the coordinate position of each sampling point of the CCD on the stray light irradiance image on the image plane, determine the boundary position of the sampling pixel, and re-divide the image pixels; 通过杂散光辐照度数据及CCD占空比,计算CCD探元实际接收到的光照度:Calculate the illuminance actually received by the CCD detector through the stray light irradiance data and the CCD duty cycle: Ereal=E×MSRE real = E × MSR 式中,MSR为CCD占空比,E为杂散光辐照度;In the formula, MSR is the CCD duty cycle, E is the stray light irradiance; 计算每个波段λ对应的输出电压;Calculate the output voltage corresponding to each band λ; 则当曝光时间为时,单一波段对应的输出电压为:Then when the exposure time is , the output voltage corresponding to a single band is: Vλ=Rλ×Ereal,λ×τV λ =R λ ×E real,λ ×τ 式中,Rλ为CCD响应度,τ为CCD积分时间,Eresl,λ为单一波段的电压值;In the formula, R λ is the CCD responsivity, τ is the CCD integration time, E resl, λ is the voltage value of a single band; 计算n个输入波段的输出电压:Compute the output voltage for n input bands: <mrow> <mi>V</mi> <mo>=</mo> <munderover> <mo>&amp;Sigma;</mo> <mrow> <mi>&amp;lambda;</mi> <mo>=</mo> <mn>0</mn> </mrow> <mi>n</mi> </munderover> <msub> <mi>V</mi> <mi>&amp;lambda;</mi> </msub> <mo>=</mo> <mi>&amp;tau;</mi> <munderover> <mo>&amp;Sigma;</mo> <mrow> <mi>&amp;lambda;</mi> <mo>=</mo> <mn>0</mn> </mrow> <mi>n</mi> </munderover> <msub> <mi>R</mi> <mi>&amp;lambda;</mi> </msub> <msub> <mi>E</mi> <mrow> <mi>r</mi> <mi>e</mi> <mi>a</mi> <mi>l</mi> <mo>,</mo> <mi>&amp;lambda;</mi> </mrow> </msub> </mrow> <mrow> <mi>V</mi> <mo>=</mo> <munderover> <mo>&amp;Sigma;</mo> <mrow> <mi>&amp;lambda;</mi> <mo>=</mo> <mn>0</mn> </mrow> <mi>n</mi> </munderover> <msub> <mi>V</mi> <mi>&amp;lambda;</mi> </msub> <mo>=</mo> <mi>&amp;tau;</mi> <munderover> <mo>&amp;Sigma;</mo> <mrow> <mi>&amp;lambda;</mi> <mo>=</mo> <mn>0</mn> </mrow> <mi>n</mi> </munderover> <msub> <mi>R</mi> <mi>&amp;lambda;</mi> </msub> <msub> <mi>E</mi> <mrow> <mi>r</mi> <mi>e</mi> <mi>a</mi> <mi>l</mi> <mo>,</mo> <mi>&amp;lambda;</mi> </mrow> </msub> </mrow> 计算探元图像亮度的不一致性;Calculate the inconsistency of the brightness of the detector image; y[i]=k[i]×x[i]+b[i]y[i]=k[i]×x[i]+b[i] 其中,x[i]为第i个探元的输出电压值,y[i]为对应探元的输出,k[i]为第i个探元的不一致性响应系数;b[i]为第i个探元的不一致性偏置系数;Among them, x[i] is the output voltage value of the i-th probe, y[i] is the output of the corresponding probe, k[i] is the inconsistency response coefficient of the i-th probe; b[i] is the Inconsistency bias coefficient of i probes; 叠加噪声信号以获取真实输出电压信号;Superimpose the noise signal to obtain the real output voltage signal; Vreal=V+Vnoise V real = V + V noise 式中,Vnoise为噪声电压;In the formula, V noise is the noise voltage; 根据CCD动态范围对单一探元输出电压的影响,保存CCD单一探元光电转换输出的电压图像文件VoutAccording to the influence of the CCD dynamic range on the output voltage of a single probe, save the voltage image file V out of the photoelectric conversion output of the CCD single probe; 输入像面上的杂散光辐照度图像,根据电压图像文件对杂散光辐照度图像进行退化处理,得到CCD光电转换仿真图像。The stray light irradiance image on the input image plane is degraded according to the voltage image file, and the CCD photoelectric conversion simulation image is obtained. 6.一种基于光线追迹的光学相机仿真成像系统,其特征在于,包括:光学系统仿真单元和成像与光电系统仿真单元;其中,光学系统仿真单元包括:6. An optical camera simulation imaging system based on ray tracing, characterized in that it includes: an optical system simulation unit and an imaging and photoelectric system simulation unit; wherein the optical system simulation unit includes: 光学系统建模模块,用于在光学设计软件中建立光学系统模型,得到光学系统文件;The optical system modeling module is used to establish the optical system model in the optical design software and obtain the optical system file; 相机畸变仿真模块,用于建立相机几何畸变参数,将相机入瞳辐亮度图像作为输入,经过畸变模型退化后,获得像面上的畸变图像;The camera distortion simulation module is used to establish the geometric distortion parameters of the camera, and the entrance pupil radiance image of the camera is used as input, and the distorted image on the image plane is obtained after the distortion model is degraded; 相机弥散斑仿真模块,用于计算入瞳面上各个视场上物点在成像面上的弥散斑情况,得到弥散斑矩阵,对像面上的畸变图像进行弥散退化处理,获得像面上的弥散斑图像;The camera speckle simulation module is used to calculate the speckle situation on the imaging surface of each object point on the entrance pupil plane, obtain the speckle matrix, and perform diffusion degradation processing on the distorted image on the image plane to obtain the speckle on the image plane. Diffuse speckle image; 相机杂散光仿真模块,用于仿真不同视场下光学系统对杂散光的抑制情况,得到杂散光辐照度分布数据;对像面上的弥散斑图像进行杂散退化处理,获得像面上的杂散光辐照度图像。The camera stray light simulation module is used to simulate the suppression of stray light by the optical system in different fields of view, and obtain the stray light irradiance distribution data; perform stray degradation processing on the diffuse spot image on the image plane, and obtain the Stray light irradiance image. 7.根据权利要求6所述的基于光线追迹的光学相机仿真成像系统,其特征在于,所述成像与光电系统仿真单元包括:7. The optical camera simulation imaging system based on ray tracing according to claim 6, wherein the imaging and optoelectronic system simulation unit comprises: 光谱响应分析模块,用于根据入瞳辐亮度图像的波段和CCD的光谱响应曲线,计算对应波段的响应度;The spectral response analysis module is used to calculate the responsivity of the corresponding band according to the band of the entrance pupil radiance image and the spectral response curve of the CCD; CCD光电转换仿真模块,用于建立CCD光电转换模型,根据CCD的参数文件及电路参数文件对杂散光辐照度图像进行光电转换与积分成像仿真,获得CCD光电转换仿真图像;The CCD photoelectric conversion simulation module is used to establish a CCD photoelectric conversion model, perform photoelectric conversion and integral imaging simulation on the stray light irradiance image according to the CCD parameter file and the circuit parameter file, and obtain the CCD photoelectric conversion simulation image; 模拟电路仿真模块,用于根据设计电路中模拟电压信号经过电路器件后的响应数据,获得模拟电路仿真文件;并对CCD光电转换仿真图像进行退化处理,得到模拟电路仿真图像;The analog circuit simulation module is used to obtain the analog circuit simulation file according to the response data of the analog voltage signal in the design circuit after passing through the circuit device; and degrade the CCD photoelectric conversion simulation image to obtain the analog circuit simulation image; 数模量化仿真模块,通过数字图像文件对输入的模拟电路仿真图像进行退化处理,得到模数量化仿真图像,即为输出相机的数字图像。The digital-analog quantization simulation module degrades the input analog circuit simulation image through the digital image file to obtain the analog and quantization simulation image, which is the digital image of the output camera.
CN201710271834.XA 2017-04-24 2017-04-24 A method and system for simulating imaging of an optical camera based on ray tracing Active CN107092752B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710271834.XA CN107092752B (en) 2017-04-24 2017-04-24 A method and system for simulating imaging of an optical camera based on ray tracing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710271834.XA CN107092752B (en) 2017-04-24 2017-04-24 A method and system for simulating imaging of an optical camera based on ray tracing

Publications (2)

Publication Number Publication Date
CN107092752A true CN107092752A (en) 2017-08-25
CN107092752B CN107092752B (en) 2019-06-14

Family

ID=59638664

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710271834.XA Active CN107092752B (en) 2017-04-24 2017-04-24 A method and system for simulating imaging of an optical camera based on ray tracing

Country Status (1)

Country Link
CN (1) CN107092752B (en)

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108111759A (en) * 2017-12-23 2018-06-01 航天恒星科技有限公司 Towards the emulation design method of area array CCD opto-electronic conversion
CN108269252A (en) * 2018-01-05 2018-07-10 西安电子科技大学 Laser irradiates the saturation crosstalk of TDI-CCD and side spot modeling and simulating method
CN109271671A (en) * 2018-08-20 2019-01-25 中国科学院上海技术物理研究所 A kind of emulation mode of camera optical axis variation
CN109948170A (en) * 2017-12-20 2019-06-28 中国科学院长春光学精密机械与物理研究所 A Simulation Method for Thermal Stability of Optical Remote Sensing Cameras
CN110191335A (en) * 2019-05-30 2019-08-30 中国科学院长春光学精密机械与物理研究所 Image Quality Evaluation and Simulation System of Remote Sensing Camera
CN110968927A (en) * 2018-09-29 2020-04-07 中国科学院长春光学精密机械与物理研究所 Simulation method for imaging dynamic ellipticity of optical remote sensing camera
CN110990987A (en) * 2018-09-28 2020-04-10 中国科学院长春光学精密机械与物理研究所 Simulation method of optical remote sensing camera imaging full link
CN111047686A (en) * 2019-12-18 2020-04-21 中国科学院国家空间科学中心 Real-time imaging simulation system for unmanned photoelectric equipment
CN111912784A (en) * 2020-04-15 2020-11-10 杭州涂鸦信息技术有限公司 Method and system for detecting infrared reflection stray light
CN111985116A (en) * 2020-08-31 2020-11-24 杭州涂鸦信息技术有限公司 A method, system and related equipment for lens interference detection based on optical simulation software
CN112485901A (en) * 2020-12-14 2021-03-12 长光卫星技术有限公司 Simulation modeling method for rapidly acquiring stray light source and stray light coefficient
CN112601034A (en) * 2020-12-11 2021-04-02 北京空间机电研究所 Information simulation and effect simulation method of CCD camera
CN112613397A (en) * 2020-12-21 2021-04-06 中国人民解放军战略支援部队航天工程大学 Method for constructing target recognition training sample set of multi-view optical satellite remote sensing image
CN113011018A (en) * 2021-03-05 2021-06-22 浙江大学 Hydrogen isotope solid optical field reconstruction method based on light ray tracing simulation model
CN113204893A (en) * 2021-05-26 2021-08-03 三一专用汽车有限责任公司 Camera simulation precision evaluation method and device
CN113868865A (en) * 2021-09-29 2021-12-31 中国科学院长春光学精密机械与物理研究所 Introducing the CCD unevenness error model method based on a single image plane optical system
CN115629473A (en) * 2022-09-22 2023-01-20 中国科学院长春光学精密机械与物理研究所 Non-sequential stray light tracing method
CN115793238A (en) * 2022-12-23 2023-03-14 中国科学院西安光学精密机械研究所 Stray light coefficient simulation method
WO2023226218A1 (en) * 2022-05-26 2023-11-30 清华大学 Axisymmetric optical imaging parallel simulation method and apparatus

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090096788A1 (en) * 2007-10-12 2009-04-16 Caustic Graphics, Inc. Method and apparatus for increasing efficiency of transmission and/or storage of rays for parallelized ray intersection testing
CN101968880A (en) * 2010-09-10 2011-02-09 中国科学院软件研究所 Method for producing image bokeh effect
CN102034251A (en) * 2010-11-23 2011-04-27 中国科学院软件研究所 Generation method of lens dispersion effect

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090096788A1 (en) * 2007-10-12 2009-04-16 Caustic Graphics, Inc. Method and apparatus for increasing efficiency of transmission and/or storage of rays for parallelized ray intersection testing
CN101968880A (en) * 2010-09-10 2011-02-09 中国科学院软件研究所 Method for producing image bokeh effect
CN102034251A (en) * 2010-11-23 2011-04-27 中国科学院软件研究所 Generation method of lens dispersion effect

Cited By (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109948170A (en) * 2017-12-20 2019-06-28 中国科学院长春光学精密机械与物理研究所 A Simulation Method for Thermal Stability of Optical Remote Sensing Cameras
CN108111759A (en) * 2017-12-23 2018-06-01 航天恒星科技有限公司 Towards the emulation design method of area array CCD opto-electronic conversion
CN108269252A (en) * 2018-01-05 2018-07-10 西安电子科技大学 Laser irradiates the saturation crosstalk of TDI-CCD and side spot modeling and simulating method
CN109271671A (en) * 2018-08-20 2019-01-25 中国科学院上海技术物理研究所 A kind of emulation mode of camera optical axis variation
CN109271671B (en) * 2018-08-20 2023-07-07 中国科学院上海技术物理研究所 Simulation method for camera visual axis change
CN110990987A (en) * 2018-09-28 2020-04-10 中国科学院长春光学精密机械与物理研究所 Simulation method of optical remote sensing camera imaging full link
CN110968927A (en) * 2018-09-29 2020-04-07 中国科学院长春光学精密机械与物理研究所 Simulation method for imaging dynamic ellipticity of optical remote sensing camera
CN110968927B (en) * 2018-09-29 2022-06-07 中国科学院长春光学精密机械与物理研究所 Simulation method for imaging dynamic ellipticity of optical remote sensing camera
CN110191335B (en) * 2019-05-30 2020-08-21 中国科学院长春光学精密机械与物理研究所 Remote sensing camera imaging quality evaluation and simulation system
CN110191335A (en) * 2019-05-30 2019-08-30 中国科学院长春光学精密机械与物理研究所 Image Quality Evaluation and Simulation System of Remote Sensing Camera
CN111047686A (en) * 2019-12-18 2020-04-21 中国科学院国家空间科学中心 Real-time imaging simulation system for unmanned photoelectric equipment
CN111912784A (en) * 2020-04-15 2020-11-10 杭州涂鸦信息技术有限公司 Method and system for detecting infrared reflection stray light
CN111912784B (en) * 2020-04-15 2023-10-20 杭州涂鸦信息技术有限公司 Method and system for detecting infrared reflection stray light
CN111985116A (en) * 2020-08-31 2020-11-24 杭州涂鸦信息技术有限公司 A method, system and related equipment for lens interference detection based on optical simulation software
CN111985116B (en) * 2020-08-31 2024-11-19 杭州涂鸦信息技术有限公司 A lens interference detection method, system and related equipment based on optical simulation software
CN112601034A (en) * 2020-12-11 2021-04-02 北京空间机电研究所 Information simulation and effect simulation method of CCD camera
CN112601034B (en) * 2020-12-11 2022-10-21 北京空间机电研究所 Information simulation and effect simulation method of CCD camera
CN112485901A (en) * 2020-12-14 2021-03-12 长光卫星技术有限公司 Simulation modeling method for rapidly acquiring stray light source and stray light coefficient
CN112613397A (en) * 2020-12-21 2021-04-06 中国人民解放军战略支援部队航天工程大学 Method for constructing target recognition training sample set of multi-view optical satellite remote sensing image
CN112613397B (en) * 2020-12-21 2022-11-29 中国人民解放军战略支援部队航天工程大学 Construction method of training sample set for multi-view optical satellite remote sensing image target recognition
CN113011018A (en) * 2021-03-05 2021-06-22 浙江大学 Hydrogen isotope solid optical field reconstruction method based on light ray tracing simulation model
CN113011018B (en) * 2021-03-05 2022-04-29 浙江大学 Hydrogen isotope solid optical field reconstruction method based on light ray tracing simulation model
CN113204893B (en) * 2021-05-26 2023-03-03 三一专用汽车有限责任公司 Camera simulation precision evaluation method and device
CN113204893A (en) * 2021-05-26 2021-08-03 三一专用汽车有限责任公司 Camera simulation precision evaluation method and device
CN113868865A (en) * 2021-09-29 2021-12-31 中国科学院长春光学精密机械与物理研究所 Introducing the CCD unevenness error model method based on a single image plane optical system
CN113868865B (en) * 2021-09-29 2024-05-24 中国科学院长春光学精密机械与物理研究所 Method for introducing CCD unevenness error model based on single image plane optical system
WO2023226218A1 (en) * 2022-05-26 2023-11-30 清华大学 Axisymmetric optical imaging parallel simulation method and apparatus
CN115629473A (en) * 2022-09-22 2023-01-20 中国科学院长春光学精密机械与物理研究所 Non-sequential stray light tracing method
CN115793238A (en) * 2022-12-23 2023-03-14 中国科学院西安光学精密机械研究所 Stray light coefficient simulation method

Also Published As

Publication number Publication date
CN107092752B (en) 2019-06-14

Similar Documents

Publication Publication Date Title
CN107092752A (en) A kind of optical camera simulation imaging method and system based on ray tracing
Wei et al. Physics-based noise modeling for extreme low-light photography
CN106845024B (en) A Simulation Method for Optical Satellite In-orbit Imaging Based on Wavefront Inversion
Chen et al. Digital camera imaging system simulation
CN109115348B (en) A joint method for 3D temperature reconstruction based on flame light field refocusing images
JP2006351017A (en) End-to-end design for electro-optic imaging system
CN105931196A (en) Fourier optical modeling-based coded aperture camera image restoration method
CN105450933B (en) Restoring device for blurred image in pneumatic optical effect
Li et al. Self-measurements of point-spread function for remote sensing optical imaging instruments
Elmquist et al. Modeling cameras for autonomous vehicle and robot simulation: An overview
US7274442B2 (en) Closed-loop wavefront sensor using field programmable gate array
Guadagnoli et al. Thermal imager non-uniformity sources modeling
CN108154478A (en) A kind of remote sensing image processing method
WO2023211742A1 (en) Image processing method, electronic system and a non-transitory computer-readable medium
Guissin et al. IRISIM: infrared imaging simulator
CN114758019A (en) Infrared detector simulation image generation method and device
Luan et al. Optimal design of microlens aperture size for focused plenoptic camera
CN112395741B (en) A Method for Mapping Objects in Optical Remote Sensing Imaging with Time-Space-Spectrum Integration
CN107277327B (en) A method of estimating the point spread function of single lens light-field camera under full aperture
Willers et al. Staring array sensor model for simulation implementation
Feng et al. Model of a TDI line scan camera and its electronics
Antoshkin et al. Using photodetectors in Shack-Hartmann wavefront sensors
WANG et al. Analysis and verification of the positioning accuracy of a flat-panel detector used for precision pointing in space optical communication
De Gouvello et al. From the radiance reflected by a scene to a digital picture: a compact model based simulator for image sensor design
CN108111759A (en) Towards the emulation design method of area array CCD opto-electronic conversion

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