View source: R/basic_metrics_pc.R
normalize_pc | R Documentation |
Normalizes a tree point cloud by subtracting from each column its respective the min value (e.g. all X-values - min(all X-values)). When the bottom of the point cloud is incomplete or obstructed you can choose to add a digital terrain model as an input which is used to estimate lowest point of the point cloud in order to obtain the correct normalized height of the tree.
normalize_pc(pc, dtm = NA, r = 5)
pc |
The tree point cloud as a data.frame with columns X,Y,Z. Output of
|
dtm |
The digital terrain model as a data.frame with columns X,Y,Z
(default = NA). If the digital terrain model is in the same format as a
point cloud it can also be read with |
r |
Numeric value (default=5) r which determines the range taken for the dtm. Should be at least the resolution of the dtm. Only relevant when a dtm is provided. |
Normalized point cloud as a data.frame with columns X,Y,Z.
## Not run:
# Read tree point cloud and normalise the point cloud
pc_tree <- read_tree_pc(PC_path = "path/to/point_cloud.txt")
pc_norm <- normalize_pc(pc)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.