grow_connected_region.Rd
Grow a patch of cells
grow_connected_region(
cells,
nb,
seed = NULL,
existing.patch = NULL,
blacklisted_cells
)
sf object of all cells, with edge cells removed.
Object of class "nb", created from the 'spdep' function poly2nb()
.
Numeric. Index of first cell in patch (the 'seed' cell). Defaults to NULL.
Numeric. Indices of cells in the patch which is to be 'grown'. Defaults to NULL.
Numeric. Indices of cells to exclude (e.g. the subsidiary cell of a stomatal complex that is cut off by the image edge).
A numeric vector containing the indices of the sampled polygons