Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: add 'medoid' to regionprops #5273

Open
jni opened this issue Mar 15, 2021 · 1 comment
Open

Proposal: add 'medoid' to regionprops #5273

jni opened this issue Mar 15, 2021 · 1 comment

Comments

@jni
Copy link
Member

jni commented Mar 15, 2021

Description

I've wanted this many times but never had a word for it until someone pointed it out to me recently: the medoid is a representative object from a cluster whose average distance from all the objects in the cluster is minimal (for some definition of "distance"). Unlike the centroid, the medoid has to be an element of the cluster (in our case, segment). So, while centroids can be outside objects if the objects are non-convex (ie many real-world segments), the medoid is guaranteed to fall inside the object. This is useful in a wide variety of settings, such as selecting watershed seed points, or drawing a region adjacency graph.

@VolkerH
Copy link
Contributor

VolkerH commented Apr 29, 2021

This is related to #5092 , just linking these issues here.

@scikit-image scikit-image locked and limited conversation to collaborators Oct 18, 2021
@grlee77 grlee77 reopened this Feb 20, 2022
@scikit-image scikit-image unlocked this conversation Feb 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants