Efficient Structured Parsing of Facades Using Dynamic Programming

Andrea Cohen, Alexander Gerhard Schwing, Marc Pollefeys

Abstract

Parsing building façades into semantic components like windows, doors, and balconies is a fundamental task in urban scene understanding. Traditional methods often struggle with a trade-off between structural consistency and computational speed. This paper presents a deterministic optimization framework that utilizes Dynamic Programming (DP) and a novel bounding strategy to achieve global optimality efficiently. Our approach is significantly faster than stochastic grammar-based methods while maintaining high accuracy, providing a certificate of optimality for the majority of processed images.

Introduction

The structural analysis of urban environments is a classic computer vision challenge. Humans intuitively recognize architectural patterns—windows aligned in rows, shops at ground level, and balconies positioned below windows. However, translating these "architectural rules" into robust algorithms is difficult.

Previous research generally followed two paths: pixel-wise classifiers (like Markov Random Fields) and grammar-based parsing. Pixel-wise methods often produce noisy results that violate structural logic, such as windows appearing on roofs. Grammar-based methods ensure consistency but rely on slow stochastic sampling (e.g., MCMC), offering no guarantees of finding the global optimum.

Overview of the façade parsing results and the optimization space.

This work aims to bridge this gap by proposing a method that is structurally rigorous, computationally efficient, and globally optimal.

Methodology

The core innovation is a multi-step optimization pipeline that treats façade parsing as a series of rectangular labeling problems.

Sequential Optimization

Instead of a simultaneous global solution, the algorithm proceeds in stages. It first identifies window and balcony rows, followed by doors and shops, and finally segments the roof, sky, and chimneys. This sequential approach reduces the complexity of the search space.

The sequential optimization process from Step 0 to Step 3.

Dynamic Programming and Bounding

To find the optimal horizontal arrangement of rectangles, the authors employ a Viterbi-like DP algorithm. To avoid the $O(N^3)$ complexity of exhaustive search, an "optimality-retaining bounding" strategy is introduced. The algorithm calculates a computationally inexpensive upper bound for the score of a potential row. If this bound is lower than the current best score, the expensive DP calculation for that region is skipped. In practice, the full DP is only triggered for approximately 3.6% of cases.

Hard Architectural Constraints

Unlike soft penalties used in MRFs, this method enforces hard constraints (e.g., balconies must be below windows). These constraints drastically narrow the search space, making global optimization feasible and ensuring the final output adheres to architectural logic.

Experimental Results

The method was evaluated on several standard benchmarks, including the ECP (Ecole Centrale Paris) Façades Database and the eTRIMS Database.

Performance and Accuracy

The proposed method processes an image in an average of 2.8 seconds, representing a 10x to 40x speedup over previous state-of-the-art techniques. On the ECP dataset, labeling accuracy improved by 5.8% to 6.6%, exceeding 90% total accuracy in certain configurations.

Optimality Certificates

A unique feature of this deterministic approach is the ability to return a "certificate of optimality." For 85% of the test images, the algorithm proved that the result was the absolute best possible labeling given the cost function.

Discussion and Future Work

While the method demonstrates significant improvements, it has certain limitations. It relies on image rectification as a preprocessing step and is dependent on the quality of the underlying pixel-wise classifier (e.g., TextonBoost). Furthermore, the sequential nature of the optimization is technically greedy; future work could explore joint optimization across all categories to further enhance robustness. Finally, the current constraint set is primarily tuned to European architectural styles, suggesting a need for adaptation to more diverse global urban environments.

Summary updated

BibTeX
@inproceedings{cohen2014efficient,
  author = {Andrea Cohen and Alexander Gerhard Schwing and Marc Pollefeys},
  title = {{Efficient Structured Parsing of Facades Using Dynamic Programming}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2014},
  doi = {10.1109/cvpr.2014.410},
}
Figure