Edge Detection of Square Wave Stripe Images for Three-Dimensional Measurement of Granular Matter
- 1 School of Optical-Electrical and Computer Engineering, University of Shanghai for Science and Technology, Shanghai, China
- 2 School of Optical-Electrical and Computer Engineering, University of Shanghai for Science and Technology, Shanghai, China
- 3 School of Optical-Electrical and Computer Engineering, University of Shanghai for Science and Technology, Shanghai, China
Abstract
To address the challenges of edge detection in square-wave fringe images corrupted by discrete spot noise during granular kinematics measurement, this paper proposes an edge detection framework based on gradient magnitude thresholding and applies it to the 3D reconstruction of granular beds. First, a multi-scale Perona-Malik anisotropic diffusion model is employed for denoising; by constructing an image pyramid and adaptively adjusting diffusion coefficients across scales, the method effectively suppresses spot noise while preserving fringe integrity. Second, the Otsu algorithm is utilized for automated threshold segmentation, where morphological structuring elements are adaptively refined according to fringe curvature. Finally, to circumvent the limitations of the traditional Canny algorithm—specifically edge fragmentation and hysteresis tracking failure—a gradient magnitude thresholding-based extraction method is selected. Numerical simulations on images with a curvature of 0.01 and 2000 noise points demonstrate that the proposed pipeline significantly outperforms direct Canny detection, increasing the Intersection over Union (IoU) from 0.51 to 0.71 and the F1-score from 0.67 to 0.82. Experimental validation on static granular beds yields a planar reconstruction error within one particle diameter (0.8 - 1.0 mm) and a slope error of 0.0015. By leveraging the structural priors of square-wave fringes, this method provides a reliable technical foundation for three-dimensional measurements in the field of particle kinematics.
- Li, X., Li, B., Qie, L., Li, Y. and Wang, H. (2025) Dynamic Response of a Frame Structure Impacted by Debris Flow Containing Large Boulders. Structures , 74, Article 108543. https://doi.org/10.1016/j.istruc.2025.108543
- Chen, J., Zhang, W., Cao, C., Yin, H., Wang, J., Li, W., et al . (2024) The Effect of the Check Dam on the Sediment Transport and Control in Debris Flow Events. Engineering Geology , 329, Article 107397. https://doi.org/10.1016/j.enggeo.2023.107397
- Cundall, P.A. (1971) A Computer Model for Simulating Progressive Large-Scale Movements in Blocky Rock Systems. Proceedings of the Symposium of the International Society for Rock Mechanics, Society for Rock Mechanics (ISRM), II-8.
- Adrian, R.J. (1989) Scattering Particle Characteristics and Their Effect on Pulsed Laser Measurements of Fluid Flow: Speckle Velocimetry vs Particle Image Velocimetry. Applied Optics , 23, 1690-1691. https://doi.org/10.1364/ao.23.001690
- Qu, Y., Huang, J. and Zhang, X. (2018) Rapid 3D Reconstruction for Image Sequence Acquired from UAV Camera. Sensors , 18, 225-244. https://doi.org/10.3390/s18010225
- Hu, T., Song, C., Zhuang, J. and Lyu, Y. (2025) Automatic Segmentation and Measurement System of 3D Point Cloud Images Based on RGB-D Camera for Rat Wounds. Biomedical Signal Processing and Control , 104, Article 107682. https://doi.org/10.1016/j.bspc.2025.107682
- Lin, J.F. and Su, X. (1995) Two-Dimensional Fourier Transform Profilometry for the Automatic Measurement of Three-Dimensional Object Shapes. Optical Engineering , 34, Article 3297. https://doi.org/10.1117/12.212911
- He, Q., Ning, J., Liu, X. and Li, Q. (2025) Phase-Shifting Profilometry for 3D Shape Measurement of Moving Objects on Production Lines. Precision Engineering , 92, 30-38. https://doi.org/10.1016/j.precisioneng.2024.11.010
- Ciulla, C. (2025) Two-Dimensional Image Noise Removal and Reconstruction Using Discrete Fourier Transform, K-Space Filtering and Z-Space Filtering. Progress in Engineering Science , 2, Article 100056. https://doi.org/10.1016/j.pes.2025.100056
- Kraus, K. and Pfeifer, N. (1998) Determination of Terrain Models in Wooded Areas with Airborne Laser Scanner Data. ISPRS Journal of Photogrammetry and Remote Sensing , 53, 193-203. https://doi.org/10.1016/s0924-2716(98)00009-4
- Jiang, Y., Wu, Z., Liu, Y., Yu, X. and Zhang, Q. (2023) High-Speed 3D Shape Measurement Using Efficient Moiré-Assisted Three-Frequency Heterodyne Phase Unwrapping Algorithm. Optics and Lasers in Engineering , 161, Article 107383. https://doi.org/10.1016/j.optlaseng.2022.107383