predict_image: Predict image

Description Usage Arguments Value Author(s)

Description

Takes an image file and a trained SVM model and predicts every pixel of the image.

Usage

1
2
predict_image(picture, m1, size_threshold = 0, predict_class = "plant",
  outmask = "outmask/", outoverlay = "outoverlay/")

Arguments

picture

filename of image to be analyzed

m1

Trained SVM model from e1071

size_threshold

Minimum size in pixels that a feature must have to be kept

predict_class

Name of the class to be predicted. Must match a class name in m1.

outmask

Directory name where to save the masks resulting from the pipeline.

outoverlay

Directory name where to save the overlay images.

Value

Size of the found feature

Author(s)

Sur Herrera Paredes


surh/RosetteDetector documentation built on May 14, 2019, 10:36 a.m.