PointCloudMaximaFinder¶
PointCloudMaximaFinder finds the tops of the trees directly in the points of the survey: a point is a top when no other point around it is higher, within a radius that grows with its height as the crowns do. It works at the full precision of the points, without a raster in between, but compares every point with all the others of its area: large surveys are processed in regions. RasterMaximaFinder does the same on a canopy height model.
Details¶
The points are read with their height over the elevation model: those outside of it, or not higher than the threshold over the ground, are left out, as are those of the classes not listed, if any. A point is a top when no other point within the radius on the plane is higher; points of the same height within the radius are all tops.
With the dynamic radius, the radius grows with the height H of the point as half the crown width of mixed pines and deciduous trees of Popescu and Wynne (2004), CW = 2.51503 + 0.00901 H², lowered to 70%, as the crowns overlap: about 1 m at 5 m of height and 2.1 m at 20 m, never larger than the given radius if this is larger than 0. Without it the radius is the given one. The points must be denser than the radius: where they are farther apart than it, every point is a top.
With the regions of interest, each polygon, without its holes, is processed by itself, comparing only its points: a top near its border may have a higher point just outside. Without them the area is the one of the elevation model. Each point is compared with all the others of its area, so the time grows with the square of their number: large surveys are best processed in regions of a few hectares.
With the difference of the surface and the elevation model, a top is discarded if its cell has no value, is on the border of the raster, or if any of its neighbours differs from it by more than the elevation difference threshold, as the isolated points over the canopy.
The tops keep the attributes of their point: the height over the ground (elev, rounded to 10 cm), intensity, classification and return.
Parameters¶
Finds the tops of the trees as the points of a lidar survey higher than all the others around them.
Toolbox folder: Lesto › vegetation
Status: Draft
Keywords: Local maxima, las, lidar
Authors: Andrea Antonello, Silvia Franceschi
Class: org.hortonmachine.lesto.modules.vegetation.PointCloudMaximaFinder
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 dtm raster that gives the height of the points over the ground, and the area of interest if no roi is given. |
||
|
vector file |
A set of polygons to use as region of interest. |
||
|
raster file |
An optional dsm-dtm difference raster to use to check on the extracted tops. |
||
|
double |
|
The radius within which a point has to be the highest to be a maximum. With the dynamic radius it is its upper limit, ignored if not larger than 0. |
|
|
boolean |
|
Use an adaptive radius based on the height. |
|
|
double |
|
With the dsm-dtm difference, the largest difference of a top from the cells around it. |
|
|
double |
|
The height over the ground up to which the points are left out. |
|
|
String |
The comma separated list of classes to filter (if empty, all are picked). |
Outputs
Parameter |
Type |
Unit |
Description |
|---|---|---|---|
|
output file |
The output local maxima. |
References
Popescu, S. C., Wynne, R. H. (2004). Seeing the trees in the forest: using lidar and multispectral data fusion with local filtering and variable window size for estimating tree height. Photogrammetric Engineering & Remote Sensing, 70(5), 589-604.
Example¶
The tops of the sample survey higher than 5 m over the elevation model, with the dynamic radius up to 3 m:
import org.hortonmachine.lesto.modules.vegetation.PointCloudMaximaFinder
// the folder with the lidar survey: change it to yours
var folder = "/data/flanginec/"
// the tops of the trees as the points higher than all the others around them,
// within a radius that grows with their height over the ground
var finder = new PointCloudMaximaFinder()
finder.inLas = folder + "uni_bz_plot777.las"
finder.inDtm = folder + "dtm_777.tif"
finder.pThreshold = 5.0
finder.doDynamicRadius = true
finder.pMaxRadius = 3.0
finder.outTops = folder + "tops_points.shp"
finder.process()
The 147 tops, red dots, over the canopy height model in green: a top in each crown, with a few more on the edges of the crowns and along the border of the survey.¶