Quick question, I'm looking for a python function that does the equivalent job that matlab imfill.m does. I understand that python has openCV, but I could not get this to work correctly and am trying to find a replacement for it. The imfill part I'm trying to reproduce is the βholesβ.
I have a mask that I generated, but I'm trying to fill in all the regions that are surrounded by βearthβ and leave only empty areas of water.
If this is not clear enough, let me know and I can try to be more specific. Thank you for your time.
source share