applyFunctionByBlocks: Apply a function over all pixels of a image by block

Description Usage Arguments

View source: R/block.R

Description

Generate a raster from another raster an a function that takes block (a vector of pixels) as argument and returns a new raster in memory.

Usage

1
applyFunctionByBlocks(raster, block_func, ...)

Arguments

raster

A raster object.

block_func

A function that takes a vector of pixels as argument and returns another vector of pixels with the same size of the input. All but the last call use vectors with the same size. The last one uses the remaining pixels of the raster.

...

Any other parameters to pass to block_func.


pedro-andrade-inpe/sits.validate documentation built on Dec. 4, 2019, 3:02 p.m.