classify images using raster predict
predict_rgb(
imageFiles = NULL,
model = NULL,
inPrefix = "index_",
outPrefix = "classified_",
bandNames = NULL,
retRaster = TRUE
)
raster*. imagestack for classification purposes must contain the required bands as needed by the model.
model. classification model
character. in frefix string
character. out prefix string
character. band names
boolean if TRUE a raster stack is returned
writes a result image in tif format if retRaster an rasterstack is returned