forked from PDAL/PDAL
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Radius search filter: add documentation
- Loading branch information
1 parent
73704ab
commit a3c65cb
Showing
2 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
.. _filters.radiussearch: | ||
|
||
filters.radiussearch | ||
========================== | ||
|
||
The **radius search filter** allows you update the value of a dimension (using | ||
an assignment expression) for specific points depending on their neighbors | ||
in a given radius: | ||
For each point in the domain src_domain_, if it has any neighbor with a | ||
distance lower than radius_ that belongs to the domain reference_domain_, | ||
it is updated using the expression update_expression_. | ||
|
||
|
||
.. embed:: | ||
|
||
Example 1 | ||
--------- | ||
|
||
This pipeline updates the Keypoint dimension of all points with classification | ||
1 to 2 (unclassified and ground) that are closer than 1 meter from a point with | ||
classification 6 (building) | ||
|
||
|
||
.. code-block:: json | ||
[ | ||
"las/4_6.las", | ||
{ | ||
"type" : "filters.radiussearch", | ||
"src_domain" : "Classification[1:2]", | ||
"reference_domain" : "Classification[6:6]" | ||
"radius" : 1 | ||
"update_expression": "Keypoint = 1" | ||
}, | ||
"output.las" | ||
] | ||
Options | ||
------- | ||
|
||
_`src_domain` | ||
A :ref:`range <ranges>` which selects points to be processed by the filter. | ||
Can be specified multiple times. Points satisfying any range will be | ||
processed | ||
|
||
_`reference_domain` | ||
A :ref:`range <ranges>` which selects points that can are considered as | ||
potential neighbors. Can be specified multiple times. | ||
|
||
_`radius` | ||
An positive float which specifies the radius for the neighbors search. | ||
|
||
_`update_expression` | ||
A list of :ref:`assignment expressions <Assignment Expressions>` to be applied to | ||
the points that satisfy the radius search. The list of values is evaluated in order. | ||
|
||
|
||
.. include:: filter_opts.rst | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters