tf.image.central_crop(image, central_fraction)
Crop the central region of the image.
Remove the outer parts of an image but retain the central region of the image along each dimension. If we specify central_fraction = 0.5, this function returns the region marked with "X" in the below diagram.
--------
| |
| XXXX |
| XXXX |
| | where "X" is the central 50% of the image.
--------
Args:
image: 3-D float Tensor of shape [height, width, depth]
central_fraction: float (0, 1]