def crop_images(data, indices):
    """
    Crop images based on the indices specified
    :param data: 3d numpy array of images
    :param indices: list of two tuples in (r,c) format 1st = top left corner 2nd = bottom right
    :return: 3d numpy slice of original array based on given inputs
    """
    return data[indices[0][0]:indices[1][0] + 1, indices[0][1]:indices[1][1
        ] + 1]
