Used to represent training data for a machine learning classifier for image classificaion, or testing data used for testing a classification.
x
a data.frame
of independent variables (usually pixel values)
y
a data.frame
of the dependent variable (usually land cover
classes)
pixel_src
a data.frame used to link pixels in x
and y
to
an input polygon
training_flag
a binary vector of length equal to nrow(x)
indicating each row in x should be used in training (TRUE) or in testing
(FALSE)
polys
a SpatialPolygonsDataFrame
of the polygons used to choose
the pixels in x
and y
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.