Centroid Distance Between Two Identified Objects
Find the centroid distance between two identified objects/features.
objects of class “owin” (package spatstat) containing binary images of features of interest.
character string naming a distance function that should take arguments
two-column matrix giving the location values for which to calculate the centroids. If NULL, indices according to the dimension of the fields are used.
optional arguments to
This is a simple function that calculates the centroid for each of x and y (to get their centroids), and then finds the distance between them according to
distfun. The centroids are calculated using
numeric giving the centroid distance.
1 2 3 4 5 6 7 8 9
Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.