Abstract
Polynomial functions are a usual choice to model the nonlinearity of lenses. Typically, these models are obtained through physical analysis of the lens system or on purely empirical grounds. The aim of this work is to facilitate an alternative approach to the selection or design of these models based on establishing a priori the desired geometrical properties of the distortion functions. With this purpose we obtain all the possible isotropic linear models and also those that are formed by functions with symmetry with respect to some axis. In this way, the classical models (decentering, thin prism distortion) are found to be particular instances of the family of models found by geometric considerations. These results allow to find generalizations of the most usually employed models while preserving the desired geometrical properties. Our results also provide a better understanding of the geometric properties of the models employed in the most usual computer vision software libraries.
Similar content being viewed by others
Notes
Note that if \(f=g=0\) then \(\mathcal {M}_{m}^{(n)}\left[ f,g\right] =\left\{ 0\right\} \) and that \(\mathcal {F}\) can also be the null vector subspace.
References
Hartley, R., Zisserman, A.: Multiple View Geometry in Computer Vision, 2nd edn. Cambridge University Press, Cambridge (2004)
Hartley, R., Kang, S.B.: Parameter-free radial distortion correction with center of distortion estimation. IEEE Trans. Pattern Anal. Mach. Intell. 29, 1309–1321 (2007)
Ricolfe-Viala, C., Sánchez-Salmerón, A.-J.: Correcting non-linear lens distortion in cameras without using a model. Opt. Laser Technol. 42, 628–639 (2010)
Claus, D., Fitzgibbon, A.W.: A rational function lens distortion model for general cameras. In: 2005 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR’05), vol. 1, pp. 213–219 (2005)
Weng, J., Cohen, P., Herniou, M., et al.: Camera calibration with distortion models and accuracy evaluation. IEEE Trans. Pattern Anal. Mach. Intell. 14, 965–980 (1992)
Li, H., Hartley, R.: A non-iterative method for correcting lens distortion from nine point correspondences. OMNIVIS 2, 7 (2005)
Álvarez, L., Gómez, L., Sendra, J.R.: An algebraic approach to lens distortion by line rectification. J. Math. Imaging Vis. 35, 36–50 (2009)
Strand, R., Hayman, E.: Correcting radial distortion by circle fitting. In: BMVC (2005)
Wu, F., Wei, H., Wang, X.: Correction of image radial distortion based on division model. Opt. Eng. 56, 013108 (2017)
Devernay, F., Faugeras, O.: Straight lines have to be straight. Mach. Vis. Appl. 13, 14–24 (2001)
Ma, W., Liu, Y.: A curve-fitting method for correcting radial distortion. In: Image and Signal Processing, CISP’09. 2nd International Congress on IEEE, pp. 1–4 (2009)
Conrady, A.: Lens-systems, decentered. Mon. Not. R. Astron. Soc. 79, 384–390 (1919)
Brown, D.C.: Decentering distortion of lenses. Photogramm. Eng. 32, 444–462 (1966)
Tang, Z., von Gioi, R.G., Monasse, P., Morel, J.-M.: A precision analysis of camera distortion models. IEEE Trans. Image Process. 26, 2694–2704 (2017)
Bradski, G.: The opencv library. Dr. Dobb’s. J. Softw. Tools. 25, 120, 122–125 (2000)
Vinberg, E.B.: Linear Representations of Groups. Birkhäuser (2012)
Matlab computer vision toolbox: The MathWorks, Natick, MA, USA (2017)
Author information
Authors and Affiliations
Corresponding author
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
This work has been partially supported by the Ministerio de Economía, Industria y Competitividad (AEI/FEDER) of the Spanish Government under Projects TEC2016-75981 (IVME) and TIN2016-75982- C2-2- R (HEIMDAL-UPM).
Appendix: Proofs of Theorems
Appendix: Proofs of Theorems
1.1 Lemma to Prove Theorem 1
Lemma 1
Let V be a complex vector space with a basis \(\left\{ u_{1},\ldots ,u_{p},v_{1},\ldots ,v_{q}\right\} \) and a complex endomorphism \(f:V\rightarrow V\) given by
Then, the irreducible invariant subspaces of f with respect to the realification \(V_{\mathbb {R}}\) of V (i.e., the consideration of V as a real vector space by restricting the scalars to the real numbers) are of the form
where \((\alpha :\beta )\) is an abbreviation for
Besides, if \(\left( \alpha :\beta \right) \not =\left( \alpha ':\beta '\right) \) then
Proof
A basis for \(V_{\mathbb {R}}\) is given by
so we can identify \(V\approx \mathbb {C}^{p+q}\) and \(V_{\mathbb {R}}\approx \mathbb {R}^{2(p+q)}.\) With this identification, the matrix \(\mathtt {M}\) of f as an endomorphism of \(\mathbb {R}^{2(p+q)}\) is block-diagonal with p blocks
and q blocks \(\mathtt {B}^{\top }\). From the diagonalization
we easily obtain a diagonalization of \(\mathtt {M}\) and from it we see that the eigenvectors of this matrix associated with the eigenvalue \({\lambda }\) are of the form
and those associated with the eigenvalue \(\bar{\lambda }\) are their conjugates. Given a non null vector \(\mathbf{w}=\mathbf {w}_{1}+i\mathbf {w}_{2}\) of this form, \(\mathbf {w}\) and \(\bar{\mathbf {w}}\) span an invariant subspace of \(\mathtt {M}\) whose realification admits the basis \(\left\{ \mathbf {w}_{1},\mathbf {w}_{2}\right\} \). Denoting \(\alpha _{i}=a_{i}+ib_{i}\), \(\beta _{j}=c_{j}+id_{j}\), we have
The elements of this subspace have coordinates of the form
that correspond to the elements of V
and so the subspace generated by \(\mathbf {w}_{1}\) and \(\mathbf {w}_{2}\) is of the form \(\mathcal{S}_{(\alpha :\beta )}\), as required. Finally, let us see that all the irreducible subspaces are of this form. Since \(\mathtt {M}\) is real and without real eigenvectors, its irreducible invariant subspaces are bidimensional. Therefore, let us consider an invariant bidimensional real subspace \(W\subset \mathbb {R}^{2(p+q)}\subset \mathbb {C}^{2(p+q)}\). Let \(W^{\mathbb {C}}=W\oplus iW\) be the associated complex vector subspace. The eigenvalues of the restriction to \(W^{\mathbb {C}}\) of the endomorphism given by \(\mathtt {M}\) must be complex conjugated and so they are \(\left\{ \lambda ,\bar{\lambda }\right\} \). The eigenvector \(\mathbf {x}=\mathbf {x}_{1}+i\mathbf {x}_{2}\) associated with the first eigenvalue must be of the form (41). The endomorphism being real, the conjugate vector \(\bar{\mathbf {x}}\) must belong to the invariant subspace \(W^{\mathbb {C}}\) and so the real vectors \(\mathbf {x}_{1},\mathbf {x}_{2}\in W\), and therefore, W is of the form \(\mathcal{S}_{(\alpha :\beta )}\) as required.
As for the last assertion, just observe that if
then, the vectors being a base, we have that \(\gamma \alpha _{i}=\gamma '\alpha '_{i}\) and \(\bar{\gamma }\bar{\beta }_{j}=\bar{\gamma }'\bar{\beta }_{j}'\) and so \((\alpha _{1}:\ldots :\alpha _{m}:\beta _{1}: \ldots :\beta _{n})=(\alpha '_{1}:\ldots :\alpha '_{m}:\beta '_{1}:\ldots :\beta '_{n})\). \(\square \)
1.2 Proof of Theorem 2
If \(\mathcal{S}\) is a subspace of \(\mathcal {P}^{(n)}\) generated by some set of monomials and \(f\in \mathcal {P}^{(n)}\), we define the projection\(P_{\mathcal {S}}(f)\) as the polynomial obtained by keeping in f only the monomials in \(\mathcal{S}\). Therefore, we have a linear mapping
Now we can proceed to the proof of theorem 2.
Proof
We consider displacement functions expressed as complex polynomials in the variables z and \(\bar{z}\),
with reflection symmetry with respect to some axis. Therefore, the coefficients can be obtained through the parameterization (26).
Let us suppose that we have a real vector space L of functions of this form which, at the same time, is invariant under the action of the unitary group SO(2) according to (20), i.e.,
Given an element f of L there must exist an element \(f_{0}\) of its orbit under the action of SO(2) with reflection symmetry with respect to the horizontal axis, i.e., with real coefficients \(\gamma _{kl}=a_{kl}\in \mathbb {R}\). Therefore, L is determined by its subset \(L_{\mathbb {R}}\) of its elements with real coefficients.
Denoting \(m=k+l-1\) and \(m'=k'+l'-1\), let us consider two pairs (k, l) and \((k',l')\) such that
Let us see that \(L_{\mathbb {R}}\) cannot contain a polynomial with both coefficients \(a_{kl}\ne 0\) and \(a_{k'l'}\ne 0\). We denote by \(\mathcal{S}\) the set of polynomials only with monomials \(z^{k}\bar{z}^{l},\,z^{k'}\bar{z}^{l'}\). Since L is a linear subspace, so is its image by the linear mapping \(P_{\mathcal{S}}\), that cancels all monomials but \(z^{k}\bar{z}^{l}\) and \(z^{k'}\bar{z}^{l'}\). If such a polynomial existed, both
and
would belong to this image for any \(c,\theta \in \mathbb {R}\), so that its sum
must also be in the image, and therefore satisfy (29), so that
for any \(c,\theta \in \mathbb {R}\). If this were true we would have that
but
unless \(|m|=|m'|\) or \(mm'=0\), and therefore, we have found a contradiction.
Let us see now that the image of \(L_{\mathbb {R}}\) by the mapping \(P_{\mathcal{W}}\), that only keeps the non-invariant monomials of each polynomial cannot be of dimension larger than one. It is easy to check that a vector space is of dimension larger than one if and only if some projection onto a coordinate plane has dimension larger than one. In our case, this means that there are two different monomials \(z^{k}\bar{z}^{n-k},\,z^{k'}\bar{z}^{n'-k'}\) such that \(L_{\mathbb {R}}\) contains polynomials
and
with \(m=k+l-1\), \(m'=k+l-1\), \(mm'\ne 0\), and using first the isotropy of L and then its linearity, we see that L must contain a polynomial
for any \(\theta ,\theta '\). And applying (29) to the coefficients of these monomials we would have for all \(\theta ,\theta '\in \mathbb {R}\),
which is not true unless \(mm'=0\).
Therefore, if \(P_{\mathcal{W}}\left( L_{\mathbb {R}}\right) \) contains polynomials with some monomial \(z^{k}\bar{z}^{l}\) with \(m=k-l-1\ne 0\), \(L_{\mathbb {R}}\) must be one-dimensional and, since it can only contain polynomials with monomials with \(k-l-1\in \left\{ -m,m\right\} \), it must be of the form
where \(f\in \mathcal{P}_{m}^{(n)}\), \(g\in \mathcal{P}_{-m}^{(n)}\) are polynomials with real coefficients, so that the projection of L onto the space of non-invariant monomials is
that corresponds to \(\mathcal {M}_{m}^{(n)}\left[ f,g\right] \) in (23) with \(\gamma =\alpha e^{im\theta }\).
So we have the following possibilities:
-
(a)
If L does not contain polynomials with invariant monomials, it must of the form (43),
-
(b)
If L only contains polynomials with invariant monomials, L can be any linear subspace of invariant polynomials with real coefficients.
-
(c)
Finally, if L contains polynomials with invariant monomials and polynomials with non-invariant monomials, since L is an invariant subspace it must contain an irreducible subspace of non-invariant monomials that must be of the form (43), and only one. Therefore, L must also contain its projection onto the space of invariant polynomials, and consequently, L is the direct sum of a space of the form (43) and a linear space of invariant polynomials with real coefficients. \(\square \)
Rights and permissions
About this article
Cite this article
Ronda, J.I., Valdés, A. Geometrical Analysis of Polynomial Lens Distortion Models. J Math Imaging Vis 61, 252–268 (2019). https://doi.org/10.1007/s10851-018-0833-x
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s10851-018-0833-x