-
Notifications
You must be signed in to change notification settings - Fork 432
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master' into lazperf
- Loading branch information
Showing
115 changed files
with
2,221 additions
and
2,112 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
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
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
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 |
---|---|---|
@@ -1,19 +1,6 @@ | ||
# | ||
option(WITH_DRACO "Choose if Draco support should be built" TRUE) | ||
find_package(Draco EXACT 1.3.6) | ||
# the `pkg_check_modules` function is created with this call | ||
find_package(PkgConfig REQUIRED) | ||
pkg_check_modules(DRACO REQUIRED draco>1.4.0) | ||
|
||
if (WITH_DRACO) | ||
set_package_properties(Draco PROPERTIES TYPE RECOMMENDED | ||
PURPOSE "Provides Draco compression") | ||
if(Draco_FOUND) | ||
include_directories(${draco_INCLUDE_DIR}) | ||
set(CMAKE_REQUIRED_LIBRARIES ${draco_LIBRARIES}) | ||
set(PDAL_HAVE_DRACO 1) | ||
set(BUILD_PLUGIN_DRACO 1) | ||
set(DRACO_LIBRARY "draco") | ||
else() | ||
set(WITH_DRACO FALSE) | ||
endif() | ||
else() | ||
set(WITH_DRACO FALSE) | ||
endif() | ||
set(PDAL_HAVE_DRACO 1) |
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
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
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,70 @@ | ||
.. _eval_command: | ||
|
||
******************************************************************************** | ||
eval | ||
******************************************************************************** | ||
|
||
The ``eval`` command is used to compare the ``Classification`` dimensions of two | ||
point clouds. | ||
:: | ||
|
||
$ pdal eval <predicted> <truth> --labels <labels> | ||
|
||
:: | ||
|
||
--predicted arg Positional argument specifying point cloud filename containing predicted labels. | ||
--truth arg Positional argument specifying point cloud filename containing truth labels. | ||
--labels arg Comma-separated list of classification labels to evaluate. | ||
|
||
The command returns 0 along with a JSON-formatted classification report | ||
summarizing various classification metrics. | ||
|
||
In the provided example below, the truth and predicted point clouds contain | ||
points classified as ground (class 2) and medium vegetation (class 4) in | ||
accordance with the LAS specification. Both point clouds also contain some | ||
number of classifications that are either unlabeled or do not fall into the | ||
specificied classes. | ||
|
||
:: | ||
|
||
$ pdal eval predicted.las truth.las --labels 2,4 | ||
{ | ||
"confusion_matrix": "[[5240537,3860,24102],[268015,3179304,326677],[111453,115516,2950315]]", | ||
"f1_score": 0.944, | ||
"labels": [ | ||
{ | ||
"accuracy": 0.967, | ||
"f1_score": 0.973, | ||
"intersection_over_union": 0.947, | ||
"label": "1", | ||
"precision": 0.951, | ||
"sensitivity": 0.995, | ||
"specificity": 0.929, | ||
"support": 5268499 | ||
}, | ||
{ | ||
"accuracy": 0.934, | ||
"f1_score": 0.914, | ||
"intersection_over_union": 0.842, | ||
"label": "2", | ||
"precision": 0.999, | ||
"sensitivity": 0.842, | ||
"specificity": 0.999, | ||
"support": 3773996 | ||
} | ||
], | ||
"mean_intersection_over_union": 0.894, | ||
"overall_accuracy": 0.931, | ||
"pdal_version": "2.2.0 (git-version: 6e80b9)", | ||
"predicted_file": "predicted.las", | ||
"truth_file": "truth.las" | ||
} | ||
|
||
Most of the returned metrics will be self explanatory, with scores reported | ||
both for individual classes and at a summary level. The returned confusion | ||
matrix is presented in row-major order, where each row corresponds to a truth | ||
label (the last row is a catch-all for any unlabeled or ignored entries). | ||
Similarly, confusion matrix columns correspond to predicted labels where the | ||
last column is once again a catch-all for unlabeled entries. Although | ||
unlabeled/ignored truth labels are reported in the confusion matrix, they are | ||
excluded from all computed scores. |
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
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
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
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
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,52 @@ | ||
.. _filters.zsmooth: | ||
|
||
filters.zsmooth | ||
=============================================================================== | ||
|
||
The **Zsmooth Filter** computes a new Z value as another dimension that is based | ||
on the Z values of neighboring points. | ||
|
||
All points within some distance in the X-Y plane from a reference point are ordered by Z value. | ||
The reference point's new smoothed Z value is chosen to be that of the Nth median value of | ||
the neighboring points, where N is specified as the _`medianpercent` option. | ||
|
||
Use :ref:`filters.assign` to assign the smoothed Z value to the actual Z dimension if | ||
desired. | ||
|
||
Example | ||
------- | ||
|
||
Compute the smoothed Z value as the median Z value of the neighbors within 2 units and | ||
assign the value back to the Z dimension. | ||
|
||
[ | ||
"input.las", | ||
{ | ||
"type": "filters.zsmooth", | ||
"radius": 2, | ||
"dim": "Zadj" | ||
}, | ||
{ | ||
"type": "filters.assign", | ||
"value": "Z = Zadj" | ||
}, | ||
"output.las" | ||
] | ||
|
||
Options | ||
------------------------------------------------------------------------------- | ||
|
||
radius | ||
All points within `radius` units from the reference point in the X-Y plane are considered | ||
to determine the smoothed Z value. [Default: 1] | ||
|
||
medianpercent | ||
A value between 0 and 100 that specifies the relative position of ordered Z values of neighbors | ||
to use as the new smoothed Z value. 0 specifies the minimum value. 100 specifies the | ||
maximum value. 50 specifies the mathematical median of the values. [Default: 50] | ||
|
||
dim | ||
The name of a dimension to use for the adjusted Z value. Cannot be 'Z'. [Required] | ||
|
||
.. 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
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
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
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,13 @@ | ||
where | ||
An :ref:`expression <PDAL expression>` that limits points passed to a writer. | ||
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. | ||
If ``true``, the skipped points are added to the first point view returned by the skipped | ||
filter. If ``false``, skipped points are placed in their own point view. If ``auto``, | ||
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 writer was run. | ||
[Default: ``auto``] |
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
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
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
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
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
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
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
Oops, something went wrong.