Abstract
The representation of objects in images as tree structures is of great interest to vision, as they can represent articulated objects such as people as well as other structured objects like arteries in human bodies, roads, circuit board patterns, etc. Tree structures are often related to the symmetry axis representation of shapes, which captures their local symmetries. Algorithms have been introduced to detect (i) open contours in images in quadratic time (ii) closed contours in images in cubic time, and (iii) tree structures from contours in quadratic time. The algorithms are based on dynamic programming and single source shortest path algorithms. However, in this paper, we show that the problem of finding tree structures in images in a principled manner is a much harder problem. We argue that the optimization problem of finding tree structures in images is essentially equivalent to a variant of the Steiner tree problem, which is NP-hard. Nevertheless, an approximate polynomial-time algorithm for this problem exists: we apply a fast implementation of the Goemans-Williamson approximate algorithm to the problem of finding a tree representation after an image is transformed by a local symmetry mapping. Examples of extracting tree structures from images illustrate the idea and applicability of the approximate method.
Introduction: The Challenge of Articulated Structures
In computer vision, representing objects as tree structures is vital for understanding articulated shapes, biological networks, or infrastructure. Traditionally, researchers found these structures by first detecting a closed contour and then calculating its "medial axis" or skeleton. However, this two-step process is flawed: by committing to a contour early on, valuable local symmetry information that could help define the structure is discarded.
Directly grouping local symmetry clues into a global tree is computationally daunting. This paper identifies the core challenge: the problem of finding tree structures in images in a principled manner is fundamentally NP-hard, equivalent to a variant of the Steiner tree problem.
Methodology: From Vision to Combinatorial Optimization
The authors bridge the gap between computer vision and combinatorial optimization by mapping the tree-finding problem to the Prize Collecting Steiner Tree Problem.
Graph Formulation and Cost Function
The image is represented as a graph $G(V, E)$, where each vertex $v = (p, \theta)$ represents a pixel location $p$ and an orientation $ heta$.
- Vertices are assigned a "prize" (or penalty if excluded) based on local symmetry strength $S(p, \theta)$.
- Edges are assigned costs based on geometric consistency, ensuring "smooth" connections between oriented points.
The goal is to find a tree $T$ that minimizes the sum of edge costs within the tree plus the symmetry "prizes" of all vertices not included in the tree. This formulation captures the vision intuition: balancing a short, smooth tree against the inclusion of high-symmetry points.
The Goemans-Williamson Approximation
Since the problem is NP-hard, the authors utilize a fast implementation of the Goemans-Williamson (GW) clustering algorithm. This algorithm operates in two phases:
- Clustering: Growing "moats" around active components until they collide and form edges.
- Pruning: Deleting unnecessary edges in reverse order to ensure the final structure is a clean tree.
Experimental Results
The approach was evaluated on synthetic sketches and real-world images. The GW algorithm provides a theoretical solution within a factor of $(2 - 1/(n-1))$ of the optimal.
As shown in Figure 5, the algorithm successfully extracts the underlying symmetry axis of a complex object without any a priori knowledge of its shape. Using a specialized implementation, the complexity of the clustering step was reduced to roughly $O(n \log^2 n)$, allowing for respectable performance on the hardware of the era.
Conclusion
By proving the tree-finding problem is a variant of the Steiner Tree problem, this work moves the field toward established approximation algorithms with known performance bounds. While the quality of the final tree depends on the initial local symmetry transform, the framework provides a principled method for discovering complex articulated structures in a variety of domains.
Summary updated