filters.tail#
The Tail Filter returns a specified number of points from the end of the
PointView
.
Note
If the requested number of points exceeds the size of the point cloud, all points are passed with a warning.
Example#
Sort and extract the 100 lowest intensity points.
[
{
"type":"filters.sort",
"dimension":"Intensity",
"order":"DESC"
},
{
"type":"filters.tail",
"count":100
}
]
See also
filters.head is the dual to filters.tail.
Options#
- count
Number of points to return. [Default: 10]
- 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
]