def get_cell_coords(row_coords, col_coords):
    """Get top-left and bottom-right coordinates for each cell using row and column coordinates"""
    cell_coords = {}
    for i, row_coord in enumerate(row_coords):
        cell_coords.setdefault(i, {})
        for j, col_coord in enumerate(col_coords):
            x1 = col_coord[0]
            y1 = row_coord[1]
            x2 = col_coord[2]
            y2 = row_coord[3]
            cell_coords[i][j] = (x1, y1, x2, y2)
    return cell_coords