filters.fps#
The Farthest Point Sampling Filter adds points from the input to the output
PointView
one at a time by selecting the point from the input cloud that is
farthest from any point currently in the output.
See also
filters.sample produces a similar result, but while
filters.sample
allows us to target a desired separation of points via
the radius
parameter at the expense of knowing the number of points in
the output, filters.fps
allows us to specify exactly the number of
output points at the expense of knowing beforehand the spacing between
points.
Options#
- count
Desired number of output samples. [Default: 1000]
- 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
]