Find the centroid distance between two identified objects/features.

1 |

`x,y` |
objects of class “owin” (package spatstat) containing binary images of features of interest. |

`distfun` |
character string naming a distance function that should take arguments |

`loc` |
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 `FeatureProps`

.

numeric giving the centroid distance.

Eric Gilleland

`FeatureProps`

, `as.im`

, `solutionset`

, `FeatureMatchAnalyzer`

, `FeatureComps`

1 2 3 4 5 6 7 8 9 |

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.