How to apply a voronoi on regions rather than centroids

조회 수: 4 (최근 30일)
Hannes Frey
Hannes Frey 2022년 11월 23일
댓글: Hannes Frey 2022년 11월 23일
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

채택된 답변

Image Analyst
Image Analyst 2022년 11월 23일
  댓글 수: 1
Hannes Frey
Hannes Frey 2022년 11월 23일
This is exaclty what I'm after. Thanks so much! This is great

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Voronoi Diagram에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by