Modulation transfer function (MTF) evaluation in the imaging of the optical lenses with poorly corrected geometric distortion involves sampling region of interest (ROI) images that are affected by geometric distortion, reducing its accuracy. A based liquid-crystal-device MTF (LMTF) method is proposed for this purpose by evaluating MTF of the medical rigid endoscope. This method establishes a mathematical model of geometric distortion and analyzes two sampling ROI image manners in MTF evaluation. Compared with the distortion factor (DF) manner, the distortion correction manner relaxes the value of the DF to twice the maximum non-distortion value, extends the sampling ROI image to twice the size, reduces the average RRMSE value to 6%, and improves average accuracy on MTF by 1.2%. The experimental results provide good agreement with the theoretical prediction. Therefore, the proposed LMTF method can be referential for the other optical lenses with poorly corrected distortion. |
1.IntroductionMedical rigid endoscopes (MREs) consist of three parts of optical lenses: the objective lens, the relay system, and the eyepiece. Great efforts for technological advancements in optical lenses and structural optimization have brought direct conveniences to their clinical applications. Therefore, the imaging quality directly affects the realization of more applications of MREs. As for an MRE, aimed to inspect as large an area as possible within the patient body under the least movement for routine testing, early cancer screening, and clinical surgery through small holes in a non-invasive or minimally invasive way, it is deliberately designed to have a wide field of view(FOV). The wider FOV makes the magnification no longer constant, so the output image loses the similarity with the input target and thus presents geometric distortion, reducing the accuracy of modulation transfer function (MTF) evaluation. In addition, the wide FOV presents images with non-uniform illumination distribution and field curvature. The non-uniform illumination distribution contributes to slight difference on the MTF evaluation before and after illumination compensation.1 Field curvature can cause the image to be blurred, because field curvature cannot make the center and edges of the FOV clear at the same time. Therefore, by focusing on the center of the FOV, blurring can be avoided to be introduced into its MTF evaluation. Thus, the geometric distortion is a major problem in MTF evaluation for optical lenses with poorly corrected geometric distortion. Until recent years, some research work has been done. Masaoka et al.2 used a modified slanted-edge method to evaluate the MTF for the fisheye lens by ISO Standard 12233. Williams and Burns3 used a slanted edge gradient SFR method to measure the MTF of the distorted edge images. Yet, the study between the geometric distortion and the sampling region of interest (ROI) image is seldom involved. It may cause the MTF evaluation to be affected by the inappropriate sampling ROI images, reducing the accuracy. Thus in this paper, a based liquid-crystal-device MTF (LMTF) method is proposed for this purpose. This method utilizes two computer-generated targets to establish a mathematical model of geometric distortion and then analyzes two sampling ROI image manners in MTF evaluation. Under the limitation of the sampling ROI image based on the distortion factor (DF) manner, the sampling ROI image based on the distortion correction manner is presented for the MTF evaluation of the MRE. One target is characterized with a visual uniform structure, which is responsible for establishing a mathematical model of geometric distortion. A Hadamard target, created by a pseudorandom Hadamard generator, has a natural geometric center, which helps to save time for the experimental system in alignment adjustment. The Hadamard target is derived from a Hadamard matrix , which is a square matrix with the order equaling to where is a positive integer. The other target is characterized with a uniform spectral distribution for the MTF evaluation. The spectral distribution can be expressed as a uniform contrast, a uniform spatial frequency spectral density, or a uniform spatial power spectral density. Targets of such spectral distribution are also widely used for the MTF evaluation of the optical lenses with well-corrected distortion.4–15 Here, the target with a uniform power spectral density is mainly considered, and it can be created by a random number generator.16 The generated random target is characterized with the random numerical distribution and verify the LMTF method. The LMTF method presents a feasible solution for the MTF evaluation of the MRE. In addition, the LMTF method also presents advantages by utilizing the liquid crystal device (LCD) to present digital targets in equivalent pixels. First, it only needs to complete one alignment adjustment and optimization for the experimental system, thereby reducing the risk of errors caused by frequent alignment movement into the experimental results. Second, it can visually observe the clarity of the target image in the central FOV, avoiding the blur caused by field curvature into the central FOV, thereby inhibiting the error caused by field curvature from entering the experimental results. Third, it more flexibly displays targets at different quasi-monochromatic illumination by the LCD itself than printed targets, and the MTF can be evaluated at different wavelengths. 2.Experimental Setup and MTF Analysis2.1.Experimental SetupThe LCD is mounted on a mobile platform operated in multiple directions, and its distance from the entrance pupil of the MRE is . The black and white CMOS camera has image pixels with equal pixel pitch of . The optical interface (OI) connecting the MRE and the CMOS camera is used for converting the virtual image into the real image. The experimental setup is shown in Fig. 1. The MTF of the OI is high enough to prevent its MTF from affecting the evaluated MRE. The Nyquist spatial frequency of the CMOS camera is determined by its pixel pitch and is equal to . The highest spatial frequency of the target image onto the CMOS camera is equal to , where is the pixel pitch of the LCD and is the magnification of the experimental system. To avoid frequency aliasing, that is, to prevent the spatial frequencies higher than the Nyquist spatial frequency from being mapped to the lower spatial frequencies of the image to affect the experimental results, is established. Further, it can be derived as where is an important parameter to ensure successful experimental implementation, that is, different LCDs with the same achieve the same experimental measurement. As described in Eq. (1), an oversampling mode is often used to extract the true law contained in the raw data. However, as moves away from the ratio of , more duplicate data, rather than more valid data, are sampled. Overemphasizing the amount of data can lead to overfitting of experimental results. Therefore, close to the ratio of is a more preferred choice. Here, the LCD has a 5.1-in. screen with image pixels, and then its is equal to . So the value of the minimum () is equal to 0.09. To fully establish the mathematical model of geometric distortion in the entire FOV, the matrix size of the Hadamard target is not less than . Here, and are the horizontal pixel length and vertical pixel width of the target image, respectively, and is the average magnification, Therefore, by calculation, the matrix size of the Hadamard target is not less than .2.2.MTF AnalysisMTF is a widely used indicator for evaluating the imaging quality of an optical lens with its spatial frequency content. As for an evaluated MRE, its theoretical MTF17 can be written as follows: where stands for the spatial frequency in cycles/mm, whose maximum frequency , that is the diffraction cutoff frequency, is equal to .18 Here, represents the central wavelength of the target on the LCD screen and is 650 nm, is the working distance of 20 mm, and stands for the round entrance pupil diameter of the evaluated MRE, which is 0.26 mm. It is worth noting that the MTF evaluation is meaningful when is established. Therefore, determines the upper cutoff frequency of the experimental system and is . To facilitate the experimental MTF evaluation, the random target has a uniform spectral distribution. Thus for such a random target, the MTF of the experimental system can be described as follows: where describes the relationship between the output and input power spectral densities (PSDs) of the experimental system. For a linear optical imaging system, its uniform magnification is an important characteristic parameter. Therefore, for a sampling ROI image with uniform magnification, its imaging process can be regarded as a linear procedure. For such a sampling ROI image, the can be written as the product of the of the evaluated MRE and the of the remaining optical setup,19 In Eq. (5), represents the systemic MTF inherent in the experimental system, which can be obtained by measuring the MTF of the optical system without MRE. Thus, the is the ratio of . Furthermore, to reduce the influence of dark noise of the experimental system on the experimental measurement,20 can be further written as where is the PSD of the captured image on the CMOS camera, whereas is the PSD of the captured dark image.Thus, the LMTF method is processed in the following way. The experimental system is adjusted for alignment and focusing optimization by the Hadamard target. The target image is used to establish the mathematical model of geometric distortion and determine the valid sampling ROI image from the output image or the corrected output image for the MTF evaluation. Subsequent data analysis is performed within the ROI image. As an axis-symmetrical optical system, the MTF can be measured for the meridional or sagittal direction in a similar manner; to avoid repetitions in calculation, only the meridional MTF is measured. The squared magnitude of the one-dimensional Fourier transform of each meridional row of the ROI random image is calculated by the Fourier transform algorithm. To improve signal-to-noise ratio, the total rows are averaged to yield the meridional . To reduce random error on the experimental measurement, the average is taken for 10 output images. After taking the square rooting of the and normalizing it, a fitting polynomial curve yields the meridional . After removing the MRE from the experimental system and maintaining a constant distance relationship between the OI and the CMOS camera, the meridional is obtained. Finally, the meridional is obtained by dividing the from the . 3.Mathematical Model of Geometric Distortion3.1.Sampling ROI Image Determined by the Distortion Factor MannerIn Fig. 2, a mapping relationship between the object and image planes is established, where both center points are marked in green. A coordinate system is used, where means the pixel distance from the center to the other points of the image plane and means the pixel distance from the center to the corresponding mapped points of the object plane. The furthest pixel distances for and are both normalized to 1. The Hadamard image is axisymmetric; can be measured from the center to any direction, for example, from the center to the right or upper direction. Thus, the coordinates of the selected six points (in pink or blue) are read, and the pixel distances from the center to them are calculated and normalized. As for , the mapped points in the Hadamard target are adjacently equally spaced. After taking the data of and , and performing a nonlinear least-squares method, a fitting polynomial is written to describe the relationship between and ,21 where is the order of the polynomial equation, , and . The distortion rate function is to quantify the degree how the MRE distorts the image and then is the derivative of Eq. (7), where also stands for the magnification function since and represent dimensionless length information. For an ideal distortion-free imaging system, is equal to 1 [black line in Fig. 3(a)], which means that the output image is proportional to the target. Then for an actual imaging system such as the MRE, the output image is distorted to magnify the target [pink and blue curves in Fig. 3(a)]. The closer to the edge, the more pronounced the distortion. Therefore, the subtraction of the non-distorted and the distorted is where indicates how the magnification with distortion deviates from that without distortion. Since the distortion is distributed along the radial direction, the can be used to quantify the degree of distortion, and the value of can be used to describe the DF value. Therefore, the DF value can be directly related to the size of the sampling ROI image, and the maximum size of the valid sampling ROI image is 1, where DF value is equal to . Here, is the maximum non-distorted factor, that is, the geometric distortion of the relevant sampling ROI image is negligible, and it corresponds to 0.05 for both directions based on the slope of the local magnification in Fig. 3(b) where the local magnification has a slope close to zero. The horizontal pixel length and vertical pixel width for the valid ROI image are equal to and , respectively, where and are both equal to 891. Then the matrix size for the valid sampling ROI ranges from to , where represents the maximum matrix size of the valid sampling ROI image, that is, the matrix range for the valid sampling ROI image is from to . Then the valid sampling ROI image can be approximated as an imaging region with uniform magnification, and its data process can refer to a linear procedure. As for the magnification function of the experimental system shown in Fig. 3(c), it is written as where is the magnification value of the valid sampling ROI image, and its value of 0.19 is greater than so as to avoid the frequency aliasing for the experimental results.3.2.Extended Sampling ROI Image by Distortion Correction MannerAs mentioned above, geometric distortion directly leads to non-uniform magnification, compromising the uniformity of the sampling ROI image. So to increase accuracy of the MTF evaluation, the size of the valid sampling ROI image is limited within the size determined by the maximum non-distorted factor . To obtain an extended uniform sampling ROI image, the geometric distortion correction manner is performed on the target image to compensate for the attenuation of magnification. Therefore, by dividing the function , the corrected image can be written as follows: where stands for the meridional and sagittal coordinates in the original image, and represents the coordinates in the corrected image. It is worth noting that a pixel coordinate point of the corrected image may correspond to the position among several coordinate points on the target image. Therefore, grayscale interpolation is required to calculate the grayscale value of the corrected pixel coordinate points. To keep the frequency content of the corrected image as much as possible, the nearest neighbor interpolation algorithm is used in the distortion correction manner to resample the grayscale values of the coordinate points in the corrected image shown in Fig. 4. Then base on Eq. (11), the size of the valid sampling ROI image can be extended for the MTF evaluation.4.MTF ResultsThe difference between the evaluated MTF and the theoretical MTF is used as an evaluating index. This index describes the relative root mean square error (RMSE) of the MTF evaluation, where represents the total number of measured frequencies, ; stands for the evaluated result of at the ’th frequency; and stands for the theoretical result at the ’th frequency. Thus, smaller values indicate higher measurement accuracy.As presented in Fig. 5, the analysis between the DF and the size of the sampling ROI image shows the relationship between geometric distortion and MTF evaluation. As DF value is no more than , that is, the size of the valid sampling ROI images within the range of and such as , , and , their MTF curves are close to each other. Then the MTF curves are compared with that of the theoretical prediction, their values are 6.5%, 7.3%, and 7.6% (7.2% on average), respectively. As DF value is between and , that is, the matrix size of the sampling ROI image within the range of and , their MTF curves obviously drop at lower frequencies, and their values rise to 8.2% to 11.7% (10.1% on average). Thus as the DF value continues to increase, the value also continues to rise. For example, as DF value exceeds , the value is more than 14.7%. As the DF value reaches , the corresponding MTF curve deteriorates drastically. This shows that DF value has a significant impact on the accuracy of the MTF evaluation. Therefore, the size of the valid sampling ROI image based on the DF manner is limited to the size, where DF value is equal to . Fig. 5MTF results based on the DF manner: (a) the random image and the selected ROI image and (b) evaluated MTFs comparison with the theoretical MTF. ![]() As the distortion correction manner is applied to the target image, the results of the MTF evaluation based on the corrected ROI images are shown in Fig. 6. As DF value is no more than , the sampling ROI images such as , , and , their values drop to 3.8%, 3.9%, and 4.2% (4% on average), respectively. The results indicate that the MTF curves are further optimized compared with the DF manner. As DF value is between and , the MTF curves are improved at low frequencies compared with those corresponding curves based on the DF manner. The average value drops to 6%, which means an average 40% reduction occurs. The results indicate that the distortion correction manner is superior to the DF manner in which the average value is reduced from 10.1% to 6%, which is an obvious improvement compared with 7.2% based on the maximum non-DF . Therefore, a 1.2% improvement of accuracy reflects that the distortion correction manner relaxes the DF value to , extends the sampling ROI image to twice that of the DF manner, and reduces the average value to 6%. Therefore, the size of the valid sampling ROI image based on the distortion correction manner can extend to twice the size of the valid sampling ROI image based on the DF manner. Even as DF value increases to , the value drops to 11.4%, thus optimized by 22%. However, as the DF value exceeds , that is, the size of the sampling ROI image extends outward from the central FOV, the blur caused by field curvature begins to be included in the sampling ROI image. Due to field curvature, the sharpness of the image to gradually change from the central FOV to the edges, and the distortion correction manner helps the blur distribution caused by the field curvature to be more uniform. This leads to a more prominent influence of field curvature on the results of the MTF evaluation, thereby weakening the frequencies. This indicates that the distortion correction manner can better distinguish the influence of field curvature on the results of the MTF evaluation. 5.ConclusionsAn LMTF method is successfully demonstrated for imaging evaluation of the MRE. This method establishes a mathematical model of geometric distortion and analyzes two sampling ROI image manners in MTF evaluation. Compared with the distorted factor manner, the geometric distortion correction manner relaxes the DF value to , extends the sampling ROI image to twice that of the DF manner, reduces the average value to 6%, and improves average accuracy on MTF by 1.2%. The experimental results provide good agreement with the theoretical prediction. The SMTF method provides a feasible solution for the optical lenses with poorly corrected geometric distortion. ReferencesX. An et al.,
“Modulation transfer function measurement of the rigid endoscope by random method,”
OSA Continuum, 2
(1), 107
–115
(2019). https://doi.org/10.1364/OSAC.2.000107 Google Scholar
K. Masaoka et al.,
“Modified slanted-edge method and multidirectional modulation transfer function estimation,”
Opt. Express, 22
(5), 6040
–6046
(2014). https://doi.org/10.1364/OE.22.006040 Google Scholar
D. Williams and P. D. Burns,
“Evolution of slanted edge gradient SFR measurement,”
Proc. SPIE, 9016 901605
(2014). https://doi.org/10.1117/12.2042706 PSISDG 0277-786X Google Scholar
D. Williams and P. D. Burns,
“Low-frequency MTF estimation for digital imaging devices using slanted edge analysis,”
Proc. SPIE, 5294 93
–101
(2003). https://doi.org/10.1117/12.532405 PSISDG 0277-786X Google Scholar
P. D. Burns,
“Slanted-edge MTF for digital camera and scanner analysis,”
in Proc. PICS 2000,
135
–138
(1998). Google Scholar
J. H. Siewerdsen, I. A. Cunningham and D. A. Jaffray,
“A framework for noise-power spectrum analysis of multidimensional images,”
Med. Phys., 29 2655
–2671
(2002). https://doi.org/10.1118/1.1513158 MPHYA6 0094-2405 Google Scholar
I. A. Cunningham and A. Fenster,
“A method for modulation transfer function determination from edge profiles with correction for finite element differentiation,”
Med. Phys., 14 533
–537
(1987). https://doi.org/10.1118/1.596064 MPHYA6 0094-2405 Google Scholar
C. Anam et al.,
“An algorithm for automated modulation transfer function measurement using an edge of a PMMA phantom: impact of field of view on spatial resolution of CT images,”
J. Appl. Clin. Med. Phys., 19
(6), 244
–252
(2018). https://doi.org/10.1002/acm2.12476 MPHYA6 0094-2405 Google Scholar
P. B. Greer and T. van Doorn,
“Evaluation of an algorithm for the assessment of the MTF using an edge method,”
Med. Phys., 27 2048
–2059
(2000). https://doi.org/10.1118/1.1288682 MPHYA6 0094-2405 Google Scholar
J. R. D. Earnhart and E. L. Chaney,
“Modulation transfer function for a large-area amorphous silicon image receptor,”
Phys. Med. Biol., 42 2531
–2540
(1997). https://doi.org/10.1088/0031-9155/42/12/016 PHMBA7 0031-9155 Google Scholar
K. Ichikawa, Y. Kodera and H. Fujita,
“MTF measurement method for medical displays by using a bar-pattern image,”
J. SID, 14
(10), 831
–837
(2006). https://doi.org/10.1889/1.2372416 Google Scholar
H. Haim, N. Konforti and E. Marom,
“Performance of imaging systems analyzed with two-dimensional target,”
Appl. Opt., 51
(25), 5966
–5972
(2012). https://doi.org/10.1364/AO.51.005966 APOPAI 0003-6935 Google Scholar
E. Levy et al.,
“Modulation transfer function of a lens measured with a random target method,”
Appl. Opt., 38
(4), 679
–683
(1999). https://doi.org/10.1364/AO.38.000679 APOPAI 0003-6935 Google Scholar
S. M. Backman et al.,
“Random target method for fast MTF inspection,”
Opt. Express, 12
(12), 2610
–2615
(2004). https://doi.org/10.1364/OPEX.12.002610 OPEXFF 1094-4087 Google Scholar
A. Fernandez-Oliveras, A. M. Pozo and M. Rubino,
“Comparison of spectacle-lens optical quality by modulation transfer function measurements based on random-dot patterns,”
Opt. Eng., 49
(8), 083603
(2010). https://doi.org/10.1117/1.3476335 Google Scholar
B. T. Teipen and D. L. MacFarlane,
“Liquid-crystal-display projector-based modulation transfer function measurements of charge-coupled-device video camera systems,”
Appl. Opt., 39
(4), 515
–525
(2000). https://doi.org/10.1364/AO.39.000515 APOPAI 0003-6935 Google Scholar
J. Goodman, Laser Speckle and Related Phenomena, 41
–42 Springer-Verlag, Berlin
(1984). Google Scholar
“Optics and photonics—Medical endoscopes and endotherapy devices—Part 5: determination of optical resolution of rigid endoscopes with optics,”
(2020). Google Scholar
A. M. Pozo and M. Rubino,
“Optical characterization of ophthalmic lenses by means of modulation transfer function determination from a laser speckle pattern,”
Appl. Opt., 44
(36), 7744
–7748
(2005). https://doi.org/10.1364/AO.44.007744 APOPAI 0003-6935 Google Scholar
N. Suresh et al.,
“Improved texture reproduction assessment of camera-phone-based medical devices with a dead leaves target,”
OSA Continuum, 2
(6), 1863
–1879
(2019). https://doi.org/10.1364/OSAC.2.001863 Google Scholar
Q. Wang et al.,
“Development of the local magnification method for quantitative evaluation of endoscope geometric distortion,”
J. Biomed. Opt., 21
(5), 056003
(2016). https://doi.org/10.1117/1.JBO.21.5.056003 JBOPFO 1083-3668 Google Scholar
BiographyPing’an He received his master’s degree in optical instrumentation from Wuhan Technical University in 1990. Since 2000, he has been a professor at the Electronic Information School of Wuhan University. His research interests include optical system design, optical testing technology, photoelectronic detect system, and image vision measurement. |