SAM提取多维灰度作为输入的视觉测量误差补偿OA
Visual measurement error compensation based on multi-dimensional grayscale extracted by SAM
针对精密图像测量中照度变化导致的测量误差问题,提出一种基于分割一切模型(Segment Anything Model,SAM)构造多维灰度特征作为输入,使用鲸鱼优化的径向基函数神经网络(WOA-RBF)进行拟合的误差补偿模型.通过建立照度与边缘偏移数学模型,分析了光源强度与表面散射特性对测量精度的非线性影响.利用SAM的零样本分割能力自动提取异质材料区域的平均灰度,并作为多维特征向量输入,以表征复杂的图像信息.采用鲸鱼优化算法(Whale Optimization Algorithm,WOA)对径向基函数神经网络(Radial basis function neural network)进行参数寻优,实现了对偏移误差的精确补偿.将该方法在铬锆铜夹具测量对比实验中与传统一维线性拟合、遗传算法优化的最小二乘支持向量机和支持向量回归方法进行对比.实验结果表明,本文所提模型在对比实验中(以Zernike矩亚像素算法为例)均方根误差(Root Mean Square Error,RMSE)为2.07 μm,平均绝对误差(Mean Absolute Error,MAE)为1.73 μm,决定系数(R²)为0.99.该模型在多种亚像素边缘检测算法下均表现出相近的精度和优异的稳定性,为精密图像测量中由照度变化因素导致的测量误差问题提供了一种可行的补偿办法.
To mitigate measurement errors induced by illumination variations in precision image measure-ment,an error compensation model is proposed based on multidimensional grayscale features extracted via the Segment Anything Model(SAM)and fitted using a Whale Optimization Algorithm-optimized Radial Basis Function(WOA-RBF)neural network.A mathematical model describing illumination-induced edge shift is established to characterize the nonlinear effects of light intensity and surface scattering proper-ties on measurement accuracy.Leveraging SAM's zero-shot segmentation capability,average grayscale values from heterogeneous material regions are automatically extracted as multidimensional feature inputs to represent complex image characteristics.The WOA is employed to optimize the parameters of the RBF neural network,enabling accurate compensation of edge shift errors.Comparative experiments on chromi-um-zirconium-copper fixture measurements,benchmarked against one-dimensional linear fitting,GA-LSSVM,and SVR methods,demonstrate that the proposed model achieves an RMSE of 2.07 μm,an MAE of 1.73 μm,and an R² of 0.99(with the Zernike moment sub-pixel algorithm as a representative case).Consistent accuracy and strong robustness are observed across various sub-pixel edge detection al-gorithms,indicating that the proposed approach provides an effective solution for illumination-induced er-rors in precision image measurement.
王宇恒;谷玉海;王亚冰;张伟伟;孙海洋
北京信息科技大学 机电工程学院,北京 100192||中国科学院 高能物理研究所,北京 100049北京信息科技大学 机电工程学院,北京 100192中国科学院 高能物理研究所,北京 100049中国科学院 高能物理研究所,北京 100049北京信息科技大学 机电工程学院,北京 100192
信息技术与安全科学
计算机视觉边缘检测误差补偿SAM模型鲸鱼优化径向基函数神经网络
computer visionedge detectionerror compensationsegment anything modelwhale opti-mization algorithmradial basis function neural network
《光学精密工程》 2026 (7)
1111-1127,17
国家自然科学基金资助项目(No.12405374,No.12475330)中国科学院科技基础资源专项(No.2025000148)
评论