feature.closing: Find features whose shape differs after a morphological...

Description Usage Arguments Value Examples

Description

For all unclassified features, removes holes from polygons and performs a morphological closing with radius 1 pixel, and determines which features are unaffected by this process.

Usage

1
feature.closing(site, progress.bar = F, plot.progress = F, rm = 1)

Arguments

site

Feature set list, containing a raster of all features, and a matrix assigning each feature to a particular type.

progress.bar

Boolean: display progress bar or not? Default is F.

plot.progress

Boolean: plot features and colour those that have been checked, or not? Default is F

rm

Radius modifier: how many pixels' widths should be used as a radius for the dilation and erosion processes of the closing? Default is 1. Higher values will lead to a greater degree of smoothing.

Value

Matrix showing the cluster ID and area before and after the closing operation, and a list of polygon objects representing the features after closing.

Examples

1
close.features(sparse.shapes.classified, plot.progress = T)

ClairBee/AS.preprocessing documentation built on May 6, 2019, 11:50 a.m.