How to get the total number of black pixels in the connected component to which a pixel is attached?
i need to implement a function that can find the number of all the pixels in the connected component to which a pixel is attached. There are opencv functions for finding connected components from image but i am unable to find any function that can find no. of connected components to a certain pixel. How can i achieve that>?