def normalized_coords_from_coords(coords: tuple, shape:tuple) -> tuple:
    """Return the normalized coordinates in [0, 1] for coordinates in
    [0, shape]. Note that a coordinate (normalized or otherwise) centered on
    pixel 0 should be slightly larger than 0."""
    return tuple([c/s for (c,s) in zip(coords, shape)])