Flood Fill
Flood fill is an algorithm to identify and/or change adjacent values in an image based on their similarity to an initial seed point [1]. The conceptual analogy is the ‘paint bucket’ tool in many graphic editors.
Basic example
First, a basic example where we will change a checkerboard square from white to mid-gray.
import numpy as np
import




