0
I am implementing a flood fill algorithm using python & numpy. I have written the following fill function which works fine
def fill(self, data, xsize, ysize, x_start, y_start):
stack = [(x_start, y_start)]
while stack:
x, y, stack = stack[0][0], stack[0][1], stack[1:]
...