Skip to main content
Log in

Algorithms for Conic Fitting Through Given Proper and Improper Waypoints in Geometric Algebra for Conics

  • Published:
Advances in Applied Clifford Algebras Aims and scope Submit manuscript

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.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8

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

  1. 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

  1. 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

  2. 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

    Article  Google Scholar 

  3. 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)

    Article  Google Scholar 

  4. Hildenbrand, D.: Introduction to Geometric Algebra Computing. CRC Press, Taylor & Francis Group, Boca Raton (2019)

    Google Scholar 

  5. 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

    Article  MathSciNet  Google Scholar 

  6. 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

    Article  MathSciNet  Google Scholar 

  7. Korn, G.A., Korn, T.M.: Mathematical Handbook for Scientists and Engineers. McGraw-Hill Book Company, New York (1961)

    Google Scholar 

  8. 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

  9. 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

  10. 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

    Article  MathSciNet  Google Scholar 

  11. Pamfilos, P.: A gallery of conics by five elements. Forum Geom. 14, 295–348 (2014)

    MathSciNet  Google Scholar 

  12. Perwass, C.: Geometric Algebra with Applications in Engineering. Springer, Berlin (2009)

    Google Scholar 

  13. Richter-Gebert, J.: Perspectives on Projective Geometry: A Guided Tour Through Real and Complex Geometry. Springer, Berlin (2016)

    Google Scholar 

  14. Waibel, P., Matthes, J., Gröll, L.: Constrained ellipse fitting with center on a line. J. Math. Imaging Vis. 53, 364–382 (2015)

    Article  MathSciNet  Google Scholar 

Download references

Acknowledgements

The research was supported by a Grant no. FSI-S-23-8161.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Petr Vašík.

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 xyz homogeneous coordinates of waypoints

\({\textbf{p}}{\textbf{x}}\), \({\textbf{p}}{\textbf{y}}\):

column vectors of xy 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).

figure a
figure b

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.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

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

Download citation

  • Received:

  • Accepted:

  • Published:

  • DOI: https://doi.org/10.1007/s00006-023-01308-5

Keywords

Mathematics Subject Classification

Navigation