delaunay_graph: Build and filter a delaunay graph

View source: R/delaunay_graph.R

delaunay_graphR Documentation

Build and filter a delaunay graph

Description

Build and filter a delaunay graph

Usage

delaunay_graph(las, global_filter = 0.8, max_edge_length = NULL)

Arguments

las

aLAS file.

global_filter

numeric between 0 and 1 (optional). If declared, applies a global edge filter by removing all edges longer than the global_filter^{th} quantile of all edges length.

max_edge_length

numeric (optional). If declared, removes all edges longer than max_edge_length.

Value

an data.table containing the nodes ID (their position within the LAS data) and the length of the edge.

Examples


# import data
file = system.file("extdata", "tree_no_leaves.las", package="lidUrb")
las = lidR::readLAS(file)

# build the knn graph with no filter
delaunay = lidUrb::delaunay_graph(las)

# plot the graph
lidUrb::plot_graph(las = las, graph = delaunay)


Blecigne/lidUrb documentation built on Feb. 19, 2024, 9:12 a.m.