Compensación de errores de medición visual usando SAM para extraer niveles de gris multidimensionales como entrada

  • role: First author第一作者
  • Affiliation:

    School of Electromechanical Engineering, Beijing Information Science and Technology University, Beijing 100192, China

    Institute of High Energy Physics, Chinese Academy of Sciences, Beijing 100049, China

  • Email:13730237366@163.com
  • Introduction:王宇恒(2000-),男,河北涿州人,硕士研究生,主要从事计算机视觉方面的研究。E-mail: 13730237366@163.com
WANG Yuheng12,  
  • role: Corresponding author通信作者
  • Affiliation:

    School of Electromechanical Engineering, Beijing Information Science and Technology University, Beijing 100192, China

  • Email:guyuhai@bistu.edu.cn
  • Introduction:谷玉海(1976-),男,山东泰安人,博士,硕士生导师,2012年于中国机械科学研究院获得博士学位,主要从事精密测量仪器系统、高精度视觉测量系统的研究。E-mail: guyuhai@bistu.edu.cn
GU Yuhai1*,  
  • Affiliation:

    Institute of High Energy Physics, Chinese Academy of Sciences, Beijing 100049, China

WANG Yabing2,  
  • role: Corresponding author通信作者
  • Affiliation:

    Institute of High Energy Physics, Chinese Academy of Sciences, Beijing 100049, China

  • Email:zhangww@ihep.ac.cn
  • Introduction:张伟伟(1986-),女,山东临沂人,博士,硕士生导师,2013年于北京大学获得博士学位,主要从事X射线微纳聚焦元件的研制和同步辐射束线光学设计的研究。E-mail: zhangww@ihep.ac.cn
ZHANG Weiwei2*,  
  • Affiliation:

    School of Electromechanical Engineering, Beijing Information Science and Technology University, Beijing 100192, China

SUN Haiyang1

resumen

Para abordar el problema de errores de medición causados por cambios en la iluminación en la medición precisa de imágenes, se propone un modelo de compensación de errores basado en el modelo Segment Anything Model (SAM), que construye características de niveles de gris multidimensionales como entrada, y utiliza una red neuronal de función de base radial optimizada por el algoritmo de optimización de ballenas (WOA-RBF) para el ajuste. Al establecer un modelo matemático de la relación entre la iluminación y el desplazamiento del borde, se analizó el efecto no lineal de la intensidad de la fuente de luz y las características de dispersión de la superficie en la precisión de la medición. La capacidad de segmentación sin muestras de SAM se utiliza para extraer automáticamente el nivel de gris promedio de áreas de materiales heterogéneos, que se utilizan como vector de características multidimensional para representar información de imagen compleja. Se emplea el algoritmo de optimización de ballenas (Whale Optimization Algorithm, WOA) para optimizar los parámetros de la red neuronal de función de base radial (Radial Basis Function Neural Network), logrando una compensación precisa del error de desplazamiento. El método se compara en experimentos de medición con un sujetador de cobre de cromo-zirconio con métodos tradicionales de ajuste lineal unidimensional, máquinas de vectores de soporte de mínimos cuadrados optimizadas por algoritmo genético y métodos de regresión de vectores de soporte. Los resultados experimentales muestran que el modelo propuesto, en el experimento comparativo (usando el algoritmo subpíxel de matriz Zernike como ejemplo), tiene un error cuadrático medio (Root Mean Square Error, RMSE) de 2.07 μm, un error absoluto medio (Mean Absolute Error, MAE) de 1.73 μm y un coeficiente de determinación (R²) de 0.99. El modelo muestra una precisión similar y una excelente estabilidad bajo varios algoritmos de detección de bordes subpíxel, proporcionando un método de compensación viable para el problema de errores de medición causados por cambios en la iluminación en la medición precisa de imágenes.

palabra clave

Visión por computadora;Detección de bordes;Compensación de errores;Modelo SAM;Optimización de ballenas;Red neuronal de función de base radial

References

  1. 1.
    LI J F, MA Z R, WANG H T, et al. Research on precise measurement and scene-based algorithm for rolling linear guide rail profile based on line structured light[J]. Optics and Precision Engineering, 2026, 34(4): 536-547. (in Chinese)
  2. 2.
    SUN J B, ZHANG Y, CHANG X L. Vehicle pressure line detection based on improved Mask R-CNN +LaneNet[J]. Optics and Precision Engineering, 2022, 30(7): 854-868. (in Chinese). doi:
  3. 3.
    ZHOU L L, WU G X, ZUO Y B, et al. A comprehensive review of vision-based 3D reconstruction methods[J]. Sensors, 2024, 24(7): 2314. doi:
  4. 4.
    ZHAO J, GUO Y, YIN SH B, et al. Binocular vision-based trackside pantograph anomaly detection under strong environmental noise[J]. Optics and Precision Engineering, 2025, 33(3): 438-451. (in Chinese). doi:
  5. 5.
    JANG M, YOON H, LEE S, et al. A comparison and evaluation of stereo matching on active stereo images[J]. Sensors, 2022, 22(9): 3332. doi:
  6. 6.
    YOU Q, WENG H, ZHAO J, et al. Fourier transform profilometry based on improved Goldstein branch-cut algorithm[J]. Acta Optica Sinica, 2023, 43(5): 70-79. (in Chinese). doi:
  7. 7.
    BIAN CH SH, LIU Y K, YU X. Correction of color-encoded phase measurement profilometry based on probability density function[J]. Acta Optica Sinica, 2022, 42(7): 144-153. (in Chinese). doi:
  8. 8.
    HAN J L. Research on Phase-Height Mapping Method of Projection Moiré Profilometry[D]. Xi'an: Xi'an Technological University, 2023. (in Chinese)
  9. 9.
    CAO Y P, ZHANG H CH. Computer-generated moiré profilometry and its development trends[J]. Optics & Optoelectronic Technology, 2023, 21(5): 1-23. (in Chinese)
  10. 10.
    AI J, ZHANG Q C, SU X Y. Modulation measurement profilometry based on π phase-shifting binary orthogonal grating[J]. Acta Optica Sinica, 2026, 46(2): 256-267. (in Chinese)
  11. 11.
    WEI Z M, CAO Y P, WU H T, et al. Dynamic phase-differencing profilometry with number-theoretical phase unwrapping and interleaved projection[J]. Optics Express, 2024, 32(11): 19578-19593. doi:
  12. 12.
    WANG Y H, CHEN Q B, DING M, et al. High precision dimensional measurement with convolutional neural network and bi-directional long short-term memory (LSTM)[J]. Sensors, 2019, 19(23): 5302. doi:
  13. 13.
    WANG W Q, LIU W, LIU Y, et al. Precise 2D and 3D hybrid measurement of drill bits with complex geometries[J]. Engineering, 2025, in press . doi:
  14. 14.
    ZHANG D, HUANG S Y, SUN X X, et al. Advances in 2D and 3D machine vision technologies for morphological characterization of granular food products: from laboratory to application[J]. Journal of Food Measurement and Characterization, 2025, 19(12): 9292-9318. doi:
  15. 15.
    MIAO J W, TAN Q C, SUN B R, et al. Online measurement method for dimensions of disk parts based on machine vision[J]. PLoS One, 2024, 19(7): e0307525. doi:
  16. 16.
    WU L, HAO H Y, SONG Y. A review of metal surface defect detection based on computer vision[J]. Acta Automatica Sinica, 2024, 50(7): 1261-1283. (in Chinese). doi:
  17. 17.
    HUANG J W, GU Y H, ZHANG Y. High-precision measurement method for chip mounting geometric parameters[J]. Electronic Measurement Technology, 2025, 48(11): 33-41. (in Chinese)
  18. 18.
    ZHAO F Y, TANG H Y, ZOU X R, et al. A review of optical metrology techniques for advanced manufacturing applications[J]. Micromachines, 2025, 16(11): 1224. doi:
  19. 19.
    ZHANG L L, JIA X W, CHANG Q, et al. The development of machine vision and its applications in different industries: a review[J]. Mechanical Engineering Advances, 2024, 2(2): 1746. doi:
  20. 20.
    WANG H, LI X H, XIAO W, et al. Machine vision-based method for measuring micro-volume liquid in transparent tubes[J]. Optics and Precision Engineering, 2025, 33(5): 763-776. (in Chinese)
  21. 21.
    HU M F, LI L, XIE J. Micro-optical illumination properties of hierarchical microlens arrays formed by hot-embossing[J]. Optics and Precision Engineering, 2024, 32(9): 1371-1383. (in Chinese). doi:
  22. 22.
    YAN G H, WU B J, MA L. LightDiffu-DCE: low light image enhancement based on light intensity diffusion[J]. Optics and Precision Engineering, 2025, 33(7): 1114-1129. (in Chinese). doi:
  23. 23.
    SONNLEITNER M, JEFFERS J, BARNETT S M. Image retrodiction at low light levels[J]. Optica, 2015, 2(11): 950. doi:
  24. 24.
    HYNECEK J, NISHIWAKI T. Excess noise and other important characteristics of low light level imaging using charge multiplying CCDs[J]. IEEE Transactions on Electron Devices, 2003, 50(1): 239-245. doi:
  25. 25.
    DUAN ZH Y, DONG D, ZHAO W H. Configuration design and illumination intensity analysis of machine vision system[J]. Modular Machine Tool & Automatic Manufacturing Technique, 2016(8): 61-63. (in Chinese)
  26. 26.
    GONG C. The Method and Realization of High-Precision Size Measurement Based on Machine Vision[D]. Guangzhou: Guangdong University of Technology, 2014. (in Chinese)
  27. 27.
    LI X. Research on Gear Vision Measurement Technology of Adapting to Light Intensity Change[D]. Taiyuan: North University of China, 2016. (in Chinese)
  28. 28.
    GUO X G, DU W H, ZENG ZH Q, et al. Research on the influence of backlight intensity and error compensation technology of image measuring instrument[J]. Modular Machine Tool & Automatic Manufacturing Technique, 2018(3): 128-130. (in Chinese). doi:
  29. 29.
    SU X M, FANG CH G, PAN Y B, et al. Modeling error of visual measurement system under changing illuminance[J]. Journal of Zhejiang University (Engineering Science), 2020, 54(10): 1929-1935. (in Chinese). doi:
  30. 30.
    LIU L X, WANG D CH, CHENG P, et al. Research on illumination intensity correction method based on machine vision[J]. Manufacturing Automation, 2022, 44(9): 1-4, 35. (in Chinese)
  31. 31.
    LIU M M, CAI J H, LI L X, et al. Research and compensation of influence of object distance and light intensity changes on measurement accuracy[J]. Instrument Technique and Sensor, 2023(9): 100-103, 111. (in Chinese)
  32. 32.
    YU ZH L, XIA Y, HU J. Research on light intensity in automobile oil seal dimension detection system[J]. Mechanical & Electrical Engineering Technology, 2022, 51(7): 40-44. (in Chinese)
  33. 33.
    BI CH, YU H W, LUO D, et al. Study on error compensation method for the annular zone based on average gray value[J]. Aviation Precision Manufacturing Technology, 2025, 61(4): 13-16. (in Chinese)
  34. 34.
    VICINI D, KOLTUN V, JAKOB W. A learned shape-adaptive subsurface scattering model[J]. ACM Transactions on Graphics, 2019, 38(4): 1-15. doi:
  35. 35.
    KIRILLOV A, MINTUN E, RAVI N, et al. Segment anything[EB/OL]. 2023: arXiv: 2304.02643. . doi:
  36. 36.
    MIRJALILI S, LEWIS A. The whale optimization algorithm[J]. Advances in Engineering Software, 2016, 95: 51-67. doi:
  37. 37.
    TIAN Y Y, TAN Q CH, ZHANG H B, et al. Stability analysis of subpixel edge location algorithm[J]. Computer Engineering, 2010, 36(7): 211-213. (in Chinese). doi:
  38. 38.
    ZENG M J, WANG CH X, LAI J J, et al. Review of sub-pixel edge detection algorithms[J]. Optics and Precision Engineering, 2024, 32(23): 3513-3524. (in Chinese). doi:
  39. 39.
    DU G, TONG Q, HOU L Y, et al. Sub-pixel edge detection method based on Canny-Franklin moments[J]. Computer Integrated Manufacturing Systems, 2025, 31(3): 903-912. (in Chinese)
  40. 40.
    HAN D, LI Y Q, WU Y H. Sub-pixel edge detection based on Gaussian fitting[J]. Computer Applications and Software, 2018, 35(6): 210-213, 229. (in Chinese). doi:

Leer el texto completo

The above content is generated by Large Model Translation. The translated content is for reference only. We do not assume any commercial or legal responsibilty for any consequences arising from the use of our website