Applies spatial smoothing to an OpenSpecy
object using a Gaussian filter.
Usage
spatial_smooth(x, sigma = c(1, 1, 1), ...)
Details
This function performs spatial smoothing on the spectral data in an OpenSpecy
object.
It assumes that the spatial coordinates are provided in the metadata
element of the object,
specifically in the x
and y
columns, and that there is a col_id
column in metadata
that
matches the column names in the spectra
data.table.