Global Collinearity-aware Polygonizer for Polygonal Building Mapping in Remote Sensing
Fahong Zhang, Yilei Shi, Xiao Xiang Zhu
TL;DR
This work tackles polygonal building mapping from remote sensing masks by introducing the Global Collinearity-aware Polygonizer (GCP), a three-stage framework that refines mask contours with a transformer-based polyline regression and then applies a globally optimal, collinearity-aware polygon simplification via dynamic programming. A differentiable global collinearity loss, $oldsymbol{ ext{L}}_{ ext{gc}}$, ties the refinement and simplification into end-to-end training, improving polygon compactness (low N-ratio) while preserving geometry. Evaluations on CrowdAI and WHU-Mix-vector benchmarks show state-of-the-art MS-COCO metrics and competitive IoU, with clearer, simpler polygons than prior methods; ablations confirm the contributions of the regression module, the loss, and the GCP simplification. The method also demonstrates that applying the collinearity-aware simplification to arbitrary polylines outperforms Douglas-Peucker, indicating broad applicability for vectorization in remote sensing and digital twin workflows. The authors provide code to reproduce the results, facilitating adoption and further research in polygonal building mapping.
Abstract
This paper addresses the challenge of mapping polygonal buildings from remote sensing images and introduces a novel algorithm, the Global Collinearity-aware Polygonizer (GCP). GCP, built upon an instance segmentation framework, processes binary masks produced by any instance segmentation model. The algorithm begins by collecting polylines sampled along the contours of the binary masks. These polylines undergo a refinement process using a transformer-based regression module to ensure they accurately fit the contours of the targeted building instances. Subsequently, a collinearity-aware polygon simplification module simplifies these refined polylines and generate the final polygon representation. This module employs dynamic programming technique to optimize an objective function that balances the simplicity and fidelity of the polygons, achieving globally optimal solutions. Furthermore, the optimized collinearity-aware objective is seamlessly integrated into network training, enhancing the cohesiveness of the entire pipeline. The effectiveness of GCP has been validated on two public benchmarks for polygonal building mapping. Further experiments reveal that applying the collinearity-aware polygon simplification module to arbitrary polylines, without prior knowledge, enhances accuracy over traditional methods such as the Douglas-Peucker algorithm. This finding underscores the broad applicability of GCP. The code for the proposed method will be made available at https://github.com/zhu-xlab.
