View full-text article in PMC Sensors (Basel). 2023 Feb 3;23(3):1700. doi: 10.3390/s23031700 Search in PMC Search in PubMed View in NLM Catalog Add to search Copyright and License information © 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/). PMC Copyright notice Algorithm 1 Research of the calibration algorithm on one set of camera and sonar image pairs. Isi←getNextSonarImage() Ioi←getNextCameraImage() Isi+1←getNextSonarImage() Ioi+1←getNextCameraImage() psi←selectFeaturePoints(Isi) psi+1←LucasKannade(Isi,Isi+1,psi) scoreMin←+∞ for allRso, Tso and f do [poi, poi+1] ←projectPointsSonarToCamera(Rso,Tso,f,psi,psi+1) p^oi+1←LucasKannade(Ioi,Ioi+1,poi) projectionScore←computeScore(poi,poi+1,p^oi+1) if score<scoreMin then scoreMin←score [Tmin, Rmin, fmin] ← [Rso, Tso, f] end if end for Return: [Tmin, Rmin, fmin]