Description Usage Arguments Details Value Examples
This function will produce two outputs - a prediction image and a probability image. The prediction image contains the predicted classes, the and the probability image contains the per-pixel predicted probabilities of occurrence of each class.
1 2 |
x |
a |
model |
a trained classifier as output by
|
classes_file |
filename for predicted classes (or missing) |
prob_file |
filename for predicted probabilities (or missing) |
factors |
a list of character vector giving the names of predictors
(layer names from the images used to build |
overwrite |
whether to overwrite |
This function will run in parallel if a parallel backend is registered with
foreach
.
a list with 2 elements: the predicted classes as a
RasterLayer
and the class probabilities as a RasterBrick
1 2 3 4 5 6 7 8 9 | ## Not run:
train_data <- get_pixels(L5TSR_1986, L5TSR_1986_2001_training, "class_1986",
training=.6)
model <- train_classifier(train_data)
preds <- classify(L5TSR_1986, model)
plot(preds$classes)
plot(preds$probs)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.