How to find centroid for each cluster of points

how can I find the centroid of each cluster of leds ? Instead of individual centorid of leds ?

May be you should use flann

specifically, cv::DescriptorMatcher::radiusMatch() to grab nearby points, within a certain radius.

please think of more useful titles for your questions. I’ve fixed this.