How to apply a voronoi on regions rather than centroids
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Hannes Frey
le 23 Nov 2022
Commenté : Hannes Frey
le 23 Nov 2022
Hi there,
I have some miroscopy images of particles that are already segmented to a mask . Now i want to go iteratively through all particles to find all its neighbours and their closest distance (see attached image 2).
I know that i could identify all particle centroids with regionprobs and then do a voronoi construction on the centroids to find all neighboring centroids and the distance from centroid to centroid, but I'm after the distance between the perimeters not the centers.
Is there any function that I could use? Basically doing a voronoi starting at the perimeters of the particles NOT their centers to identify which particles are adjasent to each other? If i have this information, I could use pdist to find the minium distance between the perimeters of a pair of particles..
thanks a lot for help
Best wishes
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1204598/image.jpeg)
0 commentaires
Réponse acceptée
Image Analyst
le 23 Nov 2022
It sounds like you're wanting the skiz. Search the help for skiz and you'll find a demo. Also look at these
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Voronoi Diagram dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!