I have a black and white image such as the attached one and I want to calculate the area and center of mass of the inner (hole) region.
The problem I'm facing is for a spcific white pixel how to determine if it belongs or not to the hole i.e. if it's entirely surrounded by the black region.
I assume the web has a lot of related information but I just don't know what exactly to look for. Any ideas?




Reply With Quote