An Algorithm For Centreline Extraction Using Natural Neighbour Interpolation
An Algorithm For Centreline Extraction Using Natural Neighbour Interpolation
INTERPOLATION
ABSTRACT
Data caption and conversion are two of the most costly operations of any GIS, in terms of computer time and manual work needed for
spatial data acquisition. They can represent up to 80 percent of the total implementation costs. Manual digitising is a very error prone
and costly operation, especially due to the lack of explicit topology in commercial GIS systems. Indeed, each map update might require
the batch processing of the whole map. Currently, commercial GIS do not offer completely automatic raster/vector conversion even for
simple scanned black and white maps. Various commercial raster/vector conversion products exist for the skeletonisation or thinning
of the pixels forming the line, but these approaches have shown difficulties with the extraction of good topology. The spatial feature
extraction in raster/vector conversion systems is based on line tracing algorithms. In order to operate they need user defined tolerances
settings, what causes difficulties in the extraction of complex spatial features, for example: road junctions, curved or irregular lines
and complex intersections of linear features. The approach we use here is based on image processing filtering techniques to extract the
basic spatial features from raster data. These spatial features can be used for the reconstruction of the image within the topological
data structure - the Voronoi diagram. The novel part of this research is the definition of deterministic topological rules and algorithms
for extracting the spatial features from the Voronoi data structure. These spatial features can then be represented in different spatial
data structures that can be implemented in a GIS. In this research we use the topological approach to develop new algorithms and
data structures for integrated raster/vector models leading to the improvement of data caption and conversion in GIS and to develop
a software toolkit for automated raster/vector conversion. The approach is based on computing the skeleton from Voronoi diagrams
using natural neighbour interpolation. In this paper we present the algorithm for skeleton extraction from scanned maps. We show that
the skeleton extracted from the map features can approximate the centreline of the map object. We apply this algorithm directly on the
Voronoi cells, for the extraction of complex spatial features. This research can lead to the improvement of current practices in spatial
data acquisition reducing significantly the cost and amount of work needed.
1 INTRODUCTION Local coordinates based on the Voronoi diagram are used in natu-
ral neighbour interpolation (also studied in (Gold, 1994) as “stolen
In this paper we present an algorithm for raster to vector con- area” interpolation), to quantify the “neighbourliness” of data
version of scanned maps using skeletonisation from Voronoi dia- sites. The properties of these local coordinates have been exten-
gram. This involves sampling the scanned map irregularly using sively studied by Sibson (Sibson, 1980) and Piper (Piper, 1993),
edge detection algorithms and then applying the natural neigh- who gave a formula for the gradient of the volume stolen from
bour interpolation. Since we are considering a scanned map in neighbouring Voronoi regions due to the insertion of a query point,
grayscale, the interpolant is the level of grey. obtained from two directional derivatives. The natural neighbour
or stolen area interpolation technique has been extended from or-
In spatial interpolation, local techniques have been used in or- dinary Voronoi diagrams to Voronoi diagrams for sets of points
der to get an interpolation continuous at data points, and smooth and line segments in (Anton et al., 1998). Anton et al. (Anton et
around data points. In these local techniques, the data points al., 1998) extended the results presented in Gold and Roos (Gold
which influence the interpolant are the ones neighbouring the and Roos, 1994), by providing direct vectorial formulas for the
given interpolation point. The interpolation is thus based on the first order and second order derivatives for the stolen area. The
definition of adjacency or of neighbourliness. In 1D, the neigh- analysis presented in (Anton et al., 1998) generalises the analysis
bourliness is given by the natural topology of the real line, in- of Piper (Piper, 1993) based on the formalism of partial deriva-
duced by its total order. In 2D, there is no such relationship, and tives, to the formalism of derivatives of a function on a normed
the neighbourliness can be defined by some topological struc- space.
ture. Such structures include the Delaunay triangulation, that
is the dual of the Voronoi diagram. The Delaunay triangulation
has been extensively used in linear interpolation (which corre- In section 2, we introduce the concept of Voronoi diagrams of a
sponds to convoluting with the triangle or Barlett filter (Foley et set of points. In section 3 we present the relationship between the
al., 1996)). Another local technique is the natural neighbour in- skeleton and the Voronoi diagram. In section 4 we present three
terpolation (Sibson, 1981) based on local coordinates. different techniques to sample the scanned map irregularly for
detecting the edges in the map. In section 5, we present the nat-
These local coordinates were introduced by Sibson (Sibson, 1980). ural neighbour interpolation technique. In section 6, we present
our centreline algorithm that uses the natural neighbour interpo- are built are: the derivative in the direction of the gradient, the
lation technique and skeletonisation. In section 7 we present the Laplacian, the directional derivatives and the statistical differenc-
experimental results. Finally, in section 8 we present discussion. ing.
Each polygon formed by edges of the map has sample points near
its boundary. If the density of the boundary points (as generat-
ing points) goes to infinity then the boundary of the union of all
the Voronoi zones belonging to points of the same polygon con-
verges to that polygon. The boundaries between Voronoi zones
belonging to points of different polygons converges towards the
skeleton of the objects in the polygon. This property is impor-
tant in designing the algorithms for sampling the map features on
the scanned maps. In the next section we will present the edge
detection algorithms that we used for sampling the images.
Figure 2: Annulus of 8 pixels
O := {P1 , . . . , Pn }.
Let vi,i+1 (x) denote the Voronoi vertex whose nearest neigh-
bours are Pi , Pi+1 and x. Since Pi and Pi+1 are two nearest
neighbours of x, it is clear that vi,i+1 (x) lies on the bisector
Bi,i+1 of the points Pi and P1+1 :
Pi + Pi+1
mi,i+1 := and
2
„ «
Pi+1,2 − Pi,2
ni,i+1 := ⊥ [Pi+1 − Pi ].
Pi,1 − Pi+1,1
[x − Pi+1 ]T [x − Pi ]
vi,i+1 (x) := mi,i+1 + ni,i+1 .
2ni,i+1 T [x − Pi ]
6 THE ALGORITHM
The resulting subset of the Voronoi diagram is the set of all the
edges of the picture, which we call the border set. We flag the
Voronoi edges adjacent to a Voronoi edge of the border set that
do not belong to the border set.
Then from this border set, we draw the skeleton using a traver-
sal of the Voronoi zones belonging to the interior of the border
set. For each Voronoi edge e of the border set, we traverse the
Voronoi edges of the Voronoi zone that belongs to the interior of
the border set starting from the Voronoi edge following e.
For each one of those Voronoi edges f that are not in the border
set and such that one of its neighbours is flagged, then the Voronoi
edge is drawn in the skeleton.
7 EXPERIMENTAL RESULTS
9 ACKNOWLEDGMENTS
REFERENCES
Anton, F., Gold, C. and Mioc, D., 1998. Local coordinates and
interpolation in a Voronoi diagram for a set of points and line seg-
ments. In: The Voronoi Conference on Analytic Number Theory
and Space Tillings, pp. 9–12.
Figure 9: Skeleton