filters.decimation#
The decimation filter retains every Nth point from an input point view.
Streamable Stage
This stage supports streaming operations
Example#
[
{
"type": "readers.las",
"filename": "larger.las"
},
{
"type":"filters.decimation",
"step": 10
},
{
"type":"writers.las",
"filename":"smaller.las"
}
]
Options#
- step
Number of points to skip between each sample point. A step of 1 will skip no points. A step of 2 will skip every other point. A step of 100 will reduce the input by ~99%. A step of 1.6 will retain
100 / 1.6 = 62.5%
of the points. [Default: 1.0]- offset
Point index to start sampling. Point indexes start at 0. [Default: 0]
- limit
Point index at which sampling should stop (exclusive). [Default: No limit]
- where
An expression that limits points passed to a filter. Points that don’t pass the expression skip the stage but are available to subsequent stages in a pipeline. [Default: no filtering]
- where_merge
A strategy for merging points skipped by a
where
option when running in standard mode. Iftrue
, the skipped points are added to the first point view returned by the skipped filter. Iffalse
, skipped points are placed in their own point view. Ifauto
, skipped points are merged into the returned point view provided that only one point view is returned and it has the same point count as it did when the filter was run. [Default:auto
]