Focal plane matching method and focal plane matching device of optical lens
By measuring defocus and calculating image quality in real time in multiple fields of view, and using optimization algorithms to automatically complete optical lens focal plane matching, the problem of insufficient depth of focus measurement accuracy is solved, efficient and accurate focal plane matching is achieved, and imaging quality is improved.
Patent Information
- Application Number
- CN202510873972.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-06-27
- Publication Date
- 2025-09-12
AI Technical Summary
The existing optical lens focal plane matching method lacks the accuracy of focal depth measurement under multi-field conditions and cannot accurately calculate the optimal focal plane position, resulting in image blur and reduced resolution, affecting the application effect of optical lenses in machine vision, photography, videography, aerospace and other fields.
A focal plane matching method for optical lenses is adopted. By measuring the defocus amount in multiple fields of view, the image quality quantitative parameters are calculated in real time, the optimal image plane position is solved using an optimization algorithm, and the focal plane matching is automatically completed by adjusting the platform.
It improves the efficiency and accuracy of focal plane matching of optical lenses, is applicable to multi-field conditions, achieves efficient focal plane matching, and improves imaging quality.
Smart Images

Figure CN120628554A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of optical detection technology, and in particular to a focal plane matching method of an optical lens and a focal plane matching device of an optical lens. Background Art
[0002] In optical imaging systems, the accuracy of focal plane matching plays a key role in image quality. Currently, optical lens focal plane matching methods are often based on a single field of view or simple measurement methods, which are difficult to meet complex scenes and diverse imaging requirements.
[0003] With the development of optical technology, the requirements for high resolution, large field of view, and imaging at different working distances are increasing. The existing focal plane matching method has insufficient depth of focus measurement accuracy under multi-field conditions and cannot accurately calculate the optimal focal plane position, resulting in image blur and resolution degradation. This seriously affects the application of optical lenses in fields such as machine vision, photography, aerospace, etc. In the process of testing optical lenses and integrating them with detectors, the efficiency and accuracy of focal plane matching are crucial to the production of optical lenses and the subsequent integration of the entire machine. The methods in related technologies are mostly manual adjustments, combined with computer display imaging effects to perform matching adjustments for each field of view, which have low efficiency and accuracy. Summary of the Invention
[0004] In order to solve the above technical problems, the present invention provides a focal plane matching method for an optical lens.
[0005] The invention also provides a focal plane matching device for an optical lens.
[0006] The technical solution adopted in the present invention is as follows: The first embodiment of the present invention proposes a focal plane matching method for an optical lens, comprising the following steps: installing a detector on a first adjustment platform to adjust the position of the detector, installing the optical lens on a second adjustment platform to adjust the azimuth rotation and pitch rotation of the lens, and installing the first adjustment platform, the detector, the optical lens and the second adjustment platform as a whole on a third adjustment platform to adjust the field of view of the optical lens; adjusting the angle of the third adjustment platform, measuring the defocus amount of the optical lens in multiple fields of view respectively, adjusting the first adjustment platform to focus the detector, collecting the position data of the first adjustment platform in real time during the focusing process, and calculating the image quality quantification parameters in real time through an image algorithm to obtain a curve of the image quality quantification parameters and the defocus amount; obtaining the image plane position at which the image quality quantification parameters of each field of view meet the imaging quality requirements according to the optimization algorithm, and solving the optimal image plane position; adjusting the corresponding distance and angle between the lens and the detector through the first adjustment platform and the second adjustment platform to achieve the optimal image plane position, performing image quality test confirmation on each field of view, and completing the focal plane matching of the optical lens.
[0007] The focal plane matching method of the optical lens proposed in the present invention also has the following additional technical features: According to one embodiment of the present invention, the first adjustment platform is adjusted to focus the detector, and the position data of the first adjustment platform is collected in real time during the focusing process, and the image quality quantitative parameter is calculated in real time by an image algorithm to obtain a curve of the image quality quantitative parameter and the defocus amount, specifically including: for each field of view i and each band j , with a fixed step size Adjust the first adjustment platform to focus the detector to change the defocus of the lens d, The corresponding image quality quantitative parameters are measured to obtain a curve of the image quality quantitative parameters and defocus value for each field of view-band combination.
[0008] According to an embodiment of the present invention, the image quality quantification parameters include: image clarity and modulation transfer function.
[0009] According to one embodiment of the present invention, the image plane position where the image quality quantification parameters of each field of view meet the imaging quality requirements is obtained according to the optimization algorithm, and the optimal image plane position is solved, specifically including: setting each field of view i Weight and each band j Weight ; Calculate the comprehensive weight of each field-band combination ,in, ;According to the curve of image quality quantification parameter and defocus amount, the image quality quantification parameter of all field of view-band combinations is obtained;According to the image quality quantification parameter and comprehensive weight of each field of view-band combination Constructing the objective function , the objective function F is the weighted sum of the image quality quantization parameters of all field-band combinations; solve the objective function The maximum focus amount Z of the image plane along the optical axis and the rotation angle around the x-axis and the rotation angle around the y-axis .
[0010] According to one embodiment of the present invention, the objective function is solved The maximum focus amount Z of the image plane along the optical axis and the rotation angle around the x-axis and the rotation angle around the y-axis , specifically including: calculating the focus amount Z of the objective function F on the image surface along the optical axis, the rotation angle around the x-axis and the rotation angle around the y-axis The partial derivatives are iterated using the gradient ascent method until the convergence condition is met.
[0011] The second embodiment of the present invention provides a focal plane matching device for an optical lens, comprising: an adjustment module, the adjustment module being used to mount a detector on a first adjustment platform to adjust the position of the detector, mounting the optical lens on a second adjustment platform to adjust the azimuth and pitch rotation of the lens, and mounting the first adjustment platform, the detector, the optical lens, and the second adjustment platform as a whole on a third adjustment platform to adjust the field of view of the optical lens; a measurement module, the measurement module being used to adjust the angle of the third adjustment platform, measure the defocus amount of the optical lens in multiple fields of view, adjust the first adjustment platform to focus the detector, collect position data of the first adjustment platform in real time during the focusing process, and calculate image quality quantification parameters in real time through an image algorithm to obtain a curve of image quality quantification parameters and defocus amount; an optimization module, the optimization module being used to obtain an image plane position at which the image quality quantification parameters of each field of view meet the imaging quality requirements according to the optimization algorithm, and solve the optimal image plane position; a matching module, the matching module being used to adjust the corresponding distances and angles between the lens and the detector through the first adjustment platform and the second adjustment platform to achieve the optimal image plane position, perform image quality testing and confirmation on each field of view, and complete the focal plane matching of the optical lens.
[0012] The focal plane matching device of the optical lens of the present invention also has the following additional technical features: According to one embodiment of the present invention, the measurement module is specifically configured to: for each field of view i and each band j , with a fixed step size Adjust the first adjustment platform to focus the detector to change the defocus of the lens d, The corresponding image quality quantitative parameters are measured to obtain a curve of the image quality quantitative parameters and defocus value for each field of view-band combination.
[0013] According to an embodiment of the present invention, the image quality quantification parameters include: image clarity and modulation transfer function.
[0014] According to one embodiment of the present invention, the optimization module is specifically used to: set each field of view i Weight and each band j Weight ; Calculate the comprehensive weight of each field-band combination ,in, ;According to the curve of image quality quantification parameter and defocus amount, the image quality quantification parameter of all field of view-band combinations is obtained;According to the image quality quantification parameter and comprehensive weight of each field of view-band combination Constructing the objective function , the objective function F is the weighted sum of the image quality quantization parameters of all field-band combinations; solve the objective function The maximum focus amount Z of the image plane along the optical axis and the rotation angle around the x-axis and the rotation angle around the y-axis .
[0015] According to one embodiment of the present invention, the optimization module is further used to calculate the focus amount Z of the image plane along the optical axis and the rotation angle around the x-axis of the objective function F. and the rotation angle around the y-axis The partial derivatives are iterated using the gradient ascent method until the convergence condition is met.
[0016] The present invention has the following beneficial effects: The present invention calibrates the optimal focal plane positions of multiple fields of view and can automatically complete the focal plane matching of the entire field of view of the optical lens according to the optimization algorithm, with strong versatility, high efficiency and accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 is a flow chart of a focal plane matching method for an optical lens according to an embodiment of the present invention; Figure 2 is a schematic structural diagram of a focal plane matching system of an optical lens according to an embodiment of the present invention; Figure 3 is a curve of the modulation transfer function MTF and the defocus amount d according to an embodiment of the present invention. Schematic diagram of; Figure 4 4 is a block diagram of a focal plane matching device for an optical lens according to an embodiment of the present invention. DETAILED DESCRIPTION
[0018] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.
[0019] The following describes a calibration method and a calibration device for a target radiation characteristic measuring device provided in embodiments of the present invention with reference to the accompanying drawings.
[0020] Figure 1 FIG. 1 is a flow chart of a focal plane matching method for an optical lens according to an embodiment of the present invention. Figure 1 As shown, the method includes the following steps: S1. Install the detector on the first adjustment platform to adjust the position of the detector, install the optical lens on the second adjustment platform to adjust the azimuth and pitch rotation of the lens, and install the first adjustment platform, detector, optical lens and second adjustment platform as a whole on the third adjustment platform to adjust the field of view of the optical lens.
[0021] Specifically, if Figure 2 As shown, in the optical lens focus matching system, the detector 102 is mounted on a first adjustment platform 101, which performs the axial movement required for focusing and adjusts the detector's position. The optical lens 104 is mounted on a second adjustment platform 103, which performs azimuth and elevation rotation adjustment of the lens 101 (one dimension is shown in the figure; the other dimensions are similar). The third adjustment platform 105 supports 101, 102, 103, and 104 to adjust the field of view. In the light source module 300, the light source 302 illuminates the reticle 301, generating parallel light through the collimator 200. 400 is the display and information processing unit, which displays images and performs system calculations. This allows the relative distance and angle between the lens and the detector to be independently adjusted, facilitating focus matching and other optical tests.
[0022] S2: Adjust the angle of the third adjustment platform, measure the defocus of the optical lens in multiple fields of view, adjust the first adjustment platform to focus the detector, collect the position data of the first adjustment platform in real time during the focusing process, and calculate the image quality quantitative parameters in real time through the image algorithm to obtain a curve between the image quality quantitative parameters and the defocus.
[0023] The image quality quantification parameters may include: image clarity and modulation transfer function.
[0024] Furthermore, in one embodiment of the present invention, the first adjustment platform is adjusted to focus the detector, and the position data of the first adjustment platform is collected in real time during the focusing process, and the image quality quantification parameter is calculated in real time by an image algorithm to obtain a curve of the image quality quantification parameter and the defocus amount, specifically including: for each field of view i ( i= 1,2,…, n ) and each band j ( j= 1,2,…, m ), with a fixed step size Adjust the first adjustment platform to focus the detector to change the defocus of the lens d, The corresponding image quality quantitative parameters are measured to obtain a curve of the image quality quantitative parameters and defocus value for each field of view-band combination. n and m are positive integers.
[0025] Specifically, for each field of view i and each band j , with a fixed step size By changing the lens defocus d and measuring the corresponding image quality quantitative parameters, such as image clarity and modulation transfer function, the depth of focus curve of each field of view-band combination is obtained. Taking the modulation transfer function MTF as an example, the curve of the modulation transfer function MTF and defocus d of a certain field of view-band combination is See Figure 3 shown.
[0026] S3, according to the optimization algorithm, obtain the image plane position where the image quality quantitative parameters of each field of view meet the imaging quality requirements, and solve the optimal image plane position.
[0027] In one embodiment of the present invention, the image plane position at which the image quality quantization parameters of each field of view meet the imaging quality requirements is obtained according to the optimization algorithm, and the optimal image plane position is solved, which specifically includes S31-S35: S31, set each field of view i Weight and each band j Weight .
[0028] Specifically, the weight can be set according to the actual use requirements of the optical lens. The weight can be assigned based on the importance of the field of view in the entire imaging area. For example, the central field of view has a greater impact on the imaging quality and can be given a higher weight; the edge field of view has a relatively lower weight. ,weights are assigned according to the importance of different bands in practical applications.,For example, some key bands are more critical in target detection or,recognition and can be given higher weights.
[0029] S32, calculate the comprehensive weight of each field-band combination ,in, .
[0030] S33 , obtaining image quality quantification parameters for all field-band combinations according to a curve of image quality quantification parameters and defocus.
[0031] S34, image quality quantification parameters and comprehensive weights for each field-band combination Constructing the objective function , the objective function F is the weighted sum of the image quality quantization parameters of all field-band combinations.
[0032] S35, solve the objective function The maximum focus amount Z of the image plane along the optical axis and the rotation angle around the x-axis and the rotation angle around the y-axis , in order to solve the optimal image plane position.
[0033] Specifically, let the focus adjustment amount Z of the image plane along the optical axis and the rotation angle around the x-axis be , the rotation angle around the y-axis is For the field of view i, its position coordinates are , is the coordinate of the field of view i on the x-axis, is the coordinate of the field of view i on the y-axis. Considering the image plane position after rotation and focusing, it is assumed that the ideal image plane position is , at the position of the image plane after rotation and translation, the change in distance to the image plane can be expressed as the corresponding defocus amount It can be calculated according to the following formula: The small angle approximation is used in the present invention .
[0034] Objective function is the weighted sum of the MTF values for all field-band combinations: Objective function The goal is to make To find the maximum objective function The largest , the optimization algorithm can be used to solve the optimal image plane position.
[0035] Furthermore, in one embodiment of the present invention, the objective function is solved The maximum focus amount Z of the image plane along the optical axis and the rotation angle around the x-axis and the rotation angle around the y-axis , specifically including: calculating the focus amount Z of the objective function F on the image surface along the optical axis, the rotation angle around the x-axis and the rotation angle around the y-axis The partial derivatives are iterated using the gradient ascent method until the convergence condition is met.
[0036] Specifically, the partial derivative of F with respect to Z is: ; because ,so ; in It can be approximated by numerical methods, for example: is a very small positive number.
[0037] F pair Partial derivatives of : ; because (using the small angle approximation), so: .
[0038] F right Partial derivatives of : ; because (using the small angle approximation), so: .
[0039] In one embodiment of the present invention, the iterative formula of the gradient ascent method is: in, is the parameter value for the kth iteration, is the learning rate, is the parameter value of the (k+1)th iteration. The iteration process continues until the convergence condition is met, such as , , ( 、 、 is a small positive number set in advance). That is to make the objective function The maximum focus amount Z of the image plane along the optical axis and the rotation angle around the x-axis and the rotation angle around the y-axis , that is, the optimal image plane position.
[0040] S4, adjusting the corresponding distance and angle between the lens and the detector through the first adjustment platform and the second adjustment platform to achieve the optimal image plane position, performing image quality testing and confirmation on each field of view, and completing the focal plane matching of the optical lens.
[0041] Specifically, the relative position and angle of the detector and the lens are controlled by adjusting the platform to achieve the optimal image plane position, and then the image quality of each field of view is tested and confirmed to complete the focal plane matching of the optical lens.
[0042] It should be noted that this invention ignores the initial alignment error between the detector center and the lens optical axis. It assumes that once the detector and lens are fixed, this initial alignment error is minimal, and that small lens rotations will not extend beyond the detector image plane. If the calculation result does not achieve the optimal focal plane matching position, the above process can be repeated based on the previously calculated rotation angle to achieve a more accurate focal plane matching.
[0043] In addition, in order to ensure that the lens does not interfere with various structures such as detectors when rotating, the focal plane matching system needs to be designed for safety, such as inputting the rotation angle range and focusing range, and finding the focal plane matching position within this range.
[0044] In summary, according to the focal plane matching method of the optical lens in an embodiment of the present invention, the detector is installed on the first adjustment platform to adjust the position of the detector, the optical lens is installed on the second adjustment platform to adjust the azimuth rotation and pitch rotation of the lens, and the first adjustment platform, the detector, the optical lens and the second adjustment platform are installed as a whole on the third adjustment platform to adjust the field of view of the optical lens; the angle of the third adjustment platform is adjusted, the defocus amount of the optical lens is measured in multiple fields of view respectively, the first adjustment platform is adjusted to focus the detector, and the position data of the first adjustment platform is collected in real time during the focusing process, and the image quality quantification parameters are calculated in real time through the image algorithm to obtain a curve of the image quality quantification parameters and the defocus amount; according to the optimization algorithm, the image plane position at which the image quality quantification parameters of each field of view meet the imaging quality requirements is obtained, and the optimal image plane position is solved; the corresponding distances and angles of the lens and the detector are adjusted through the first adjustment platform and the second adjustment platform to achieve the optimal image plane position, and the image quality test is confirmed for each field of view to complete the focal plane matching of the optical lens. Therefore, by calibrating the optimal focal plane position of multiple fields of view, the focal plane matching of the entire field of view of the optical lens can be automatically completed according to the optimization algorithm, which has strong versatility, high efficiency and accuracy.
[0045] Corresponding to the aforementioned method for focal plane matching of an optical lens, the present invention also provides a focal plane matching device for an optical lens. Since the device embodiments of the present invention correspond to the aforementioned method embodiments, details not disclosed in the device embodiments can be found in the aforementioned method embodiments and will not be further described in this invention.
[0046] Figure 4 FIG. 1 is a block diagram of a focal plane matching device for an optical lens according to an embodiment of the present invention. Figure 4 As shown, the device includes: an adjustment module 1, a measurement module 2, an optimization module 3 and a matching module 4.
[0047] Among them, the adjustment module 1 is used to install the detector on the first adjustment platform to adjust the position of the detector, install the optical lens on the second adjustment platform to adjust the azimuth rotation and pitch rotation of the lens, and install the first adjustment platform, detector, optical lens and second adjustment platform as a whole on the third adjustment platform to adjust the field of view of the optical lens; the measurement module 2 is used to adjust the angle of the third adjustment platform, measure the defocus amount of the optical lens in multiple fields of view, adjust the first adjustment platform to focus the detector, collect the position data of the first adjustment platform in real time during the focusing process, and calculate the image quality quantitative parameters in real time through the image algorithm to obtain a curve of image quality quantitative parameters and defocus amount; the optimization module 3 is used to obtain the image plane position whose image quality quantitative parameters of each field of view meet the imaging quality requirements according to the optimization algorithm, and solve the optimal image plane position; the matching module 4 is used to adjust the corresponding distance and angle between the lens and the detector through the first adjustment platform and the second adjustment platform to achieve the optimal image plane position, perform image quality test and confirmation on each field of view, and complete the focal plane matching of the optical lens.
[0048] According to one embodiment of the present invention, the measurement module 2 is specifically configured to: for each field of view i and each band j , with a fixed step size Adjust the first adjustment platform to focus the detector to change the defocus of the lens d, The corresponding image quality quantitative parameters are measured to obtain a curve of the image quality quantitative parameters and defocus value for each field of view-band combination.
[0049] According to an embodiment of the present invention, the image quality quantization parameters include: image clarity and modulation transfer function.
[0050] According to one embodiment of the present invention, the optimization module 3 is specifically used to: set each field of view i Weight and each band j Weight ; Calculate the comprehensive weight of each field-band combination ,in, ;According to the curve of image quality quantification parameter and defocus amount, the image quality quantification parameter of all field of view-band combinations is obtained;According to the image quality quantification parameter and comprehensive weight of each field of view-band combination Constructing the objective function , the objective function F is the weighted sum of the image quality quantization parameters of all field-band combinations; solve the objective function The maximum focus amount Z of the image plane along the optical axis and the rotation angle around the x-axis and the rotation angle around the y-axis .
[0051] According to one embodiment of the present invention, the optimization module 3 is further used to calculate the focus adjustment amount Z of the image plane along the optical axis and the rotation angle around the x-axis of the objective function F. and the rotation angle around the y-axis The partial derivatives are iterated using the gradient ascent method until the convergence condition is met.
[0052] According to the focal plane matching device of the optical lens of the embodiment of the present invention, the detector is installed on the first adjustment platform through the adjustment module to adjust the position of the detector, the optical lens is installed on the second adjustment platform to adjust the azimuth and pitch rotation of the lens, and the first adjustment platform, the detector, the optical lens and the second adjustment platform are installed as a whole on the third adjustment platform to adjust the field of view of the optical lens; the measurement module adjusts the angle of the third adjustment platform, measures the defocus amount of the optical lens in multiple fields of view, adjusts the first adjustment platform to focus the detector, collects the position data of the first adjustment platform in real time during the focusing process, and calculates the image quality quantitative parameters in real time through the image algorithm to obtain a curve of the image quality quantitative parameters and the defocus amount; the optimization module obtains the image plane position at which the image quality quantitative parameters of each field of view meet the imaging quality requirements according to the optimization algorithm, and solves the optimal image plane position; the matching module adjusts the corresponding distance and angle between the lens and the detector through the first adjustment platform and the second adjustment platform to achieve the optimal image plane position, performs image quality test and confirmation on each field of view, and completes the focal plane matching of the optical lens. Therefore, by calibrating the optimal focal plane position of multiple fields of view, the focal plane matching of the entire field of view of the optical lens can be automatically completed according to the optimization algorithm, which has strong versatility, high efficiency and accuracy.
[0053] In the description of the present invention, the terms "first" and "second" are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of the technical features indicated. Therefore, a feature specified as "first" or "second" may explicitly or implicitly include one or more of such features. "Multiple" means two or more, unless otherwise specifically defined.
[0054] In the description of this specification, the reference terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" mean that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art can combine and combine different embodiments or examples described in this specification and features of different embodiments or examples without contradiction.
[0055] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may be performed out of the order shown or discussed, including performing functions in a substantially simultaneous manner or in the reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention pertain.
[0056] The logic and / or steps represented in a flowchart or otherwise described herein, for example, can be considered a sequenced list of executable instructions for implementing the logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (e.g., a computer-based system, a system including a processor, or other system that can fetch and execute instructions from an instruction execution system, apparatus, or device). For purposes of this specification, a "computer-readable medium" is any device that can contain, store, communicate, propagate, or transport a program for use by, or in conjunction with, an instruction execution system, apparatus, or device. More specific examples (not exhaustive) of computer-readable media include: an electrical connection with one or more wires (electronic devices), a portable computer disk cartridge (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and programmable read-only memory (EPROM or flash memory), fiber optic devices, and a portable compact disc read-only memory (CDROM). Furthermore, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing it in another suitable manner if necessary, and then storing it in a computer memory.
[0057] It should be understood that various components of the present invention may be implemented using hardware, software, firmware, or a combination thereof. In the aforementioned embodiments, multiple steps or methods may be implemented using software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented using hardware, as in another embodiment, any of the following technologies known in the art, or a combination thereof, may be used: a discrete logic circuit having logic gates for implementing logic functions on data signals, an application-specific integrated circuit having suitable combinational logic gates, a programmable gate array (PGA), a field-programmable gate array (FPGA), etc.
[0058] Those skilled in the art will understand that all or part of the steps in the method of the above embodiment can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. When the program is executed, it includes one or a combination of the steps of the method embodiment.
[0059] In addition, the functional units in the various embodiments of the present invention may be integrated into a single processing module, or each unit may exist physically separately, or two or more units may be integrated into a single module. The aforementioned integrated modules may be implemented in the form of hardware or in the form of software functional modules. If the integrated modules are implemented in the form of software functional modules and sold or used as independent products, they may also be stored in a computer-readable storage medium.
[0060] The storage medium mentioned above can be a read-only memory, a magnetic disk or an optical disk, etc.
[0061] Although the embodiments of the present invention have been shown and described above, it will be understood that the above embodiments are illustrative and are not to be construed as limitations on the present invention. A person skilled in the art may change, modify, replace and modify the above embodiments within the scope of the present invention.
Claims
1. A focal plane matching method for an optical lens, characterized in that: The following steps are involved: The detector is mounted on a first adjustment platform to adjust the position of the detector, the optical lens is mounted on a second adjustment platform to adjust the azimuth and pitch rotation of the lens, and the first adjustment platform, the detector, the optical lens and the second adjustment platform are mounted as a whole on a third adjustment platform to adjust the field of view of the optical lens; Adjusting the angle of the third adjustment platform to measure the defocus of the optical lens in multiple fields of view, adjusting the first adjustment platform to focus the detector, collecting position data of the first adjustment platform in real time during the focusing process, and calculating image quality quantitative parameters in real time through an image algorithm to obtain a curve between the image quality quantitative parameters and the defocus; According to the optimization algorithm, the image plane position where the image quality quantitative parameters of each field of view meet the imaging quality requirements is obtained, and the optimal image plane position is solved; The corresponding distance and angle between the lens and the detector are adjusted through the first adjustment platform and the second adjustment platform to achieve the optimal image plane position, and the image quality of each field of view is tested and confirmed to complete the focal plane matching of the optical lens.
2. The focal plane matching method of an optical lens according to claim 1, wherein: The first adjustment platform is adjusted to focus the detector. During the focusing process, the position data of the first adjustment platform is collected in real time. The image quality quantitative parameter is calculated in real time through the image algorithm to obtain a curve of the image quality quantitative parameter and the defocus amount. Specifically, the following steps are performed: For each field of view i and each band j , with a fixed step size Adjust the first adjustment platform to focus the detector to change the defocus of the lens d, The corresponding image quality quantitative parameters are measured to obtain a curve of the image quality quantitative parameters and defocus value for each field of view-band combination.
3. The focal plane matching method of an optical lens according to claim 1, wherein: The image quality quantification parameters include: image clarity and modulation transfer function.
4. The focal plane matching method of an optical lens according to claim 1, wherein: The optimization algorithm is used to obtain the image plane position where the image quality quantitative parameters of each field of view meet the imaging quality requirements, and the optimal image plane position is solved, specifically including: Set each field of view i Weight and each band j Weight ; Calculate the combined weight for each field-band combination ,in, ; The image quality quantitative parameters of all field-band combinations are obtained according to the curve of image quality quantitative parameters and defocus; Image quality quantification parameters and comprehensive weights for each field-band combination Constructing the objective function , the objective function F is the weighted sum of the image quality quantization parameters of all field-band combinations; Solve the objective function The maximum focus amount Z of the image plane along the optical axis and the rotation angle around the x-axis and the rotation angle around the y-axis , in order to solve the optimal image plane position.
5. The focal plane matching method of an optical lens according to claim 4, wherein: Solve the objective function The maximum focus amount Z of the image plane along the optical axis and the rotation angle around the x-axis and the rotation angle around the y-axis , specifically including: Calculate the objective function F for the focus amount Z of the image surface along the optical axis and the rotation angle around the x-axis and the rotation angle around the y-axis The partial derivative of The gradient ascent method is used to iterate the partial derivatives until the convergence condition is met.
6. A focal plane matching device for an optical lens, characterized in that: include: An adjustment module, the adjustment module is used to mount the detector on a first adjustment platform to adjust the position of the detector, mount the optical lens on a second adjustment platform to adjust the azimuth and pitch rotation of the lens, and mount the first adjustment platform, the detector, the optical lens, and the second adjustment platform as a whole on a third adjustment platform to adjust the field of view of the optical lens; a measurement module, the measurement module being configured to adjust the angle of the third adjustment platform, measure the defocus of the optical lens in multiple fields of view, adjust the first adjustment platform to focus the detector, collect position data of the first adjustment platform in real time during the focusing process, and calculate image quality quantitative parameters in real time using an image algorithm to obtain a curve of image quality quantitative parameters and defocus; An optimization module is used to obtain an image plane position at which the image quality quantization parameters of each field of view meet the imaging quality requirements according to an optimization algorithm, and to solve for an optimal image plane position; The matching module is used to adjust the corresponding distance and angle between the lens and the detector through the first adjustment platform and the second adjustment platform to achieve the optimal image plane position, perform image quality testing and confirmation on each field of view, and complete the focal plane matching of the optical lens.
7. The focal plane matching device of the optical lens according to claim 6, characterized in that: The measurement module is specifically used for: For each field of view i and each band j , with a fixed step size Adjust the first adjustment platform to focus the detector to change the defocus of the lens d, The corresponding image quality quantitative parameters are measured to obtain a curve of the image quality quantitative parameters and defocus value for each field of view-band combination.
8. The focal plane matching device of the optical lens according to claim 6, characterized in that: The image quality quantification parameters include: image clarity and modulation transfer function.
9. The focal plane matching device of an optical lens according to claim 6, wherein: The optimization module is specifically used for: Set each field of view i Weight and each band j Weight ; Calculate the combined weight for each field-band combination ,in, ; The image quality quantitative parameters of all field-band combinations are obtained according to the curve of image quality quantitative parameters and defocus; Image quality quantification parameters and comprehensive weights for each field-band combination Constructing the objective function , the objective function F is the weighted sum of the image quality quantization parameters of all field-band combinations; Solve the objective function The maximum focus amount Z of the image plane along the optical axis and the rotation angle around the x-axis and the rotation angle around the y-axis , in order to solve the optimal image plane position.
10. The focal plane matching device of an optical lens according to claim 9, wherein: The optimization module is further configured to: Calculate the objective function F for the focus amount Z of the image surface along the optical axis and the rotation angle around the x-axis and the rotation angle around the y-axis The partial derivative of The gradient ascent method is used to iterate the partial derivatives until the convergence condition is met.