how to merge centroids?

1 view (last 30 days)
Keane Athallah
Keane Athallah on 25 May 2022
Commented: Keane Athallah on 26 May 2022
how can i merge centroid on top right corner?
if the centroids of any pair are closer than a certain amount
  3 Comments
Keane Athallah
Keane Athallah on 26 May 2022
that is my code for finding the centroid, i dont know how to combine the 2 centroid if they were close enough.

Sign in to comment.

Answers (1)

KSSV
KSSV on 26 May 2022
You have the coordinates of centroid, you can use knnsearch to get the nearest neighbors.
  1 Comment
Keane Athallah
Keane Athallah on 26 May 2022
can you please explain it?

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!