1
|
Chen W, Wang H. OCTSharp: an open-source and real-time OCT imaging software based on C. BIOMEDICAL OPTICS EXPRESS 2023; 14:6060-6071. [PMID: 38021120 PMCID: PMC10659780 DOI: 10.1364/boe.505308] [Citation(s) in RCA: 0] [Impact Index Per Article: 0] [Reference Citation Analysis] [Abstract] [Grants] [Track Full Text] [Subscribe] [Scholar Register] [Received: 09/06/2023] [Revised: 10/13/2023] [Accepted: 10/13/2023] [Indexed: 12/01/2023]
Abstract
Optical coherence tomography (OCT) demands massive data processing and real-time displaying during high-speed imaging. Current OCT imaging software is predominantly based on C++, aiming to maximize performance through low-level hardware management. However, the steep learning curve of C++ hinders agile prototyping, particularly for research purposes. Moreover, manual memory management poses challenges for novice developers and may lead to potential security issues. To address these limitations, OCTSharp is developed as an open-source OCT software based on the memory-safe language C#. Within the managed C# environment, OCTSharp offers synchronized hardware control, minimal memory management, and GPU-based parallel processing. The software has been thoroughly tested and proven capable of supporting real-time image acquisition, processing, and visualization with spectral-domain OCT systems equipped with the latest advanced hardware. With these enhancements, OCTSharp is positioned to serve as an open-source platform tailored for various applications.
Collapse
Affiliation(s)
- Weihao Chen
- Department of Chemical, Paper, and Biomedical Engineering, Miami University, Oxford, OH, USA
- Department of Biology, Miami University, Oxford, OH, USA
| | - Hui Wang
- Department of Biology, Miami University, Oxford, OH, USA
- Department of Electrical and Computer Engineering Miami University, Oxford, OH, USA
| |
Collapse
|
2
|
Zhong Z, Song D, Liu L, Chen X, Shan M. Dual-wavelength off-axis digital holography in ImageJ: toward real-time phase retrieval using CUDA streams. APPLIED OPTICS 2023; 62:5868-5874. [PMID: 37706936 DOI: 10.1364/ao.493456] [Citation(s) in RCA: 0] [Impact Index Per Article: 0] [Reference Citation Analysis] [Abstract] [Track Full Text] [Subscribe] [Scholar Register] [Received: 04/19/2023] [Accepted: 07/05/2023] [Indexed: 09/15/2023]
Abstract
An ImageJ plug-in is developed to realize automatic real-time phase reconstruction for dual-wavelength digital holography (DH). This plug-in assembles the algorithms, including automatic phase reconstruction based on the division algorithm and post-processing. These algorithms are implemented and analyzed using a CPU and GPU, respectively. To hide the CPU-to-GPU data transfer latency, an optimization scheme using Compute Unified Device Architecture (CUDA) streams is proposed in ImageJ. Experimental results show that the proposed plug-in can perform faster reconstruction for dual-wavelength DH, resulting in frame rates up to 48 fps even for one-megapixel digital holograms on a normal PC. In other words, the proposed plug-in can realize real-time phase reconstruction for dual-wavelength digital holographic videos.
Collapse
|
3
|
Bian H, Wang J, Hong C, Liu L, Ji R, Cao S, Abdalla AN, Chen X. GPU-accelerated image registration algorithm in ophthalmic optical coherence tomography. BIOMEDICAL OPTICS EXPRESS 2023; 14:194-207. [PMID: 36698653 PMCID: PMC9841998 DOI: 10.1364/boe.479343] [Citation(s) in RCA: 0] [Impact Index Per Article: 0] [Reference Citation Analysis] [Abstract] [Track Full Text] [Subscribe] [Scholar Register] [Received: 10/27/2022] [Revised: 11/28/2022] [Accepted: 11/28/2022] [Indexed: 06/17/2023]
Abstract
Limited to the power of the light source in ophthalmic optical coherence tomography (OCT), the signal-to-noise ratio (SNR) of the reconstructed images is usually lower than OCT used in other fields. As a result, improvement of the SNR is required. The traditional method is averaging several images at the same lateral position. However, the image registration average costs too much time, which limits its real-time imaging application. In response to this problem, graphics processing unit (GPU)-side kernel functions are applied to accelerate the reconstruction of the OCT signals in this paper. The SNR of the images reconstructed from different numbers of A-scans and B-scans were compared. The results demonstrated that: 1) There is no need to realize the axial registration with every A-scan. The number of the A-scans used to realize axial registration is suitable to set as ∼25, when the A-line speed was set as ∼12.5kHz. 2) On the basis of ensuring the quality of the reconstructed images, the GPU can achieve 43× speedup compared with CPU.
Collapse
Affiliation(s)
- Haiyi Bian
- Faculty of Electronic Information Engineering, Huaiyin Institute of Technology, Huai’an, Jiangsu, 223003, China
| | - Jingtao Wang
- School of Electronic and Information Engineering, Soochow University, 215006, Suzhou, China
| | - Chengjian Hong
- School of Electronic and Information Engineering, Soochow University, 215006, Suzhou, China
| | - Lei Liu
- Faculty of Electronic Information Engineering, Huaiyin Institute of Technology, Huai’an, Jiangsu, 223003, China
| | - Rendong Ji
- Faculty of Electronic Information Engineering, Huaiyin Institute of Technology, Huai’an, Jiangsu, 223003, China
| | - Suqun Cao
- Faculty of Electronic Information Engineering, Huaiyin Institute of Technology, Huai’an, Jiangsu, 223003, China
| | - Ahmed N. Abdalla
- Faculty of Electronic Information Engineering, Huaiyin Institute of Technology, Huai’an, Jiangsu, 223003, China
| | - Xinjian Chen
- Faculty of Electronic Information Engineering, Huaiyin Institute of Technology, Huai’an, Jiangsu, 223003, China
- School of Electronic and Information Engineering, Soochow University, 215006, Suzhou, China
- State Key Laboratory of Radiation Medicine and Protection, Soochow University, 215123, Suzhou, China
| |
Collapse
|
4
|
Deng X, Liu K, Zhu T, Guo D, Yin X, Yao L, Ding Z, Ye J, Li P. Dynamic inverse SNR-decorrelation OCT angiography with GPU acceleration. BIOMEDICAL OPTICS EXPRESS 2022; 13:3615-3628. [PMID: 35781971 PMCID: PMC9208597 DOI: 10.1364/boe.459632] [Citation(s) in RCA: 2] [Impact Index Per Article: 1.0] [Reference Citation Analysis] [Abstract] [Track Full Text] [Subscribe] [Scholar Register] [Received: 03/28/2022] [Revised: 05/12/2022] [Accepted: 05/22/2022] [Indexed: 05/02/2023]
Abstract
Dynamic OCT angiography (OCTA) is an attractive approach for monitoring stimulus-evoked hemodynamics; however, a 4D (3D space and time) dataset requires a long acquisition time and has a large data size, thereby posing a great challenge to data processing. This study proposed a GPU-based real-time data processing pipeline for dynamic inverse SNR-decorrelation OCTA (ID-OCTA), offering a measured line-process rate of 133 kHz for displaying OCT and OCTA cross-sections in real time. Real-time processing enabled automatic optimization of angiogram quality, which improved the vessel SNR, contrast-to-noise ratio, and connectivity by 14.37, 14.08, and 9.76%, respectively. Furthermore, motion-contrast 4D angiographic imaging of stimulus-evoked hemodynamics was achieved within a single trail in the mouse retina. Consequently, a flicker light stimulus evoked an apparent dilation of the retinal arterioles and venules and an elevation of the decorrelation value in the retinal plexuses. Therefore, GPU ID-OCTA enables real-time and high-quality angiographic imaging and is particularly suitable for hemodynamic studies.
Collapse
Affiliation(s)
- Xiaofeng Deng
- State Key Laboratory of Modern Optical
Instrumentation, College of Optical Science and
Engineering, Zhejiang University, Hangzhou 310027,
China
- These authors contributed equally to this
work
| | - Kaiyuan Liu
- State Key Laboratory of Modern Optical
Instrumentation, College of Optical Science and
Engineering, Zhejiang University, Hangzhou 310027,
China
- These authors contributed equally to this
work
| | - Tiepei Zhu
- Eye center of the Second Affiliated
Hospital, College of Medicine, Zhejiang
University, Hangzhou, Zhejiang 310003, China
| | - Dayou Guo
- State Key Laboratory of Modern Optical
Instrumentation, College of Optical Science and
Engineering, Zhejiang University, Hangzhou 310027,
China
| | - Xiaoting Yin
- State Key Laboratory of Modern Optical
Instrumentation, College of Optical Science and
Engineering, Zhejiang University, Hangzhou 310027,
China
| | - Lin Yao
- State Key Laboratory of Modern Optical
Instrumentation, College of Optical Science and
Engineering, Zhejiang University, Hangzhou 310027,
China
| | - Zhihua Ding
- State Key Laboratory of Modern Optical
Instrumentation, College of Optical Science and
Engineering, Zhejiang University, Hangzhou 310027,
China
| | - Juan Ye
- Eye center of the Second Affiliated
Hospital, College of Medicine, Zhejiang
University, Hangzhou, Zhejiang 310003, China
| | - Peng Li
- State Key Laboratory of Modern Optical
Instrumentation, College of Optical Science and
Engineering, Zhejiang University, Hangzhou 310027,
China
- Jiaxing Key Laboratory of
Photonic Sensing & Intelligent Imaging, Jiaxing
314000, China
- Intelligent Optics &
Photonics Research Center, Jiaxing Research Institute, Zhejiang
University, Jiaxing 314000, China
| |
Collapse
|