Does anyone know a iterative and efficient algorithm for flood-fill?
Or is there any way to implement recursive floodfill algorithm without stack overflow error?
Tried the one @ Flood fill using a stack
but i cant find a way to work on white and black image.
this algorithm worked good for me.