So for an old pixel point at :math:`(x,y)` coordinate in the input image, for a corrected output image its position will be :math:`(x_{corrected} y_{corrected})` . The presence of the radial distortion manifests in form of the "barrel" or "fish-eye" effect.
...
...
@@ -21,8 +21,8 @@ Tangential distortion occurs because the image taking lenses are not perfectly p
.. math::
x_{corrected} = x + [ 2p_1y + p_2(r^2+2x^2)] \\
y_{corrected} = y + [ 2p_1(r^2+ 2y^2)+ 2p_2x]
x_{corrected} = x + [ 2p_1xy + p_2(r^2+2x^2)] \\
y_{corrected} = y + [ p_1(r^2+ 2y^2)+ 2p_2xy]
So we have five distortion parameters, which in OpenCV are organized in a 5 column one row matrix: