A method for extended depth-of-field fiber optic endoscopy imaging based on depth measurement-assisted imaging
By constructing the depth-related light field sampling model and system point spread function of the optical fiber bundle, integrating the depth measurement module, and using the depth measurement system and deconvolution algorithm, the problem of limited depth of field of the fiber endoscope is solved, and the depth of field expansion and image processing are achieved. Improved contrast, suitable for non-contact detection in small areas.
Patent Information
- Application Number
- CN202111589778.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-23
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2041-12-23
AI Technical Summary
The depth of field of traditional fiber optic endoscopes is limited by lens design and environmental factors, resulting in poor imaging quality and short service life. The existing technology is complex and costly, and lensless endoscopes are sensitive to bending and temperature, making it difficult to expand the depth of field.
By constructing a depth-related light field sampling model and system point spread function based on optical fiber bundles, integrating the depth measurement module in the optical fiber, using the depth measurement system and deconvolution algorithm to reconstruct clear images, the depth of field is expanded and the contrast is improved.
It achieves a significant expansion of the depth of field of the fiber optic endoscope, improves the image contrast, and does not require pre-calibration. It is suitable for non-contact detection in small areas and has application value in medical and industrial testing.
Smart Images

Figure CN114488511B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to an optical fiber endoscopic imaging method, in particular to an optical fiber endoscopic imaging method with extended depth of field based on depth measurement auxiliary imaging. Background Art
[0002] Fiber optic endoscopes based on fiber bundles are widely used in medical diagnosis, industrial monitoring and other fields. Real-time internal measurement and imaging can be achieved in areas that are difficult for the human eye to see, such as gastroscopes, laryngoscopes, industrial maintenance mirrors, etc. Each fiber bundle contains thousands or even tens of thousands of relatively independent fiber cores. Due to the large contrast between the cladding and the core, these cores can transmit light from one end to the other with low crosstalk, realizing the transmission of two-dimensional images. With the increasing demand for detection in narrow spaces, the size of traditional fiber optic endoscopes is limited by the size of the front-end optical components and is difficult to reduce. Single-lens or lensless fiber optic endoscopes are increasingly attracting people's attention.
[0003] However, the fiber bundle itself usually has a large numerical aperture (NA), and the working distance of the lensless fiber endoscope is limited to a small area close to its distal end. On the one hand, the shallow depth of field causes the image to be seriously out of focus when the object is far away from the detection end face, affecting the imaging quality. On the other hand, long-term close contact detection seriously affects the service life of the endoscope and the integrity of the object being measured. The depth of field of a single-lens endoscope is also often limited to a small distance near its focal length, which seriously limits its imaging range. Therefore, expanding the depth of field of a fiber optic endoscope is of great significance in endoscopic imaging applications.
[0004] Disadvantages of existing technology:
[0005] 1. Comparison with existing endoscopes with large depth of field lenses: Existing endoscopes with large depth of field lenses usually require complex lens designs with multiple layers of lenses to achieve the expansion of depth of field. The processing of aspherical lenses has high requirements for processing technology, and inevitably, there will still be certain processing errors. The high cost and large size limit its wide application.
[0006] 2. Comparison with existing lensless endoscope solutions: Most existing focusing scanning solutions based on coherent light transmission matrix and wavefront shaping require pre-calibration and a certain amount of scanning time, and are sensitive to environmental factors such as bending and temperature. The present invention effectively constructs a light field sampling model based on distance measurement and reconstructs the defocused blurred image through deconvolution technology. In addition, it uses incoherent light and is insensitive to environmental factors such as bending.
[0007] 3. Comparison with existing defocused deconvolution and reconstruction schemes for microscopic imaging: Most existing schemes are on-chip or space-based, and the restoration effect of three-dimensional deconvolution depends on the previous calibration and complex calculation of the system point spread function. The present invention will be based on the characteristics of angle filtering sampling of the optical fiber bundle. By constructing the relationship between the sampling system point spread function and the imaging distance, the image can be reconstructed through distance measurement without calibration and complex deconvolution algorithms.
[0008] 4. Comparison with existing endoscope distance measurement solutions: Most existing solutions are based on binocular vision and stereoscopic vision, which not only require larger probes and multi-channel detection image capture, but some even require mechanical scanning transposition. Our distance measurement solution is integrated into the imaging fiber itself and does not require calibration. Summary of the invention
[0009] Purpose of the invention: The purpose of the present invention is to provide a method for extending the depth of field of fiber optic endoscopy based on depth measurement assisted imaging, so as to achieve the extension of the depth of field of the fiber optic endoscope.
[0010] Technical solution: The present invention provides a method for extending the depth of field of optical fiber endoscopy based on depth measurement-assisted imaging, comprising the following steps:
[0011] (1) Construct a depth-dependent light field sampling model and system point spread function D-PSF based on the sampling characteristics of the optical fiber bundle;
[0012] (2) Integrate the measurement module into the imaging fiber bundle;
[0013] (3) Obtaining the absolute depth of the object imaging position through the depth measurement system;
[0014] (4) collecting out-of-focus image information;
[0015] (5) Use D-PSF to deconvolute and reconstruct the out-of-focus blur image recorded beyond the working distance.
[0016] The light field sampling model described in step (1) is related to the sampling system structure. In a lensless endoscopic imaging system, the depth-related system point spread function constructs a near-Gaussian model through the numerical aperture of the optical fiber bundle. Step (1) is specifically as follows:
[0017] (1.1) Illuminate the end face of the optical fiber bundle under a microscope and mark the position, radius, shape and spacing of each fiber core in the optical fiber bundle;
[0018] (1.2) placing a point light source at a certain distance from the distal end of the optical fiber bundle, and using an imaging system at the proximal end to collect and record images of the proximal end of the optical fiber bundle, and recording the light spot patterns when the point light source is at different distances from the front end of the optical fiber bundle;
[0019] (1.3) Processing the collected initial light spot, removing the influence of the inherent honeycomb pattern of the optical fiber bundle by filtering and interpolation, and performing near-Gaussian fitting along the X and Y directions for the light spots collected at different distances;
[0020] (1.4) Based on the numerical aperture (NA) of the optical fiber bundle, a mathematical model is constructed to simulate the optical fiber bundle acquisition process, and the constructed model is compared with the near-Gaussian fitting model obtained in step (1.3) to correct the mathematical model parameters;
[0021] (1.5) Based on the characteristics of each fiber core, the different positions of the fiber bundle end face are corrected to obtain the depth-related light field sampling model and system point spread function D-PSF based on the sampling characteristics of the fiber bundle.
[0022] In a single-lens endoscopic imaging system, it is characterized in that the light field sampling model described in step (1) is related to the core characteristics of the optical fiber bundle and the modulation transfer function of the single lens. After steps (1.1)-(1.5), it is also necessary to obtain the parameters of the lens such as the refractive index and size of the material, and use software such as ZEMAX to further optimize and construct the lens and optical fiber bundle acquisition model.
[0023] The measurement module described in step (2) includes a measurement module outside the optical fiber bundle and a measurement module inside the optical fiber bundle. The external measurement module is composed of a single-mode optical fiber. In order to maintain the advantage of a small optical fiber detection size, the single-mode optical fiber can be tapered to obtain a smaller size; during internal measurement, a core in the optical fiber bundle is selected as a depth measurement channel to perform depth measurement.
[0024] The depth measurement system described in step (4) uses the following principles for depth measurement: phase method, triangulation method, interference method and time-of-flight method.
[0025] The deconvolution algorithm used in step (5) includes Wiener filtering, regularized filtering, Lucy Richardson method and blind deconvolution.
[0026] A computer storage medium stores a computer program, which, when executed by a processor, implements the above-mentioned method for extended depth-of-field fiber optic endoscopic imaging based on depth measurement-assisted imaging.
[0027] A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the above-mentioned method of extended depth-of-field fiber optic endoscopic imaging based on depth measurement-assisted imaging is implemented.
[0028] Beneficial effects: Compared with the prior art, the present invention has the following advantages:
[0029] 1. The large depth of field fiber endoscopic imaging method based on depth measurement proposed in the present invention proves that the working distance of the lensless fiber endoscope can be increased from the end face to tens of microns, and the depth of field can even be increased by more than two times at certain spatial frequencies, thus realizing the extension of the depth of field of the fiber endoscope, and the contrast of the reconstructed image is also significantly improved;
[0030] 2. The present invention can be implemented quickly without pre-calibration and is resilient to fiber bending, so real-time detection is possible;
[0031] 3. For a single-lens fiber endoscope, the present invention provides a point spread function for the measurement of absolute depth when the lens parameters are known, and the deconvolution method can also be used to achieve image deblurring;
[0032] 4. The system constructed by the present invention makes it very convenient for the endoscope to perform non-contact detection in a narrow area of one millimeter or less, and has great application value in medical testing and industrial monitoring. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 A schematic diagram of the principle of an extended depth-of-field fiber endoscopic imaging method based on depth measurement-assisted imaging;
[0034] Figure 2 The schematic diagram of the structure of two fiber optic probe schemes for an extended depth-of-field fiber optic endoscopic imaging method based on depth measurement-assisted imaging is shown in FIG. Figure 2 a is a schematic diagram of the external integrated structure of the depth measurement module. Figure 2 b is a schematic diagram of the internal integrated structure of the depth measurement module;
[0035] Figure 3 A schematic diagram of the system structure of an embodiment;
[0036] Figure 4 A schematic diagram of a depth measurement principle based on a FP interferometer in a depth measurement module in an embodiment;
[0037] Figure 5 The original data and processing diagram of the detection spectrum when the distance depth is achieved in the embodiment, wherein Figure 5 a is the original noisy data detected, Figure 5 b is a result diagram of eliminating the influence of inter-core coupling by adaptive smoothing filtering in the distance measurement module of the present invention, Figure 5 c is correct Figure 5 b Schematic diagram of the autocorrelation function of the processed data;
[0038] Figure 6 Schematic diagram of constructing D-PSF at different measurement depths in the embodiment;
[0039] Figure 7This is the result of the image reconstruction module reconstructing the out-of-focus and blurred image. DETAILED DESCRIPTION
[0040] The technical solution of the present invention is further described below in conjunction with the accompanying drawings.
[0041] like Figure 1 As shown, the large depth of field fiber optic endoscopy imaging method based on active depth measurement assisted imaging described in the present invention samples the depth and defocused blurred images respectively during the measurement, the depth information is used to construct the system point spread function, and the blurred image is obtained through two steps of preprocessing and deconvolution reconstruction to obtain a clear refocused image.
[0042] Figure 2 The structure diagrams of two optical fiber probes designed by the present invention are shown. Figure 2 The depth measurement process in a is based on an additional optical fiber probe, including but not limited to a probe of a common single-mode optical fiber or a single-mode optical fiber fused-tapered probe; Figure 2 In b, the depth measurement module is integrated into one of the cores of the fiber bundle itself.
[0043] In order to better demonstrate the implementation process of the present invention, a specific implementation example is provided here. The depth measurement module is integrated into a core of the optical fiber bundle itself, and a Fabry-Perot interferometer is constructed through the reflected light of the distal end face of the core and the object, and the depth information of the imaging plane is obtained by measuring the cavity length.
[0044] Figure 3 The optical path structure diagram of the system built by the case provided by the present invention is shown. The system includes a Laser broadband light source, an SMF single-mode optical fiber, a Circulator, an OSA spectrometer, a CL collimator, a CMOS industrial camera, a BS beam splitter, an OBJ objective lens, an FB optical fiber bundle and a PC computer.
[0045] In the real-time distance measurement process, the measurement light emitted by the broadband light source passes through the single-mode optical fiber and the circulator. It is output to space by the collimator and then coupled into a specific core (SC) of the optical fiber bundle by the objective lens, such as Figure 4 The orange light part P i , part of the measuring light P1 is reflected at the far end surface and returns along the original path, and the other part is output from the corresponding core at the far end of the optical fiber bundle to irradiate the sample, and the reflected light P2 that is coupled into the SC again is shown as the yellow part of the light. The two beams of reflected light constitute the FP interferometer, and the cavity length is the depth to be measured. Since the reflectivity of the two reflection surfaces is relatively low, it can be considered as double-beam interference. The measurement formula of the cavity length is:
[0046]
[0047] L is the length of the optical resonant cavity, λ represents the wavelength of the measured light, and n represents the refractive index of air. FSR is a free spectral range. By solving the length of the optical resonant cavity L, the precise depth Z = L of the sample can be obtained.
[0048] The combination of the collimator and the objective lens effectively filters out the interference from the light emitted from other cores. Only the signal light returned from the SC can be coupled into the single-mode optical fiber through the collimator to reach the spectrometer OSA, thereby realizing the distance measurement from this point to the corresponding vertical position of the plane to be measured.
[0049] Figure 5 It is a set of interference patterns containing depth information measured on the spectrometer. Although the interference from other fiber cores has been eliminated. Inevitably, due to its own characteristics, the fiber bundle has a certain amount of crosstalk between cores when the wavelength is long. Adjacent fiber cores form coupled oscillators, and the energy fluctuates back and forth in adjacent fiber cores, which seriously affects the energy distribution in the fiber core and the signal-to-noise ratio of the ranging signal. Figure 5 a is the original noisy data obtained by detection. An adaptive smoothing filter is used to eliminate the influence of inter-core coupling on the energy of ranging signals, because a small change in wavelength will cause a dramatic change in energy. The difference between the average value of the smoothed data and the original data can be obtained Figure 5 The result is shown in b. The periodic signal initially appears but the signal-to-noise ratio is still low. The autocorrelation function is obtained. Figure 5 c result. The autocorrelation method is a commonly used method to extract periodic signals from noisy signals. The period of the signal autocorrelation function is the period of the signal. Figure 5 c, FSR = 20.16nm, the calculated corresponding distance Z = 55.81um.
[0050] Figure 6 The following is the result of constructing D-PSF at measurement depths of 20um, 30um, and 40um. Based on the transmission characteristics of incoherent light in a fiber bundle, the intensity of each fiber core is considered constant during transmission. The relationship between the object plane and the output intensity pattern can be expressed as
[0051]
[0052] Among them I i is the total light intensity received by the ith fiber core, Bk is the intensity at the kth point in the object plane, and PSF k (z, θ) represents the energy distribution of the kth point coupled into the fiber bundle after a transmission distance z. θ is the angle between the light propagation direction and the detector plane. After accurately reconstructing the light field model, the recorded overlapping light field information can be refocused. When only incoherent light is considered, the point spread function (PSF) can be constructed by a two-dimensional Gaussian model, whose scale and variance vary with object depth and incident angle.
[0053]
[0054] Z represents the propagation distance of the point light source, x and y are the planar coordinates on the end face of the fiber bundle, and tanθ = NA is the numerical aperture of the fiber bundle. Note that only when θ < arctan(NA), its energy can be received and detected. As Figure 6 shown, the PSF changes sharply at different depths. Only the deconvolution kernel with the initial PSF can effectively perform image reconstruction. Therefore, accurate depth positioning is necessary.
[0055] In the fiber bundle imaging system, the blur function is considered to be related to the PSF related to the imaging depth. The blurred image recorded by the CMOS can be expressed by the following formula,
[0056] g(x, y) = h(x,y) * f(x,y) + n(x,y) (4)
[0057] where g(x, y) is the degraded image recorded by the detector, f(x, y) is the original image, h(x, y) represents the degradation function in the time domain, which is usually considered to be related to the point spread function of the system. n(x, y) is the noise. The operator * represents time domain convolution.
[0058] During the preprocessing process, a method of interpolating or filtering between irregular cores effectively removes the honeycomb pattern while retaining the original image information at the core positions. The Wiener filtering method is used to perform deconvolution reconstruction on the image after removing the honeycomb. Other deconvolution methods are also applicable.
[0059] Figure 7 Shows the original image, preprocessed image, and reconstructed image located at a distance Z = 40um. The contour of the reconstructed image is much clearer than the original image and has a higher imaging contrast. It can be seen that for an object with a resolution of 64 lp / mm, its working distance increases to 40um, and the depth of field is extended.
Claims
1. A method for extending the depth of field of optical fiber endoscopy based on depth measurement-assisted imaging, characterized in that: The following steps are involved: (1) constructing a depth-dependent light field sampling model and a system point spread function D-PSF based on the sampling characteristics of the optical fiber bundle; the light field sampling model is related to the sampling system structure. In the lensless endoscopic imaging system, the depth-dependent system point spread function constructs a near-Gaussian model through the numerical aperture of the optical fiber bundle. The specific steps of step (1) are as follows: (1.1) Illuminate the end face of the optical fiber bundle under a microscope and mark the position, radius, shape and spacing of each fiber core in the optical fiber bundle; (1.2) placing a point light source at a certain distance from the distal end of the optical fiber bundle, and using an imaging system at the proximal end to collect and record images of the proximal end of the optical fiber bundle, and recording the light spot patterns when the point light source is at different distances from the front end of the optical fiber bundle; (1.3) Processing the collected initial light spot, removing the influence of the inherent honeycomb pattern of the optical fiber bundle by filtering and interpolation, and performing near-Gaussian fitting along the X and Y directions for the light spots collected at different distances; (1.4) Based on the numerical aperture (NA) of the optical fiber bundle, a mathematical model is constructed to simulate the optical fiber bundle acquisition process, and the constructed model is compared with the near-Gaussian fitting model obtained in step (1.3) to correct the mathematical model parameters; (1.5) Based on the characteristics of each fiber core, the different positions of the fiber bundle end face are corrected to obtain the depth-related light field sampling model and system point spread function D-PSF based on the sampling characteristics of the fiber bundle; (2) Integrate the measurement module into the imaging fiber bundle; (3) Obtaining the absolute depth of the object imaging position through the depth measurement system; (4) collecting out-of-focus image information; (5) Use D-PSF to deconvolute and reconstruct the out-of-focus blur image recorded beyond the working distance.
2. The method for extending the depth of field of optical fiber endoscopy based on depth measurement-assisted imaging according to claim 1, characterized in that: The measurement module described in step (2) includes a measurement module outside the optical fiber bundle and a measurement module inside the optical fiber bundle; the external measurement module is composed of a single-mode optical fiber or a single-mode optical fiber tapered probe.
3. The method for extending the depth of field of optical fiber endoscopy based on depth measurement-assisted imaging according to claim 1, characterized in that: The depth measurement system described in step (3) uses the following principles for depth measurement: phase method, triangulation method, interference method and time-of-flight method.
4. The method for extending the depth of field of optical fiber endoscopy based on depth measurement-assisted imaging according to claim 1, characterized in that: The deconvolution algorithm used in step (5) includes Wiener filtering, regularized filtering, Lucy Richardson method and blind deconvolution.
5. A computer storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, it realizes a method for extended depth-of-field fiber optic endoscopic imaging based on depth measurement-assisted imaging as described in any one of claims 1 to 4.
6. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, it implements a method for extended depth-of-field fiber optic endoscopic imaging based on depth measurement-assisted imaging as described in any one of claims 1-4.
