Description Usage Arguments Value Note References
View source: R/region_growing_functions.r
Grow a spectrally homogenous object from the center of a raster object outwards, based on Mahalonobis distance criteria
1 | grow_crown(testim, prox_ind, startclus, prob_cut)
|
testim |
A single or multi-band raster image to grow a region in |
prox_ind |
A matrix, as produced by Proximity.indices, that details proximity to the center and neighbours for all the cells in testim |
startclus |
The number of cells at the center of the testim that should be taken for granted as belonging to the region |
prob_cut |
The cutoff to apply when considering the probability that a new pixel at the edge of the region, belongs to the region. The value should fall between 0 an 100. Higher values tend to produce larger regionss |
A list containing $crown: binary raster of the region grown, and matching the attributes of testim and $startcluster: the startcluster size required to produce a non-singular covariance matrix (required to calculate Mahalanobis distance to the startcluster)
called in region_growing_wrapper.r
http://w3facility.org/question/r-how-to-split-spatial-multipolygon-to-spatialpolygons-element/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.