# Camera Lens Distortion

Notes from Cyrill Stachniss camera lecture.

##### Aberrations

A deviation from the ideal mapping with a thin lens is called aberration. Main types of aberrations:

- Distortion
- Spherical aberrations
- Chromatic aberrations
- Astigmatism
- Comatic aberrations
- Vignetting
- …

- Also see Plumb Bob Model

- Ohh my actual eyes have the same problem

### Distortion (notes from Visual SLAM book)

There are some mathematical models to describe the distortion caused by the shape of the lens.

There are 2 types of distortion that I was introduced to (the Rad-tan model):

**radial distortion**is introduced by the shape of the lens**tangential distortion**is introduced during assembly of the camera because the lens and the imaging surface cannot be strictly parallel

#### Radial Distortion

In order to get a larger FoV (Field-of-View), we usually add a lens in front of the camera.

- oohhh is that the point of lenses? I didn’t think about ti that way before

A byproduct of this is that in photos, the straight lines become more curved the closer these are to the edge of the image. You know this learning the types of Camera Shots.

Radial distortion is radially symmetrical.

2 categories of distortion:

- barrel-like distortion
- cushion-like distortion (where do you ever get this??)

#### Tangential Distortion

Tangential distortion is introduced during assembly of the camera because the lens and the imaging surface cannot be strictly parallel.

##### Formal Math

Consider any point on the normalized plane, $p$, whose coordinates are $[x,y]_{T}$, or $[r,θ]_{T}$ in the form of polar coordinates, where $r$ represents the distance between the point $p$ and the origin of the coordinate system, and $θ$ represents the angle to the horizontal axis.

Radial distortion can be seen as a change in the coordinate point along the length, that is, its radius from the origin.

Tangential distortion can be seen as a change in the coordinate point along the tangential direction, which means that the horizontal angle has changed. It is generally assumed that these distortions are polynomial, namely:

- $[x_{distorted},y_{distorted}]_{T}$ is the normalized coordinates of the point after distortion.

For tangential distortion, we can use the other two parameters $p_{1},p_{2}$ to describe it: