test_raster: Randomly generated 100x100 test image

Description Examples

Description

Used in testing the output from the GLCM texture statistics C++ code.

Examples

1
2
3
4
5
6
# The image was generated with the following code:
require(raster)
set.seed(0)
test_matrix <- matrix(runif(100)*32, nrow=10)
test_raster <- raster(test_matrix, crs='+init=epsg:4326')
test_raster <- cut(test_raster, seq(0, 32))

Example output

Loading required package: raster
Loading required package: sp

glcm documentation built on March 26, 2020, 7:47 p.m.