def _central_crop(image, crop_height, crop_width):
    """Performs central crops of the given image list.

    Args:
      image: the input image
      crop_height: the height of the image following the crop.
      crop_width: the width of the image following the crop.

    Returns:
      the cropped images.
    """

    image_height = image.shape[0]
    image_width = image.shape[1]

    offset_height = int((image_height - crop_height) / 2.0)
    offset_width = int((image_width - crop_width) / 2.0)

    return image[offset_height:crop_height + offset_height, offset_width:crop_width + offset_width, :]