def _central_crop(image_list, crop_height, crop_width):
 outputs = []
 for image in image_list:
  image_height = tf.shape(image)[0]
  image_width = tf.shape(image)[1]
  offset_height = ((image_height - crop_height) / 2)
  offset_width = ((image_width - crop_width) / 2)
  outputs.append(_crop(image, offset_height, offset_width, crop_height, crop_width))
 return outputs

def _central_crop ( image_list , crop_height , crop_width ) : outputs = [ ] for image in image_list : image_height = tf . shape ( image ) [ 0 ] image_width = tf . shape ( image ) [ 1 ] offset_height = ( ( image_height - crop_height ) / 2 ) offset_width = ( ( image_width - crop_width ) / 2 ) outputs . append ( _crop ( image , offset_height , offset_width , crop_height , crop_width ) ) return outputs
performs central crops of the given image list .