Developer Reference

  • 2020
  • 10/21/2020
  • Public Content
Contents

Correction of Camera Lens Distortion

Digital camera usually introduces significant distortion caused by the camera and lens. These distortions cause errors in any analysis of the image. The functions described in this section correct these distortion using intrinsic camera parameters and distortion coefficients. These intrinsic camera parameters are focal lengths
fx
,
fy
, and principal point coordinates
cx
,
cy
. The distortion is characterized by two coefficients of radial distortions
k
1
,
k
2
and two coefficients of tangential distortions
p
1
,
p
2
.
The undistorted coordinates
x
u
and
y
u
of point with coordinates (
x
d
,
y
d
) are computed in accordance with the following formulas:
Here r
2
= x
d
2
+ y
d
2
, x
d
= (j-cx)/fx, y
d
= (i-cy)/fy;
i
and
j
are row and columns numbers of the pixel. The pixel value is computed using bilinear interpolation of four nearest pixel of the source image. If undistorted coordinates are outside the image, then the destination pixel is not changed.

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804