Skip to contents

Segments the input point cloud into forest floor and above-ground biomass (AGB) using a two-stage DTM approach: 1. Create coarse DTM (e.g., 0.5m resolution) with outlier removal and gap filling 2. Interpolate fine DTM_small (0.1m resolution) from filled coarse DTM 3. Extract points within vertical tolerance of DTM_small surface

This approach is robust on sloped or irregular terrain.

Usage

Floseg(
  a,
  filename = "XXX",
  dtm_coarse_res = 0.5,
  dtm_fine_res = 0.1,
  tolerance = 0.4,
  clean_outliers = TRUE,
  outlier_k = 1,
  output_path = tempdir()
)

Arguments

a

Input point cloud data frame (x,y,z columns) or file path (.xyz)

filename

Output file prefix (default = "XXX")

dtm_coarse_res

Coarse DTM resolution in meters (default = 0.5)

dtm_fine_res

Fine DTM resolution in meters (default = 0.1)

tolerance

Vertical tolerance for floor extraction in meters (default = 0.4)

clean_outliers

Remove local outliers from coarse DTM (default = TRUE)

outlier_k

Z-score threshold for outlier removal (default = 1)

output_path

Directory where output files will be written (default = tempdir())

Value

List with floor_points, agb_points, dtm_coarse, dtm_fine, and file paths