denoise {remote} | R Documentation |
Noise filtering through principal components
Description
Filter noise from a RasterStack by decomposing into principal components and subsequent reconstruction using only a subset of components
Usage
denoise(x, k = NULL, expl.var = NULL, weighted = TRUE, use.cpp = TRUE,
verbose = TRUE, ...)
Arguments
x |
RasterStack to be filtered |
k |
number of components to be kept for reconstruction
(ignored if |
expl.var |
minimum amount of variance to be kept after reconstruction
(should be set to NULL or omitted if |
weighted |
logical. If |
use.cpp |
logical. Determines whether to use Rcpp
functionality, defaults to |
verbose |
logical. If |
... |
additional arguments passed to |
Value
a denoised RasterStack
See Also
Examples
data("vdendool")
vdd_dns <- denoise(vdendool, expl.var = 0.8)
opar <- par(mfrow = c(1,2))
plot(vdendool[[1]], main = "original")
plot(vdd_dns[[1]], main = "denoised")
par(opar)
[Package remote version 1.2.1 Index]