The invention discloses a technology which realizes
distortion compensation by using triple
smoothing spline curve to perform modeling and compensating on
barrel distortion caused by a wide-angle lens, comprising the following steps: 1) manufacturing a concentric-circle template, and making a cross at the center of the concentric circle; 2) aligning and shooting the concentric-circle template image to obtain the ideal
radius value and the actual-measurement
radius value of the template; 3) according to two groups of
radius values, using a natural spline curve to construct a forward spline curve and a backward spline curve; 4) using the forward spline curve to calculate and restore the size of the image, using the backward spline curve, and establishing a
distortion compensation mapping table; and 5) according to the mapping table, using bilinear interpolation
algorithm to calculate and realize distortion compensation. The invention has a plurality of criteria points to calculate the radius of the concentric circle, so that the invention has high radius calculation precision and strong anti-
noise capability; the invention adopts the spline curve to model and compensate
barrel distortion and has simple and reliable calculation; according to modeling results, the invention manufactures a distortion compensation mapping table to realize efficient and effective distortion compensation in real time.