Skip to contents

Constructor for TLS data. Sets platform to "terrestrial" and provides appropriate defaults for registration, ground classification, and feature extraction. Scan positions are first-class metadata.

Usage

px_terrestrial(
  xyz,
  intensity = NULL,
  classification = NULL,
  rgb = NULL,
  normals = NULL,
  return_number = NULL,
  number_of_returns = NULL,
  scan_positions = NULL,
  metadata = list()
)

Arguments

xyz

Numeric matrix with 3 columns (x, y, z).

intensity

Numeric vector of intensity values, or NULL.

classification

Integer vector of ASPRS classification codes, or NULL.

rgb

Integer matrix with 3 columns (R, G, B), or NULL.

normals

Numeric matrix with 3 columns (nx, ny, nz), or NULL.

return_number

Integer vector of return numbers, or NULL.

number_of_returns

Integer vector of total returns, or NULL.

scan_positions

List of px_scan_position objects, or NULL.

metadata

Named list of acquisition metadata.

Value

An object of class c("px_terrestrial", "px_cloud").

Examples

xyz <- matrix(rnorm(300), ncol = 3)
pos <- px_scan_position(0, 0, 1.5, scan_id = "setup1")
cloud <- px_terrestrial(xyz, scan_positions = list(pos))