I have a binary 2D np array containing information in the following (example) figure. How can I detect the cluster of data points (here black in color) so that I can remove the cluster of points from the array one by one? Here, think of it as controlling and accordingly removing the circles from the image as per the user's task need.
Task: Detection and removal of any one of the n-cluster of data points from a numpy array
Any leads would be appreciated. [Image for reference]