Skip to contents

Removes the spectral continuum (convex hull) from each spectrum. Useful for enhancing absorption features and normalizing baseline variations.

Usage

hs_continuum_removal(cube, method = c("division", "subtraction"))

Arguments

cube

An hsi_cube object.

method

Character. "division" (default) divides by the continuum, "subtraction" subtracts the continuum.

Value

An hsi_cube object with continuum-removed spectra.

Examples

cube <- hs_example_cube()
cr <- hs_continuum_removal(cube, method = "division")