unsupervised: Unsupervised vegetation classification using affinity...

Description Usage Arguments Details Examples

View source: R/unsupervised.R

Description

This function undertakes unsupervised vegetation classification using affinity propagation and k-means clustering. The function will automatically request the user to (1) identify an exterior folder containing the pre-processed imagery, and (2) the folder which will contain the function's outputs. The function will report messages indicating progress through 6 steps:

These messages are important because it will enable the user understand if a failure of the function occurs because the raster has not be shrunk sufficiently.

Usage

1
unsupervised(type, super, clusters, shrink)

Arguments

Details

Two automatically named shape files will be returned: one containing the clustered polygons, and the other containing the polygons of the superpixels (image segments). An automatically named elbow plot will be produced as a .png file. While there is no set rule for determining the number of clusters, many people look for an inflection point (the elbow, or knee) in this graph as a guide to determining the correct number of clusters (the maximum number of clusters visualised in the plot is 15). A .jpg of the spectral selection (type) will also be produced (this is required for an intermediate step in the image processing).

Examples

1
2
3
4
5
unsupervised(type = "ndre",
            clusters = 6,
            super = 200,
            shrink = 10)
  

NathanWhitmore/Ahikadrone documentation built on Dec. 17, 2021, 5:20 a.m.