lidR (version 1.3.0)

lascolor: Compute the color from RGB fields

Description

Compute the hexadecimal name of a color from RGB fields. A column 'color' is added in the slot @data

Usage

lascolor(.las, nbits = 16)

Arguments

.las

A LAS object

nbits

the number of bits used to store the R G and B field. Default is 16 bits i.e. each channel ranged between 0 and 65535 as defined in LAS specifications. But sometime this rule is not respected. You can force the default behavior. A 8 bit color ranged between 0 and 255.

Value

Return nothing. The original object is modified in place by reference.