Computes A(lambda) = -log10(R(lambda)). Values of R at or below zero
are clamped to floor before log transformation.
Arguments
- cube
An hsi_cube object with reflectance values.
- floor
Numeric. Minimum reflectance value to prevent log(0). Default
1e-6.
Value
An hsi_cube object with absorbance values.
Examples
cube <- hs_example_cube()
abs_cube <- hs_absorbance(cube)