Description Usage Arguments Value See Also Examples
View source: R/modify.operators.R
The centroid is the average location of all cells of a foreground patch.
1 |
obj |
[ |
output |
[ |
background |
[ |
Depending on output
, either
a
RasterLayer
of the same dimension as obj
, in which the
centroid of each foreground patch has the value of the patch-number
identified with rPatches
and where the remaining cells of
each foreground patch have the value NA or
a geometry object of the centroids.
Other operators to determine objects: rPatches
,
rSkeletonise
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.