OpenCV FloodFill with multiple seeds
Is there a floodFill function for python/openCV that takes a list of seeds and starts changing the color of its neighbours? I know that simplecv as a function like that SimpleCV floodFill . OpenCV says it has two floodFill functions when that uses a mask and another one that doesn't, documentation , I'm not being able to use the opencv floodfill function without a mask and with a list of seeds. Any help? This is what I'm trying to do so far: A=array([[0,1,1,0],[0,0,0,0],[1,1,1,1],[1,1,1,1]],np.uint8) mask = np.ones((A.shape[0]+2,A.shape[0]+2),np.uint8) mask[1:-1,1:-1] = np.zeros((A.shape)) cv