How can i find the centroid of the largest white(actually yellow) area using OpenCV with C++2008?
I am doing some images processing using OpenCV with C++2008.
I have to do the thresholding to make the image into black (other color) and white(actually yellow colour).
After that, since there are different areas of white areas on the image, I have to find the centroid of the largest white(actually yellow) area.
How can i find the centroid of the largest white(actually yellow) area using OpenCV with C++2008?