Estimate the minimum distance between points in a point cloud.
min_distance(
cloud,
distance = "euclidean",
threads = 1L,
verbose = FALSE,
progress = FALSE,
...
)
A numeric
vector describing the minimum distance between points.
A data.table
with *XYZ* coordinates in the first three columns representing a point cloud.
Type of distance to calculate. "euclidean"
as default. Look hnsw_knn
for more options.
An integer
specifying the number of threads to use for parallel processing. Experiment to see what works best for your data on your hardware.
If TRUE, log messages to the console.
If TRUE, log a progress bar when verbose = TRUE
. Tracking progress could cause a small overhead.
Arguments passed to hnsw_build
and hnsw_search
.
J. Antonio Guzmán Q.
data("pc_tree")
#Estimate the minimum distance of a sample o 100 points
min_distance(pc_tree)
Run the code above in your browser using DataLab