The find_non_empty_regions_bounded function looks really janky. There is probably a better way to do it in numpy.
The find_non_empty_regions_bounded function looks really janky.
There is probably a better way to do it in numpy.