Abstract
Accurate homography estimation is a crucial step for many computer vision applications. Nevertheless, nonlinear optical camera imaging effects can introduce radial distortion, making unfeasible the pinhole model for homography estimation. In this paper, an algorithm to rectify radially distorted images using the Maple software is proposed. First, the effect of radial distortion is modeled and analyzed. Next, an inverse distortion model is developed. The proposed algorithm allows us to estimate both the homography matrix and the distortion parameters by processing images of a calibration target using the Gauss-Newton approach. Successful estimation of homographies and distortion parameters to correct real-world images is reported.
This work was supported by the Consejo Nacional de Ciencia y Tecnología (CONACYT) by the projects Cátedras-880 and A1-S-28112. Authors thank the support of Instituto Politécnico Nacional by the project SIP-20210845.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
Notes
- 1.
More detailed information about homogeneous coordinates can be found in Appendix A.
- 2.
Reprojection error is an error measure defined as the Euclidean distance between the estimated reference points (obtained using the estimated homography and distortion parameters) and the exact coordinates of the reference points.
References
Benligiray, B., Topal, C.: Lens distortion rectification using triangulation based interpolation. In: Bebis, G., et al. (eds.) ISVC 2015. LNCS, vol. 9475, pp. 35–44. Springer, Cham (2015). https://doi.org/10.1007/978-3-319-27863-6_4
Brown, D.: Decentering distortion of lenses. Photogrammetric Engineering and Remote Sensing (1966)
Bukhari, F., Dailey, M.N.: Automatic radial distortion estimation from a single image. J. Math. Imaging Vis. 45(1), 31–45 (2013)
Cao, V.-T., Park, Y.-Y., Shin, J.-H., Lee, J.-H., Cho, H.-M.: A simple method for correcting lens distortion in low-cost camera using geometric invariability. In: Huang, D.-S., Zhang, X., Reyes García, C.A., Zhang, L. (eds.) ICIC 2010. LNCS (LNAI), vol. 6216, pp. 325–333. Springer, Heidelberg (2010). https://doi.org/10.1007/978-3-642-14932-0_41
Corke, P.: Robotics, Vision and Control: Fundamental Algorithms in MATLAB® Second, Completely Revised, vol. 118. Springer (2017)
Devernay, F., Faugeras, O.: Straight lines have to be straight. Mach. Vis. Appl. 13(1), 14–24 (2001)
Fitzgibbon, A.W.: Simultaneous linear estimation of multiple view geometry and lens distortion. In: Proceedings of the 2001 IEEE Computer Society Conference on Computer Vision and Pattern Recognition. CVPR 2001, vol. 1, pp. I-I. IEEE (2001)
Geng, J.: Structured-light 3D surface imaging: a tutorial. Adv. Optics Photonics 3(2), 128–160 (2011)
Hughes, C., Denny, P., Jones, E., Glavin, M.: Accuracy of fish-eye lens models. Appl. Opt. 49(17), 3338–3347 (2010). https://doi.org/10.1364/AO.49.003338
Hughes, C., Glavin, M., Jones, E., Denny, P.: Review of geometric distortion compensation in fish-eye cameras. In: IET Irish Signals and Systems Conference 2008. IET (2008)
Hwang, K., Kang, M.G.: Correction of lens distortion using point correspondence. In: Proceedings of IEEE. IEEE Region 10 Conference. TENCON 1999. Multimedia Technology for Asia-Pacific Information Infrastructure’(Cat. No. 99CH37030), vol. 1, pp. 690–693. IEEE (1999)
Juarez-Salazar, R., Diaz-Ramirez, V.H.: Operator-based homogeneous coordinates: application in camera document scanning. Optic. Eng. 56(7), 070801 (2017). https://doi.org/10.1117/1.OE.56.7.070801
Kasturi, R., Jain, R.: Computer Vision: Principles, vol. 1. IEEE Computer Society (1991)
Mallon, J., Whelan, P.F.: Precise radial un-distortion of images. In: Proceedings of the 17th International Conference on Pattern Recognition, 2004. ICPR 2004, vol. 1, pp. 18–21. IEEE (2004)
Tsai, R.: A versatile camera calibration technique for high-accuracy 3D machine vision metrology using off-the-shelf tv cameras and lenses. IEEE J. Robot. Autom. 3(4), 323–344 (1987)
Zhang, Z.: Flexible camera calibration by viewing a plane from unknown orientations. In: Proceedings of the Seventh IEEE International Conference on Computer Vision. vol. 1, pp. 666–673. IEEE (1999)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Appendices
A Homogeneous coordinates
In this section we introduce the homogeneous coordinates and the direct linear transform (DLT) method for homography estimation. We use the homogeneous coordinates operator \(\mathcal {H}[.]\) as in [12] to represent an n-dimensional point in homogeneous coordinates. To clarify, let a Cartesian’s coordinate point \(\boldsymbol{u} \in \mathbb R^n\) specified as
whose homogeneous representation is given by
such that \(v \in \mathbb R^{n+1}\). Inversely to obtain the Cartesian’s coordinates from homogeneous coordinates representation we use the inverse homogeneous operator defined as
where \(\mathcal {S}\) is the scale operator which returns the last element of \(\boldsymbol{v}\) and the null inverse homogeneous operator specified as \(\mathcal {H}_0^{-1}[\boldsymbol{v}] = \left[ v_1, v_2, \dots , v_n \right] ^T\).
1.1 A.1 Correspondence Between Planes
Homography estimation is critical in many vision-based applications such as camera calibration [16], perspective correction [12], among others [8]. Projective transformations are linear operations that relate points in homogeneous coordinate space. Homographies are a special kind of projective transformations that define direct and inverse mapping relationships between planes in homogeneous coordinates such as points, lines, and other objects. In this work, we use the point paradigm for correspondences between two planes \(\left( \varPi _\mu , \varPi _\rho \right) \) which are denoted as \(\mu _i \leftrightarrow \rho _i\) with \(\mu _i \in \varPi _\mu \) and \(\rho _i \in \varPi _\rho \). Equally important, consider direct and inverse mappings
and
we may state the problem to estimate the homography that satisfies the equation for the direct mapping and inverse mapping given a set of correspondence points. To estimate a homography given a pair correspondences \(\mu _i \leftrightarrow \rho _i\) we may minimize the algebraic distance
From Eq. (23), using the matrix form of cross product \( \left[ \mathcal {H}[\mu _i] \right] _{\times } \mathcal {H}[\rho _i] = \boldsymbol{0}_3\) we may write
where \(\bar{\boldsymbol{g}_i}^T\) are the matrix rows of G, and rearranging terms from Eq. (24) we obtain the measurements matrix M and the homography vector \(\boldsymbol{g}\) specified as follows
Now from Eq. (25) the third row is a linear combination of the first two rows of the measurement matrix and promptly we may simplify it as
The Eq. (26) is the principle of a well-known method for homography estimation called the Direct Linear Transformation (DLT). As we may observe, the DLT requires at least four correspondences points to estimate the homography matrix G, but we may supply more than four point correspondences and rewrite Eq. (26) as
which we may be solved through the singular value decomposition method (SVD) [16]. A detailed Maple implementation for homogeneous coordinates transformation and homography estimation by the DLT method can be found in Appendix A.2.
1.2 A.2 Homogeneous Coordinates and DLT Maple Listings
For this Maple listings section, it is necessary to load the following libraries using




B Support Functions Maple Listings




C Numerical Solution for Radial Distortion Maple Listings




Rights and permissions
Copyright information
© 2021 Springer Nature Switzerland AG
About this paper
Cite this paper
Rios-Orellana, O.I., Juarez-Salazar, R., Diaz-Ramirez, V.H. (2021). Numerical Solution for Radial Distortion Rectification in Optical Systems. In: Corless, R.M., Gerhard, J., Kotsireas, I.S. (eds) Maple in Mathematics Education and Research. MC 2020. Communications in Computer and Information Science, vol 1414. Springer, Cham. https://doi.org/10.1007/978-3-030-81698-8_21
Download citation
DOI: https://doi.org/10.1007/978-3-030-81698-8_21
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-81697-1
Online ISBN: 978-3-030-81698-8
eBook Packages: Computer ScienceComputer Science (R0)