The invention discloses a method for automatically correcting radial
distortion of a wide-angle lens, and relates to the technical field of
computer vision and
image processing, and the method comprises the steps: collecting an original image, calculating the distance from a pixel to an imaging
principal point, and extracting a multi-scale image and edge features; analyzing the edge direction and radial change and linear extension of the structure, extracting a linear structure candidate region, obtaining a
distortion compensation parameter, generating a multi-scale candidate linear parameter set, and calculating a multi-scale linear
consistency index for adaptive adjustment; extracting a
point set from the candidate straight line parameter set, executing forward and
reverse mapping to calculate a dual-space
consistency index, and optimizing local parameters and the
point set; calculating a minimum
linear complexity index based on the
line segment curvature, the curvature change rate and the length, and implementing local optimization; and performing weighted fusion on each index to construct a comprehensive objective function, performing step-by-step shrinkage optimization to obtain an optimal compensation parameter, performing global geometric correction on an original image, generating a
distortion correction image, and realizing improvement of the
structure recognition precision and the geometric correction effect.