Skip to contents

Platform-aware ground classification using Cloth Simulation Filter (CSF) or Progressive Morphological Filter (PMF). When algorithm = "auto", selects based on the cloud's platform.

Usage

px_classify_ground(
  cloud,
  algorithm = "auto",
  cloth_resolution = NULL,
  max_angle = NULL,
  iterations = 500L
)

Arguments

cloud

A px_cloud object.

algorithm

Character: "auto", "csf", or "pmf".

cloth_resolution

Numeric or NULL. CSF cloth resolution in meters. If NULL, uses platform default (aerial: 2.0, terrestrial: 0.5, uav: 1.5).

max_angle

Numeric or NULL. Maximum terrain angle in degrees.

iterations

Integer. Number of CSF simulation iterations.

Value

A ground_result object with components:

ground_mask

Logical vector — TRUE for ground points

n_ground

Integer count of ground points

n_nonground

Integer count of non-ground points

algorithm

Character — algorithm used

Examples

if (FALSE) { # \dontrun{
ground <- px_classify_ground(aerial_cloud)
ground <- px_classify_ground(tls_cloud, cloth_resolution = 0.3)
} # }