Skip to contents

Modifies the LAS format to convert into a format with RGB attributes. Values are zeroed: the underlying point cloud is edited to be transformed in a format that supports RGB. RGB can be populated later in another stage. If the point cloud already has RGB, nothing happens, RGB values are preserved.

Usage

add_rgb()

Value

This stage transforms the point cloud in the pipeline. It consequently returns nothing.

Examples

f <- system.file("extdata", "Example.las", package="lasR")

pipeline <- add_rgb() + write_las()
exec(pipeline, on = f)
#> [1] "/tmp/RtmpUXX9w7/Example.las"