looking at trying to find the center point of "clusters" / "circles" / "ellipses" ect in an image.
Example image:
It is clear by eye that there are 3ish clusters. I am looking to find the center point of the clusters, and the defining - rectangle, or circle (with radius) or ellipse, however to describe it.
Ideally, it is expanded to the following cases:
- Unknown number of clusters (assume min 1, max 10) for simplicity if needed.
This picture is part of a larger picture that made use of canny-edge detection, thresholding and then contours to find me this area of interest. Unfortunately, I need it to be...more refined (or better parameters but I couldn't find anything that worked)
Things I have tried:
I have tried using kmeans segmentation, but they are mainly for color segments. And this image could be black/white for all the information the colors give us. HughCircles in opencv are not really the circles I want in that they give me way too many circles that matches "edges" Template matching via opencv also didnt work since it was too constrained and these cant be exact matches.
Any suggestions/avenues to examine would be welcome!
I have also attempted some basic scatterplot k-means clustering (as if this is data) but have not had good results so far.
Language of choice: python, but adaptable.


