counts pixel values according to their classes

get_counts(
  ids = c(1, 2),
  position = NULL,
  imageFiles = NULL,
  buffersize = 1.5,
  outPrefix = "classified_index_",
  ext = ".tif",
  path = tempdir(),
  dropChars = 0
)

Arguments

ids

numeric. the ids used for the training

position

sp. spatialpoint object containing the centre target positions

imageFiles

raster* image/classification file

buffersize

numeric. radius in meters around position

outPrefix

character. out prefix string

ext

character. extension

path

character. output path

dropChars

numeric. number of characters that should be dropped at the end of the filename

Value

data frame containing the number of pixels per class

Examples