LasThresholder

LasThresholder keeps the points of a LAS file with an intensity, or an elevation, between a lower and an upper threshold, and writes them to a new LAS file. Either threshold can be left out, to keep everything over or under the other.

Details

The points with a value equal to a threshold are kept. The kept points are written with the header, the precision and the crs of the input file.

The intensity of a return depends on the surface that reflected it, as bare soil, leaves or roads, but also on the distance from the sensor and on the angle of incidence: its values change between surveys and between the flight lines of the same survey. Look at their histogram with LasHistogram before choosing the thresholds.

Parameters

Keeps the points of a las file with an intensity or elevation between two thresholds.

Toolbox folder: Lesto › filter
Status: Experimental
Keywords: las, threshold, filter
Authors: Andrea Antonello
Class: org.hortonmachine.lesto.modules.filter.LasThresholder

Inputs

Parameter

Type

Unit

Default

Description

inLas

LAS file

The las file to filter.

pLower

Double

The lower threshold: the points with a lower value are removed. If not supplied, there is no lower limit.

pUpper

Double

The upper threshold: the points with a higher value are removed. If not supplied, there is no upper limit.

pType

String

intensity

The value of the points to compare with the thresholds. Allowed values: intensity, elev.

Outputs

Parameter

Type

Unit

Description

outLas

output file

The las file of the kept points.

Example

The points of the sample survey brighter than the peak of its histogram, with an intensity of 150 or more, converted to a vector by LasConverter to see them on a map:

import org.hortonmachine.lesto.modules.filter.LasThresholder
import org.hortonmachine.modules.LasConverter

// the folder with the lidar survey: change it to yours
var folder = "/data/flanginec/"

// keep only the points with an intensity of at least 150
var thresholder = new LasThresholder()
thresholder.inLas = folder + "uni_bz_plot777.las"
thresholder.pType = "intensity"
thresholder.pLower = 150.0
thresholder.outLas = folder + "las_bright.las"
thresholder.process()

// the kept points as a vector, to see them on a map
var converter = new LasConverter()
converter.inFile = folder + "las_bright.las"
converter.outFile = folder + "las_bright.shp"
converter.process()
The points with an intensity of 150 or more, colored by their intensity, over the hillshade of the elevation model: they lie mostly in the gaps between the crowns and on the road at the north-west corner, a few very bright points are scattered among the trees.

The points with an intensity of 150 or more, colored by their intensity, over the hillshade of the elevation model: they lie mostly in the gaps between the crowns and on the road at the north-west corner, a few very bright points are scattered among the trees.