Terrain prickliness: theoretical grounds for high complexity viewsheds
Ankush Acharyya, Maarten Löffler, Gert G. T. Meijer, Maria Saumell, Rodrigo I. Silveira, Frank Staals
TL;DR
This work studies the complexity of terrain viewsheds and introduces prickliness, a global, affine-invariant topographic attribute defined as the maximum number of local maxima across all affine transformations of a terrain. It develops theoretical results showing no correlation between prickliness and viewshed complexity in 1.5D terrains, but a provable, near-linear bound between prickliness and viewshed complexity in 2.5D terrains, along with corresponding algorithms. The authors provide optimal or near-optimal algorithms to compute prickliness for 1.5D TINs ($O(n\log n)$) and 2.5D TINs ($O(n^2)$), plus an approximate method for DEMs, and prove 3SUM-hardness lower bounds. Extensive experiments on real terrains compare prickliness to existing topographic attributes (TRI, TSI, FD) and demonstrate prickliness as a strong predictor of viewshed complexity for TINs, with clearer results on DEMs for high-point viewpoints. The work includes code releases for prickliness and multi-viewpoint viewsheds, offering practical tools for terrain analysis and GIS applications.
Abstract
An important task in terrain analysis is computing \emph{viewsheds}. A viewshed is the union of all the parts of the terrain that are visible from a given viewpoint or set of viewpoints. The complexity of a viewshed can vary significantly depending on the terrain topography and the viewpoint position. In this work we study a new topographic attribute, the \emph{prickliness}, that measures the number of local maxima in a terrain from all possible angles of view. We show that the prickliness effectively captures the potential of 2.5D TIN terrains to have high complexity viewsheds. We present optimal and (under standard assumptions) near-optimal algorithms to compute it for 1.5D and 2.5D TIN terrains, respectively, and efficient approximate algorithms for raster DEMs. We validate the usefulness of the prickliness attribute with experiments in a large set of real terrains.
