Normalizes the cube by a white reference, optionally with dark correction.
Value
An hsi_cube object with normalized values.
Examples
cube <- hs_simulate_cube(rows = 10, cols = 10, noise_sd = 0)
white <- hsi_cube(array(0.95, dim(cube$data)), cube$wavelengths)
norm <- hs_white_normalize(cube, white)