An evaluation of stereo vision for distance estimation using the SGBM algorithm in the CARLA simulator

Rizky Hamdani Sakti, Liptia Venica, Dewi Indriati Hadi Putri, Shinta Rohmatika Kosmaga, Estiko Rijanto

Abstract

This paper presents an evaluation of stereo vision based on the semi-global block matching (SGBM) algorithm for distance estimation in an autonomous parking scenario using the CARLA simulator. Distance-disparity regression functions are explored to enhance distance estimation accuracy. The proposed distance estimation model was evaluated using the design science research methodology (DSRM) framework, with experimental validation conducted in CARLA’s promenade environment. The evaluation employed root mean square error (RMSE) and relative error metrics to assess performance. Experiments were performed within a range of 40-350 cm, which is relevant for autonomous parking applications. The experimental results show that the algorithm achieves an overall RMSE of 1.69 cm and an average relative error of 1.1 %. The findings contribute to the advancement of perception systems for autonomous vehicles, particularly in challenging environments.



Keywords


autonomous parking; stereo vision; SGBM algorithm; distance estimation; CARLA simulator; perception system.

Full Text:

PDF


References


J. Toledo, M. Lauer, and C. Stiller, “Real-time stereo semi-global matching for video processing using previous incremental information,” J. Real-Time Image Process., vol. 19, no. 1, pp. 205–216, Feb. 2022.

S. Shabani, A. R. Mulaka, T. A. Stokes, T. U. Rehman, and Y. Bao, “Development of a stereo vision-based UGV guidance system for bareroot forest nurseries,” Smart Agric. Technol., vol. 11, p. 100990, Aug. 2025.

Y. Chen, F.-Y. Huang, B.-Q. Liu, S. Zhang, Z. Wang, and B. Zhao, “Significant obstacle location with ultra-wide FOV LWIR stereo vision system,” Opt. Lasers Eng., vol. 129, p. 106076, June 2020.

D. Fernandes et al., “Real-time 3D object detection and SLAM fusion in a low-cost LiDAR test vehicle setup,” Sensors, vol. 21, no. 24, p. 8381, Dec. 2021.

Y. Wang, Z. Jiang, Y. Li, J.-N. Hwang, G. Xing, and H. Liu, “RODNet: A real-time radar object detection network cross-supervised by camera-radar fused object 3D localization,” IEEE J. Sel. Top. Signal Process., vol. 15, no. 4, pp. 954–967, June 2021.

Y. Jo, J. Ha, and S. Hwang, “Survey of technology in autonomous valet parking system,” Int. J. Automot. Technol., vol. 24, no. 6, pp. 1577–1587, Dec. 2023.

M. Elsayed, M. T. Soe, W. W. Kit, and H. Abdalla, “An innovative approach to developing a 3D virtual map creator using an ultrasonic sensor array,” Int. J. Technol., vol. 10, no. 7, p. 1344, Nov. 2019.

C.-C. Lo and P. Vandewalle, “Expanding sparse radar depth based on joint bilateral filter for radar-guided monocular depth estimation,” Sensors, vol. 24, no. 6, p. 1864, Mar. 2024.

W. Hua et al., “Key technologies in apple harvesting robot for standardized orchards: A comprehensive review of innovations, challenges, and future directions,” Comput. Electron. Agric., vol. 235, p. 110343, Aug. 2025.

M. Grabowski and T. Kryjak, “Real-time FPGA implementation of the semi-global matching stereo vision algorithm for a 4K/UHD video stream,” in Design and Architecture for Signal and Image Processing, M. Chavarrías and A. Rodríguez, Eds., Cham: Springer Nature Switzerland, 2023, pp. 70–81.

S. Hermann and R. Klette, “Iterative semi-global matching for robust driver assistance systems,” in Computer Vision – ACCV 2012, vol. 7726, K. M. Lee, Y. Matsushita, J. M. Rehg, and Z. Hu, Eds., in Lecture Notes in Computer Science, vol. 7726, Berlin, Heidelberg: Springer Berlin Heidelberg, 2013, pp. 465–478.

A. Dosovitskiy, G. Ros, F. Codevilla, A. Lopez, and V. Koltun, “CARLA: An open urban driving simulator,” in

Proceedings of the 1st Annual Conference on Robot Learning, 2017, pp. 1–16.

Y. Ye, Y. Long, W. Li, and Y. Yi, “Depth-driven machine vision framework for accurate vehicle speed measurement in dynamic environments,” Measurement, vol. 253, p. 117717, Sept. 2025.

T. Guan, J. Cai, Y. Wang, W. Yang, X. Chang, and Y. Han, “Pavement pothole detection system based on deep learning and binocular vision,” J. Traffic Transp. Eng. Engl. Ed., vol. 12, no. 4, pp. 1100–1123, Aug. 2025.

Z. Zhu, J. Zhu, and J. Wei, “Autonomous vehicle system based on A* pathfinding and improved YOLOv11,” in Proceedings of the 2025 2nd International Conference on Autonomous Driving and Intelligent Sensing Technology, Guilin China: ACM, Mar. 2025, pp. 34–39.

G. Heng, C. Luo, K. Sun, S. Huang, and L. Huang, “SGBM_YOLO: A high-precision obstacle detection algorithm for assistive navigation based on stereo vision and spatial attention mechanism,” Appl. Soft Comput., vol. 186, p. 114144, Jan. 2026.

A. D. Taromi and S. H. Klidbary, “A novel data-driven algorithm for object detection, tracking, distance estimation, and size measurement in stereo vision systems,” Multimed. Tools Appl., vol. 84, no. 12, pp. 11041–11061, May 2024.

M. N. Flinders, P. Rao, A. R. Reibman, D. R. Buckmaster, and J. P. Boerman, “Design and validation of a stereo vision system to estimate volume of total mixed rations offered to dairy cattle,” Comput. Electron. Agric., vol. 238, p. 110816, Nov. 2025.

D. Brown. (1971). Close-range camera calibration Photo. Engng. [Online].

J. G. Fryer and D. C. Brown, “Lens distortion for close-range photogrammetry,” Photogramm. Eng. Remote Sens., vol. 52, pp. 51–58, Jan. 1986.

S. Sivkov et al., “The algorithm development for operation of a computer vision system via the OpenCV library,” Procedia Computer Science, vol. 169, pp. 662–667, Jan. 2020.

E. Adil, M. Mikou, and A. Mouhsen, “A novel algorithm for distance measurement using stereo camera,” CAAI Trans. Intell. Technol., vol. 7, no. 2, pp. 177–186, June 2022.

Y.-Q. Guo, M. Gu, and Z.-D. Xu, “Research on the improvement of semi-global matching algorithm for binocular vision based on lunar surface environment,” Sensors, vol. 23, no. 15, p. 6901, Aug. 2023.

H. Hirschmüller, “Semi-global matching - motivation, developments and applications,” in Photogrammetric Week 11, D. Fritsch, Ed., Wichmann, Sept. 2011, pp. 173–184. [Online].

E. Dall’Asta and R. Roncella, “A comparison of semiglobal and local dense matching algorithms for surface reconstruction,” Int. Arch. Photogramm. Remote Sens. Spat. Inf. Sci., vol. XL–5, pp. 187–194, June 2014.

D. T. Absari, A. Djunaidy, and T. D. Susanto, “Design science research methodology concept and its application in the development of online community communication system for Selotapak village,” in 2022 9th International Conference on Information Technology, Computer, and Electrical Engineering (ICITACEE), Semarang, Indonesia: IEEE, Aug. 2022, pp. 236–241. [27] H. Hirschmuller, “Accurate and efficient stereo processing by semi-global matching and mutual information,” in 2005 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR’05), June 2005, pp. 807–814 vol. 2.

A. Panariello, G. Mancusi, F. Haj Ali, A. Porrello, S. Calderara, and R. Cucchiara, “Monocular per-object distance estimation with masked object modeling,” Comput. Vis. Image Underst., vol. 253, p. 104303, Mar. 2025.

S. G. Pundkar and A. Gaikwad, “Search and hunt based-driving scene perception network for distance estimation

and object detection,” Digit. Signal Process., vol. 149, p. 104506, June 2024.

Y. Zhao, S. Ye, X. Chen, Y. Xia, and X. Zheng, “Polynomial response surface based on basis function selection by multitask optimization and ensemble modeling,” Complex Intell. Syst., vol. 8, no. 2, pp. 1015–1034, Apr. 2022.

W.-H. Zhang, L. Dai, W. Chen, A. Sun, W.-L. Zhu, and B.-F. Ju, “Novel information-driven smoothing spline linearization method for high-precision displacement sensors based on information criterions,” Sensors, vol. 23, no. 22, p. 9268, Nov. 2023.


Article Metrics

Metrics Loading ...

Metrics powered by PLOS ALM

Refbacks

  • There are currently no refbacks.




Copyright (c) 2025 Rizky Hamdani Sakti

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.