The application discloses a sea surface
stereo matching and depth measurement method based on wave main direction correction, and aims to solve the feature degradation and mismatch caused by the consistency of the transverse sea wave texture and the matching search direction. The method first denoises and enhances the image and extracts the texture, calculates the global flow direction by using the block
Hough transform, and adaptively starts the rotation optimization; secondly, an
ambiguity scoring model based on normalized cross correlation (NCC) is constructed to filter the optimal rotation angle, the image is synchronously rotated and cropped, and the transverse repeated texture is reconstructed into a periodic structure with high gradient change; then, feature points are extracted in the rotated
image domain, the RANSAC
algorithm is combined to filter and estimate the fundamental matrix to complete the epipolar rectification, the prior disparity search range is locked according to the distribution of the homonymic points, and the semi-
global matching (SGM)
algorithm is used to generate the initial disparity; finally, the real depth is recovered through reverse correction, the
point cloud is generated, and the three-dimensional surface of the sea wave is reconstructed. The application fundamentally eliminates the matching
confusion caused by the transverse texture, significantly improves the three-dimensional reconstruction accuracy, and is suitable for application scenes such as marine wave monitoring and disaster warning.