A method and device for optimizing slant edge MTF test

By performing noise reduction processing on both sides and photoelectric conversion function processing on the hypotenuse data in the MTF test, the analysis process is optimized, the impact of image noise on the results is resolved, and a more accurate lens resolution performance evaluation is achieved.

CN115914018BActive Publication Date: 2024-08-30SHANGHAI YANDING TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211391033.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-08
Publication Date
2024-08-30
Estimated Expiration
2042-11-08

AI Technical Summary

Technical Problem

In the existing technology, the MTF test method is easily affected by image noise when processing hypotenuse data, causing deviations in analysis results and affecting the accurate evaluation of lens resolution performance.

Method used

By denoising the hypotenuse data on both sides separately, using the slope distribution to remove noise in different areas, and combining the steps of photoelectric conversion function, Hamming window and discrete Fourier transform, the analysis process is optimized to reduce the impact of noise on the results.

Benefits of technology

The deviation of noise on MTF curve evaluation is reduced, making the evaluation of lens resolution performance more accurate and reliable.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115914018B
    Figure CN115914018B
Patent Text Reader

Abstract

The purpose of the present application is to provide a slant edge MTF test optimization method and device. The present application comprises the following steps: first, selecting an analysis block containing slant edge data from a target object to be analyzed; second, performing noise reduction processing on both sides of the analysis block containing slant edge data to obtain slant edge data after noise reduction processing; third, using an OECF curve to perform linearization processing on the slant edge data after noise reduction processing; fourth, calculating the slope of the slant edge data after linearization processing, and projecting the linearized data according to the direction of the slope; fifth, after obtaining ESF and calculating LSF of the projected data, sequentially performing Hamming window processing and DFT processing; sixth, performing local optimization and smoothing on the DFT-processed data and then outputting it. For image noise, noise removal processing is performed in different regions on both sides of the slant edge block according to the slope distribution to reduce the deviation of the analysis result caused by noise, so as to make the evaluation of the MTF curve more accurate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a slant-edge MTF test optimization method and device. Background Art

[0002] In the prior art, the optical system modulation transfer function (MTF) test is a scientific method for detecting the resolution of the lens. Camera module manufacturers can evaluate the performance of the lens through the MTF curve. There are many ways to test MTF. The commonly used method is to follow the test method in the international standard ISO12233. Figure 1 As shown, the MTF test method in the prior art includes:

[0003] Step A: Select the analysis block containing the bevel edge data.

[0004] Step B: Linearize the selected slope data using an optoelectronic conversion function (OECF) curve.

[0005] Step C: Calculate the slope of the hypotenuse data and project the data in the direction of the slope.

[0006] Step D: The projected data is used to obtain an edge spread function (ESF), and then a line spread function (LSF) is calculated.

[0007] Step E: Perform Hamming window processing on the data.

[0008] Step F: Perform Discrete Fourier Transform (DFT) processing on the data after Hamming window processing.

[0009] Step G: Perform local optimization and smoothing on the data processed by DFT and then output it.

[0010] because Figure 1 The original image noise introduced from step A to step B in the flowchart of the prior art will affect the subsequent calculation results. After step E, the error caused by the noise cannot be ignored. Summary of the invention

[0011] One purpose of the present application is to provide a slant-edge MTF test optimization method and device, which optimizes the analysis process for image noise, reduces the deviation of the analysis result caused by noise, makes the evaluation of the MTF curve more accurate, and is more helpful for the evaluation of the resolution performance of the device.

[0012] According to one aspect of the present application, a slant edge MTF test optimization method is provided, wherein the method comprises:

[0013] Step 1: Select an analysis block containing oblique edge data from the target object to be analyzed;

[0014] Step 2: Perform noise reduction processing on both sides of the analysis block containing the oblique edge data to obtain the oblique edge data after noise reduction processing;

[0015] Step 3, using an optoelectronic conversion function (OECF) curve to perform linearization processing on the hypotenuse data after the noise reduction processing;

[0016] Step 4: Calculate the slope of the hypotenuse data after linearization processing, and perform projection processing on the linearized data according to the direction of the slope;

[0017] Step 5: The projected data is used to obtain the edge spread function ESF, and after calculating the line spread function LSF, Hamming window processing and discrete Fourier transform DFT processing are performed in sequence;

[0018] Step 6: Locally optimize and smooth the data after DFT processing and then output it.

[0019] Furthermore, in the above method, if the target object is a picture to be analyzed, the step 2 of performing noise reduction processing on both sides of the analysis block containing the bevel data to obtain the bevel data after noise reduction processing includes:

[0020] Distinguish the analysis block containing the oblique edge data on both sides to obtain a first side analysis area and a second side analysis area respectively;

[0021] Perform noise calculation on the first side analysis area and the second side analysis area respectively to obtain a first noise value Na of the first side analysis area and a second noise value Nb of the second side analysis area;

[0022] The first noise value Na is removed from the first side analysis area and the second noise value Nb is removed from the second side analysis area in the analysis block containing the oblique edge data, so as to obtain the oblique edge data after noise reduction processing.

[0023] Furthermore, in the above method, the calculation formula of the first noise value Na of the first side analysis area is:

[0024]

[0025] Wherein, gi is the gray value of a single pixel in the first side analysis area, and n is the total number of pixels in the first side analysis area;

[0026] ga_ave is the average grayscale value of all pixels in the first side analysis area, and the calculation formula of ga_ave is:

[0027]

[0028] The calculation formula of the second noise value Nb of the second side analysis area is:

[0029]

[0030] Wherein, gj is the gray value of a single pixel in the second side analysis area, and m is the total number of pixels in the second side analysis area;

[0031] gb_ave is the average grayscale value of all pixels in the second side analysis area. The calculation formula of gb_ave is:

[0032]

[0033] Furthermore, in the above method, if the target object is a video to be analyzed, the step 2 of performing noise reduction processing on both sides of the analysis block containing the bevel data to obtain the bevel data after noise reduction processing includes:

[0034] Distinguish the video analysis block containing the bevel data on both sides to obtain a first side bevel block and a second side bevel block;

[0035] Perform time domain noise calculation on the first side bevel block and the second side bevel block respectively to obtain a first time domain noise Ta of the first side bevel block and a second time domain noise Tb of the second side bevel block;

[0036] The first time domain noise Ta corresponding to each frame of the bevel data in the first side bevel block is removed, and the second time domain noise Tb corresponding to each frame of the bevel data in the second side bevel block is removed to obtain the bevel data after noise reduction processing.

[0037] Furthermore, in the above method, the calculation formula of the first time domain noise Ta of the first side slant edge block is:

[0038]

[0039] Wherein, Gr is the average gray value of each frame in the first side bevel block, and W is the total number of frames in the first side bevel block;

[0040] Ga_ave is the average grayscale value of all frames in the first side slant edge block, and the calculation formula of Ga_ave is:

[0041]

[0042]

[0043] Wherein, Gs is the average gray value of each frame in the second side slant edge block;

[0044] Gb_ave is the average grayscale value of all frames in the second side slant edge block, and the calculation formula of Gb_ave is:

[0045]

[0046] According to another aspect of the present application, a non-volatile storage medium is provided, on which computer-readable instructions are stored. When the computer-readable instructions can be executed by a processor, the processor implements the above-mentioned slant-edge MTF test optimization method.

[0047] According to another aspect of the present application, a slant edge MTF test optimization device is also provided, wherein the device comprises:

[0048] one or more processors;

[0049] A computer readable medium for storing one or more computer readable instructions,

[0050] When the one or more computer-readable instructions are executed by the one or more processors, the one or more processors implement the above-mentioned slant-edge MTF test optimization method.

[0051] Compared with the prior art, the present application provides a method for optimizing the slant edge MTF test, which includes: step 1, selecting an analysis block containing slant edge data from the target object to be analyzed; step 2, performing noise reduction processing on both sides of the analysis block containing slant edge data to obtain slant edge data after noise reduction processing; step 3, linearizing the slant edge data after noise reduction processing using the photoelectric conversion function OECF curve; step 4, calculating the slope of the slant edge data after linearization processing, and projecting the linearized data according to the direction of the slope; step 5, obtaining the edge spread function ESF from the projected data, and calculating the line spread function LSF, and then performing Hamming window processing and discrete Fourier transform DFT processing in sequence; step 6, performing local optimization and smoothing on the DFT-processed data and then outputting it. In the present application, the analysis process is optimized for image noise, and noise removal processing is performed in different regions on both sides of the slant edge block according to the slope distribution. Compared with the global noise processing, the additional error introduced is smaller, thereby reducing the deviation caused by noise to the analysis result, making the evaluation of the MTF curve more accurate, and more helpful for the evaluation of the device resolution performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:

[0053] Figure 1 It is a schematic diagram of the process of the slant edge test MTF in the prior art;

[0054] Figure 2 A schematic flow chart showing a method for optimizing a slant-edge MTF test according to one aspect of the present application is shown;

[0055] Figure 3 A schematic diagram showing the distinction between the two sides of a slant edge in a slant edge MTF test optimization method according to one aspect of the present application;

[0056] Figure 4 A schematic diagram of the process of optimizing a slant-edge MTF test on a video in a slant-edge MTF test optimization method according to one aspect of the present application is shown.

[0057] The same or similar reference numerals in the drawings represent the same or similar components. DETAILED DESCRIPTION

[0058] The present application is described in further detail below in conjunction with the accompanying drawings.

[0059] In a typical configuration of the present application, the terminal, the device of the service network and the trusted party all include one or more processors (CPU), input / output interfaces, network interfaces and memories.

[0060] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0061] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory media such as modulated data signals and carrier waves.

[0062] like Figure 2 As shown, one aspect of the present application provides a flow chart of a slant edge MTF test optimization method, which specifically includes the following steps:

[0063] Step 1 (corresponding to Figure 2 In step A), an analysis block containing oblique edge data is selected from a target object to be analyzed; here, the target object includes but is not limited to a picture or a video, etc.;

[0064] Step 2 (corresponding to Figure 2 In step A1), the analysis block containing the oblique edge data is subjected to noise reduction processing on both sides to obtain the oblique edge data after noise reduction processing;

[0065] Step 3 (corresponding to Figure 2 In step B), linearizing the hypotenuse data after the noise reduction processing by using an optoelectronic conversion function (OECF) curve;

[0066] Step 4 (corresponding to Figure 2 In step C), the slope of the hypotenuse data after linearization processing is calculated, and the linearized data is projected in the direction of the slope;

[0067] Step 5 (corresponding to Figure 2 In steps D, E and F in the above method, the edge spread function ESF is obtained from the projected data, and the line spread function LSF is calculated, and then Hamming window processing and discrete Fourier transform DFT processing are performed in sequence.

[0068] Step 6: Locally optimize and smooth the data after DFT processing and then output it.

[0069] Through the above steps 1 to 6, the analysis process is optimized for image noise. After selecting the analysis block containing the bevel data, the present application adds a noise removal process on both sides of the analysis block containing the bevel data according to the calculated slope distribution. Compared with the additional error introduced by the global noise processing, the deviation caused by noise in the bevel MTF test process is reduced, so that the evaluation of the MTF curve is more accurate, and a more accurate evaluation of the resolution performance of the lens to be tested is further achieved.

[0070] In the single picture test in the prior art, Figure 1 The noise removal operation is added between step A and step B. This operation is different from the traditional filtering operation. Because the traditional filtering operation will perform global operations, it is easy to destroy the original data while removing the noise. Figure 2 The newly added step A1 is performed according to the density on both sides of the hypotenuse and the slope of the hypotenuse. Figure 2 As shown, if the target object is a picture to be analyzed, the step 2 of performing noise reduction processing on both sides of the analysis block containing the bevel data to obtain the bevel data after noise reduction specifically includes:

[0071] After the analysis block containing the oblique edge data is intercepted from the image to be analyzed, when calculating the noise, it is necessary to distinguish the two sides of the analysis block containing the oblique edge data, and obtain the first side analysis area and the second side analysis area respectively, such as Figure 3 As shown, the black and gray parts are the analysis areas on both sides;

[0072] Then, noise calculation is performed on the first side analysis area and the second side analysis area on both sides respectively, to obtain a first noise value Na of the first side analysis area and a second noise value Nb of the second side analysis area;

[0073] When removing noise, the first noise value Na is removed from the first side analysis area and the second noise value Nb is removed from the second side analysis area in the analysis block containing the oblique edge data to obtain the oblique edge data after noise reduction processing, thereby achieving the removal of noise on both sides respectively; finally, according to the following method, Figure 2 The process shown continues with subsequent steps.

[0074] In this embodiment, the calculation formula of the first noise value Na of the first side analysis area is:

[0075]

[0076] Wherein, gi is the gray value of a single pixel in the first side analysis area, and n is the total number of pixels in the first side analysis area;

[0077] ga_ave is the average grayscale value of all pixels in the first side analysis area, and the calculation formula of ga_ave is:

[0078]

[0079] The calculation formula of the second noise value Nb of the second side analysis area is:

[0080]

[0081] Wherein, gj is the gray value of a single pixel in the second side analysis area, and m is the total number of pixels in the second side analysis area;

[0082] gb_ave is the average grayscale value of all pixels in the second side analysis area. The calculation formula of gb_ave is:

[0083]

[0084] Following the above embodiments of the present application, Figure 4 As shown, when shooting a video test, in addition to analyzing multiple frames of data to remove the mean to reduce the influence of noise, it is necessary to calculate the time domain noise on both sides of the hypotenuse in the shot video before analyzing the MTF. For example, if the target object is a video to be analyzed, the step 2, performing noise reduction processing on both sides of the analysis block containing the hypotenuse data to obtain the hypotenuse data after noise reduction, includes:

[0085] Distinguish the video analysis block containing the bevel data on both sides to obtain a first side bevel block and a second side bevel block;

[0086] The time domain noise is calculated for the first side bevel block and the second side bevel block respectively, so as to obtain the first time domain noise Ta of the first side bevel block and the second time domain noise Tb of the second side bevel block; when calculating the time domain noise, the brightness value and the mean value of all frames in each side bevel block can be obtained respectively, so as to obtain the variance of all frames as the time domain noise;

[0087] The first time domain noise Ta corresponding to each frame of the bevel data in the first side bevel block is removed, and the second time domain noise Tb corresponding to each frame of the bevel data in the second side bevel block is removed to obtain the bevel data after noise reduction processing; and then according to Figure 4 The MTF curve is solved by the steps shown in , and finally the MTF curve data of multiple frames are averaged to obtain the final evaluation index.

[0088] In this embodiment, the calculation formula of the first time domain noise Ta of the first side slant edge block is:

[0089]

[0090] Wherein, Gr is the average gray value of each frame in the first side bevel block, and W is the total number of frames in the first side bevel block;

[0091] Ga_ave is the average grayscale value of all frames in the first side slant edge block, and the calculation formula of Ga_ave is:

[0092]

[0093]

[0094] Wherein, Gs is the average gray value of each frame in the second side slant edge block;

[0095] Gb_ave is the average grayscale value of all frames in the second side slant edge block, and the calculation formula of Gb_ave is:

[0096]

[0097] According to another aspect of the present application, a non-volatile storage medium is provided, on which computer-readable instructions are stored. When the computer-readable instructions can be executed by a processor, the processor implements the above-mentioned slant-edge MTF test optimization method.

[0098] According to another aspect of the present application, a slant edge MTF test optimization device is also provided, wherein the device comprises:

[0099] one or more processors;

[0100] A computer readable medium for storing one or more computer readable instructions,

[0101] When the one or more computer-readable instructions are executed by the one or more processors, the one or more processors implement the above-mentioned slant-edge MTF test optimization method.

[0102] Here, the details of each embodiment of the device for improving image quality can be specifically referred to the corresponding part of the embodiment of the above-mentioned slant edge MTF test optimization method, which will not be repeated here.

[0103] In summary, the present application provides a slant edge MTF test optimization method, which includes: step 1, selecting an analysis block containing slant edge data from a target object to be analyzed; step 2, performing noise reduction processing on both sides of the analysis block containing the slant edge data to obtain the slant edge data after noise reduction processing;

[0104] Step 3: Use the optoelectronic conversion function OECF curve to linearize the bevel data after the noise reduction processing; Step 4: Calculate the slope of the bevel data after the linearization processing, and project the linearized data in the direction of the slope; Step 5: The projected data obtains the edge spread function ESF, and after calculating the line spread function LSF, it performs Hamming window processing and discrete Fourier transform DFT processing in sequence; Step 6: Locally optimize and smooth the data after DFT processing and output it. In this application, the analysis process is optimized for image noise, and noise removal processing is performed in different regions on both sides of the bevel block according to the slope distribution. Compared with the global noise processing, the additional error introduced is smaller, thereby reducing the deviation of the analysis result caused by noise, making the evaluation of the MTF curve more accurate, and more helpful for the evaluation of the device resolution performance.

[0105] It should be noted that the present application can be implemented in software and / or a combination of software and hardware, for example, can be implemented using an application specific integrated circuit (ASIC), a general purpose computer or any other similar hardware device. In one embodiment, the software program of the present application can be executed by a processor to implement the steps or functions described above. Similarly, the software program of the present application (including relevant data structures) can be stored in a computer-readable recording medium, for example, a RAM memory, a magnetic or optical drive or a floppy disk and similar devices. In addition, some steps or functions of the present application can be implemented using hardware, for example, as a circuit that cooperates with a processor to perform each step or function.

[0106] In addition, a part of the present application may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present application through the operation of the computer. The program instruction for calling the method of the present application may be stored in a fixed or removable recording medium, and / or transmitted through a data stream in a broadcast or other signal-bearing medium, and / or stored in a working memory of a computer device that runs according to the program instruction. Here, according to an embodiment of the present application, a device is included, the device including a memory for storing computer program instructions and a processor for executing program instructions, wherein, when the computer program instruction is executed by the processor, the device is triggered to run the method and / or technical solution based on the aforementioned multiple embodiments according to the present application.

[0107] It is obvious to those skilled in the art that the present application is not limited to the details of the above exemplary embodiments, and that the present application can be implemented in other specific forms without departing from the spirit or basic features of the present application. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-restrictive, and the scope of the present application is limited by the attached claims rather than the above description, so it is intended to include all changes that fall within the meaning and scope of the equivalent elements of the claims in the present application. Any figure mark in the claims should not be regarded as limiting the claims involved. In addition, it is obvious that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the device claim can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.

Claims

1. A method for optimizing slant edge MTF test, wherein: The method comprises: Step 1: Select an analysis block containing oblique edge data from the target object to be analyzed; Step 2: Perform noise reduction processing on both sides of the analysis block containing the oblique edge data to obtain the oblique edge data after noise reduction processing; Step 3, using an optoelectronic conversion function (OECF) curve to perform linearization processing on the hypotenuse data after the noise reduction processing; Step 4: Calculate the slope of the hypotenuse data after linearization processing, and perform projection processing on the data after linearization processing according to the direction of the slope; Step 5: The projected data is used to obtain the edge spread function ESF, and after calculating the line spread function LSF, Hamming window processing and discrete Fourier transform DFT processing are performed in sequence; Step 6: Locally optimize and smooth the data after DFT processing and then output it; If the target object is a picture to be analyzed, the step 2 of performing noise reduction processing on both sides of the analysis block containing the bevel data to obtain the bevel data after noise reduction processing includes: Distinguish the analysis block containing the oblique edge data on both sides to obtain a first side analysis area and a second side analysis area respectively; Perform noise calculation on the first side analysis area and the second side analysis area respectively to obtain a first noise value Na of the first side analysis area and a second noise value Nb of the second side analysis area; Removing the first noise value Na from the first side analysis area and the second noise value Nb from the second side analysis area in the analysis block containing the oblique edge data, so as to obtain the oblique edge data after noise reduction processing; The calculation formula of the first noise value Na of the first side analysis area is: Wherein, gi is the gray value of a single pixel in the first side analysis area, and n is the total number of pixels in the first side analysis area; ga_ave is the average grayscale value of all pixels in the first side analysis area, and the calculation formula of ga_ave is: The calculation formula of the second noise value Nb of the second side analysis area is: Wherein, gj is the gray value of a single pixel in the second side analysis area, and m is the total number of pixels in the second side analysis area; gb_ave is the average grayscale value of all pixels in the second side analysis area. The calculation formula of gb_ave is:

2. The method according to claim 1, wherein: If the target object is a video to be analyzed, the step 2 of performing noise reduction processing on both sides of the analysis block containing the bevel data to obtain the bevel data after noise reduction processing includes: Distinguish the video analysis block containing the bevel data on both sides to obtain a first side bevel block and a second side bevel block; Perform time domain noise calculation on the first side bevel block and the second side bevel block respectively to obtain a first time domain noise Ta of the first side bevel block and a second time domain noise Tb of the second side bevel block; The first time domain noise Ta corresponding to each frame of the bevel data in the first side bevel block is removed, and the second time domain noise Tb corresponding to each frame of the bevel data in the second side bevel block is removed to obtain the bevel data after noise reduction processing.

3. The method according to claim 2, wherein: The calculation formula of the first time domain noise Ta of the first side slant block is: Wherein, Gr is the average gray value of each frame in the first side bevel block, and W is the total number of frames in the first side bevel block; Ga_ave is the average grayscale value of all frames in the first side slant edge block, and the calculation formula of Ga_ave is: Wherein, Gs is the average gray value of each frame in the second side slant edge block; Gb_ave is the average grayscale value of all frames in the second side slant edge block, and the calculation formula of Gb_ave is:

4. A non-volatile storage medium having computer-readable instructions stored thereon, wherein when the computer-readable instructions are executable by a processor, the processor is enabled to implement the method according to any one of claims 1 to 3.

5. A slant edge MTF test optimization device, wherein: The equipment includes: one or more processors; A computer readable medium for storing one or more computer readable instructions, When the one or more computer-readable instructions are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Detection method and detection device for modulation transfer function

    CN114577444A