Constrained boundary labeling
Boundary labeling is a technique in computational geometry used to label sets of features in an illustration. It involves placing labels along an axis-parallel bounding box and connecting each label with its corresponding feature using non-crossing leader lines. Although boundary labeling is well-studied, semantic constraints on the labels have not been investigated thoroughly. In this paper, we introduce grouping and ordering constraints in boundary labeling: Grouping constraints enforce that all labels in a group are placed consecutively on the boundary, and ordering constraints enforce a partial order over the labels. We show that it is NP-hard to find a labeling for arbitrarily sized labels with unrestricted positions along one side of the boundary. However, we obtain polynomial-time algorithms if we restrict this problem either to uniform-height labels or to a finite set of candidate positions. Furthermore, we show that finding a labeling on two opposite sides of the boundary is NP-complete, even for uniform-height labels and finite label positions. Finally, we experimentally confirm that our approach has also practical relevance.
Authors
- Markus Wallinger (ORCID: https://orcid.org/0000-0002-2191-4413)
- Martin Nöllenburg (ORCID: https://orcid.org/0000-0003-0454-3937)
- Soeren Terziadis (ORCID: https://orcid.org/0000-0001-5161-3841)
- Thomas Depian (ORCID: https://orcid.org/0009-0003-7498-6271)
Publication Details
- Journal
- Computational Geometry
- Published
- 2025-03-28
- DOI
- https://doi.org/10.1016/j.comgeo.2025.102191
- Primary Topic
- Digital Image Processing Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00
Funders
- European Commission
- Vienna Science and Technology Fund
- Technische Universität Wien
- Technische Universität Wien Bibliothek
- HORIZON EUROPE Marie Sklodowska-Curie Actions