View source: R/getValuesWindow.R
getValuesWindow | R Documentation |
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.
getValuesWindow(x, wsl, padValue, aroundTheGlobe, ...)
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. |
Returns a matrix. The matrix contains the values of the defined window centered on the respective pixel.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.