Code and Data for 'Fabrication and testing of lensed fiber optic probes for distance sensing using common path low coherence interferometry'
收藏资源简介:
This repository contains code and data to support the paper:Fabrication and testing of lensed fiber optic probes for distance sensing using common path low coherence interferometryRadu-Florin Stancu,<sup>1</sup> Michael Hughes,<sup>1</sup><sup> </sup>Taylor Sanderson,<sup>1 </sup>Manuel Marques,<sup>1</sup> Lyndon da Cruz,<sup>2</sup> Christos Bergeles,<sup>3</sup> and Adrian Podoleanu<sup>1</sup>Applied Optics Group, University of KentMoorfields Eye Hospital, LondonKing’s College London, Robotics and Vision in Medicine Lab, School of Biomedical Engineering & Imaging SciencesContents--------1. ModellingPython code to demonstrate use of Eqn 1 from paper to model fiber probes using coreless and GRIN fiber. 'model.py' contains the function 'grin_model' which models the working distance and focused spot FWHM base on the length of NCF and GRIN fibre. 'model_example_1.py' and 'mode_example_2.py' provide examples of how to use the function to model a particular probe and to explore the parameter space, respectively.2. SputteringRaw data and code to produce Fig. 2 from paper, showing effect of sputtering time on reflectivity.3. Spot AnalysisCode and example data for analysis of focal spots from fiber probes. 'Spot_utilities.py' contains several functions that are useful to help with the analysis, and 'spot_analysis.py' provides an example of how to use them, generating Fig 4 from the paper. The 'data' folder contains a set of spot images as the tip of the probe was moved either side of focus in steps of 50 microns. File names are the distance from the estimated focus in microns.4. A ScansExample A-scans in the 'data' folder were used to generate Fig 6. from the paper. Code to generate the figure is in 'plot_a_scans.py'.5. Distance SensingCode and data to demonstrate extracting distance sensing data from A-scans and to generate Fig. 8 using the algorithm described in Fig. 7. Functions to generate distance measurements are in 'distance_sensing_utilities.py' and an example of how to use this on data in the 'data' folder is in 'distance_sensing_example.py', which generates Fig 8. Code to check axial resolution, as reported in the paper, is also included in this folder in 'resolution_measurement.py'.Running the code----------------Code was tested with Python 3.10.14Packages requirements (tested version shown):numpy 1.26.4matplotlib 3.8.4scipy 1.13.1opencv-python 4.9.0.80PIL 10.3.0
本仓库包含支撑下述论文的代码与数据:《采用共路径低相干干涉法实现距离传感的带透镜光纤探针的制备与测试》(Fabrication and testing of lensed fiber optic probes for distance sensing using common path low coherence interferometry),作者为Radu-Florin Stancu<sup>1</sup>、Michael Hughes<sup>1</sup>、Taylor Sanderson<sup>1</sup>、Manuel Marques<sup>1</sup>、Lyndon da Cruz<sup>2</sup>、Christos Bergeles<sup>3</sup>与Adrian Podoleanu<sup>1</sup>。 <sup>1</sup> 肯特大学应用光学小组 <sup>2</sup> 伦敦摩尔菲尔德眼科医院 <sup>3</sup> 伦敦国王大学生物医学工程与成像科学学院医学机器人与视觉实验室 目录-------- 1. 建模 提供Python代码以复现论文中式(1),用于模拟无芯光纤(NCF)与梯度折射率(GRIN)光纤制备的光纤探针。其中'model.py'包含'grin_model'函数,可基于无芯光纤与梯度折射率光纤的长度,计算探针的工作距离与聚焦光斑半高全宽(FWHM)。'model_example_1.py'与'mode_example_2.py'分别提供了使用该函数对特定探针进行建模、以及探索参数空间的示例。 2. 溅射镀膜 包含原始数据与代码,用于复现论文中的图2,展示溅射时间对反射率的影响。 3. 光斑分析 包含用于光纤探针聚焦光斑分析的代码与示例数据。'Spot_utilities.py'提供了若干辅助分析的函数,'spot_analysis.py'则展示了如何使用这些函数以生成论文中的图4。'data'文件夹中包含一系列光斑图像,对应探针尖端以50微米步长在焦点两侧移动时采集的图像,文件名标注了与估算焦点的距离(单位:微米)。 4. A扫描(A-scans)数据 'data'文件夹中的A扫描示例数据用于生成论文中的图6,生成该图的代码位于'plot_a_scans.py'中。 5. 距离传感 包含用于从A扫描数据中提取距离传感数据的代码与数据,可基于论文中图7所述算法生成图8。用于生成距离测量值的函数位于'distance_sensing_utilities.py'中,'distance_sensing_example.py'则提供了在'data'文件夹中的数据上使用该工具的示例,可生成图8。本文件夹中还包含'resolution_measurement.py',用于复现论文中报道的轴向分辨率测试。 代码运行说明---------------- 本代码已在Python 3.10.14环境下完成测试。 所需依赖包(已验证对应版本): numpy 1.26.4 matplotlib 3.8.4 scipy 1.13.1 opencv-python 4.9.0.80 PIL 10.3.0




