Abstract
As an addition to proper points of the real plane, we introduce a representation of improper points, i.e. points at infinity, in terms of Geometric Algebra for Conics (GAC) and offer possible use of both types of points. More precisely, we present two algorithms fitting a conic to a dataset with a certain number of points lying on the conic precisely, referred to as the waypoints. Furthermore, we consider inclusion of one or two improper waypoints, which leads to the asymptotic directions of the fitted conic. The number of used waypoints may be up to four and we classify all the cases.
Similar content being viewed by others
Data Availability
Data sharing not applicable to this article as no datasets were generated or analysed during the current study.
Notes
The renaming of the algorithm was done in order to distinguish it from a new algorithm which fits a conic through given waypoint(s) as well. Moreover, the new name of the algorithm stresses that it reaches the solution using the Moore–Penrose pseudoinverse.
Abbreviations
- GAC:
-
Geometric algebra for conics
- CRA:
-
Compass and ruler algebra
- IPNS:
-
Inner product null space
References
Byrtus, R., Derevianko, A., Vašík, P., Hildenbrand, C., Steinmetz, C.: On Specific Conic Intersections in GAC and Symbolic Calculations in GAALOPWeb. Advances in Applied Clifford Algebras, vol. 32, no. 1, ISSN 0188-7009 (2022). https://doi.org/10.1007/s00006-021-01182-z
Derevianko, A.I., Vašík, P.: Solver-free optimal control for linear dynamical switched system by means of geometric algebra. Math. Methods Appl. Sci. (2022). https://doi.org/10.1002/mma.8752
Fitzgibbon, A.W., Pilu, M., Fisher, R.B.: Direct least squares fitting of ellipses. IEEE Trans. Pattern Anal. Mach. Intell. 21(5), 476–480 (1999)
Hildenbrand, D.: Introduction to Geometric Algebra Computing. CRC Press, Taylor & Francis Group, Boca Raton (2019)
Hrdina, J., Návrat, A., Vašík, P.: Geometric algebra for conics. Adv. Appl. Clifford Algebras 28, 66 (2018). https://doi.org/10.1007/s00006-018-0879-2
Hrdina, J., Návrat, A., Vašík, P.: Conic fitting in geometric algebra setting. Adv. Appl. Clifford Algebras 29, 72 (2019). https://doi.org/10.1007/s00006-019-0989-5
Korn, G.A., Korn, T.M.: Mathematical Handbook for Scientists and Engineers. McGraw-Hill Book Company, New York (1961)
Loučka, P.: On Proper and Improper Points in Geometric Algebra for Conics and Conic Fitting Through Given Waypoints. ENGAGE,: Lecture Notes in Computer Science, vol. 13862. Springer, Cham (2022). https://doi.org/10.1007/978-3-031-30923-6_6
Loučka, P., Vašík, P.: Algorithms for Multi-conditioned Conic Fitting in Geometric Algebra for Conics. Advances in Computer Graphics. CGI 2021. Lecture Notes in Computer Science, vol. 13002. https://doi.org/10.1007/978-3-030-89029-2_48
Loučka, P., Vašík, P.: On multi-conditioned conic fitting in geometric algebra for conics. Adv. Appl. Clifford Algebras 33, 31 (2023). https://doi.org/10.1007/s00006-023-01277-9
Pamfilos, P.: A gallery of conics by five elements. Forum Geom. 14, 295–348 (2014)
Perwass, C.: Geometric Algebra with Applications in Engineering. Springer, Berlin (2009)
Richter-Gebert, J.: Perspectives on Projective Geometry: A Guided Tour Through Real and Complex Geometry. Springer, Berlin (2016)
Waibel, P., Matthes, J., Gröll, L.: Constrained ellipse fitting with center on a line. J. Math. Imaging Vis. 53, 364–382 (2015)
Acknowledgements
The research was supported by a Grant no. FSI-S-23-8161.
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 article is part of the Topical Collection for the First International Conference on Advanced Computational Applications of Geometric Algebra (ICACGA) held in Denver, Colorado, USA, 2–5 October 2022, edited by David DaSilva, Eckhard Hitzer and Dietmar Hildenbrand.
Appendix A. MATLAB Implementation of Conic Fitting Algorithms
Appendix A. MATLAB Implementation of Conic Fitting Algorithms
Below, we summarise both presented algorithms for conic fitting with given waypoints implemented as a MATLAB function. Let us note that the reduced forms of some vectors and matrices were employed to avoid a few unnecessary computations with zero elements, similarly to the conic fitting algorithms in [9, 10].
Both algorithms receive the same types of inputs and generate the same types of outputs, in particular:
Inputs:
- \(\textbf{a}\), \(\textbf{b}\), \(\textbf{c}\):
-
column vectors of x, y, z homogeneous coordinates of waypoints
- \({\textbf{p}}{\textbf{x}}\), \({\textbf{p}}{\textbf{y}}\):
-
column vectors of x, y coordinates of data points
Outputs:
- Conic:
-
fitted conic in the form (2.7)
- obj_function:
-
value of objective function (3.1) for fitted conic
Let us also reiterate that when given affine coordinates of a proper point or the elements of a vector corresponding to an improper point, these can be easily converted into homogeneous coordinates using the mapping (2.1).
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Loučka, P., Vašík, P. Algorithms for Conic Fitting Through Given Proper and Improper Waypoints in Geometric Algebra for Conics. Adv. Appl. Clifford Algebras 34, 6 (2024). https://doi.org/10.1007/s00006-023-01308-5
Received:
Accepted:
Published:
DOI: https://doi.org/10.1007/s00006-023-01308-5
Keywords
- Conic fitting
- Geometric algebra
- Clifford algebra
- Waypoint
- Proper point
- Improper point
- Point at infinity
- Ideal point