Learn R Programming

uFTIR (version 0.1.4)

tile_sam: Spectral Angle Mapper

Description

Performs the Spectral Angle Mapper to match the SpectralReference with yout readings (as Tile).

Usage

tile_sam(SpectralPack, derivative = NULL)

Arguments

SpectralPack

an object of class SpectralPack.

derivative

whether to apply the first (1) or second (2) derivative to preprocess the data before the algorithm is applied. Default NULL (It tells the program to not derivate).

Value

An object of class SAM.

See Also

For its application to mosaic images see mosaic_sam.

Examples

Run this code
# NOT RUN {
x <- tile_read(base::system.file("extdata/tile.bsp", package = "uFTIR"))
x <- tile_base_corr(x)
x <- wavealign(x, primpke)
x <- tile_sam(x)
# }

Run the code above in your browser using DataLab