classify images using raster predict

predict_rgb(
  imageFiles = NULL,
  model = NULL,
  inPrefix = "index_",
  outPrefix = "classified_",
  bandNames = NULL,
  retRaster = TRUE
)

Arguments

imageFiles

raster*. imagestack for classification purposes must contain the required bands as needed by the model.

model

model. classification model

inPrefix

character. in frefix string

outPrefix

character. out prefix string

bandNames

character. band names

retRaster

boolean if TRUE a raster stack is returned

Value

writes a result image in tif format if retRaster an rasterstack is returned

Examples