Skip to contents

Base constructor for a platform-agnostic point cloud. Use px_aerial, px_terrestrial, or px_uav for platform-specific subtypes with smart defaults.

Usage

px_cloud(
  xyz,
  intensity = NULL,
  classification = NULL,
  rgb = NULL,
  normals = NULL,
  return_number = NULL,
  number_of_returns = 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.

metadata

Named list of acquisition metadata.

Value

An object of class px_cloud.

Examples

xyz <- matrix(rnorm(300), ncol = 3)
cloud <- px_cloud(xyz)
print(cloud)
#> 
#> ── parallax point cloud ────────────────────────────────────────────────────────
#> • Class: "px_cloud"
#> • Platform: "unknown"
#> • Points: 100
#> • Z range: -2.808 to 2.655
#> • Normals: absent