rasterZoneAnalyzer {fasteraster} | R Documentation |
Takes a raster matrix and recognize zones exactly as the raster2vector function does. However does not return polygon vectors, but weight and center of mass for each polygone (or so called zone).
rasterZoneAnalyzer(raster, from = 0, to = 1, step = 0.1)
raster |
input matrix of numeric values. |
from |
lower (greater than) margin for recognizable zone values. |
to |
upper (less than or equal) margin. |
step |
values gradient. |
matrix of zones by four values: fill (ceiling values), weight (in cells), x and y of the mass center.
library(datasets) rasterZoneAnalyzer(volcano, 120, 200, 20)