Automatic conversion method of dynamic point spread function

By combining optical analysis software and MPI, using multi-node parallel computing to quickly calculate the dynamic PSF corresponding to the optical lens, solving the problem of time-consuming and repetitiveness in the conversion process of static PSF to dynamic PSF in the prior art, and achieving efficient computing and analysis speed.

CN119291927BActive Publication Date: 2025-04-08CHANGCHUN INST OF OPTICS FINE MECHANICS & PHYSICS CHINESE ACAD OF SCI
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411808167.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-10
Publication Date
2025-04-08
Estimated Expiration
2044-12-10

AI Technical Summary

Technical Problem

In complex dynamic scenarios, in the process of transforming static point diffusion function (PSF) to dynamic point diffusion function (PSF), the prior art has time-consuming data processing and calculation, and is highly repetitive.

Method used

By combining optical analysis software and MPI (Multi Point Interface), multi-node parallel computing is used to quickly calculate the dynamic PSF corresponding to the optical lens. The specific steps include building an optical system model, recording and preprocessing dynamic information, allocating lens data groups to each node, calculating static PSF, and summarizing it into dynamic PSF.

Benefits of technology

It significantly improves the computing and analysis speed, realizes efficient conversion from static PSF to dynamic PSF, reduces calculation time and improves processing efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119291927B_ABST
    Figure CN119291927B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of general parallel computing, and in particular to an automatic conversion method of a dynamic point spread function. First, an optical system model is constructed according to an optical lens using optical analysis software, and a static model of the optical system model is generated using the optical analysis software; then a group of dynamic information of the optical lens at different sampling times is recorded; each group of dynamic information is preprocessed to obtain a lens data group; all lens data groups obtained using MPI are distributed to corresponding nodes, and the corresponding static PSF is calculated in each node according to the generated static model; all static PSFs are collected using MPI; all static PSFs are imported into the optical analysis software to obtain the dynamic PSF of the optical system model. The present invention combines the optical analysis software with the MPI, and quickly calculates the dynamic PSF in a multi-node parallel method, thereby improving the calculation and analysis speed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of general parallel computing, and in particular relates to an automatic conversion method of a dynamic point spread function. Background Art

[0002] In an imaging system, the PSF (Point Spread Function) describes the diffusion of a point light source on the imaging plane after passing through the optical system. The static PSF is defined under the assumption that the imaging system and the scene are stationary. It describes how the imaging system images a point light source as a blurred spot under fixed conditions. The static PSF is the spatial distribution characteristic of the system response, reflecting the response characteristics of the imaging system to the point light source under ideal conditions (i.e., no motion and fixed optical system parameters). However, in practical applications, the imaging system or the objects in the scene are usually not stationary. Dynamic factors such as camera movement, object movement, focal length change, scene illumination change, etc. will cause image blur. This blur is not only related to spatial position, but also to dynamic parameters such as time and speed. The dynamic PSF expands the concept of the static PSF and introduces dynamic variables such as time and motion. That is, the dynamic PSF refers to the description of the blur characteristics of the imaging system imaging a point light source in a dynamic scene as it changes with time or scene.

[0003] Compared with the static PSF, the dynamic PSF not only takes into account the spatial characteristics of the optical system (such as blur under fixed conditions), but also takes into account the blur changes caused by time-varying factors in dynamic scenes (dynamic factors such as vibration, focal length change, and illumination change). The process of converting the static PSF to the dynamic PSF involves a lot of data processing and calculation. Especially in complex dynamic scenes, this conversion may involve highly repetitive work and is very time-consuming. Summary of the invention

[0004] In view of this, the present invention aims to provide an automated conversion method for a dynamic point spread function, which combines optical analysis software with MPI (Multi Point Interface) to quickly calculate the dynamic PSF of an optical system corresponding to an optical lens in a multi-node parallel manner, thereby improving the speed of calculation and analysis.

[0005] To achieve the above object, the technical solution created by the present invention is implemented as follows:

[0006] An automatic conversion method of a dynamic point spread function comprises the following steps:

[0007] S1: construct an optical system model according to the optical lens using optical analysis software, and generate a static model of the optical system model using the optical analysis software;

[0008] S2: Record a set of dynamic information of the optical lens at different sampling times; pre-process each set of dynamic information to obtain a lens data set;

[0009] S3: using MPI to distribute all the lens data groups obtained in step S2 to corresponding nodes, and calculating the corresponding static PSF in each node according to the static model in step S1; using MPI to collect all static PSFs;

[0010] S4: Import all static PSFs into the optical analysis software to obtain the dynamic PSF of the optical system model.

[0011] Furthermore, in step S1, relevant parameters for PSF calculation are set in the optical analysis software, and the PSF calculation function of the optical analysis software is used to generate a static model of the optical system model according to the relevant parameters.

[0012] Further, in step S2, the number of lens data groups is greater than the number of dynamic information groups; the preprocessing is to import these dynamic information data into the optical analysis software to obtain the lens data groups.

[0013] Further, step S3 includes the following steps:

[0014] S31: Initialize the MPI environment of MPI;

[0015] S32: specifies the total number of nodes in the communication domain;

[0016] S33: allocating all lens data groups to each node evenly according to the total number of nodes, and calculating the corresponding static PSF in each node;

[0017] S34: Use the MPI aggregation result to summarize the static PSF in each node;

[0018] S35: End the MPI environment.

[0019] Further, in step S4, the optical analysis software calculates the dynamic PSF by the following formula:

[0020] ;

[0021] in, represents the dynamic PSF at time t, Represents an array of all static PSFs. represents the time-varying function, Represents a convolution operation.

[0022] Compared with the prior art, the invention can achieve the following beneficial effects:

[0023] In the automatic conversion method of the dynamic point spread function created by the present invention, the static data of the optical lens is imported into the optical analysis software to generate a static model of the optical system, and the static PSF corresponding to the optical lens at different times is calculated in parallel by using MPI multi-nodes, which significantly improves the calculation and analysis speed; finally, the static PSF corresponding to different times is summarized and combined with the time variation function to obtain the dynamic PSF, thereby realizing the conversion of the static PSF to the dynamic PSF. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The drawings constituting part of the present invention are used to provide a further understanding of the present invention. The exemplary embodiments and descriptions of the present invention are used to explain the present invention and do not constitute an improper limitation on the present invention. In the drawings:

[0025] Figure 1 A schematic flow chart of an automatic conversion method of a dynamic point spread function according to an embodiment of the present invention. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical solution and advantages of the invention more clear, the invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described here are only used to explain the invention and do not constitute a limitation of the invention.

[0027] It should be noted that, in the absence of conflict, the embodiments of the present invention and the features in the embodiments may be combined with each other.

[0028] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. In addition, the terms "first", "second", etc. are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first", "second", etc. may explicitly or implicitly include one or more of the features. In the description of the present invention, unless otherwise specified, "multiple" means two or more.

[0029] In the description of the invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installation", "connection" and "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the invention can be understood according to specific circumstances.

[0030] The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments.

[0031] like Figure 1 As shown, the automatic conversion method of the dynamic point spread function described in the embodiment of the present invention comprises the following steps:

[0032] S1: Use optical analysis software to construct an optical system model according to the optical lens, and use the optical analysis software to generate a static model of the optical system model. In step S1, set the relevant parameters of PSF calculation in the optical analysis software, the relevant parameters of PSF calculation include calculation area size, sampling rate, wavelength range, etc., use the PSF calculation function of the optical analysis software, and generate a static model of the optical system model according to the relevant parameters.

[0033] Table 1:

[0034]

[0035] Among them, the optical parameters of the optical lens include light source, field of view angle, lens material and curvature, etc., and in the embodiment of the present invention, specifically include the surface structure, curvature, lens glass type, thickness, refraction type, aperture, and eccentricity type information of each surface of the optical lens, as shown in Table 1, where 1, 2, 3, 4, 5, and 6 represent the numbers of each surface in the optical lens.

[0036] Table 2 shows the field of view information of the light source in the constructed optical system model, including field of view type (object angle), field of view angle, and vignetting data.

[0037] Table 2:

[0038]

[0039] S2: Record a set of dynamic information of the optical lens at different sampling times; pre-process each set of dynamic information to obtain a lens data set, and the number of lens data sets is greater than the number of dynamic information sets; the pre-processing is to import these dynamic information data into the optical analysis software to obtain the lens data set.

[0040] In practical applications, the objects in the imaging system or scene are usually not static. Dynamic factors such as camera movement, object movement, focal length change, scene illumination change, etc. will cause image blur. This blur is not only related to spatial position, but also to dynamic parameters such as time and speed. Therefore, it is necessary to collect a set of dynamic information of the lens over a period of time. In an embodiment of the present invention, the state of the optical lens is observed for 24 hours, and the dynamic information of the current optical lens is recorded every 1 second: including focal length, light source, field of view, lens material and curvature, etc. Based on the optical lens data in Table 1, preprocessing is performed according to different change parameters to obtain 86,400 sets of lens data.

[0041] S3: Allocate all the lens data groups obtained in step S2 to corresponding nodes using MPI, calculate the corresponding static PSF in each node according to the static model in step S1; collect all static PSFs using MPI. Step S3 includes the following steps:

[0042] S31: Initialize the MPI environment of MPI;

[0043] S32: specifies the total number of nodes in the communication domain, where the communication domain is an important concept in MPI, used to manage and maintain communication between processes; the communication domain includes not only process groups, but also contexts and virtual processor topologies; each communication domain corresponds to a process group, and processes in the process group communicate through the communication domain;

[0044] S33: allocating all lens data groups to each node evenly according to the total number of nodes, and calculating the corresponding static PSF in each node, that is, allocating 86400 lens data groups to each node evenly according to the total number of nodes to calculate the corresponding static PSF;

[0045] S34: using MPI aggregation to aggregate the static PSFs in each node, that is, using the MPI aggregation result to aggregate all static PSF data in each node; MPI aggregation is a parallel computing mode in MPI, which is used to merge or aggregate data in multiple processes;

[0046] S35: End the MPI environment.

[0047] S4: Import all static PSFs into the optical analysis software to obtain the dynamic PSF of the optical system model. In the embodiment of the present invention, in step S4, the 86400 sets of static PSF data obtained from each node are exported, summarized and imported into the optical analysis software for convolution operation, that is:

[0048] ;

[0049] in, represents the dynamic PSF at time t, Represents an array of all static PSFs. represents the time-varying function, Represents the convolution operation. The convolution operation is used in the above formula to show the combination of static PSF and time function.

[0050] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the disclosure of the present invention can be performed in parallel, sequentially or in different orders, as long as the desired results of the technical solution disclosed in the present invention can be achieved, and this document does not limit this.

[0051] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for automatic conversion of a dynamic point spread function, characterized in that: The following steps are involved: S1: constructing an optical system model according to an optical lens using optical analysis software, and generating a static model of the optical system model using the optical analysis software; S2: Record each set of dynamic information of the optical lens at different sampling moments; pre-process each set of dynamic information to obtain a lens data set; set relevant parameters for PSF calculation in the optical analysis software, and use the PSF calculation function of the optical analysis software to generate the static model according to the relevant parameters; S3: using MPI to distribute all the lens data groups obtained in step S2 to corresponding nodes, and calculating the corresponding static PSF in each node according to the static model in step S1; using the MPI to collect all the static PSFs; step S3 includes the following steps: S31: Initialize the MPI environment of the MPI; S32: specifies the total number of nodes in the communication domain; S33: allocating all lens data groups to each node evenly according to the total number of nodes, and calculating the corresponding static PSF in each node; S34: Use MPI aggregation to aggregate the static PSFs in each node; S35: End the MPI environment; S4: Import all static PSFs into the optical analysis software to obtain the dynamic PSF of the optical system model.

2. The method for automatic conversion of a dynamic point spread function according to claim 1, characterized in that: In step S2, the number of the lens data groups is greater than the number of the dynamic information groups; the preprocessing is to import the dynamic information data into the optical analysis software to obtain the lens data groups.

3. The method for automatic conversion of dynamic point spread function according to claim 1, characterized in that: In step S4, the optical analysis software calculates the dynamic PSF by the following formula: ; in, represents the dynamic PSF at time t, Represents an array of all static PSFs. represents the time-varying function, Represents a convolution operation.

Citation Information

Patent Citations

  • Full-link dynamic image quality numerical simulation system and method for aerospace camera optical system

    CN110598344A

  • Multi-node heterogeneous parallel acceleration method

    CN118363763A