光学与光电技术, 2023, 21 (5): 67, 网络出版: 2023-12-29
一种基于OpenCV的高精度光斑中心定位方法
A High-Precision Spot Center Location Method Based on OpenCV
共焦显微系统 光斑中心定位 滤波降噪 聚类分析 形态学 confocal microscope system spot center positioning filtering and noise reduction cluster analysis morphology
摘要
激光光斑中心的准确定位对共焦显微系统有着重要作用。为了提高光斑中心定位的准确性, 设计了一种基于OpenCV的高精度光斑中心定位检测方法。首先对采集到的光斑图像进行降噪滤波, 再通过聚类分析, 筛选连通域排除粗大误差, 然后对目标连通域边缘进行形态学处理, 最后将边缘数据拟合成椭圆定位光斑中心。仿真与实验结果表明:该方法与其他传统光斑中心定位方法相比, 具有小于0.1 pixel的亚像素级定位精度, 检测结果更稳定, 是一种高精度的光斑中心定位方法。
Abstract
The accurate positioning of laser spot center plays an important role in confocal microscopy system. In order to improve the accuracy of spot center location, a high-precision spot center location detection method based on OpenCV is designed. First, the denoise and filter the collected spot image, and then filter the connected domain to eliminate gross errors through clustering analysis. Then, perform morphological processing on the edge of the connected domain of the object, and finally fit the edge data into an ellipse to locate the spot center. The simulation and experimental results show that the method in this paper has a sub-pixel level positioning accuracy of less than 0.1 pixel and more stable detection results than other traditional spot center location methods, and is a high-precision spot center location method.
姜超, 狄世超, 刘超, 寻静怡, 李俊. 一种基于OpenCV的高精度光斑中心定位方法[J]. 光学与光电技术, 2023, 21(5): 67. JIANG Chao, DI Shi-chao, LIU Chao, XUN Jing-yi, LI Jun. A High-Precision Spot Center Location Method Based on OpenCV[J]. OPTICS & OPTOELECTRONIC TECHNOLOGY, 2023, 21(5): 67.