AdaptiveTinFilter¶
AdaptiveTinFilter separates the ground from the vegetation and the buildings in a lidar survey, and interpolates it into an elevation model. It grows a triangulated surface of the ground from below: it starts from the lowest point of each square of a coarse grid, and at each iteration adds to each triangle the nearest point close and flat enough to it, as in the adaptive TIN filter of Axelsson (2000). The thresholds of distance and angle adapt to the terrain, computed again at each iteration on the points added.
Details¶
The filter grows a tin of the ground from below, as in Axelsson (2000):
the area of the template is divided in squares of the given size, and the lowest point of each is a seed of the first tin: the squares must be larger than the largest object over the ground, as buildings, or their roofs become seeds;
a first pass over the points in the triangles computes the thresholds: the distance of each point from the nearest vertex of its triangle, and the angle between the triangle and the line from that vertex to the point, of which the medians are the thresholds;
at each iteration, in each triangle the point nearest to its center within both thresholds is added to the tin, the others are left for the next iteration. The thresholds are computed again on the added points, the distance never below its minimum, and a point is added also if its angle is below the given angle threshold;
the iterations stop when no point is added, or at the maximum number.
The elevation model has, in each cell, the elevation of the triangle of the final tin that contains its center. The tin covers the convex hull of the seeds, that are inside the squares: the cells between the outer seeds and the border of the template stay empty. To cover a whole area, use a template larger than it, with points around it.
The points left out of the tin are the non ground points, except those closer than the cleanup distance to the tin, that are removed from them at the end without being added to the ground.
Parameters¶
Extracts the ground from lidar points with the adaptive tin filter of Axelsson, and interpolates it into an elevation model.
Toolbox folder: Lesto › raster
Status: Experimental
Keywords: tin, filter, lidar
Authors: Andrea Antonello, Silvia Franceschi
Class: org.hortonmachine.lesto.modules.raster.AdaptiveTinFilter
Inputs
Parameter |
Type |
Unit |
Default |
Description |
|---|---|---|---|---|
|
LAS file |
The lidar data: a las file, the index file of a folder of las files created by LasIndexer or a las database. |
||
|
raster file |
The raster that gives the area and the grid of the elevation model. |
||
|
int |
|
The maximum number of iterations of the densification of the tin. |
|
|
double |
m |
|
The size of the squares of the support grid, each giving its lowest point as a seed of the tin. It is adjusted to divide the template in equal squares, and must be larger than the largest building. |
|
double |
m |
|
The minimum of the distance threshold: the threshold computed at each iteration is not let below it. |
|
double |
m |
|
The final cleanup distance: the non ground points closer than it to the tin are removed from the non ground points. |
|
double |
degrees |
|
The angle threshold: a point with a smaller angle is added to the tin even if its angle is over the one computed at the iteration. |
|
Double |
m |
If supplied, the triangles whose edges are on average shorter than it are not densified anymore. |
|
|
boolean |
|
If true, the tin and the non ground points are written to the given files. |
Outputs
Parameter |
Type |
Unit |
Description |
|---|---|---|---|
|
output file |
The optional output of the triangles of the first tin, the one of the seeds. |
|
|
output file |
The optional output of the triangles of the final tin of the ground, written if doTin is true. |
|
|
output file |
The optional output of the non ground points, written if doTin is true. |
|
|
output file |
The optional output of the squares of the support grid. |
|
|
output file |
The elevation model of the ground, interpolated from the tin on the grid of the template. |
References
Axelsson, P. (2000). DEM generation from laser scanner data using adaptive TIN models. International Archives of Photogrammetry and Remote Sensing, 33(B4), 110-117.
Example¶
The ground of the sample survey, on the grid of its elevation model, starting from squares of 10 m:
import org.hortonmachine.lesto.modules.raster.AdaptiveTinFilter
// the folder with the lidar survey: change it to yours
var folder = "/data/flanginec/"
// the ground of the survey, on the grid of the plot elevation model, starting from the
// lowest point of each square of 10 m
var filter = new AdaptiveTinFilter()
filter.inLas = folder + "uni_bz_plot777.las"
filter.inTemplate = folder + "dtm_777.tif"
filter.pSecRes = 10.0
filter.doTin = true
filter.outTin = folder + "ground_tin.shp"
filter.outNonGround = folder + "nonground_points.shp"
filter.outDem = folder + "dtm_tin.tif"
filter.process()
The elevation model of the ground extracted from the survey, from 1897 to 1927 m: the road at the north-west corner and the slope rising to the south-east. The strips along the south and east borders, outside of the triangles of the seeds, are empty.¶
The difference from the elevation model of the survey, within a few decimeters almost everywhere: half of the cells differ by less than 10 cm.¶