CN105376493B - The method and its focusing system of camera focusing in rail space based on view data - Google Patents
The method and its focusing system of camera focusing in rail space based on view data Download PDFInfo
- Publication number
- CN105376493B CN105376493B CN201510827443.2A CN201510827443A CN105376493B CN 105376493 B CN105376493 B CN 105376493B CN 201510827443 A CN201510827443 A CN 201510827443A CN 105376493 B CN105376493 B CN 105376493B
- Authority
- CN
- China
- Prior art keywords
- focal plane
- focusing
- camera
- value corresponding
- plane position
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 24
- 238000004364 calculation method Methods 0.000 claims description 25
- 230000008859 change Effects 0.000 claims description 12
- 238000006243 chemical reaction Methods 0.000 claims description 8
- 230000003287 optical effect Effects 0.000 abstract description 17
- 238000012545 processing Methods 0.000 abstract description 14
- 238000001514 detection method Methods 0.000 abstract description 5
- 238000013461 design Methods 0.000 abstract description 3
- 238000005516 engineering process Methods 0.000 abstract description 3
- 238000005259 measurement Methods 0.000 abstract description 3
- 230000007246 mechanism Effects 0.000 description 7
- 238000004891 communication Methods 0.000 description 6
- 230000006870 function Effects 0.000 description 5
- 238000003384 imaging method Methods 0.000 description 4
- 238000010586 diagram Methods 0.000 description 2
- 230000007613 environmental effect Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- NAWXUBYGYWOOIX-SFHVURJKSA-N (2s)-2-[[4-[2-(2,4-diaminoquinazolin-6-yl)ethyl]benzoyl]amino]-4-methylidenepentanedioic acid Chemical compound C1=CC2=NC(N)=NC(N)=C2C=C1CCC1=CC=C(C(=O)N[C@@H](CC(=C)C(O)=O)C(O)=O)C=C1 NAWXUBYGYWOOIX-SFHVURJKSA-N 0.000 description 1
- 238000012937 correction Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000005484 gravity Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 230000015654 memory Effects 0.000 description 1
- 230000005486 microgravity Effects 0.000 description 1
- 238000010606 normalization Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 210000001747 pupil Anatomy 0.000 description 1
- 230000035939 shock Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Landscapes
- Automatic Focus Adjustment (AREA)
- Studio Devices (AREA)
Abstract
Description
技术领域technical field
本发明涉及航空航天相机调焦控制技术领域,特别提供了一种基于图像数据的轨空间内相机调焦的方法及其调焦系统。The invention relates to the technical field of focusing control of aerospace cameras, and in particular provides a method for focusing a camera in orbital space based on image data and a focusing system thereof.
背景技术Background technique
近年来,航天技术发展非常迅速,星载空间相机的应用越来越广泛,空间相机的关键任务是获取和提供清晰完整的图像,而要想获得高清晰度的图像,在相机摄像时,地面景物应准确地成像在CCD的感光面上。但是随着科学技术的发展,在苛刻的发射环境和空间环境下空间相机的可靠性和精度要求越来越高,航天相机在运输和发射过程中会受到振动冲击,在轨工作时空间温度复杂多变,空间重力场是不同于地球表面的微重力环境,这些因素都可能导致相机的成像面与焦平面不重合,即产生不同程度的离焦,从而导致成像质量下降。In recent years, aerospace technology has developed very rapidly, and the application of space-borne space cameras has become more and more extensive. The key task of space cameras is to obtain and provide clear and complete images. In order to obtain high-definition images, when the camera is shooting, the ground The scene should be accurately imaged on the photosensitive surface of the CCD. However, with the development of science and technology, the reliability and accuracy requirements of space cameras are getting higher and higher in the harsh launch environment and space environment. Space cameras will be subject to vibration and shock during transportation and launch, and the space temperature is complex when working in orbit. Changeable, the space gravity field is different from the microgravity environment on the earth's surface. These factors may cause the imaging plane of the camera to not coincide with the focal plane, that is, produce different degrees of defocus, resulting in a decrease in imaging quality.
为保证相机成像质量,要求相机对环境因素变化具有良好的适应性,在对相机进行光学系统、结构支撑和电控系统设计时,需要在相机系统中加入调焦机构,采用相应的调焦机构来微调光学系统中光线成像的位置,补偿CCD的离焦量,使星下点目标准确成像在CCD感光面上,以修正这种离焦,调焦机构的调焦量根据环境条件和控制精度的要求确定的,从而使相机能得到高清晰度的图像。此外,采用空间调焦,也可以放宽对光学系统各光学反射镜安装位置及其精确度的要求,有利于光学遥感器在恶劣的环境下可靠地工作。In order to ensure the imaging quality of the camera, the camera is required to have good adaptability to changes in environmental factors. When designing the optical system, structural support and electronic control system of the camera, it is necessary to add a focusing mechanism to the camera system, and use the corresponding focusing mechanism To fine-tune the position of light imaging in the optical system, compensate the defocus amount of CCD, and make the sub-satellite point target accurately image on the CCD photosensitive surface, so as to correct this defocus. The focus adjustment amount of the focusing mechanism depends on the environmental conditions and control accuracy The requirements are determined so that the camera can obtain high-definition images. In addition, the use of space focusing can also relax the requirements on the installation position and accuracy of each optical mirror in the optical system, which is conducive to the reliable operation of the optical remote sensor in harsh environments.
传统的焦面检测系统需要自准直检焦光信号作为参考光来计算离焦量,只能在地面上实现,而在轨空间相机的焦面调整是由地面人员判断相机是否离焦,并估测相机的离焦量,通过卫星有效载荷数据处理单元将相机的离焦量和调焦控制命令传输给相机调焦控制系统,由相机调焦控制系统将相机焦面调整到最佳的摄像位置。缺点是相机离焦的判断复杂,需要地面人员判读,具有一定的主观性,容易造成误差。The traditional focus plane detection system needs the autocollimation focus light signal as a reference light to calculate the defocus amount, which can only be realized on the ground, while the focus plane adjustment of the space camera in orbit is determined by the ground personnel to determine whether the camera is out of focus, and Estimate the defocusing amount of the camera, and transmit the defocusing amount and focusing control command of the camera to the camera focusing control system through the satellite payload data processing unit, and the camera focusing control system will adjust the camera focal plane to the best shooting Location. The disadvantage is that the judgment of camera defocus is complicated and needs to be interpreted by ground personnel, which has a certain degree of subjectivity and is easy to cause errors.
因此,研制出一种新型的易于操作的在轨空间相机检调焦系统势在必行。Therefore, it is imperative to develop a new type of easy-to-operate on-orbit space camera detection and focusing system.
发明内容Contents of the invention
鉴于此,本发明的目的在于提供一种基于图像数据的轨空间内相机调焦的方法及其调焦系统,以至少解决以往的调焦系统需要地面人员进行相机焦面是否离焦的判读,存在主观性,容易造成误差等问题。In view of this, the object of the present invention is to provide a camera focusing method and its focusing system in orbital space based on image data, to at least solve the problem that the previous focusing system requires ground personnel to judge whether the focal plane of the camera is out of focus, There is subjectivity and it is easy to cause errors and other problems.
本发明一方面提供了一种基于图像数据的轨空间内相机调焦的方法,其特征在于,包括:One aspect of the present invention provides a method for focusing a camera in orbital space based on image data, which is characterized in that it includes:
获取相机在同一位置不同离焦状态下,拍摄的两幅图像;Obtain two images taken by the camera at the same position with different defocus states;
依据上述两幅图像,计算获得所述相机最佳焦面位置对应的编码器值;According to the above two images, calculate and obtain the encoder value corresponding to the best focal plane position of the camera;
获取所述相机当前焦面位置对应的编码器值;Obtain the encoder value corresponding to the current focal plane position of the camera;
依据所述当前焦面位置对应的编码器值与所述最佳焦面位置对应的编码器值之间的误差,进行相应的调焦操作。A corresponding focusing operation is performed according to an error between the encoder value corresponding to the current focal plane position and the encoder value corresponding to the best focal plane position.
优选,所述依据所述当前焦面位置对应的编码器值与所述最佳焦面位置对应的编码器值之间的误差,进行相应的调焦操作包括:Preferably, performing the corresponding focusing operation according to the error between the encoder value corresponding to the current focal plane position and the encoder value corresponding to the best focal plane position includes:
将所述当前焦面位置对应的编码器值与所述最佳焦面位置对应的编码器值之间的误差与阈值比较;comparing the error between the encoder value corresponding to the current focal plane position and the encoder value corresponding to the best focal plane position with a threshold;
当所述误差小于等于阈值时,无需启动调焦电机;When the error is less than or equal to the threshold, there is no need to start the focusing motor;
当所述误差大于阈值时,依据所述当前焦面位置对应的编码器值与所述最佳焦面位置对应的编码器值,计算获得调焦电机的运行步数和运行方向,进行调焦操作。When the error is greater than the threshold, according to the encoder value corresponding to the current focal plane position and the encoder value corresponding to the optimal focal plane position, calculate and obtain the number of running steps and running direction of the focusing motor, and perform focusing operate.
进一步优选,所述依据所述当前焦面位置对应的编码器值与所述最佳焦面位置对应的编码器值,计算获得调焦电机的运行步数和运行方向的计算公式为:Further preferably, according to the encoder value corresponding to the current focal plane position and the encoder value corresponding to the best focal plane position, the formula for calculating the number of running steps and running direction of the focusing motor is:
N=(A-A1)×K1×M÷θN=(AA 1 )×K 1 ×M÷θ
其中,N为调焦电机的运行步数;A为最佳焦面位置对应的编码器值;A1为焦面当前位置对应的编码器值;K1为编码器编码器值变化量与编码器角度变化量的转换系数;M为调焦电机与编码器速比;θ为电机每步转动角度;A-A1的符号表示调焦电机的运行方向。Among them, N is the number of running steps of the focusing motor; A is the encoder value corresponding to the best focal plane position; A 1 is the encoder value corresponding to the current position of the focal plane; K 1 is the encoder value change and the code The conversion coefficient of the angular change of the encoder; M is the speed ratio of the focusing motor and the encoder; θ is the rotation angle of the motor per step; the symbol of AA 1 indicates the running direction of the focusing motor.
进一步优选,所述依据上述两幅图像,计算获得所述相机最佳焦面位置对应的编码器值包括:Further preferably, the calculating and obtaining the encoder value corresponding to the best focal plane position of the camera according to the above two images includes:
依据所述两幅图像,利用相位差异法计算获得离焦量;According to the two images, the phase difference method is used to calculate and obtain the defocus amount;
依据所述离焦量计算获得最佳焦面位置;calculating and obtaining the best focal plane position according to the defocus amount;
依据所述最佳焦面位置计算获得最佳焦面位置对应的编码器值。The encoder value corresponding to the best focal plane position is obtained by calculating according to the best focal plane position.
进一步优选,所述依据所述离焦量计算获得最佳焦面位置的计算公式为:Further preferably, the calculation formula for calculating and obtaining the best focal plane position according to the defocus amount is:
S=K4×α4 S=K 4 ×α 4
其中,S为最佳焦面位置,单位为μm;K4为泽尼克系数与最佳焦面位置之间的转换系数;α4为一组泽尼克系数中的第四项,即离焦量。Among them, S is the position of the best focal plane, and the unit is μm; K 4 is the conversion coefficient between the Zernike coefficient and the position of the best focal plane; α 4 is the fourth item in a set of Zernike coefficients, that is, the amount of defocus .
进一步优选,所述依据所述最佳焦面位置计算获得最佳焦面位置对应的编码器值的计算公式为:Further preferably, the calculation formula for obtaining the encoder value corresponding to the best focal plane position according to the best focal plane position is:
A=A0+(S-S0)×K2×K3 A=A 0 +(SS 0 )×K 2 ×K 3
其中,A为最佳焦面位置对应的编码器值;A0为焦面零点位置对应的编码器值;S为最佳焦面位置,单位为μm;S0为焦面零点位置,单位为μm;K2为焦面位置变化量与编码器角度变化量的转换系数;K3为编码器角度变化量与编码器码值变化量的转换系数;S-S0的符号表示最佳焦面位置相对焦面零点位置的方向。Among them, A is the encoder value corresponding to the position of the best focal plane; A 0 is the encoder value corresponding to the zero position of the focal plane; S is the position of the best focal plane in μm; S 0 is the zero position of the focal plane in units of μm; K 2 is the conversion coefficient between the focal plane position change and the encoder angle change; K 3 is the conversion coefficient between the encoder angle change and the encoder code value change; the symbol of SS 0 indicates that the best focal plane position is relative to The orientation of the zero position of the focal plane.
本发明另一方面还提供了一种基于图像数据的轨空间内相机调焦系统,其特征在于,包括:Another aspect of the present invention also provides a camera focusing system in orbital space based on image data, which is characterized in that it includes:
数据处理单元1,用于接收所述相机在同一位置不同离焦状态下,拍摄同一目标物的两幅拍摄图像,并依据所接收的两幅拍摄图像计算出所述相机最佳焦面位置对应的编码器值;The data processing unit 1 is configured to receive two photographed images of the same target object captured by the camera at the same position and different defocus states, and calculate the corresponding position of the best focal plane of the camera according to the received two photographed images. the encoder value;
调焦编码器2,用于获取所述相机当前焦面位置对应的编码器值;Focusing encoder 2, used to obtain the encoder value corresponding to the current focal plane position of the camera;
系统控制器3,分别与所述数据处理单元1和所述调焦编码器2连接,用于接收所述数据处理单元1发送的相机最佳焦面位置对应的编码器值以及所述调焦编码器2发送的相机当前焦面位置对应的编码器值,并依据所述相机最佳焦面位置对应的编码器值和所述相机当前焦面位置对应的编码器值计算获得调焦信息;The system controller 3 is connected to the data processing unit 1 and the focusing encoder 2 respectively, and is used to receive the encoder value corresponding to the best focal plane position of the camera sent by the data processing unit 1 and the focusing Encoder 2 sends the encoder value corresponding to the current focal plane position of the camera, and calculates and obtains the focusing information according to the encoder value corresponding to the best focal plane position of the camera and the encoder value corresponding to the current focal plane position of the camera;
调焦执行单元4,与所述系统控制器3连接,用于接收所述系统控制器3发送的调焦信息,并依据所述调焦信息进行所述相机的焦面调节。The focus execution unit 4 is connected with the system controller 3 and configured to receive the focus information sent by the system controller 3 and adjust the focal plane of the camera according to the focus information.
优选,所述调焦执行单元4包括:Preferably, the focusing execution unit 4 includes:
调焦电机41,与所述系统控制器3连接;A focusing motor 41 is connected with the system controller 3;
调焦机构42,与所述调焦电机41连接,并由所述调焦电机41驱动进行调焦操作。The focusing mechanism 42 is connected with the focusing motor 41 and driven by the focusing motor 41 to perform focusing operation.
进一步优选,所述数据处理单元1包括:Further preferably, the data processing unit 1 includes:
离焦量计算单元11,用于接收所述相机在同一位置不同离焦状态下,拍摄同一目标物的两幅拍摄图像,并利用相位差异法计算获得离焦量;The defocus amount calculation unit 11 is used to receive two captured images of the same target object captured by the camera in different defocus states at the same position, and calculate the defocus amount by using the phase difference method;
最佳焦面位置计算单元12,与所述离焦量计算单元11连接,用于接收所述离焦量计算单元11发送的离焦量,并依据所述离焦量计算获得所述相机的最佳焦面位置;The best focus plane position calculation unit 12 is connected to the defocus calculation unit 11, and is used to receive the defocus quantity sent by the defocus calculation unit 11, and calculate and obtain the camera's defocus according to the defocus quantity calculation unit 11. Best focal plane position;
编码器值计算单元13,与所述最佳焦面位置计算单元12连接,用于接收所述最佳焦面位置计算单元12发送的最佳焦面位置,并依据所述最佳焦面位置计算获得所述相机最佳焦面位置对应的编码器值。Encoder value calculation unit 13, connected to the best focus plane position calculation unit 12, for receiving the best focus plane position sent by the best focus plane position calculation unit 12, and according to the best focus plane position Calculate and obtain the encoder value corresponding to the best focal plane position of the camera.
本发明提供的基于图像数据的轨空间内相机调焦的方法及其调焦系统,采用相位差异的图像复原理论,简化了对相机光学系统离焦量的判断,避免了由地面人员主动判读相机光学系统是否离焦。将光学设计与相位差异图像复原算法有机融合起来,解决空间相机检调焦的一系列技术关键和难点。The camera focusing method and its focusing system in orbital space based on image data provided by the present invention adopt the image restoration theory of phase difference, which simplifies the judgment of the defocus amount of the camera optical system and avoids the active interpretation of the camera by ground personnel. Whether the optical system is out of focus. The optical design and phase difference image restoration algorithm are organically integrated to solve a series of technical key points and difficulties in space camera focus detection.
本发明提供的于图像数据的轨空间内相机调焦的方法及其调焦系统,大大降低空间相机设备的复杂度、测试时间和成本,以及测量所需配套设备的费用,本发明提供的调焦方法和调焦系统不需要任何附加的检焦设备,具有检测精度高、测量成本低、稳定性好以及应用领域广泛的优点。The camera focusing method and its focusing system in the orbital space of image data provided by the present invention can greatly reduce the complexity, test time and cost of space camera equipment, as well as the cost of supporting equipment required for measurement. The focusing method and focusing system do not require any additional focusing equipment, and have the advantages of high detection accuracy, low measurement cost, good stability and wide application fields.
附图说明Description of drawings
图1为基于图像数据的轨空间内相机调焦的方法流程图;Fig. 1 is the method flowchart of camera focusing in the track space based on image data;
图2为利用相位差异法计算离焦量的流程图;Fig. 2 is the flow chart that utilizes phase difference method to calculate defocus amount;
图3为基于图像数据的轨空间内相机调焦系统的模块图;Fig. 3 is the block diagram of the camera focusing system in the track space based on image data;
图4为数据处理单元的模块图。Fig. 4 is a block diagram of the data processing unit.
具体实施方式Detailed ways
下面以具体的实施例对本发明进行进一步解释,但是并不用于限制本发明的保护范围。The present invention will be further explained below with specific examples, but it is not intended to limit the protection scope of the present invention.
本发明的优选实施例提供了一种基于图像数据的轨空间内相机调焦的方法,参见图1:A preferred embodiment of the present invention provides a method for camera focusing in orbital space based on image data, see Fig. 1:
(1)系统控制器(SMJ320C30)以卫星公转一圈时间为周期控制CCD相机采集航空遥感图像,并将图像传递进入数据处理单元,数据处理单元根据相位差异法流程图计算离焦量,根据离焦量计算最佳焦面位置,再根据最佳焦面位置计算相机最佳焦面位置对应的编码器值;(1) The system controller (SMJ320C30) controls the CCD camera to collect aerial remote sensing images in a period of one satellite revolution, and transmits the images to the data processing unit. The data processing unit calculates the defocus amount according to the flow chart of the phase difference method. The focal amount calculates the position of the best focal plane, and then calculates the encoder value corresponding to the position of the best focal plane of the camera according to the position of the best focal plane;
(2)系统控制器通过串行通讯协议与调焦编码器进行通讯,读取当前焦面位置对应编码器值(采用16位光电轴角编码器作为焦面的侧量器,系统控制器与调焦编码器之间采用RS485串行通讯协议,波特率为62500Bps,应用DS26C31和DS26C32元件将串行通讯信号进行差分,提高串行通讯的抗干扰能力和可靠性);(2) The system controller communicates with the focusing encoder through a serial communication protocol, and reads the encoder value corresponding to the current focal plane position (a 16-bit photoelectric shaft angle encoder is used as the side gauge of the focal plane, and the system controller communicates with the focusing encoder) The RS485 serial communication protocol is adopted between the focusing encoders, the baud rate is 62500Bps, and the DS26C31 and DS26C32 components are used to differentiate the serial communication signals to improve the anti-interference ability and reliability of the serial communication);
(3)依据系统设计中的技术指标要求(离焦量大于20um时,焦面需调整),如果相机离焦,执行步骤(4),如果相机未离焦,返回步骤(1)。(3) According to the technical index requirements in the system design (when the defocus amount is greater than 20um, the focal plane needs to be adjusted), if the camera is out of focus, perform step (4), if the camera is not out of focus, return to step (1).
(4)计算调焦电机运行方向和运行步数(采用步进电机作为调焦机构的驱动元件,控制方式为四相八拍,运行频率P为1KHz);(4) Calculate the running direction and running steps of the focusing motor (the stepper motor is used as the driving element of the focusing mechanism, the control mode is four-phase eight-beat, and the running frequency P is 1KHz);
(5)系统控制器根据步骤(4)计算的结果,控制调焦电机运行。(5) The system controller controls the operation of the focusing motor according to the result calculated in step (4).
(6)调焦电机运行结束后,再次读取当前焦面位置对应编码器值,并与最佳焦面位置对应编码器值进行比较,判断焦面调整误差是否满足系统要求(编码器码值不大于10)。(6) After the focusing motor finishes running, read the encoder value corresponding to the current focal plane position again, and compare it with the encoder value corresponding to the optimal focal plane position to judge whether the focal plane adjustment error meets the system requirements (encoder code value not greater than 10).
如果误差不满足系统要求,返回步骤(4),如果误差满足系统要求,返回步骤(1)。If the error does not meet the system requirements, return to step (4); if the error meets the system requirements, return to step (1).
其中,参见图2为离焦量的具体计算过程为:Wherein, referring to Fig. 2, the specific calculation process of the defocus amount is:
①分别将两幅图像i1、i2进行傅里叶变换,得到I1,I2;① Perform Fourier transform on the two images i 1 and i 2 respectively to obtain I 1 and I 2 ;
②设置归一化参数光瞳方程p(x,y)=1,{α}0=0;②Set normalization parameter pupil equation p(x, y)=1, {α} 0 =0;
③设定中断条件,通常用最大迭代次数或最长迭代时间作为停止准则;③Set the interruption condition, usually the maximum number of iterations or the longest iteration time is used as the stopping criterion;
④计算两幅图像的点扩散函数其中原始通道的相位φ1(x,y)=Z(α),离焦通道的相位φ2(x,y)=Z(α)*(x2+y2);光学传递函数 ④ Calculate the point spread function of the two images Wherein the phase of the original channel φ 1 (x, y) = Z(α), the phase of the out-of-focus channel φ 2 (x, y) = Z(α)*(x 2 +y 2 ); the optical transfer function
⑤根据公式计算目标函数L({α}t);⑤ According to the formula Calculate the objective function L({α} t );
⑥利用L-BGFS方法对目标函数进行优化,搜索目标函数L({α}t)的最小值;⑥Use the L-BGFS method to optimize the objective function, and search for the minimum value of the objective function L({α} t );
⑦得到一组泽尼克系数{α}t的估计值,若不满足中断条件,则返回④,否则输出恢复结果,即一组泽尼克多项式系数,其中泽尼克多项式系数中的第四项表示离焦量。⑦ Obtain a set of estimated values of Zernike coefficient {α} t , if the interruption condition is not met, return to ④, otherwise output the restoration result, that is, a set of Zernike polynomial coefficients, where the fourth item in the Zernike polynomial coefficient represents the distance from Focus.
上述L-BFGS算法:The above L-BFGS algorithm:
Step 0:选定初始点和初始对称正定矩阵设定搜索精度ε>0和有限记忆次数m,计算梯度g(x0),并令k=0;Step 0: Select the initial point and the initial symmetric positive definite matrix Set the search accuracy ε>0 and the limited number of memories m, calculate the gradient g(x 0 ), and set k=0;
Step 1:若||g(xk)||<ε则算法终止,得到最优解xk,否则,令 Step 1: If ||g(x k )||<ε, the algorithm is terminated and the optimal solution x k is obtained; otherwise, let
Step2:采用非精确线性搜索策略确定步长αk,更新xk+1=xk+αkdk,并计算梯度值g(xk+1);Step2: Use an inexact linear search strategy to determine the step size α k , update x k+1 = x k +α k d k , and calculate the gradient value g(x k+1) ;
Step 3:利用初始值H0或者中间信息构造反复利用式(10)进行m+1次修正得到Hk+1,Step 3: Use the initial value H 0 or intermediate information to construct Repeatedly use formula (10) to perform m+1 corrections to obtain H k+1 ,
其中,sk=xk+1-xk,yk=g(xk+1)-g(xk)。Wherein, s k =x k+1 -x k , y k =g(x k+1 )-g(x k ).
Step4:令k=k+1,转Step 1。Step4: Let k=k+1, go to Step 1.
根据离焦量计算最佳焦面位置的计算公式为:The calculation formula for calculating the best focal plane position according to the amount of defocus is:
S=K4×α4,其中,K4为0.21,α4为上述泽尼克系数中的第四项,即离焦量。S=K 4 ×α 4 , where K 4 is 0.21, and α 4 is the fourth item in the Zernike coefficient above, that is, the amount of defocus.
根据最佳焦面位置计算最佳焦面位置对应的编码器值的计算公式为:The calculation formula for calculating the encoder value corresponding to the best focal plane position according to the best focal plane position is:
A=A0+(S-S0)×K2×K3,其中,A0为8000H,S0为0,K2为0.045,K3为182。A=A 0 +(SS 0 )×K 2 ×K 3 , where A 0 is 8000H, S 0 is 0, K 2 is 0.045, and K 3 is 182.
计算调焦电机运行方向和运行步数的公式为:The formula for calculating the running direction and running steps of the focusing motor is:
N=(A-A1)×K1×M÷θ,其中,K1为0.0055,M为40,θ为0.9°。N=(AA 1 )×K 1 ×M÷θ, where K 1 is 0.0055, M is 40, and θ is 0.9°.
本实施例的调焦方法简化了对相机光学系统离焦的判断,实现了自动实时判断,避免了将图像数据下传至地面,由地面人员判读相机光学系统是否离焦;光学系统离焦补偿及时,实现了自动实时补偿,省去了对下传数据、判断相机离焦、计算离焦量、传输离焦量与调焦命令的处理,避免了由于离焦补偿不及时,焦面调整后不在最佳位置的错误调整;光学系统离焦补偿精度高,相机光学系统离焦后可及时识别和补偿,实现焦面、步进电机与编码器的闭环调整。The focusing method of this embodiment simplifies the judgment of the defocus of the camera optical system, realizes automatic real-time judgment, avoids the image data being sent down to the ground, and the ground personnel judge whether the camera optical system is out of focus; the defocus compensation of the optical system In time, it realizes automatic real-time compensation, which saves the processing of downloading data, judging camera defocus, calculating defocus amount, transmitting defocus amount and focusing command, and avoiding the delay of focus compensation due to untimely defocus compensation. Misadjustment that is not in the best position; the defocus compensation of the optical system has high precision, and the defocus of the camera optical system can be identified and compensated in time to realize the closed-loop adjustment of the focal plane, stepping motor and encoder.
本发明的另一个优选实施例提供了一个基于图像数据的轨空间内相机调焦系统,参见图3,其中轨空间内相机以CCD相机为例,包括:Another preferred embodiment of the present invention provides a camera focusing system in the track space based on image data, referring to Fig. 3 , wherein the camera in the track space takes a CCD camera as an example, including:
数据处理单元1,用于接收CCD相机在同一位置不同离焦状态下,拍摄同一目标物的两幅拍摄图像,并依据所接收的两幅拍摄图像计算出CCD相机最佳焦面位置对应的编码器值;The data processing unit 1 is used to receive two captured images of the same target object captured by the CCD camera at the same position and different defocus states, and calculate the code corresponding to the position of the best focal plane of the CCD camera based on the received two captured images device value;
调焦编码器2,用于获取CCD相机当前焦面位置对应的编码器值;Focus encoder 2, used to obtain the encoder value corresponding to the current focal plane position of the CCD camera;
系统控制器3,可选用SMJ320C30通过RS-485串行通讯协议与调焦编码器2进行通讯,读取CCD相机当前焦面位置对应的编码器值,系统控制器3还与数据处理单元1连接,用于读取CCD相机最佳焦面位置对应的编码器值,并依据当前焦面位置对应编码和最佳焦面位置对应的编码计算获得调焦信息;System controller 3, SMJ320C30 can be selected to communicate with focusing encoder 2 through RS-485 serial communication protocol, and read the encoder value corresponding to the current focal plane position of the CCD camera. System controller 3 is also connected to data processing unit 1 , which is used to read the encoder value corresponding to the best focal plane position of the CCD camera, and calculate and obtain the focusing information according to the code corresponding to the current focal plane position and the code corresponding to the best focal plane position;
调焦执行单元4,与系统控制器3连接,用于接收所述系统控制器3发送的调焦信息,并依据调焦信息进行所述相机的焦面调节。The focus execution unit 4 is connected with the system controller 3, and is used for receiving the focus information sent by the system controller 3, and adjusting the focal plane of the camera according to the focus information.
参见图3所述调焦执行单元4包括:Referring to Fig. 3, the focusing execution unit 4 includes:
调焦电机41,与系统控制器3连接;Focusing motor 41 is connected with system controller 3;
调焦机构42,与调焦电机41连接,并由调焦电机41驱动进行调焦操作。The focusing mechanism 42 is connected with the focusing motor 41 and driven by the focusing motor 41 to perform focusing operation.
参见图4,所述数据处理单元1包括:Referring to Figure 4, the data processing unit 1 includes:
离焦量计算单元11,用于接收相机在同一位置不同离焦状态下,拍摄同一目标物的两幅拍摄图像,并利用相位差异法计算获得离焦量;The defocus amount calculation unit 11 is used to receive two captured images of the same target object captured by the camera in different defocus states at the same position, and calculate the defocus amount by using the phase difference method;
最佳焦面位置计算单元12,与离焦量计算单元11连接,用于接收离焦量计算单元11发送的离焦量,并依据离焦量计算获得相机的最佳焦面位置;The optimal focus plane position calculation unit 12 is connected with the defocus amount calculation unit 11 for receiving the defocus amount sent by the defocus amount calculation unit 11, and calculating and obtaining the best focus plane position of the camera according to the defocus amount calculation unit;
编码器值计算单元13,与最佳焦面位置计算单元12连接,用于接收最佳焦面位置计算单元12发送的最佳焦面位置,并依据最佳焦面位置计算获得相机最佳焦面位置对应的编码器值。The encoder value calculation unit 13 is connected with the best focus plane position calculation unit 12, and is used to receive the best focus plane position sent by the best focus plane position calculation unit 12, and calculate and obtain the best focus of the camera according to the best focus plane position calculation unit 12. Encoder value corresponding to face position.
该调焦系统的具体工作原理为:系统控制器控制CCD相机采集拍摄航空遥感图像,并将图像传递到数据处理单元中,计算得到CCD相机最佳焦面位置对应的编码器值,系统控制器通过RS-485串行通讯协议与调焦编码器进行通讯,读取CCD相机当前焦面位置对应的编码器值,系统控制器根据当前焦面位置的编码器值和最佳焦面位置的编码器值计算调焦电机运行步数和运行方向,并控制调焦电机运行,调焦电机驱动调焦机构移动,完成焦面位置的调整,系统控制器通过调焦编码器值判断焦面调整后是否满足误差要求,形成调焦电机和调焦编码器的闭环控制。The specific working principle of the focusing system is as follows: the system controller controls the CCD camera to collect and shoot aerial remote sensing images, and transmits the images to the data processing unit, and calculates the encoder value corresponding to the best focal plane position of the CCD camera, and the system controller Communicate with the focus encoder through the RS-485 serial communication protocol, read the encoder value corresponding to the current focal plane position of the CCD camera, and the system controller according to the encoder value of the current focal plane position and the code of the best focal plane position The encoder value calculates the number of steps and the running direction of the focus motor, and controls the operation of the focus motor. The focus motor drives the focus mechanism to move, and completes the adjustment of the focal plane position. The system controller judges the focal plane adjustment by the value of the focus encoder. Whether it meets the error requirements, a closed-loop control of the focusing motor and the focusing encoder is formed.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.
Claims (4)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510827443.2A CN105376493B (en) | 2015-11-25 | 2015-11-25 | The method and its focusing system of camera focusing in rail space based on view data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510827443.2A CN105376493B (en) | 2015-11-25 | 2015-11-25 | The method and its focusing system of camera focusing in rail space based on view data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105376493A CN105376493A (en) | 2016-03-02 |
CN105376493B true CN105376493B (en) | 2018-08-07 |
Family
ID=55378250
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510827443.2A Active CN105376493B (en) | 2015-11-25 | 2015-11-25 | The method and its focusing system of camera focusing in rail space based on view data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105376493B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105681677B (en) * | 2016-03-31 | 2018-12-18 | 中国资源卫星应用中心 | A kind of high-resolution optical remote sensing Satellite Camera optimal focal plane determines method |
CN107843982B (en) * | 2017-12-01 | 2024-03-08 | 长春理工大学 | Wave front-free detection self-adaptive optical system based on real-time phase difference technology |
CN110557561B (en) * | 2019-07-24 | 2021-07-13 | 北京空间机电研究所 | A high-resolution space camera on-orbit fast focusing method and system |
CN110611775B (en) * | 2019-09-27 | 2020-11-24 | 中国科学院长春光学精密机械与物理研究所 | Oblique range focus compensation method, system and terminal equipment for aerial remote sensor |
CN110677582B (en) * | 2019-09-27 | 2020-11-24 | 中国科学院长春光学精密机械与物理研究所 | A method, system and terminal device for filtering velocity measurement and focus detection |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5610707A (en) * | 1995-07-07 | 1997-03-11 | Lockheed Missiles & Space Co., Inc. | Wavefront sensor for a staring imager |
DE10348509A1 (en) * | 2003-10-18 | 2005-05-19 | Carl Zeiss Jena Gmbh | Determining image errors by computing test object Zernike coefficients involves detecting pupil edge according to position, size in computer system in addition to wavefront measurement by evaluating light from object recorded by CCD camera |
US7232999B1 (en) * | 2003-07-30 | 2007-06-19 | Kestrel Corporation | Laser wavefront characterization |
CN101710224A (en) * | 2009-12-10 | 2010-05-19 | 浙江大学 | On-orbit self-adaptive focusing method for space optical camera |
CN102291534A (en) * | 2011-07-22 | 2011-12-21 | 中国科学院长春光学精密机械与物理研究所 | Temperature automatic focusing system of space camera |
CN102801913A (en) * | 2012-08-08 | 2012-11-28 | 中国科学院长春光学精密机械与物理研究所 | Out-of-focus compensation device of space camera and applicable out-of-focus compensation method of out-of-focus compensation device |
JP2014102120A (en) * | 2012-11-19 | 2014-06-05 | Canon Inc | Wavefront aberration measurement method, wavefront aberration measurement apparatus and optical system manufacturing method |
CN103916599A (en) * | 2014-03-25 | 2014-07-09 | 中国科学院长春光学精密机械与物理研究所 | Rapid focusing method for remote sensing camera exterior imaging |
CN104486550A (en) * | 2014-12-29 | 2015-04-01 | 中国科学院长春光学精密机械与物理研究所 | Image focus detecting device and method for aerial camera |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4467958B2 (en) * | 2003-11-19 | 2010-05-26 | キヤノン株式会社 | Imaging device and focus control method of imaging device |
JP4455129B2 (en) * | 2004-04-06 | 2010-04-21 | キヤノン株式会社 | Aberration measuring method and projection exposure apparatus using the same |
-
2015
- 2015-11-25 CN CN201510827443.2A patent/CN105376493B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5610707A (en) * | 1995-07-07 | 1997-03-11 | Lockheed Missiles & Space Co., Inc. | Wavefront sensor for a staring imager |
US7232999B1 (en) * | 2003-07-30 | 2007-06-19 | Kestrel Corporation | Laser wavefront characterization |
DE10348509A1 (en) * | 2003-10-18 | 2005-05-19 | Carl Zeiss Jena Gmbh | Determining image errors by computing test object Zernike coefficients involves detecting pupil edge according to position, size in computer system in addition to wavefront measurement by evaluating light from object recorded by CCD camera |
CN101710224A (en) * | 2009-12-10 | 2010-05-19 | 浙江大学 | On-orbit self-adaptive focusing method for space optical camera |
CN102291534A (en) * | 2011-07-22 | 2011-12-21 | 中国科学院长春光学精密机械与物理研究所 | Temperature automatic focusing system of space camera |
CN102801913A (en) * | 2012-08-08 | 2012-11-28 | 中国科学院长春光学精密机械与物理研究所 | Out-of-focus compensation device of space camera and applicable out-of-focus compensation method of out-of-focus compensation device |
JP2014102120A (en) * | 2012-11-19 | 2014-06-05 | Canon Inc | Wavefront aberration measurement method, wavefront aberration measurement apparatus and optical system manufacturing method |
CN103916599A (en) * | 2014-03-25 | 2014-07-09 | 中国科学院长春光学精密机械与物理研究所 | Rapid focusing method for remote sensing camera exterior imaging |
CN104486550A (en) * | 2014-12-29 | 2015-04-01 | 中国科学院长春光学精密机械与物理研究所 | Image focus detecting device and method for aerial camera |
Also Published As
Publication number | Publication date |
---|---|
CN105376493A (en) | 2016-03-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105376493B (en) | The method and its focusing system of camera focusing in rail space based on view data | |
CN102256109B (en) | Automatic tracking camera system for multiple targets and focusing method for system | |
CN109029448B (en) | Monocular vision inertial positioning's IMU aided tracking model | |
US8243142B2 (en) | Mobile object image tracking apparatus and method | |
CN105045275B (en) | A kind of IMC method of the IMC structure based on the tracking of the real-time optical axis | |
CN101435704A (en) | Star tracking method of star sensor under high dynamic state | |
CN103869595B (en) | A kind of method that off-axis three anti-camera focal plane is debug | |
CN105629629A (en) | Adaptive focusing system and focusing method for fast imaging of spatial optical camera | |
CN108919841A (en) | A kind of compound heavy metal method and system of photoelectric follow-up | |
CN107607127B (en) | External field-based star sensor internal parameter calibration and precision rapid verification system | |
CN106502277B (en) | Three-axis air-bearing table superhigh precision measurement apparatus and method based on tracking technique | |
CN108007426A (en) | A kind of camera distance measuring method and system | |
WO2017117749A1 (en) | Follow focus system and method based on multiple ranging approaches, and photographing system | |
CN106842911B (en) | A kind of image servo control method of scan mirror imaging tracking | |
CN106526832A (en) | Two-dimensional pointing servo control method and system | |
CN101900552A (en) | Measuring method and system for latitude and longitude cameras | |
CN102692183B (en) | Measurement method of initial positions and poses of multiple cameras | |
CN202111787U (en) | Automatic multi-target tracking picture pick-up system | |
CN102801913A (en) | Out-of-focus compensation device of space camera and applicable out-of-focus compensation method of out-of-focus compensation device | |
CN208478309U (en) | A kind of optical imaging device and wafer alignment system for wafer alignment | |
CN103605198B (en) | Multi-detector optical system linkage focusing mechanism and focusing method thereof | |
JP2021096805A (en) | Image capturing method and image capturing apparatus | |
WO2017117750A1 (en) | Simple follow focus system based on multiple ranging approaches, and photographing system | |
CN201503267U (en) | Digital water level capable of measuring automatically | |
CN109959501B (en) | System and method for testing internal orientation elements and distortion of optical remote sensor |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |