def get_locs(r1, c1, r2, c2):
    """Get ndarray locations of given bounds."""
    rs = []
    cs = []
    for r in range(r1, r2 + 1):
        for c in range(c1, c2 + 1):
            rs.append(r)
            cs.append(c)

    return rs, cs