pub fn binary_fill_holes(
image: &Array2<bool>,
structure: &Array2<bool>,
) -> Result<Array2<bool>, ErrorsJSL>Expand description
Fills the holes of a binary image: background regions that cannot be reached from outside the
image by steps allowed by structure (the cross gives 4-connected steps, the square
8-connected). A breadth-first search from the background pixels next to the border marks the
outside; everything else becomes foreground (SciPy’s binary_fill_holes).