VeloxRaster_medianFocal: Median focal

Description Arguments Details Value Examples

Description

Applies a median filter of dimension wcol x wrow to a VeloxRaster.

Arguments

wrow

y dimension of filter. Must be uneven integer.

wcol

x dimension of filter. Must be uneven integer.

bands

Numeric vector indicating bands where filter is applied.

Details

Padding is currently not implemented.

Value

Void.

Examples

1
2
3
4
5
6
7
## Make VeloxRaster with two bands
mat1 <- matrix(1:100, 10, 10)
mat2 <- matrix(100:1, 10, 10)
vx <- velox(list(mat1, mat2), extent=c(0,1,0,1), res=c(0.1,0.1),
            crs="+proj=longlat +datum=WGS84 +no_defs")
## Median focal
vx$medianFocal(wrow=5, wcol=5, bands=c(1,2))

hunzikp/velox documentation built on June 6, 2021, 2:40 a.m.