Learn R Programming

hyperbrick (version 1.0)

viewSpectra: 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

Run this code
# NOT RUN {
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")

# }

Run the code above in your browser using DataLab