px2ppp: Convert pixel coordinates to PPP object

Description Usage Arguments Value

Description

Convert coordinates from bad pixel map to a PPP object for spatial analysis. The resulting image can be further cropped if necessary.

Usage

1
2
px2ppp(px, im.dim = c(2048, 2048), crop = list(c(1, im.dim[1]), c(1,
  im.dim[2])))

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).

crop

List of two vectors of crop boundaries. Default is list(c(1, im.dim[1]), c(1, im.dim[2])), which crops to original image area.

Value

ppp object of the required dimensions


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