getValuesWindow {StrucDiv} | R Documentation |
Retrieve pixel values of a defined area. The area is defined by the size of a window, which is centered on one pixel.
Description
Modified R Code from raster package raster::getValuesFocal. Returns one row per pixel, which contains the values of the pixel neighborhood that is defined by the size of the window. The size of the window is defined by the window side length (wsl). The window is centered on one specific pixel.
Usage
getValuesWindow(x, wsl, padValue, aroundTheGlobe, ...)
Arguments
x |
raster layer. The input raster layer. |
wsl |
integer. The window side length. The window is defined by |
padValue |
atomic. If a pixel is on the edge of an image, padding should be used? Can be NA or a value. |
aroundTheGlobe |
logical. Does the image go around the globe? |
... |
possible further arguments. |
Value
Returns a matrix. The matrix contains the values of the defined window centered on the respective pixel.
[Package StrucDiv version 0.2.1 Index]