px2r: Convert points to raster

Description Usage Arguments Value

Description

Support function: convert matrix of coordinates into a raster, so that convolution, clumping etc can be applied

Usage

1
px2r(px, im.dim = c(2048, 2048))

Arguments

px

data.frame or matrix, the first two columns of which contain the X and Y coordinates of points to be marked on the raster

im.dim

Vector of dimensions for the final raster. Default is c(2048, 2048).

Value

Raster object with the coordinates marked as 1, everything else as NA.


ClairBee/IO.Pixels documentation built on May 6, 2019, 11:50 a.m.