Skip to contents

This function reads a LAS file, normalizes the heights of the point cloud using a TIN surface, and optionally saves the normalized point cloud to a new LAS file. Only the points classified as ground (class = 2) are used to compute the TIN surface.

Usage

normalize_height_in_clouds(las_path, folder, save_las)

Arguments

las_path

Path to the input LAS file containing the point cloud data.

folder

Path to the folder where the output LAS file will be saved, if saving is enabled.

save_las

Logical flag indicating whether to save the normalized point cloud to a new LAS file. Set to TRUE to save.

Value

las_norm

Examples

if (FALSE) { # \dontrun{
# Assuming 'path_to_las' and 'output_folder' are predefined:
normalized_las <- normalize_height_in_clouds("path_to_las", "output_folder", TRUE)
} # }