CN112288785B - Data processing method, system and storage medium for subaperture scanning flat field calibration - Google Patents
Data processing method, system and storage medium for subaperture scanning flat field calibration Download PDFInfo
- Publication number
- CN112288785B CN112288785B CN202011183115.0A CN202011183115A CN112288785B CN 112288785 B CN112288785 B CN 112288785B CN 202011183115 A CN202011183115 A CN 202011183115A CN 112288785 B CN112288785 B CN 112288785B
- Authority
- CN
- China
- Prior art keywords
- image
- spot
- sub
- aperture
- light spot
- 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
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/30—Determination of transform parameters for the alignment of images, i.e. image registration
- G06T7/33—Determination of transform parameters for the alignment of images, i.e. image registration using feature-based methods
- G06T7/344—Determination of transform parameters for the alignment of images, i.e. image registration using feature-based methods involving models
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/11—Region-based segmentation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/136—Segmentation; Edge detection involving thresholding
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/90—Determination of colour characteristics
Landscapes
- Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Image Processing (AREA)
Abstract
Description
技术领域technical field
本发明涉及辐射定标领域,具体涉及一种子孔径扫描平场定标子孔径扫描平场定标的数据处理方法、系统和存储介质。The invention relates to the field of radiation calibration, in particular to a data processing method, system and storage medium for sub-aperture scanning flat-field calibration sub-aperture scanning flat-field calibration.
背景技术Background technique
为了提高光学望远镜的分辨率和集光能力,21世纪以来望远镜相继问世。而望远镜的精确平场定标是其研制、运行中的重要一环。观测数据的可靠性及应用的深度和广度在很大程度上取决于仪器的平场定标精度。In order to improve the resolution and light-gathering ability of optical telescopes, telescopes have come out one after another since the 21st century. The precise flat-field calibration of the telescope is an important part of its development and operation. The reliability of observational data and the depth and breadth of application depend to a large extent on the accuracy of the instrument's flat-field calibration.
基于子孔径扫描的平场定标方法根据以小拼大的思想,通过子孔径光源扫描的方式,模拟全口径均匀稳定的平场光源。该方法可有效改善传统的大尺寸平场屏幕法由于光度不均匀及杂散光导致的不确定度。同时可有效避免大口径积分球制备困难、不适用于地基望远镜外场定标实验的问题。基于子孔径扫描方法的扫描机构如图1所示。子孔径扫描机构可以实现水平、垂直二维位置调整,以及俯仰、方位的方向调整。子孔径光源经过准直光学系统后照射至待测光学系统。The sub-aperture scanning-based flat-field calibration method simulates a full-aperture uniform and stable flat-field light source by scanning the sub-aperture light source according to the idea of small and big. This method can effectively improve the uncertainty caused by the traditional large-size flat screen method due to uneven luminosity and stray light. At the same time, it can effectively avoid the problems that the large-aperture integrating sphere is difficult to prepare and is not suitable for the field calibration experiment of ground-based telescopes. The scanning mechanism based on the sub-aperture scanning method is shown in Figure 1. The sub-aperture scanning mechanism can realize horizontal and vertical two-dimensional position adjustment, as well as the direction adjustment of pitch and azimuth. The sub-aperture light source is irradiated to the optical system to be measured after passing through the collimating optical system.
子孔径光源出射光为准直平行光束时,具有许多显著优势,比如可以减小杂散光对平场辐射定标的干扰,可有效区分子孔径扫描的定标图像中成像探测器串扰和鬼像,并将串扰剔除,避免探测器串扰对定标结果的影响。When the output light of the sub-aperture light source is collimated, it has many significant advantages, such as reducing the interference of stray light on the calibration of the flat-field radiation, and effectively distinguishing the imaging detector crosstalk and ghost images in the calibration image of the sub-aperture scanning , and eliminate the crosstalk to avoid the influence of detector crosstalk on the calibration results.
基于该方案的定标图像数据处理过程如图2所示,该方案通过子孔径光源位置、视场扫描方式,并经后续图像处理,获得全视场的全孔径平场光源。首先调整并固定子孔径光源的指向角度,使子孔径光源对准望远镜某一视场;然后依据扫描路径,分别对望远镜进行成像,经图像处理获得单一视场下全孔径图像;接着调整子孔径光源的指向角度,再依据扫描路径对望远镜进行成像,获得不同视场下的全孔径图像;最终经图像处理获得平场图像,进而求解光学系统定标系数。针对子孔径扫描平场定标的数据处理,本发明提出一种单幅子孔径定标图像光斑快速有效提取、串扰剔除方法。The calibration image data processing process based on this scheme is shown in Figure 2. This scheme obtains a full-aperture plan light source with a full field of view through the position of the sub-aperture light source, the scanning method of the field of view, and subsequent image processing. First, adjust and fix the pointing angle of the sub-aperture light source, so that the sub-aperture light source is aligned with a certain field of view of the telescope; then, according to the scanning path, the telescope is imaged respectively, and the full-aperture image under a single field of view is obtained through image processing; then the sub-aperture is adjusted. According to the pointing angle of the light source, the telescope is imaged according to the scanning path to obtain full-aperture images in different fields of view; finally, the flat-field image is obtained through image processing, and then the calibration coefficient of the optical system is solved. Aiming at the data processing of sub-aperture scanning flat-field calibration, the present invention proposes a method for quickly and effectively extracting light spots from a single sub-aperture calibration image and eliminating crosstalk.
基于子孔径扫描方法对定标图像的数据处理要求很高,不当的定标数据处理会引入额外的定标不确定度。例如,探测器串扰、非线性,光学系统加工、装调误差,BrignterFatter效应,定标过程中光源光度变化、曝光时间、环境温度变化及杂散光干扰等均会对平场定标精度产生影响。单幅子孔径定标图像通常为微弱的光斑图像,灰度等级较弱,此外,由于子孔径光源的指向误差,不同扫描位置的光斑图像还存在微小偏移。对光斑图像的提取、光斑图像亮度值的计算将直接影响着最终的定标精度。此外,如何实现对串扰和鬼像的甄别,并剔除鬼像也是影响最终定标精度的重要因素。常规的图像预处理与目标识别与分割算法难以直接应用到基于子孔径扫描的定标算法中,均需要对子孔径扫描定标算法各环节做相应设计,提高最终定标精度。The sub-aperture scanning method has high requirements on the data processing of the calibration image, and improper calibration data processing will introduce additional calibration uncertainty. For example, detector crosstalk, nonlinearity, optical system processing and adjustment errors, BrignterFatter effect, light source luminosity changes, exposure time, ambient temperature changes and stray light interference during the calibration process will all have an impact on the flat-field calibration accuracy. A single sub-aperture calibration image is usually a weak spot image with a weak gray level. In addition, due to the pointing error of the sub-aperture light source, there is a slight shift in the spot image at different scanning positions. The extraction of the spot image and the calculation of the brightness value of the spot image will directly affect the final calibration accuracy. In addition, how to realize the identification of crosstalk and ghost images, and how to eliminate ghost images is also an important factor affecting the final calibration accuracy. Conventional image preprocessing and target recognition and segmentation algorithms are difficult to be directly applied to the calibration algorithm based on sub-aperture scanning, and each link of the sub-aperture scanning calibration algorithm needs to be designed accordingly to improve the final calibration accuracy.
发明内容SUMMARY OF THE INVENTION
本发明的目的在于针对现有技术的上述缺陷,提供一种子孔径扫描平场定标的数据处理的技术方案,用以解决现有的基于子孔径扫描的定标算法精度不高的问题。The purpose of the present invention is to provide a technical solution for data processing of sub-aperture scanning flat-field calibration in view of the above-mentioned defects of the prior art, so as to solve the problem of low precision of the existing sub-aperture scanning-based calibration algorithm.
本发明的目的可通过以下的技术措施来实现:The purpose of the present invention can be achieved through the following technical measures:
本申请的第一方面提供了一种子孔径扫描平场定标子孔径扫描平场定标的数据处理方法,所述方法包括:A first aspect of the present application provides a data processing method for sub-aperture scanning flat-field scaling sub-aperture scanning flat-field scaling, the method comprising:
S1:获取子孔径光源经望远镜后的图像Ii;S1: obtain the image I i of the sub-aperture light source after passing through the telescope;
S2:所述图像Ii进行串扰信息和光斑信息识别,得到包含所述串扰信息和光斑信息的模板A;具体包括:S21:对所述图像Ii进行配准,得到配准图像IRi;S2: The image I i is identified by crosstalk information and light spot information, and a template A that includes the crosstalk information and the light spot information is obtained; specifically: S21: The image I i is registered to obtain a registration image I Ri ;
S3:根据所述模板A对所述配准图像IRi进行光斑分割,得到光斑半径Ri和光斑中心Oi;S3: perform spot segmentation on the registration image I Ri according to the template A to obtain a spot radius R i and a spot center O i ;
S4:对所有光斑半径Ri累加求平均,得到一致的望远镜对子孔径光源所成的像的光斑半径R;S4: Accumulate and average all the spot radii R i to obtain the consistent spot radius R of the image formed by the telescope on the sub-aperture light source;
S5:以R为光斑半径,Oi为光斑中心,确定光斑圆区域,并计算所述Ii图像中位于所述光斑圆区域内的所有像素点的灰度均值DNi。S5: Taking R as the spot radius and O i as the spot center, determine the spot circle area, and calculate the gray mean value DN i of all pixels located in the spot circle area in the I i image.
S6:对所有基于子孔径计算得到的DNi求和,并根据以下公式计算当前视场下全孔径灰度均值DN:DN=k·∑DNi,其中,k为校正系数;S6: Sum up all the DN i calculated based on the sub-aperture, and calculate the full-aperture grayscale mean DN under the current field of view according to the following formula: DN=k·∑DN i , where k is the correction coefficient;
S7:获取当前视场下全孔径灰度均值DN,建立所述DN与光源辐射亮度的映射关系。S7: Obtain the full-aperture grayscale mean value DN in the current field of view, and establish a mapping relationship between the DN and the radiance of the light source.
进一步地,步骤S1包括:Further, step S1 includes:
S11:控制子孔径光源开启,对望远镜成像,获取关于环境、系统本身的底噪图像Inoise1;S11: control the sub-aperture light source to turn on, image the telescope, and obtain a noise floor image I noise1 about the environment and the system itself;
S12:控制子孔径光源关闭,对望远镜成像,获取子孔径光源在Li位置处成的像I0;S12: control the sub-aperture light source to turn off, image the telescope, and obtain the image I 0 formed by the sub- aperture light source at the position Li;
S13:控制子孔径光源关闭,对望远镜成像,获取关于环境、系统本身的底噪图像Inoise2;S13: Control the sub-aperture light source to turn off, image the telescope, and obtain a noise floor image I noise2 about the environment and the system itself;
S14:根据以下公式计算得到图像Ii:S14: Calculate the image I i according to the following formula:
Ii=I0-(Inoise1+Inoise2)/2,(i=1,2,3,…,n)。I i =I 0 -(I noise1 +I noise2 )/2, (i=1,2,3,...,n).
进一步地,步骤S21包括:Further, step S21 includes:
以图像I1作为标准图像,以图像Ii(i=2,3,…n,n为正整数)作为待配准图像,对所述图像I1和待配准图像Ii(i=2,3,…n,n为正整数)基于图像特征进行配准,得到配准后的图像集IRi,其中,IR1=I1。Taking the image I 1 as the standard image, and taking the image I i (i=2, 3, . . . n, n is a positive integer) as the image to be registered, the image I 1 and the image I i (i=2 , 3, . . . n, n is a positive integer), perform registration based on image features, and obtain a registered image set I Ri , where I R1 =I 1 .
进一步地,步骤S2包括:Further, step S2 includes:
S22:以图像IR1为参照图像Ir,对图像集IRi中的其他所有图像IRi均与参照图像Ir求差并取绝对值,以得到差异图像IDi;S22: Taking the image I R1 as the reference image I r , all other images I Ri in the image set I Ri are compared with the reference image I r and take the absolute value to obtain the difference image I Di ;
S23:建立和所述IDi具有相同大小的二维矩阵A1,对所述IDi对应像素灰度值求和,并将得到的灰度值之和填充至二维矩阵A1对应像素位置;S23: establish a two-dimensional matrix A1 with the same size as the IDi , sum the corresponding pixel grayscale values of the IDi , and fill the obtained grayscale value sum to the corresponding pixel position of the two-dimensional matrix A1;
S24:对二维矩阵A1做二值化处理,并做形态学闭运算,从而得到包含串扰信息和光斑信息的模板A。S24: Perform binarization processing on the two-dimensional matrix A1, and perform a morphological closing operation, thereby obtaining a template A including crosstalk information and light spot information.
进一步地,步骤S3包括:Further, step S3 includes:
S31:对图像IRi和模板A进行逻辑“与”运算,得到关于具有串扰信息和光斑信息的图像IRi;S31: carry out logical "AND" operation to image I Ri and template A, obtain about image I Ri with crosstalk information and light spot information;
S32:以预定长度步长逐步增大光斑半径,并以边缘区域的光斑灰度均值为约束条件,边缘区域的光斑灰度均值为目标值,求解光斑灰度均值最大时的光斑半径Ri以及光斑中心Oi;所述约束条件包括:光斑区域对应的边缘区域的灰度均值在预设范围内。S32: Gradually increase the spot radius with a predetermined length step, and take the average spot gray level of the edge area as the constraint condition, and the average light spot gray level of the edge area as the target value, and find the spot radius R i when the average light spot gray value is the largest and The center O i of the light spot; the constraint conditions include: the average gray value of the edge area corresponding to the light spot area is within a preset range.
进一步地,所述预设长度步长为1。Further, the preset length step is 1.
进一步地,“计算所述Ii图像中位于所述光斑圆区域内的所有像素的灰度均值DNi”包括:Further, "calculating the gray mean value DN i of all pixels located in the spot circle area in the I i image" includes:
遍历所述Ii图像中所有像素点,当某一像素点位置与光斑中心Oi的距离小于光斑半径Ri时,则判定当前像素点位于所述光斑圆区域内,待所有像素点均遍历完成后,计算所述Ii图像中位于所述光斑圆区域内的所有像素点的灰度均值DNi。Traverse all the pixel points in the described I i image, when the distance between a certain pixel point position and the spot center O i is less than the spot radius R i , then it is determined that the current pixel point is located in the described spot circle area, and all pixel points are traversed After completion, calculate the grayscale mean value DN i of all the pixel points located in the light spot circle area in the I i image.
进一步地,所述方法包括:Further, the method includes:
建立所述灰度均值DNi与光源辐射亮度的对应关系。A corresponding relationship between the grayscale mean value DN i and the radiance of the light source is established.
本申请的第二方面提供了一种计算机存储介质,所述计算机存储介质中存储有计算机程序,所述计算机程序被处理器执行时实现如本申请第一方面所述的方法步骤。A second aspect of the present application provides a computer storage medium, where a computer program is stored in the computer storage medium, and when the computer program is executed by a processor, the method steps described in the first aspect of the present application are implemented.
本申请的第三方面提供了一种子孔径扫描平场定标子孔径扫描平场定标的数据处理系统,所述系统包括存储器、处理器及存储在所述存储器上且在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如本申请第一方面所述方法的步骤。A third aspect of the present application provides a sub-aperture scanning plan-field scaling sub-aperture scanning plan-field scaling data processing system, the system comprising a memory, a processor, and a data processing system stored on the memory and on the processor The running computer program is characterized in that, when the processor executes the computer program, the steps of the method according to the first aspect of the present application are implemented.
区别于现有技术,本发明提供的一种子孔径扫描平场定标的数据处理方法、系统和存储介质,所述方法包括:S1:获取子孔径光源经望远镜后的图像Ii;S2:所述图像Ii进行串扰信息和光斑信息识别,得到包含所述串扰信息和光斑信息的模板A;具体包括:S21:对所述图像Ii进行配准,得到配准图像IRi;S3:根据所述模板A对所述配准图像IRi进行光斑分割,得到光斑半径Ri和光斑中心Oi;S4:对所有光斑半径Ri累加求平均,得到一致的望远镜对子孔径光源所成的像的光斑半径R;S5:以R为光斑半径,Oi为光斑中心,确定光斑圆区域,并计算所述Ii图像中位于所述光斑圆区域内的所有像素点的灰度均值DNi;S6:对所有基于子孔径计算得到的DNi求和,并根据以下公式计算当前视场下全孔径灰度均值DN:DN=k·∑DNi,其中,k为校正系数;S7:获取当前视场下全孔径灰度均值DN,建立所述DN与光源辐射亮度的映射关系。Different from the prior art, the present invention provides a data processing method, system and storage medium for sub-aperture scanning flat-field calibration. The method includes: S1: acquiring the image I i of the sub-aperture light source after the telescope; S2: all the Described image I i carries out crosstalk information and light spot information identification, obtains the template A that comprises described crosstalk information and light spot information; Concretely includes: S21: carry out registration to described image I i , obtain registration image I Ri ; S3: according to The template A performs spot segmentation on the registration image I Ri to obtain the spot radius R i and the spot center O i ; S4: Accumulate and average all the spot radii R i to obtain a consistent telescope for the sub-aperture light source. The spot radius R of the image; S5: take R as the spot radius, O i as the spot center, determine the spot circle area, and calculate the gray mean value DN i of all the pixels located in the spot circle area in the I i image ; S6: sum up all DN i calculated based on the sub-aperture, and calculate the full-aperture grayscale mean value DN under the current field of view according to the following formula: DN=k·∑DN i , where k is the correction coefficient; S7: obtain The full-aperture grayscale mean DN in the current field of view is established, and the mapping relationship between the DN and the radiance of the light source is established.
上述方法在全孔径光源成像数据求解时数据处理过程简洁高效,可以有效保留原始图像的灰度值信息;同时保证同一子孔径光源在不同扫描位置获得的图像具有一致的光斑面积,可以有效去除光斑面积不一致带来的干扰;并可以识别串扰和鬼像,排除图像探测器串扰对定标结果影响。The above method is simple and efficient in the data processing process when solving the imaging data of the full-aperture light source, and can effectively retain the gray value information of the original image; at the same time, it ensures that the images obtained by the same sub-aperture light source at different scanning positions have a consistent spot area, which can effectively remove the spot. Interference caused by inconsistent areas; crosstalk and ghost images can be identified, eliminating the influence of image detector crosstalk on calibration results.
附图说明Description of drawings
图1是现有技术涉及的一种子孔径扫描平场定标子孔径扫描平场定标的扫描机构示意图;1 is a schematic diagram of a scanning mechanism for sub-aperture scanning flat-field calibration sub-aperture scanning flat-field calibration related to the prior art;
图2是现有技术涉及的一种子孔径扫描平场定标子孔径扫描平场定标的原理示意流程图;2 is a schematic flow chart of the principle of sub-aperture scanning flat-field scaling sub-aperture scanning flat-field scaling related to the prior art;
图3是本发明涉及的一种子孔径扫描平场定标子孔径扫描平场定标的数据处理方法的流程图;3 is a flowchart of a data processing method for sub-aperture scanning flat-field calibration sub-aperture scanning flat-field calibration related to the present invention;
图4是本发明涉及的另一种子孔径扫描平场定标子孔径扫描平场定标的数据处理方法的流程图;Fig. 4 is the flow chart of the data processing method of another sub-aperture scanning flat-field calibration sub-aperture scanning flat-field calibration that the present invention relates to;
图5是本发明涉及的另一种子孔径扫描平场定标子孔径扫描平场定标的数据处理方法的流程图;Fig. 5 is the flow chart of the data processing method of another sub-aperture scanning flat-field calibration sub-aperture scanning flat-field calibration that the present invention relates to;
图6是本发明涉及的另一种子孔径扫描平场定标子孔径扫描平场定标的数据处理方法的流程图。FIG. 6 is a flowchart of another sub-aperture scanning flat-field calibration data processing method for sub-aperture scanning flat-field calibration according to the present invention.
具体实施方式Detailed ways
为了使本发明的目的、技术方案及优点更加清楚明白,下面结合附图和具体实施例对本发明作进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。In order to make the objectives, technical solutions and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.
为了使本揭示内容的叙述更加详尽与完备,下文针对本发明的实施方式与具体实施例提出了说明性的描述;但这并非实施或运用本发明具体实施例的唯一形式。实施方式中涵盖了多个具体实施例的特征以及用以建构与操作这些具体实施例的方法步骤与其顺序。然而,亦可利用其它具体实施例来达成相同或均等的功能与步骤顺序。In order to make the description of the present disclosure more detailed and complete, the following provides an illustrative description of the embodiments and specific embodiments of the present invention; but this is not the only form of implementing or using the specific embodiments of the present invention. The features of various specific embodiments as well as method steps and sequences for constructing and operating these specific embodiments are encompassed in the detailed description. However, other embodiments may also be utilized to achieve the same or equivalent function and sequence of steps.
请参阅图3,为本发明涉及的一种子孔径扫描平场定标的数据处理方法的流程图。所述方法包括:Please refer to FIG. 3 , which is a flowchart of a data processing method for sub-aperture scanning flat-field calibration according to the present invention. The method includes:
S1:获取子孔径光源经望远镜后的图像Ii;S1: obtain the image I i of the sub-aperture light source after passing through the telescope;
S2:所述图像Ii进行串扰信息和光斑信息识别,得到包含所述串扰信息和光斑信息的模板A;具体包括:S21:对所述图像Ii进行配准,得到配准图像IRi;S2: The image I i is identified by crosstalk information and light spot information, and a template A that includes the crosstalk information and the light spot information is obtained; specifically: S21: The image I i is registered to obtain a registration image I Ri ;
S3:根据所述模板A对所述配准图像IRi进行光斑分割,得到光斑半径Ri和光斑中心Oi;S3: perform spot segmentation on the registration image I Ri according to the template A to obtain a spot radius R i and a spot center O i ;
S4:对所有光斑半径Ri累加求平均,得到一致的望远镜对子孔径光源所成的像的光斑半径R;S4: Accumulate and average all the spot radii R i to obtain the consistent spot radius R of the image formed by the telescope on the sub-aperture light source;
S5:以R为光斑半径,Oi为光斑中心,确定光斑圆区域,并计算所述Ii图像中位于所述光斑圆区域内的所有像素点的灰度均值DNi;S5: take R as the spot radius, O i as the spot center, determine the spot circle area, and calculate the gray mean value DN i of all the pixels located in the spot circle area in the I i image;
S6:对所有基于子孔径计算得到的DNi求和,并根据以下公式计算当前视场下全孔径灰度均值DN:DN=k·∑DNi,其中,k为校正系数;S6: Sum up all the DN i calculated based on the sub-aperture, and calculate the full-aperture grayscale mean DN under the current field of view according to the following formula: DN=k·∑DN i , where k is the correction coefficient;
S7:获取当前视场下全孔径灰度均值DN,建立所述DN与光源辐射亮度的映射关系。S7: Obtain the full-aperture grayscale mean value DN in the current field of view, and establish a mapping relationship between the DN and the radiance of the light source.
在步骤S7中,建立所述DN与光源辐射亮度的映射关系具体可以通过以下公式进行表示:DNj=Rj·Lj,其中,j为采样视场数,Rj为平场定标系数。通过将获取的某视场下的灰度均值DN与标定过可溯源至一级标准的定标光源的实际光源辐射亮度建立物理映射关系,从而完成平场定标过程。In step S7, establishing the mapping relationship between the DN and the radiance of the light source can be specifically expressed by the following formula: DN j =R j ·L j , where j is the number of sampling fields of view, and R j is the flat-field scaling coefficient . The flat-field calibration process is completed by establishing a physical mapping relationship between the acquired gray mean value DN in a certain field of view and the actual light source radiance calibrated with a calibrated light source that can be traced to the primary standard.
本发明涉及一种子孔径扫描平场辐射定标的数据处理方法,应用于基于子孔径扫描的平场定标数据处理。所述子孔径光源为白色(或者固定光谱成分)准直光,由积分球光源经分划板、准直光学系统发出准直光束,并照射至望远镜光学系统入瞳。The invention relates to a data processing method for sub-aperture scanning flat-field radiation calibration, which is applied to the data processing of sub-aperture scanning-based flat-field calibration data. The sub-aperture light source is white (or fixed spectral component) collimated light, and the integrating sphere light source emits a collimated light beam through the reticle and the collimating optical system, and illuminates the entrance pupil of the telescope optical system.
子孔径光源设计时,子孔径光源面积SA、扫描位置点个数n、待模拟的全孔径光源面积SB需满足如下关系:When designing the sub-aperture light source, the sub-aperture light source area SA, the number of scanning position points n, and the full-aperture light source area SB to be simulated must satisfy the following relationship:
SB=n×SA S B =n×S A
子孔径光源通过二维扫描机构实现水平、垂直位置扫描,通过俯仰、方位调整实现扫描视场调整。The sub-aperture light source realizes horizontal and vertical position scanning through two-dimensional scanning mechanism, and realizes scanning field of view adjustment through pitch and azimuth adjustment.
本发明第一方面提供的一种用于子孔径扫描的平场辐射定标数据处理方法,主要是对单幅子孔径定标图像光斑快速有效提取、串扰剔除方法,该方法鲁棒性高,可有效减小该数据处理环节对定标精度的影响。基于子孔径扫描的定标数据处理过程如图3所示。具体包括:子孔径光源去噪,串扰信息和鬼像信息(即光斑信息)甄别,光斑图像分割,光斑半径一致性调整,光斑灰度均值求解5个步骤。上述方案通过数据处理手段实现串扰和鬼像甄别,结合串扰形状、灰度值特性实现光斑图像分割。同时保证了所有子孔径光源定标图像具有一致的光斑大小。该方法定标准确、高效,在基于子孔径扫描的平场辐射定标领域具有广泛适用性。The first aspect of the present invention provides a flat-field radiation calibration data processing method for sub-aperture scanning, which is mainly a method for quickly and effectively extracting light spots from a single sub-aperture calibration image and eliminating crosstalk. The method has high robustness, The influence of the data processing link on the calibration accuracy can be effectively reduced. The calibration data processing process based on sub-aperture scanning is shown in Figure 3. Specifically, it includes five steps: sub-aperture light source denoising, crosstalk information and ghost image information (ie spot information) identification, spot image segmentation, spot radius consistency adjustment, and spot gray mean solution. The above scheme realizes crosstalk and ghost image discrimination by means of data processing, and realizes light spot image segmentation combined with crosstalk shape and gray value characteristics. At the same time, it ensures that all sub-aperture light source calibration images have the same spot size. The calibration method is accurate and efficient, and has wide applicability in the field of flat-field radiation calibration based on subaperture scanning.
在某些实施例中,如图4所示,步骤S1包括:In some embodiments, as shown in FIG. 4 , step S1 includes:
S11:控制子孔径光源开启,对望远镜成像,获取关于环境、系统本身的底噪图像Inoise1;S11: control the sub-aperture light source to turn on, image the telescope, and obtain a noise floor image I noise1 about the environment and the system itself;
S12:控制子孔径光源关闭,对望远镜成像,获取子孔径光源在Li位置处成的像I0;S12: control the sub-aperture light source to turn off, image the telescope, and obtain the image I 0 formed by the sub- aperture light source at the position Li;
S13:控制子孔径光源关闭,对望远镜成像,获取关于环境、系统本身的底噪图像Inoise2;S13: Control the sub-aperture light source to turn off, image the telescope, and obtain a noise floor image I noise2 about the environment and the system itself;
S14:根据以下公式计算得到图像Ii:S14: Calculate the image I i according to the following formula:
Ii=I0-(Inoise1+Inoise2)/2,(i=1,2,3,…,n)。I i =I 0 -(I noise1 +I noise2 )/2, (i=1,2,3,...,n).
优选的,所述望远镜为大口径望远镜。Preferably, the telescope is a large aperture telescope.
这样,通过在望远镜成像之前和之后分别对于环境、系统本身的底噪图像进行记录,并在望远镜成像后则对于成像图像去除底噪,使得成像图像Ii可以有效排除环境、系统本身等一些其他因素的干扰。In this way, by recording the noise floor images of the environment and the system itself before and after the telescope imaging, and removing the noise floor of the imaging image after the telescope imaging, the imaging image I i can effectively exclude the environment, the system itself, and other other interference of factors.
由于所有路径子孔径成像斑Ii在探测器的成像位置大体上保持不变(扫描视场未变)。因此,Ii中的串扰是不随扫描位置发生变化的,而鬼像会随扫描位置变化而变化(光线光学路径不同)。基于串扰和鬼像上述成像位置差异加以甄别,具体过程如图5所示。Since the sub-aperture imaging spot I i of all paths remains substantially unchanged at the imaging position of the detector (the scanning field of view does not change). Therefore, the crosstalk in I i does not change with the scanning position, while the ghost image changes with the scanning position (the optical path of the light is different). Based on the above imaging position differences of crosstalk and ghost images, the specific process is shown in Figure 5.
如图5所示,在某些实施例中,步骤S21包括:As shown in FIG. 5, in some embodiments, step S21 includes:
以图像I1作为标准图像,以图像Ii(i=2,3,…n,n为正整数)作为待配准图像,对所述图像I1和待配准图像Ii(i=2,3,…n,n为正整数)基于图像特征进行配准,得到配准后的图像集IRi,其中,IR1=I1。Taking the image I 1 as the standard image, and taking the image I i (i=2, 3, . . . n, n is a positive integer) as the image to be registered, the image I 1 and the image I i (i=2 , 3, . . . n, n is a positive integer), perform registration based on image features, and obtain a registered image set I Ri , where I R1 =I 1 .
步骤S21中的图像配准过程选用基于图像特征的配准算法进行配置,所述图像特征包括图像边缘、轮廓、统计特征(如重心)等。The image registration process in step S21 is configured by selecting a registration algorithm based on image features, and the image features include image edges, contours, statistical features (eg, center of gravity) and the like.
优选的,步骤S2包括:Preferably, step S2 includes:
S22:以图像IR1为参照图像Ir,对图像集IRi中的其他所有图像IRi均与参照图像Ir求差并取绝对值,以得到差异图像IDi;S22: Taking the image I R1 as the reference image I r , all other images I Ri in the image set I Ri are compared with the reference image I r and take the absolute value to obtain the difference image I Di ;
S23:建立和所述IDi具有相同大小的二维矩阵A1,对所述IDi对应像素灰度值求和,并将得到的灰度值之和填充至二维矩阵A1对应像素位置;S23: establish a two-dimensional matrix A1 with the same size as the IDi , sum the corresponding pixel grayscale values of the IDi , and fill the obtained grayscale value sum to the corresponding pixel position of the two-dimensional matrix A1;
S24:对二维矩阵A1做二值化处理,并做形态学闭运算,从而得到包含串扰信息和光斑信息的模板A。S24: Perform binarization processing on the two-dimensional matrix A1, and perform a morphological closing operation, thereby obtaining a template A including crosstalk information and light spot information.
二维矩阵A的二值化处理过程的阈值设定,首先基于最大类间方差法求解初始阈值,然后依据实际观测的串扰和圆斑的特点作针对性细微调整。For the threshold setting of the binarization process of the two-dimensional matrix A, the initial threshold is first calculated based on the maximum inter-class variance method, and then targeted and finely adjusted according to the characteristics of the crosstalk and circular spot actually observed.
如图6所示,步骤S3包括:As shown in Figure 6, step S3 includes:
S31:对图像IRi和模板A进行逻辑“与”运算,得到关于具有串扰信息和光斑信息的图像IRi;S31: carry out logical "AND" operation to image I Ri and template A, obtain about image I Ri with crosstalk information and light spot information;
S32:以预定长度步长逐步增大光斑半径,并以边缘区域的光斑灰度均值为约束条件,边缘区域的光斑灰度均值为目标值,求解光斑灰度均值最大时的光斑半径Ri以及光斑中心Oi;所述约束条件包括:光斑区域对应的边缘区域的灰度均值在预设范围内。优选的,所述预设长度步长为1。S32: Gradually increase the spot radius with a predetermined length step, and take the average spot gray level of the edge area as the constraint condition, and the average light spot gray level of the edge area as the target value, and find the spot radius R i when the average light spot gray value is the largest and The center O i of the light spot; the constraint conditions include: the average gray value of the edge area corresponding to the light spot area is within a preset range. Preferably, the preset length step is 1.
边缘区域光斑灰度值约束条件为中心亮度的0.6~0.7,设定原则依据光学系统、子孔径光源装置特性而定。优选的,边缘区域采用半径为R和半径为0.95R之间区域圆环区域。The constraint condition of the light spot gray value in the edge area is 0.6 to 0.7 of the central brightness, and the setting principle is determined according to the characteristics of the optical system and the sub-aperture light source device. Preferably, the edge region adopts an annular region with a radius of R and a radius of 0.95R.
在某些实施例中,“计算所述Ii图像中位于所述光斑圆区域内的所有像素的灰度均值DNi”包括:In some embodiments, "calculating the grayscale mean value DN i of all pixels located in the spot circle area in the I i image" includes:
遍历所述Ii图像中所有像素点,当某一像素点位置与光斑中心Oi的距离小于光斑半径Ri时,则判定当前像素点位于所述光斑圆区域内,待所有像素点均遍历完成后,计算所述Ii图像中位于所述光斑圆区域内的所有像素点的灰度均值DNi。Traverse all the pixel points in the described I i image, when the distance between a certain pixel point position and the spot center O i is less than the spot radius R i , then it is determined that the current pixel point is located in the described spot circle area, and all pixel points are traversed After completion, calculate the grayscale mean value DN i of all the pixel points located in the light spot circle area in the I i image.
优选的,所述方法包括:建立所述灰度均值DNi与光源辐射亮度的对应关系。Preferably, the method includes: establishing a corresponding relationship between the grayscale mean value DN i and the radiance of the light source.
DNi即为该视场下不同扫描位置处子口径光源像素灰度值,从而与光源辐射亮度建立对应关系。其它视场的处理过程与上述方法一致,最后基于视场插值或其他方法获得全视场全口径下光源与像素灰度值间的关系。DN i is the pixel gray value of the sub-aperture light source at different scanning positions in the field of view, so as to establish a corresponding relationship with the radiance of the light source. The processing process of other fields of view is the same as the above method, and finally the relationship between the light source and the pixel gray value under the full aperture of the full field of view is obtained based on the field of view interpolation or other methods.
本发明第二方面提供了一种计算机存储介质,所述计算机存储介质中存储有计算机程序,所述计算机程序被处理器执行时实现如本申请第一方面所述的方法步骤。A second aspect of the present invention provides a computer storage medium, where a computer program is stored in the computer storage medium, and when the computer program is executed by a processor, the method steps described in the first aspect of the present application are implemented.
所述存储介质为存储器,所述存储器可以为非易失性存储介质,示例性地可以包括但不限于只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存(Flash Memory),例如可以是以下任一种:嵌入式多媒体卡(Embedded Multi Media Card,EMMC)、Nor Flash、Nand Flash等。The storage medium is a memory, and the memory may be a non-volatile storage medium, which may include but not limited to a read-only memory (Read-Only Memory, ROM), a programmable read-only memory (Programmable ROM, PROM) exemplarily. , Erasable Programmable Read-Only Memory (Erasable PROM, EPROM), Electrically Erasable Programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory (Electrically EPROM, EEPROM) or Flash Memory (Flash Memory), for example, can be any of the following: Embedded Multimedia Card (Embedded Multi Media Card, EMMC), Nor Flash, Nand Flash, etc.
示例性地,存储器还可以包括缓存装置,用于缓存数据,例如信号队列。缓存装置可以为易失性存储介质,示例性地可以包括但不限于随机存取存储器(Random AccessMemory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(DynamicRAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDR SDRAM)、DDR2、DDR3、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRAM)等。Exemplarily, the memory may further include a buffer device for buffering data, such as a signal queue. The cache device may be a volatile storage medium, and may exemplarily include but not be limited to random access memory (Random Access Memory, RAM), static random access memory (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM) ), synchronous dynamic random access memory (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data Rate SDRAM, DDR SDRAM), DDR2, DDR3, enhanced synchronous dynamic random access memory (Enhanced SDRAM) , ESDRAM), synchronous connection dynamic random access memory (Synchlink DRAM, SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DRAM) and so on.
本发明第三方面提供了一种子孔径扫描平场定标的数据处理系统,所述系统包括存储器、处理器及存储在所述存储器上且在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现本申请第一方面所述方法的步骤。A third aspect of the present invention provides a data processing system for sub-aperture scanning flat-field calibration, the system comprising a memory, a processor and a computer program stored on the memory and running on the processor, characterized in that , the processor implements the steps of the method described in the first aspect of the present application when the processor executes the computer program.
示例性地,存储器例如可以包括智能电话的存储卡、平板电脑的存储部件、个人计算机的硬盘、只读存储器(ROM)、可擦除可编程只读存储器(EPROM)、便携式紧致盘只读存储器(CD-ROM)、USB存储器、或者上述存储介质的任意组合。计算机可读存储介质可以是一个或多个计算机可读存储介质的任意组合。Illustratively, the memory may include, for example, a memory card for a smartphone, a storage component for a tablet computer, a hard disk for a personal computer, read only memory (ROM), erasable programmable read only memory (EPROM), portable compact disk read only Memory (CD-ROM), USB memory, or any combination of the above storage media. A computer-readable storage medium can be any combination of one or more computer-readable storage media.
示例性地,处理器可以是中央处理单元(CPU)、图像处理单元(GPU)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(FieldProgrammable Gate Array,FPGA)或者具有数据处理能力和/或指令执行能力的其它形式的处理单元,并且可以控制系统中的其它组件以执行期望的功能。例如,处理器可以包括一个或多个嵌入式处理器、处理器核心、微型处理器、逻辑电路、硬件有限状态机(FiniteState Machine,FSM)、数字信号处理器(Digital Signal Processing,DSP)或它们的组合。Exemplarily, the processor may be a central processing unit (CPU), a graphics processing unit (GPU), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or a data processing Other forms of processing unit capable of and/or instruction execution capability, and may control other components in the system to perform the desired functions. For example, a processor may include one or more embedded processors, processor cores, microprocessors, logic circuits, hardware Finite State Machine (FSM), Digital Signal Processing (DSP), or their The combination.
以上所述仅为本发明的较佳实施例而已,并不用以限制本发明,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements and improvements made within the spirit and principles of the present invention shall be included in the protection of the present invention. within the range.
Claims (8)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011183115.0A CN112288785B (en) | 2020-10-29 | 2020-10-29 | Data processing method, system and storage medium for subaperture scanning flat field calibration |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011183115.0A CN112288785B (en) | 2020-10-29 | 2020-10-29 | Data processing method, system and storage medium for subaperture scanning flat field calibration |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112288785A CN112288785A (en) | 2021-01-29 |
CN112288785B true CN112288785B (en) | 2022-07-15 |
Family
ID=74353212
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011183115.0A Active CN112288785B (en) | 2020-10-29 | 2020-10-29 | Data processing method, system and storage medium for subaperture scanning flat field calibration |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112288785B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112884666B (en) * | 2021-02-02 | 2024-03-19 | 杭州海康慧影科技有限公司 | Image processing method, device and computer storage medium |
CN114359371B (en) * | 2022-01-04 | 2025-06-06 | 苏州华兴源创科技股份有限公司 | Calibration method, device, computer equipment, and storage medium for visual system |
CN116202746A (en) * | 2023-03-27 | 2023-06-02 | 中国科学院长春光学精密机械与物理研究所 | Method and device for calibrating flow of large-caliber space telescope in split view field |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102799887A (en) * | 2012-06-19 | 2012-11-28 | 上海地铁盾构设备工程有限公司 | Automatic calibration method of structural distortion detection image sensor sensitivity |
CN103033338A (en) * | 2012-12-12 | 2013-04-10 | 中国科学院长春光学精密机械与物理研究所 | Flat field calibrating device and flat field calibrating method of vacuum ultraviolet band imaging system |
CN106096474A (en) * | 2015-04-21 | 2016-11-09 | 手持产品公司 | System and method for imaging |
CN109785245A (en) * | 2018-12-06 | 2019-05-21 | 江苏大学 | A kind of light spot image dressing method |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8693731B2 (en) * | 2012-01-17 | 2014-04-08 | Leap Motion, Inc. | Enhanced contrast for object detection and characterization by optical imaging |
AU2019200976A1 (en) * | 2019-02-12 | 2020-08-27 | Canon Kabushiki Kaisha | Method, system and apparatus for generating training samples for matching objects in a sequence of images |
-
2020
- 2020-10-29 CN CN202011183115.0A patent/CN112288785B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102799887A (en) * | 2012-06-19 | 2012-11-28 | 上海地铁盾构设备工程有限公司 | Automatic calibration method of structural distortion detection image sensor sensitivity |
CN103033338A (en) * | 2012-12-12 | 2013-04-10 | 中国科学院长春光学精密机械与物理研究所 | Flat field calibrating device and flat field calibrating method of vacuum ultraviolet band imaging system |
CN106096474A (en) * | 2015-04-21 | 2016-11-09 | 手持产品公司 | System and method for imaging |
CN109785245A (en) * | 2018-12-06 | 2019-05-21 | 江苏大学 | A kind of light spot image dressing method |
Non-Patent Citations (1)
Title |
---|
大口径空间巡天望远镜子孔径拼接平场定标法;逯诗桐,张天一,张晓辉;《中国光学》;20201015;第13卷(第5期);1095-1101页 * |
Also Published As
Publication number | Publication date |
---|---|
CN112288785A (en) | 2021-01-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112288785B (en) | Data processing method, system and storage medium for subaperture scanning flat field calibration | |
CN108961184B (en) | A depth image correction method, device and device | |
US20130132044A1 (en) | Lens Modeling | |
US10803295B2 (en) | Method and device for face selection, recognition and comparison | |
US10539865B2 (en) | Method and device for determining an OPC model | |
US20070127036A1 (en) | Interference measurement system self-alignment method | |
CN103226819A (en) | Segmental counting-based relative radiation correction method | |
CN107085843B (en) | System and method for estimating modulation transfer function in optical system | |
CN112489140A (en) | Attitude measurement method | |
CN114596355A (en) | High-precision pose measurement method and system based on cooperative target | |
CN118470020B (en) | Intensive target-based detection metering method | |
CN110335219B (en) | Correction method and correction device for pixel distortion and terminal | |
US20200088508A1 (en) | Three-dimensional information generating device and method capable of self-calibration | |
WO2023284320A1 (en) | Three-dimensional displacement compensation method for photothermal reflectance microscopic thermal imaging, and control apparatus | |
CN110310309A (en) | An image registration method, image registration device and terminal | |
CN116224255A (en) | A camera detection data calibration method and system based on radar data | |
CN118816757B (en) | Method and system for eliminating multiple reflections of line laser 3D profile measuring instrument | |
CN108510543A (en) | A sub-pixel localization method for feature centers of checkerboard images | |
CN117119169A (en) | Camera resolution testing method, device, equipment and computer storage medium | |
CN115994935A (en) | Spot centroid determination method and system applied to laser communication | |
CN115825128A (en) | Wide-angle neutron photography method, device, equipment and medium with image correction function | |
WO2023005123A1 (en) | Optical center determination method and apparatus, electronic device, and medium | |
CN114283209B (en) | Method and device for evaluating placement position of monocular camera | |
CN119359849B (en) | Scattering correction method and electronic equipment | |
CN110310312A (en) | An image registration method, image registration device and terminal |
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 |