how to detect the largest blob and find its center [closed]
Hi all,
I apologize for the very basic question, but I'm stuck with this because I've found tons of people with different solutions. So I'm trying to figure out what's the best solution.
Given this black image, with some pixels white like this:
how can get the coordinate of the green pixel that I personally marked?
So the steps would be:
- How can I find the largest (in order to exclude noise) white blob in a black image?
- How can I compute its center?
I don't need the code, just the concept
You can find some code here and some remarks here or use threshold functions and after connectedComponentsWithStat (opencv 3.0)