Skip to main content
Log in

Chamfer distances on the isometric grid: a structural description of minimal distances based on linear programming approach

  • Published:
Journal of Combinatorial Optimization Aims and scope Submit manuscript

Abstract

Chamfer distances on the isometric grid are considered. A new method to compute the chamfer distances based on linear optimization is presented. In the LP model the starting pixel is the Origin, that is a triangle of the grid having co-ordinates (0, 0, 0). The co-ordinates of the end pixel of the path give the right-hand side of the model. The variables are the used numbers of the elementary steps. Each type of an elementary step has a uniquely defined weight. Our operational research approach determines the optimal paths as basic feasible solutions of a linear programming problem. We give directed graphs with feasible bases as nodes and arcs with conditions on the used weights such that the simplex method of linear programming may step from one feasible basis to another feasible basis. Thus, the possible course of the simplex method can be followed and the optimal bases can easily be captured. Thus, the final result of the analysis is an O(1) checking of the feasibility and optimality conditions. The optimal bases are summarized in a theorem which is the consequence of the general theory of linear programming. The method can be applied for other grids, but it needs to be adjusted for the particular grid.

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

Access this article

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

Similar content being viewed by others

References

  • Borgefors G (1986) Distance transformations in digital images. Comput Vis Graph Image Process 34:344–371

    Article  Google Scholar 

  • Borgefors G (1988) Hierarchical chamfer matching: a parametric edge matching algorithm. IEEE Trans Pattern Anal Mach Intell 10(6):849–865

    Article  Google Scholar 

  • Deutsch ES (1972) Thinning algorithms on rectangular, hexagonal and triangular arrays. Commun ACM 15:827–837

    Article  Google Scholar 

  • Dijkstra EW (1959) A note on two problems in connexion with graphs. Numerische Mathematik 1:269–271

    Article  MathSciNet  MATH  Google Scholar 

  • Forchhammer S (1989) Euclidean distances from chamfer distances for limited distances. In: Proceedings of Sixth Scandinavian Conference on Image Analysis (SCIA’89), Oulu, Finland, pp 393–400

  • Her I (1995) Geometric transformations on the hexagonal grid. IEEE Trans Image Proc 4:1213–1221

    Article  Google Scholar 

  • Klette R, Rosenfeld A (2004) Digital geometry. Geometric methods for digital picture analysis. Morgan Kaufmann Publishers, San Francisco

    MATH  Google Scholar 

  • Kovács G, Nagy B, Vizvári B (2017) Weighted distances and digital disks on the Khalimsky grid: disks with holes and islands. J Math Imaging Vis 59:2–22

    Article  MathSciNet  MATH  Google Scholar 

  • Leyzorek M, Gray RS, Johnson AA, Ladew WC, Meaker SR, Petry RM, Seitz RN (1957) Investigation of model techniques. First Annual Report, 6 June 1956–1 July 1957, A Study of Model Techniques for Communication Systems, Cleveland, Ohio, Case Institute of Technology

  • Luczak E, Rosenfeld A (1976) Distance on a hexagonal grid. IEEE Trans Comput C-25(5):532–533

  • Murty KG (1995) Operations research—deterministic optimization models. Prentice-Hall, Upper Saddle River

    MATH  Google Scholar 

  • Nacken P (1994) Chamfer metrics in mathematical morphology. J Math Imaging Vis 4:233–253

    Article  MathSciNet  Google Scholar 

  • Nagy B (2003a) Distance functions based on neighbourhood sequences. Publicationes Mathematicae Debrecen 63:483–493

    MathSciNet  MATH  Google Scholar 

  • Nagy B (2003b) Shortest path in triangular grids with neighbourhood sequences. J Comput Inf Technol 11:111–122

    Article  Google Scholar 

  • Nagy B (2004) Characterization of digital circles in triangular grid. Pattern Recognit Lett 25:1231–1242

    Article  Google Scholar 

  • Nagy B (2007a) Digital geometry of various grids based on neighbourhood structures. In: Proceedings of 6th conference of Hungarian association for image processing and pattern recognition (KEPAF 2007), Debrecen, Hungary, pp 46–53

  • Nagy B (2007b) Distances with neighbourhood sequences in cubic and triangular grids. Pattern Recognit Lett 28:99–109

    Article  Google Scholar 

  • Nagy B (2008) Distance with generalised neighbourhood sequences in \(n\text{ D }\) and \(\infty \text{ D }\). Discrete Appl Math 156:2344–2351

    Article  MathSciNet  MATH  Google Scholar 

  • Nagy B (2009) Isometric transformations of the dual of the hexagonal lattice. In: Proceedings of 6th international symposium on image and signal processing and analysis (ISPA 2009), Salzburg, Austria, pp 432–437

  • Nagy B (2014) Weighted distances on a triangular grid. In: Combinatorial image analysis (IWCIA 2014), LNCS 8466, pp 37–50

  • Nagy B (2017) Application of neighborhood sequences in communication of hexagonal networks. Discrete Appl Math 216:424–440

    Article  MathSciNet  MATH  Google Scholar 

  • Prékopa A (1972) On the number of vertices of random convex polyhedra. Periodica Math Hung 2:259–282

    Article  MathSciNet  MATH  Google Scholar 

  • Rosenfeld A, Pfaltz JL (1968) Distance functions on digital pictures. Pattern Recognit 1:33–61

    Article  MathSciNet  Google Scholar 

  • Strand R (2009) Weighted distances based on neighborhood sequences for point-lattices. Discrete Appl Math 157:641–652

    Article  MathSciNet  MATH  Google Scholar 

  • Svensson S, Borgefors G (2002) Distance transforms in 3D using four different weights. Pattern Recognit Lett 23:1407–1418

    Article  MATH  Google Scholar 

  • Yamashita M, Ibaraki T (1986) Distances defined by neighborhood sequences. Pattern Recognit 19:237–246

    Article  MathSciNet  MATH  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Gergely Kovács.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Kovács, G., Nagy, B. & Vizvári, B. Chamfer distances on the isometric grid: a structural description of minimal distances based on linear programming approach. J Comb Optim 38, 867–886 (2019). https://doi.org/10.1007/s10878-019-00425-x

Download citation

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s10878-019-00425-x

Keywords

Mathematics Subject Classification

Navigation