viewSpectra: Spectral Signature of a Hyperspectral Image

View source: R/viewSpectra.R

viewSpectraR Documentation

Spectral Signature of a Hyperspectral Image

Description

Visualize statistics calculated through the bands of a hyperspectral image.

Usage

viewSpectra(x, ...)

Arguments

x

A numeric matrix or vector containing the values to be plotted at each spectral band (wavelength). Generally, an object obtained with slideBrick().

...

Further graphical parameters. See par().

See Also

slideBrick()

Examples

p <- system.file('exdata', 'obory.dat', package = 'hyperbrick')
im <- buildBrick(p, ref_layer = 35,
                spectral_feature = "radiance",
                hFOV = 36.8, vFOV = 36.8, height = 45)
plotRGB(im, r = 63, b = 34, g = 11, scale = 90, axes = TRUE)

sw <- slideWindows(im)
lapply(sw, lines, col = "white") -> null_obj

sb <- slideBrick(im, sw, fun = mean)
head(sb)

viewSpectra(sb, ylab = "Radiance")


hyperbrick documentation built on April 1, 2022, 9:07 a.m.