How can I get center point of each a bunch of red points

You would need some sort of flood algorithm.
Check this discussion, I wrote an example that is perfect for your problem.

1 Like