Device and method for detecting optical performance, optical performance detection method, and electronic equipment
Through the test board and moving parts, the lens detection points of the imaging system are aligned, and image data is collected and processed, which solves the problem of insufficient comprehensive optical performance detection of the imaging system in the prior art, and realizes comprehensive and accurate detection of the optical performance of the imaging system and Characterization.
Patent Information
- Application Number
- CN202110539160.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-05-18
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2041-05-18
Smart Images

Figure CN115371961B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of this specification relate to the technical field of optical performance detection, and in particular to a device and method for detecting the optical performance of an imaging system, an imaging system optical performance detection method, and an electronic device. Background Art
[0002] At present, imaging systems have been widely used. The optical performance of imaging systems is a very important indicator of imaging systems. Considering the complexity of the production of imaging systems and the importance of the use of occasions, it is particularly important to test the optical performance of imaging systems. Summary of the invention
[0003] The embodiments of the present specification provide a device and method for detecting the optical performance of an imaging system, an imaging system optical performance detection method, and an electronic device, so as to detect the optical performance of an imaging system.
[0004] According to a first aspect of the embodiments of this specification, there is provided a device for detecting optical performance of an imaging system, comprising:
[0005] A test board, wherein at least one set of test patterns is arranged on the test board;
[0006] A moving component, used to move the test board relative to the imaging system so that each group of test patterns on the test board is aligned with a detection point of a lens in the imaging system;
[0007] The image acquisition device is used to acquire image data formed by the imaging system for imaging the test pattern after alignment, and the image data is used to detect the optical performance of the imaging system.
[0008] A second aspect of the embodiments of this specification provides a method for detecting optical performance of an imaging system, comprising:
[0009] Providing a test board, on which at least one set of test patterns is arranged;
[0010] Move the test board relative to the imaging system so that each group of test patterns on the test board is aligned with the detection point of the lens in the imaging system;
[0011] It is used to collect image data formed by the imaging system for imaging the test pattern after alignment, and the image data is used to detect the optical performance of the imaging system.
[0012] A third aspect of the embodiments of this specification provides a method for detecting optical performance of an imaging system, comprising:
[0013] Obtaining image data formed by imaging of an imaging system, wherein the image data includes a test pattern;
[0014] The image data is processed to obtain optical performance parameters of the imaging system.
[0015] According to a fourth aspect of the embodiments of this specification, an electronic device is provided, including:
[0016] at least one processor;
[0017] A memory storing program instructions, wherein the program instructions are configured to be suitable for execution by the at least one processor, and the program instructions include instructions for executing the method as described in the third aspect.
[0018] The technical solutions provided in some embodiments of this specification can enable the test board to move relative to the imaging system so that each group of test patterns on the test board is aligned with the detection point of the lens in the imaging system. The image data formed by the imaging of the test patterns after alignment by the imaging system can be collected, and the image data is used to detect the optical performance of the imaging system. In this way, by moving the test board relative to the imaging system, the optical performance of the imaging system is detected.
[0019] The technical solutions provided in some embodiments of the present specification can obtain the optical performance parameters of the imaging system based on the image data formed by the imaging of the imaging system, thereby realizing the detection of the optical performance of the imaging system. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. The drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0021] Figure 1a This is a schematic diagram of detecting an imaging system with a viewing angle of 0 degrees according to an embodiment of this specification;
[0022] Figure 1b This is a schematic diagram of detecting an imaging system with a viewing angle of 30 degrees according to an embodiment of this specification;
[0023] Figure 2a Schematic diagram of detection points of the imaging system lens in the embodiment of this specification;
[0024] Figure 2b Schematic diagram of detection points of the imaging system lens in the embodiment of this specification;
[0025] Figure 3a A schematic diagram of a resolution panel in an embodiment of this specification;
[0026] Figure 3b is a schematic diagram of a distortion plate in an embodiment of this specification;
[0027] Figure 3c A schematic diagram of a light effect board in an embodiment of this specification;
[0028] Figure 4 This is a schematic diagram of the structure of the moving parts in the embodiment of this specification;
[0029] Figure 5 is a flow chart of a method for detecting optical performance of an imaging system in an embodiment of this specification;
[0030] Figure 6 This is a flow chart of a method for detecting optical performance of an imaging system in an embodiment of this specification;
[0031] Figure 7 This is a flowchart of processing image data in an embodiment of this specification;
[0032] Figure 8 is a schematic diagram of a first grayscale image and a second grayscale image in an embodiment of this specification;
[0033] Fig. 9 is a schematic diagram of an image mask in an embodiment of this specification;
[0034] Fig.10 This is a schematic diagram of the structure of the optical performance detection device of the imaging system in the embodiment of this specification;
[0035] Fig.11 It is a schematic diagram of the structure of an electronic device in an embodiment of this specification.
[0036] Description of reference numerals:
[0037] 1. Light source; 2. Moving part; 21. Vertical guide rail; 22. Second driving part; 23. Horizontal guide rail; 24. First driving part; 3. Test board; 4. Imaging system; 5. Support part; 6. Image acquisition device; 7. Display device. DETAILED DESCRIPTION
[0038] The following will be combined with the drawings in the embodiments of this specification to clearly and completely describe the technical solutions in the embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this specification.
[0039] It should be noted that when an element is referred to as being "disposed" on another element, it may be directly on the other element or there may be a central element. When an element is considered to be "connected" to another element, it may be directly connected to the other element or there may be a central element at the same time. The terms "vertical", "horizontal" and similar expressions used herein are for illustrative purposes only and are not intended to be the only implementation method.
[0040] In the related art, an optical performance parameter of an imaging system can be obtained, and the optical performance parameter can be used to characterize the optical performance of the imaging system. For example, the imaging system can include an endoscope, and the optical performance parameter can include a modulation transfer function value. Then, the knife edge method can be used to obtain the SFR (Spatial Frequency Response) value at a specific position of the endoscope lens, and the SFR value can be converted into a modulation transfer function value, and the modulation transfer function value can be used to characterize the modulation transfer function performance of the endoscope. However, a single optical performance parameter cannot accurately characterize the optical performance of an imaging system.
[0041] See also Figure 1a and Figure 1b The embodiments of this specification provide a device for detecting the optical performance of an imaging system.
[0042] The optical performance includes but is not limited to modulation transfer function (MTF), distortion, depth of field, light effect, etc. The imaging system 4 may include an endoscope, a camera, a thermal imager, etc. The endoscope may include a medical endoscope and an industrial endoscope, etc. The endoscope may also include a rigid endoscope and a flexible endoscope, etc. The imaging system 4 may have components such as a lens and an image sensor. The lens is used to image the object on the image sensor, and the image sensor is used to output an electrical signal according to the imaging of the lens, and the electrical signal is used to generate image data containing the object. The optical performance of the imaging system 4 can be detected using the image data.
[0043] In practical applications, a detection point may be set in the field of view of the lens. In this way, image data corresponding to the detection point may be obtained, and the image data corresponding to the detection point may be used to detect the optical performance of the imaging system 4. Alternatively, considering that the imaging quality at different positions of the lens is different, in order to comprehensively detect the optical performance of the imaging system 4, multiple detection points may be set in the field of view of the lens. In this way, image data corresponding to the multiple detection points may be obtained, and the image data corresponding to the multiple detection points may be used to detect the optical performance of the imaging system 4. Figure 2a A detection point setting method is shown. Figure 2a In the example, five detection points are set in the field of view of the lens. Figure 2b Another detection point setting method is shown. Figure 2b In the example, four detection points are set in the field of view of the lens.
[0044] The device for detecting the optical performance of an imaging system may include a test board 3 , a moving component 2 and an image acquisition device 6 .
[0045] In some embodiments, at least one group of test patterns may be provided on the test board 3, and each group of test patterns may include one or more test patterns. Preferably, multiple groups of test patterns may be provided on the test board 3. In this way, for each detection point of the lens in the imaging system 4, multiple image data formed by the imaging of the multiple groups of test patterns by the imaging system 4 can be obtained, and the multiple image data can be used to detect the optical performance of the imaging system 4 at the detection point. Thereby making the detection result more accurate. In practical applications, multiple optical performance parameters of the imaging system 4 at the detection point can be obtained according to the multiple image data, and the multiple optical performance parameters can be used to characterize the optical performance of the imaging system 4 at the detection point. Among them, the multiple optical performance parameters can be directly used to characterize the optical performance of the imaging system 4 at the detection point. Alternatively, an optical performance curve can also be generated according to the multiple optical performance parameters, and the optical performance curve can be used to characterize the optical performance of the imaging system 4 at the detection point.
[0046] When different optical properties need to be tested, different test boards 3 can be used. For example, when the modulation transfer function performance needs to be tested, a resolution test board can be used. The resolution test board can be provided with at least one set of resolution patterns. Each set of resolution patterns can correspond to a resolution level and include one or more resolution patterns. For example, Figure 3a The resolution board shown may be provided with 25 sets of resolution patterns, corresponding to 25 resolution levels.
[0047] Each set of resolution patterns may include four resolution patterns, and the resolution patterns may include parallel lines of black and white. The directions of the parallel lines are different between the four resolution patterns. The density of the parallel lines within each set of resolution patterns is consistent. The density of the parallel lines between different sets of resolution patterns is different. In this way, the modulation transfer function performance of the imaging system 4 can be detected by using the resolution board. For another example, when the distortion performance of the imaging system 4 needs to be detected, the following method can be used: Figure 3b As another example, when it is necessary to detect the light performance of the imaging system 4, the Figure 3c The light effect board shown.
[0048] In some embodiments, the test board 3 may be disposed on a moving component 2. The moving component 2 is used to move the test board 3 relative to the imaging system 4 so that each group of test patterns on the test board 3 is aligned with the detection point of the lens in the imaging system 4. After alignment, the test board 3 is perpendicular to the imaging optical axis of the imaging system 4. The imaging optical axis is the central axis of the field of view of the imaging system 4.
[0049] See also Figure 4 . The moving component 2 may include a horizontal guide rail 23 and a vertical guide rail 21. The vertical guide rail 21 may be arranged on the horizontal guide rail 23, and the vertical guide rail 21 can move in the horizontal direction along the horizontal guide rail 23. The test board 3 may be arranged on the vertical guide rail 21, and the test board 3 can move in the vertical direction along the vertical guide rail 21. The horizontal direction and the vertical direction may be perpendicular to the imaging optical axis of the imaging system 4. Through the horizontal guide rail 23 and the vertical guide rail 21, the test board 3 is made perpendicular to the imaging optical axis of the imaging system 4 during the movement. Among them, the test board 3 can be directly arranged on the vertical guide rail 21. Alternatively, the test board 3 can also be arranged on the vertical guide rail 21 through a supporting component.
[0050] In practical applications, the test board 3 can be moved in the vertical direction and / or in the horizontal direction by manual operation. For example, the vertical guide rail 21 can be moved along the horizontal guide rail 23 and / or the test board 3 can be moved along the vertical guide rail 21 by manual operation. Alternatively, the image acquisition device 6 can also control the test board 3 to move in the vertical direction and / or in the horizontal direction. In this way, automated detection can be achieved and detection efficiency can be improved. Specifically, a first driving component 24 (such as a driving motor) can be provided on the horizontal guide rail 23, and the first driving component 24 can be used to drive the vertical guide rail 21 to move along the horizontal guide rail 23. A second driving component 22 (such as a driving motor) can be provided on the vertical guide rail 21, and the second driving component 22 can be used to drive the test board 3 to move along the vertical guide rail 21. The image acquisition device 6 can send control signals to the first driving component 24 and the second driving component 22 to control the test board 3 to move along the vertical guide rail 21 and control the vertical guide rail 21 to move along the horizontal guide rail 23.
[0051] The number of the detection points may be one. The moving component 2 may move the test board 3 so that each group of test patterns on the test board 3 is aligned with the detection points respectively. Alternatively, the number of the detection points may also be multiple. The moving component 2 may move the test board 3 so that each group of test patterns on the test board 3 is aligned with the multiple detection points one by one. In practical applications, each group of test patterns on the test board 3 may be aligned with one detection point respectively, and then each group of test patterns on the test board 3 may be aligned with another detection point respectively, and this cycle may be repeated continuously to achieve detection.
[0052] The alignment of each set of test patterns with the detection point may be that the detection point is located at a specific position (e.g., the center position) of the test pattern group. Alternatively, each set of test patterns may also be provided with a reference point, and the reference point is located at a specific position (e.g., the center position) of the test pattern group. Thus, the alignment of each set of test patterns with the detection point may be that the detection point is aligned with the reference point.
[0053] In some embodiments, the image acquisition device 6 may include a desktop computer, a portable computer (such as a laptop), a mobile smart phone, a tablet computer, etc. The image acquisition device 6 may be connected to the imaging system 4 in communication. The image acquisition device 6 is used to acquire image data formed by the imaging system 4 for imaging of the test pattern after each group of test patterns on the test board 3 is aligned with the detection point of the lens in the imaging system 4. The image data may be obtained by photographing the imaging system 4, or may also be generated by the image acquisition device 6. The image data may be used to detect optical performance. Further, the image acquisition device 6 may also be used to process the image data to obtain an optical performance test result. The optical performance test result is used to characterize the optical performance of the imaging system 4. The optical performance test result may include optical performance parameters and / or optical performance curves. The optical performance parameters may include modulation transfer function values, distortion rate, brightness uniformity, etc. The modulation transfer function value is used to characterize the modulation transfer function performance of the imaging system 4. The distortion rate is used to characterize the distortion (Distortion, also known as distortion) performance of the imaging system 4. The brightness uniformity is used to characterize the light efficiency performance of the imaging system 4. The optical performance curve includes a modulation transfer function curve, etc. The optical performance curve can be generated by the image acquisition device 6 according to the optical performance parameters, and can more vividly represent the optical performance of the imaging system 4. For example, the modulation transfer function curve can be generated by the image acquisition device 6 according to the modulation transfer function value.
[0054] The image acquisition device 6 obtains the optical performance parameters, which may include at least one of the following situations.
[0055] In case (1), a group of test patterns are arranged on the test board 3, and the number of the test points is one. The image acquisition device 6 can acquire image data formed by the imaging system 4 for imaging of the group of test patterns, and can process the image data to obtain an optical performance parameter of the test point. The optical performance parameter can be used to characterize the optical performance of the imaging system 4 at the test point.
[0056] Case (2), multiple groups of test patterns are arranged on the test board 3, and the number of the detection points is one. The image acquisition device 6 can acquire multiple image data formed by the imaging system 4 for the imaging of the multiple groups of test patterns, and can process the multiple image data to obtain multiple optical performance parameters of the detection point. The multiple optical performance parameters can more accurately characterize the optical performance of the imaging system 4. Among them, the multiple optical performance parameters can be directly used to characterize the optical performance of the imaging system 4 at the detection point. Alternatively, an optical performance curve can also be obtained based on the multiple optical performance parameters, and the optical performance curve can be used to characterize the optical performance of the imaging system 4 at the detection point.
[0057] In case (3), a group of test patterns are arranged on the test board 3, and the number of the test points is multiple. For each test point, the image acquisition device 6 can acquire an image data formed by the imaging system 4 for the imaging of a group of test patterns, and can process the image data to obtain an optical performance parameter of the test point. In this way, the optical performance parameters of multiple test points can be obtained, and the test of multiple test points can be realized.
[0058] Case (4), multiple groups of test patterns are arranged on the test board 3, and the number of the detection points is multiple. For each detection point, the image acquisition device 6 can acquire multiple image data formed by the imaging system 4 for the imaging of the multiple groups of test patterns, and can process the multiple image data to obtain multiple optical performance parameters of the detection point. In this way, the optical performance parameters of multiple detection points can be obtained, and the detection of multiple detection points can be realized. Among them, the multiple optical performance parameters of each detection point can be directly used to characterize the optical performance of the imaging system 4 at the detection point. Alternatively, an optical performance curve can be obtained based on the multiple optical performance parameters of each detection point, and the optical performance curve can be used to characterize the optical performance of the imaging system 4 at the detection point.
[0059] In some embodiments, the device for detecting the optical performance of an imaging system may further include a light source 1 .
[0060] The light source 1 can be used to provide parallel light to illuminate the test board 3. The light source 1 can be a parallel light transmission light box. Of course, other light sources that can provide parallel light can also be used in practice.
[0061] The test board 3 may include a transmission test board. The transmission test board may be located between the light source 1 and the imaging system 4, so that the parallel light output by the light source 1 can pass through the transmission test board and enter the lens of the imaging system 4. Of course, the test board 3 may also include a reflection test board. The light source 1 and the imaging system 4 may be located on the same side of the reflection test board.
[0062] In some embodiments, the device for detecting the optical performance of the imaging system may further include a supporting component 5. The supporting component 5 may be used to support the imaging system 4 so that the imaging optical axis of the imaging system 4 is consistent with the direction of the beam of parallel light. The supporting component 5 may only be able to support an imaging system with a certain specific viewing angle. Alternatively, the supporting component 5 may also support a variety of imaging systems, and the various imaging systems have different viewing angles. For example, the supporting component 5 may include a supporting platform and at least two columns. The supporting platform is used to support the imaging system 4, and the at least two columns are used to support the supporting platform. By modulating the height difference between the columns, the supporting component 5 can support imaging systems with a variety of different viewing angles. Of course, those skilled in the art will understand that the above structure of the supporting component 5 is only an example, and in practice the supporting component 5 may also be other forms of structures. Figure 1a In the embodiment, the support member 5 supports the imaging system with a viewing angle of 0 degrees. Figure 1b In the figure, the supporting component 5 supports the imaging system with a viewing angle of 30 degrees.
[0063] In some embodiments, the device for detecting the optical performance of the imaging system may further include a display device 7. The display device 7 may include a desktop computer, a portable computer (such as a laptop computer), a mobile smart phone, a tablet computer, etc. The display device 7 may be connected to the imaging system 4 in communication. The display device 7 and the image acquisition device 6 may be different devices respectively. Alternatively, the display device 7 and the image acquisition device 6 may also be integrated in the same device. The display device 7 is used to display the imaging of the imaging system 4 so as to observe the alignment of each group of test patterns with the detection points. Further, the display device 7 may also receive the optical performance detection results sent by the image acquisition device 6, and may display the optical performance detection results. Further, the display device 7 may also display the field of view of the imaging system 4 lens, so that the detection personnel can set multiple detection points in the field of view. The display device 7 may obtain the detection points set by the detection personnel.
[0064] Based on the device for detecting the optical performance of an imaging system provided in the embodiment of this specification, the embodiment of this specification also provides a method for detecting the optical performance of an imaging system. Figure 5The method may include the following steps.
[0065] Step S501: providing a test board 3 on which at least one set of test patterns is arranged.
[0066] In some embodiments, parallel light may also be provided to illuminate the test board 3 .
[0067] Step S503 : moving the test board 3 relative to the imaging system 4 , so that each group of test patterns on the test board 3 is aligned with the detection points of the lens in the imaging system 4 .
[0068] In some embodiments, the imaging system 4 may be an imaging system to be detected. The imaging system 4 may be disposed on a support component 5. In practice, the support component 5 may be adjusted according to the viewing angle of the imaging system 4. Thus, after the imaging system 4 is disposed on the support component 5, the imaging optical axis of the imaging system 4 is consistent with the beam direction of the parallel light.
[0069] In some embodiments, the detection points can be set by the detection personnel in the field of view of the lens of the imaging system 4. Specifically, the display device 7 can display the field of view of the lens in the imaging system 4, so that the detection personnel can set multiple detection points in the field of view. The display device 7 can obtain the detection points set by the detection personnel.
[0070] In some embodiments, the alignment of each group of test patterns with the detection points may be that the detection points are located at a specific position (e.g., a center position) of the group of test patterns. Alternatively, each group of test patterns may be provided with a reference point, and the reference point is located at a specific position (e.g., a center position) of the group of test patterns. The alignment of each group of test patterns with the detection points may be that the detection points are aligned with the reference points. The display device 7 may display the imaging of the imaging system 4 so as to observe the alignment of each group of test patterns with the detection points.
[0071] In some embodiments, the number of the detection point may be one. The moving component 2 may move the test board 3 so that each group of test patterns on the test board 3 is aligned with the detection point. Alternatively, the number of the detection points may also be multiple. The moving component 2 may move the test board 3 so that each group of test patterns on the test board 3 is aligned with the multiple detection points one by one. In practical applications, each group of test patterns on the test board 3 may be aligned with one detection point respectively, and then each group of test patterns on the test board 3 may be aligned with another detection point respectively, and this cycle may be repeated continuously to achieve detection.
[0072] The moving component 2 may include a horizontal rail 23 and a vertical rail 21. The vertical rail 21 may be arranged on the horizontal rail 23, and the vertical rail 21 may move in the horizontal direction along the horizontal rail 23. The test board 3 may be arranged on the vertical rail 21, and the test board 3 may move in the vertical direction along the vertical rail 21. Therefore, the test board 3 may be moved in the horizontal direction by the horizontal rail 23. The test board 3 may be moved in the vertical direction by the vertical rail 21. The horizontal direction and the vertical direction may be perpendicular to the imaging optical axis of the imaging system 4. In practical applications, the image acquisition device 6 may control the test board 3 to move along the vertical rail 21, and control the vertical rail 21 to move along the horizontal rail 23.
[0073] Step S505 : collecting image data formed by imaging the test pattern after alignment by the imaging system 4 , wherein the image data is used to detect the optical performance of the imaging system 4 .
[0074] In some embodiments, the image acquisition device 6 can acquire image data formed by the imaging system 4 for imaging of the test patterns after each group of test patterns on the test board 3 is aligned with the detection point of the lens in the imaging system 4, and the image data may include the group of test patterns.
[0075] In some embodiments, the test board 3 may be provided with multiple groups of test patterns. The number of the detection points may be one. The moving component 2 may move the test board 3 so that a group of test patterns on the test board 3 are aligned with the detection points. After the group of test patterns are aligned with the detection points, the image acquisition device 6 may acquire image data formed by the imaging system 4 for the imaging of the group of test patterns. Then, the moving component 2 may continue to move the test board 3 so that another group of test patterns on the test board 3 are aligned with the detection points. After the group of test patterns are aligned with the detection points, the image acquisition device 6 may acquire image data formed by the imaging system 4 for the imaging of the group of test patterns. By continuously cycling in this way, the multiple groups of test patterns on the test board 3 may be aligned with the detection points one by one, and multiple image data corresponding to the detection points may be acquired. Alternatively, the test board 3 may be provided with multiple groups of test patterns. The number of the detection points may be multiple. The moving component 2 may move the test board 3 so that the multiple groups of test patterns on the test board 3 are aligned with a detection point of the lens in the imaging system 4. The image acquisition device 6 may acquire multiple image data formed by the imaging system 4 for the imaging of the multiple groups of test patterns. Then, the moving component 2 can continue to move the test board 3 so that the multiple groups of test patterns on the test board 3 are aligned with another detection point of the lens in the imaging system 4. The image acquisition device 6 can acquire multiple image data formed by imaging the multiple groups of test patterns by the imaging system 4. By continuously cycling in this way, the multiple groups of test patterns on the test board 3 can be aligned with the multiple detection points, and multiple image data corresponding to the multiple detection points can be acquired.
[0076] In some embodiments, the image acquisition device 6 can also process the image data to obtain an optical performance test result. The optical performance test result is used to characterize the optical performance of the imaging system 4. The optical performance test result may include an optical performance parameter and / or an optical performance curve. Further, the image acquisition device 6 can also send the optical performance test result to the display device 7, and the display device 7 can receive the optical performance test result and display the optical performance test result.
[0077] The following introduces a scenario example of an embodiment of this specification.
[0078] In this scenario example, the imaging system 4 can be a medical rigid endoscope, and the viewing angle of the medical rigid endoscope is 0 degrees. The device for detecting the optical performance of the imaging system may include a light source 1, a resolution board, a moving part 2, an image acquisition device 6 and a display device 7. The light source 1 can be a parallel light transmission light box. The support part 5 can be adjusted according to the viewing angle of the medical rigid endoscope, so that after the medical rigid endoscope is set on the support part 5, the imaging optical axis of the medical rigid endoscope is consistent with the direction of the parallel light beam. The medical rigid endoscope can be set on the adjusted support part 5. The display device 7 can be connected to the medical rigid endoscope, and the image acquisition device 6 can be connected to the medical rigid endoscope.
[0079] In this example scenario, the resolution board can be Figure 3a As shown. The resolution plate can be a transmission type resolution plate. The resolution plate can be located between the parallel light transmission light box and the medical rigid endoscope. The distance between the parallel light transmission light box and the resolution plate, and the distance between the resolution plate and the medical rigid endoscope can be adjusted to make the image of the resolution pattern in the medical rigid endoscope lens clear. The display device 7 can display the field of view of the medical rigid endoscope lens, so that the inspection personnel can set five inspection points such as A, B, C, D, and E in the field of view.
[0080] In this scenario example, the moving component 2 can move the resolution plate so that a group of resolution patterns on the resolution plate are aligned with the detection point A of the medical rigid endoscope lens. After the group of resolution patterns are aligned with the detection point A, the image acquisition device 6 can collect image data corresponding to the detection point A formed by the medical rigid endoscope for the imaging of the group of resolution patterns. Then, the moving component 2 can continue to move the resolution plate so that another group of resolution patterns on the resolution plate are aligned with the detection point A. After the group of resolution patterns are aligned with the detection point A, the image acquisition device 6 can collect image data corresponding to the detection point A formed by the medical rigid endoscope for the imaging of the group of resolution patterns. In this way, by continuously looping, 25 groups of resolution patterns on the resolution plate can be aligned with the detection point A of the medical rigid endoscope lens, so that 25 image data corresponding to the detection point A can be collected. Repeating the above process can align the 25 groups of resolution patterns on the resolution plate with the detection point B of the medical rigid endoscope lens, and 25 image data corresponding to the detection point B can be collected. By repeating the above process, the 25 sets of resolution patterns on the resolution board can be aligned with the detection point C of the medical rigid endoscope lens, and 25 image data corresponding to the detection point C can be collected. By repeating the above process, the 25 sets of resolution patterns on the resolution board can be aligned with the detection point D of the medical rigid endoscope lens, and 25 image data corresponding to the detection point D can be collected. By repeating the above process, the 25 sets of resolution patterns on the resolution board can be aligned with the detection point E of the medical rigid endoscope lens, and 25 image data corresponding to the detection point E can be collected.
[0081] In this scenario example, the image acquisition device 6 can obtain 5 image data sets, which correspond to 5 detection points A, B, C, D, and E. Each image data set can include 25 image data, and each image data can include a set of resolution patterns. Each set of resolution patterns corresponds to a resolution level, including one or more resolution patterns.
[0082] The method for detecting the optical performance of an imaging system in the embodiment of this specification can move the test board relative to the imaging system so that each group of test patterns on the test board is aligned with the detection point of the lens in the imaging system; after alignment, image data formed by the imaging of the test pattern by the imaging system can be collected. The image data is used to detect the optical performance of the imaging system. In this way, by moving the test board relative to the imaging system, the optical performance of the imaging system is detected.
[0083] Based on the device for detecting the optical performance of an imaging system provided in the embodiment of this specification, the embodiment of this specification also provides a method for detecting the optical performance of an imaging system. The method for detecting the optical performance of an imaging system can be applied to electronic devices, for example, it can be applied to the image acquisition device in the aforementioned device for detecting the optical performance of an imaging system. Figure 6 The imaging system optical performance detection method may include the following steps.
[0084] Step S601: obtaining image data formed by imaging of an imaging system, wherein the image data includes a test pattern.
[0085] In some embodiments, the image data may be a color image. The image data may be separate image data. Alternatively, the image data may also be an image data frame in a video. The image data is formed by imaging the test pattern by the imaging system after the test pattern is aligned with the detection point of the lens in the imaging system. The image data may correspond to a detection point of the imaging system lens. The image data may include a group of test patterns, and the group of test patterns may include one or more test patterns. For example, the image data may include a group of resolution patterns, and the group of resolution patterns may correspond to a resolution level, and may specifically include multiple resolution patterns. Of course, the test patterns in the image data may also be other patterns, for example, Figure 3b The pattern in the distorted plate shown.
[0086] Step S602: Process the image data to obtain optical performance parameters of the imaging system.
[0087] In some embodiments, a grayscale image can be generated based on the image data; the grayscale value corresponding to the test pattern can be determined in the grayscale image; and the optical performance parameter of the imaging system can be calculated based on the grayscale value. Figure 7 , the processing of image data may include the following steps.
[0088] Step S701: Generate a first grayscale image and a second grayscale image according to image data.
[0089] The image data may be grayed to obtain a first grayscale image and a second grayscale image. The first grayscale image and the second grayscale image are the same. For example, the first grayscale image and the second grayscale image may be as follows: Figure 8 shown. Figure 8 The grayscale image shown may contain 4 resolution patterns, and the 4 resolution patterns correspond to Figure 3a The resolution level on the resolution plate shown is 1. The resolution pattern may include parallel black and white lines.
[0090] Step S703: determining a first target area where the test pattern is located in the first grayscale image.
[0091] A first threshold value can be determined; the first threshold value can be used to determine the first target area where the test pattern is located in the first grayscale image to distinguish the first target area from other areas outside the first target area. The first threshold value can be an empirical value. Alternatively, the first threshold value can also be obtained by an image segmentation algorithm. The image segmentation algorithm can include the Otsu method (OTSU), the mean iteration method, the maximum entropy method, etc. It is worth noting that the image data contains one or more test patterns, so one or more first target areas can be determined in the first grayscale image.
[0092] Step S705: performing morphological processing on the first target area.
[0093] Morphological operations may be used to perform morphological processing on the first target area.
[0094] By performing morphological processing on the first target area, the holes in the first target area can be filled, and the burrs in the first target area can be removed, so that the processed first target area is closer to the real contour of the test pattern. The morphological operation may include image opening operation and / or image closing operation.
[0095] Step S707: Generate an image mask according to the processed first target area.
[0096] The image mask may be a binary image. In the image mask, the pixel value of each pixel in the first target area after processing is one value, and the pixel value of each pixel in other areas is another value. For example, the pixel value of each pixel in the first target area after processing may be 0, and the pixel value of each pixel in other areas may be 1. In this way, the first target area after processing is black, and the other areas are white. For another example, the pixel value of each pixel in the first target area after processing may be 1, and the pixel value of each pixel in other areas may be 0. In this way, the first target area after processing is white, and the other areas are black.
[0097] In the first grayscale image, the pixel value of each pixel in the processed first target area can be set to one value, and the pixel value of each pixel in other areas can be set to another value to obtain an image mask.
[0098] For example, the first grayscale image may be Figure 8The number of first target regions in the first grayscale image is 4. Image opening and image closing operations can be used to process each first target region respectively to fill the holes between the white lines in each first target region; the following can be generated based on each processed first target region: Fig. 9 Image mask shown.
[0099] Step S709: using the image mask, determining the grayscale value corresponding to the test pattern in the second grayscale image.
[0100] Step S711: Calculate the optical performance parameters of the imaging system according to the grayscale value.
[0101] The optical performance parameters may include a modulation transfer function value, a distortion rate, brightness uniformity, etc. The modulation transfer function value may be used to characterize the modulation transfer function performance of the imaging system. The distortion rate may be used to characterize the distortion performance of the imaging system. The brightness uniformity may be used to characterize the light efficiency performance of the imaging system.
[0102] The image mask can be used to determine the second target area where the test pattern is located in the second grayscale image; the grayscale value corresponding to the test pattern can be determined in the second target area; and the optical performance parameter can be calculated based on the grayscale value. Among them, the contour information of the test pattern can be obtained from the image mask, and the second target area where the test pattern is located can be determined in the second grayscale image based on the contour information. The contour information can include the position information of the pixel points. It is worth noting that the image data contains one or more test patterns, so one or more second target areas can be determined in the second grayscale image. The grayscale value corresponding to the test pattern can be determined based on the grayscale value of the pixel points in the second target area.
[0103] The test pattern may include a first sub-pattern and a second sub-pattern. A first sub-region where the first sub-pattern is located and a second sub-region where the second sub-pattern is located may be determined in the second target region; a first grayscale value corresponding to the first sub-pattern may be determined in the first sub-region; a second grayscale value corresponding to the second sub-pattern may be determined in the second sub-region; and an optical performance parameter of the imaging system may be calculated based on the first grayscale value and the second grayscale value.
[0104] For different types of test patterns, the first sub-pattern and the second sub-pattern are different. For example, the test pattern may be Figure 3a The first sub-pattern may be a white line, and the second sub-pattern may be a black line.
[0105] A second threshold may be determined; the second threshold may be used to determine the first sub-region and the second sub-region in the second target region. The second threshold may be the same as the first threshold. Alternatively, the second threshold may be different from the first threshold. The determination process of the second threshold is similar to the determination process of the first threshold, and the two may be explained in comparison.
[0106] Among them, a pixel point can be arbitrarily selected in the first sub-region, and the grayscale value of the pixel point can be used as the first grayscale value. Alternatively, the average grayscale value of each pixel point in the first sub-region can be calculated as the first grayscale value. Alternatively, the median of the grayscale value of each pixel point in the first sub-region can be calculated as the first grayscale value. The process of determining the second grayscale value is similar to the process of determining the first grayscale value, and the two can be explained in comparison.
[0107] Different types of optical performance parameters may be calculated in different calculation methods, for example, the optical performance parameter may be a modulation transfer function value. The test pattern may be a resolution pattern, and the resolution pattern includes parallel black and white lines. The first sub-pattern may be a white line, and the first sub-area may be a white line area. A first grayscale value corresponding to the white line may be determined in the white line area. The second sub-pattern may be a black line, and the second sub-area may be a black line area. A second grayscale value corresponding to the black line may be determined in the black line area. The first grayscale value and the second grayscale value may be subtracted to obtain a first component of the modulation transfer function value; the first grayscale value and the second grayscale value may be added to obtain a second component of the modulation transfer function value; the first component and the second component may be divided to obtain the modulation transfer function value. Specifically, for example, the modulation transfer function value may be calculated by the formula MTF=(Imax-Imin) / (Imax+Imin). MTF represents the modulation transfer function value, Imax represents the first grayscale value, Imin represents the second grayscale value, Imax-Imin represents the first component, and Imax+Imin represents the second component. Of course, those skilled in the art will appreciate that the calculation formula for the modulation transfer function value here is only an example, and in practice the formula may also have other deformations or changes.
[0108] The image data may include a test pattern. An optical performance parameter may be obtained through this embodiment. Alternatively, the image data may also include multiple test patterns. One or more optical performance parameters may be obtained through this embodiment. Specifically, the test pattern may include a first sub-pattern and a second sub-pattern. In the case where the image data includes multiple test patterns, multiple second target areas may be determined in the second grayscale image. For each second target area, a first sub-area where the first sub-pattern is located and a second sub-area where the second sub-pattern is located may be determined in the second target area; a first grayscale value corresponding to the first sub-pattern may be determined in the first sub-area; and a second grayscale value corresponding to the second sub-pattern may be determined in the second sub-area. Thus, multiple first grayscale values and multiple second grayscale values corresponding to multiple second target areas are obtained. In some embodiments, a first representative value may be determined based on the multiple first grayscale values; a second representative value may be determined based on the multiple second grayscale values; and an optical performance parameter may be calculated based on the first representative value and the second representative value. In this way, an optical performance parameter may be obtained. Among them, a first grayscale value may be arbitrarily selected from the multiple first grayscale values as the first representative value. Alternatively, the average value of the multiple first grayscale values may be calculated as the first representative value. Alternatively, the median of multiple first grayscale values may be calculated as the first representative value. The process of determining the second representative value is similar to the process of determining the first representative value, and the two may be explained in comparison. The process of calculating the optical performance parameter according to the first representative value and the second representative value is similar to the process of calculating the optical performance parameter according to the first grayscale value and the second grayscale value, and the two may be explained in comparison. In other embodiments, the optical performance parameter may be calculated respectively according to the first grayscale value and the second grayscale value corresponding to each second target area. In this way, multiple optical performance parameters may be obtained.
[0109] In some other implementations of this embodiment, the processing of the image data may further include the following steps: generating a grayscale image according to the image data; determining a target area where the test pattern is located in the grayscale image; determining a grayscale value corresponding to the test pattern in the target area; and calculating an optical performance parameter according to the grayscale value. Figure 7 The process of determining the first target area where the test pattern is located in the first grayscale image in the corresponding embodiment is similar, and the two can be explained in comparison. The process of determining the grayscale value corresponding to the test pattern in the target area is similar to Figure 7 The process of determining the grayscale value corresponding to the test pattern in the second target area in the corresponding implementation manner is similar, and the two can be explained in comparison.
[0110] In some embodiments, the optical performance parameter may also be sent to a display device, and the display device may receive the optical performance parameter and display the optical performance parameter.
[0111] In some embodiments, an image data may be obtained, and the image data may correspond to a detection point of a lens in an imaging system. Thus, an optical performance parameter may be obtained for the image data through this embodiment. The optical performance parameter corresponds to the detection point corresponding to the image data, and is used to characterize the optical performance of the imaging system at the detection point.
[0112] In some embodiments, at least one image data set can be obtained. Each image data set can correspond to a detection point of a lens in an imaging system and include at least one image data. Each image data may include a set of test patterns on a test board, and the set of test patterns may include one or more test patterns. In this way, for each image data, an optical performance parameter can be obtained through this embodiment. The optical performance parameters obtained based on the image data in each image data set can be included in the optical performance parameter set corresponding to the image data set. The optical performance parameter set includes at least one optical performance parameter for characterizing the optical performance of the imaging system at the detection point corresponding to the image data set.
[0113] Furthermore, an optical performance graph can be generated according to each optical performance parameter set. The optical performance graph can more vividly characterize the optical performance of the imaging system at the detection point. For example, the optical performance parameters in the optical performance parameter set can include modulation transfer function values. In this way, a modulation transfer function curve can be generated according to each optical performance parameter set. In practice, for example, a modulation transfer function curve can be generated by curve fitting. Furthermore, an optical performance graph (such as a modulation transfer function curve) can also be sent to a display device. The display device can receive the optical performance graph and can display the optical performance graph.
[0114] The optical performance detection method of the imaging system of the embodiment of the present specification can obtain optical performance parameters for characterizing the optical performance of the imaging system based on the image data formed by the imaging of the imaging system, thereby realizing the detection of the optical performance of the imaging system.
[0115] The embodiments of this specification also provide an imaging system optical performance detection device.
[0116] See also Fig.10 , the imaging system optical performance detection device may include the following units.
[0117] An acquisition unit 1001 is used to obtain image data formed by imaging of an imaging system, wherein the image data includes a test pattern;
[0118] The processing unit 1003 is used to process the image data to obtain the optical performance parameters of the imaging system.
[0119] See also Fig.11 The embodiments of this specification also provide an electronic device.
[0120] The electronic device may include a memory and a processor.
[0121] In this embodiment, the memory includes but is not limited to dynamic random access memory (DRAM) and static random access memory (SRAM), etc. The memory can be used to store computer instructions.
[0122] In this embodiment, the processor may be implemented in any suitable manner. For example, the processor may take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (such as software or firmware) executable by the (micro)processor, a logic gate, a switch, an application specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller, etc. The processor may be used to execute the computer instructions to implement Figure 6 The corresponding embodiment.
[0123] Each embodiment in this specification is described in a progressive manner, and the same and similar parts between the embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments. In addition, the above are only a few embodiments of the present invention. Although the embodiments disclosed by the present invention are as above, the contents are only embodiments adopted for the convenience of understanding the present invention and are not intended to limit the present invention. Any technician in the technical field to which the present invention belongs can make any modifications and changes in the form and details of the embodiments without departing from the spirit and scope disclosed by the present invention, but the scope of patent protection of the present invention shall still be subject to the scope defined by the attached claims.
Claims
1. A device for detecting the optical performance of an imaging system, comprising: A test board, wherein at least one set of test patterns is arranged on the test board; A moving component, used to move the test board relative to the imaging system so that each group of test patterns on the test board is aligned with the detection points of the lens in the imaging system; wherein the number of detection points in the lens is multiple, and the movement is used to align each group of test patterns on the test board with the multiple detection points of the lens in the imaging system one by one; An image acquisition device is used to acquire image data formed by the imaging system for imaging the test pattern after alignment, wherein the image data includes image data corresponding to the multiple detection points, and the image data corresponding to the multiple detection points is used to detect the optical performance of the imaging system.
2. The device for detecting the optical performance of an imaging system according to claim 1, wherein the test plate comprises a resolution plate, and a plurality of sets of resolution patterns are arranged on the resolution plate; Each set of resolution patterns includes at least one resolution pattern.
3. According to the device for detecting the optical performance of an imaging system as described in claim 1, the image acquisition device is also used to control the moving part so that the test plate moves in a vertical direction and / or in a horizontal direction; the horizontal direction and the vertical direction are perpendicular to the imaging optical axis of the imaging system.
4. The device for detecting the optical performance of an imaging system as described in claim 3, wherein the movable component includes a horizontal guide rail and a vertical guide rail; the vertical guide rail is arranged on the horizontal guide rail, and the vertical guide rail can move in the horizontal direction along the horizontal guide rail; the test board is arranged on the vertical guide rail, and the test board can move in the vertical direction along the vertical guide rail.
5. The apparatus for detecting the optical performance of an imaging system as claimed in claim 1, wherein the image acquisition device is further used to process the image data to obtain a detection result of the optical performance of the imaging system.
6. The device for detecting the optical performance of an imaging system as described in claim 5, wherein the optical performance detection result includes optical performance parameters and / or optical performance curves, the optical performance parameters include at least one of the following: modulation transfer function value, distortion rate, brightness uniformity, and the optical performance curve includes a modulation transfer function curve.
7. The device for detecting the optical performance of an imaging system according to claim 1, further comprising: The light source is used to provide parallel light to illuminate the test board.
8. The device for detecting the optical performance of an imaging system according to claim 7, The test plate comprises a transmission type test plate; During detection, the transmission test plate is located between the light source and the imaging system.
9. The device for detecting the optical performance of an imaging system according to claim 7, further comprising: The supporting component is used to support the imaging system so that the imaging optical axis of the imaging system is consistent with the beam direction of the parallel light.
10. The device for detecting the optical performance of an imaging system according to claim 9, The supporting component can support imaging systems with multiple different viewing angles.
11. The device for detecting optical performance of an imaging system according to claim 1, further comprising: A display device is used to display the imaging of the imaging system and / or the optical performance detection result of the imaging system.
12. A method for detecting optical performance of an imaging system, comprising: Providing a test board, on which at least one set of test patterns is arranged; The test board is moved relative to the imaging system so that each group of test patterns on the test board is aligned with the detection points of the lens in the imaging system; wherein there are multiple detection points in the lens, and the movement is used to align each group of test patterns on the test board with multiple detection points of the lens in the imaging system one by one; The device is used to collect image data formed by the imaging system for imaging the test pattern after alignment, wherein the image data includes image data corresponding to the multiple detection points, and the image data corresponding to the multiple detection points is used to detect the optical performance of the imaging system.
13. The method for detecting the optical performance of an imaging system according to claim 12, The test pattern includes a resolution pattern.
14. The method for detecting optical performance of an imaging system according to claim 12, further comprising: The image data is processed to obtain an optical performance test result of the imaging system.
15. The method for detecting the optical performance of an imaging system according to claim 12, wherein the step of moving the test plate relative to the imaging system comprises: Controlling the moving component to move the test plate in a vertical direction and / or in a horizontal direction; The horizontal direction and the vertical direction are perpendicular to the imaging optical axis of the imaging system.
16. A method for detecting optical performance of an imaging system, comprising: Obtaining image data formed by imaging of the imaging system, wherein the image data includes a test pattern; wherein obtaining the image data formed by imaging of the imaging system comprises: obtaining a plurality of image data sets formed by imaging of the imaging system, each image data set corresponding to a detection point of a lens in the imaging system; Processing the image data to obtain optical performance parameters of the imaging system; For each image data set, the optical performance parameters obtained based on the image data in the image data set are included in the optical performance parameter set corresponding to the image data set, and the optical performance parameter set includes at least one optical performance parameter for characterizing the optical performance of the imaging system at the detection point corresponding to the image data set.
17. The method for detecting optical performance of an imaging system according to claim 16, The image data is formed by imaging the test pattern by the imaging system after the test pattern is aligned with a detection point of a lens in the imaging system.
18. The method for detecting optical performance of an imaging system according to claim 16, The processing of the image data comprises: Generate a grayscale image according to the image data; Determining a grayscale value corresponding to the test pattern in the grayscale image; According to the grayscale value, the optical performance parameter of the imaging system is calculated.
19. The method for detecting optical performance of an imaging system according to claim 18, The step of generating a grayscale image according to the image data comprises: Generate a first grayscale image and a second grayscale image according to the image data, wherein the first grayscale image and the second grayscale image are the same; Determining the grayscale value corresponding to the test pattern in the grayscale image includes: Determine a first target area where the test pattern is located in the first grayscale image; performing morphological processing on the first target area; generating an image mask according to the processed first target area; The image mask is used to determine the grayscale value corresponding to the test pattern in the second grayscale image.
20. The imaging system optical performance detection method according to claim 19, wherein the test pattern comprises a first sub-pattern and a second sub-pattern; and determining the grayscale value corresponding to the test pattern in the second grayscale image comprises: Determining a second target area where the test pattern is located in the second grayscale image using the image mask; Determine, in the second target area, a first sub-area where the first sub-pattern is located and a second sub-area where the second sub-pattern is located; determining a first grayscale value corresponding to the first sub-pattern in the first sub-region; determining a second grayscale value corresponding to the second sub-pattern in the second sub-region; The calculating the optical performance parameters of the imaging system comprises: The optical performance parameter of the imaging system is calculated according to the first grayscale value and the second grayscale value.
21. The imaging system optical performance detection method according to claim 20, wherein the test pattern comprises a resolution pattern, and the optical performance parameter comprises a modulation transfer function value; The calculating the optical performance parameters of the imaging system comprises: Subtracting the first grayscale value from the second grayscale value to obtain a first component of a modulation transfer function value; Adding the first grayscale value and the second grayscale value to obtain a second component of the modulation transfer function value; The first component and the second component are divided to obtain a modulation transfer function value.
22. The imaging system optical performance detection method according to claim 16, further comprising: The optical performance parameter is sent to a display device so that the display device displays the optical performance parameter.
23. The imaging system optical performance detection method according to claim 16, wherein the optical performance parameter set comprises a plurality of modulation transfer function values, and the imaging system optical performance detection method further comprises: A modulation transfer function curve is generated according to the optical performance parameter set.
24. The imaging system optical performance detection method according to claim 23, further comprising: The modulation transfer function curve is sent to a display device so that the display device displays the modulation transfer function curve.
25. An electronic device comprising: at least one processor; A memory storing program instructions, wherein the program instructions are configured to be executed by the at least one processor, and the program instructions include instructions for executing the method according to any one of claims 16 to 24.
Citation Information
Patent Citations
Testing device and testing method for complete optical imaging camera system transfer function
CN104198162A
Endoscope lens optical performance detection device and detection method
CN110132547A
