tf.image.flip_up_down(image)

tf.image.flip_up_down(image)

See the guide: Images > Flipping, Rotating and Transposing

Flip an image horizontally (upside down).

Outputs the contents of image flipped along the first dimension, which is height.

See also reverse().

Args:

• image: A 3-D tensor of shape [height, width, channels].

Returns:

A 3-D tensor of the same type and shape as image.

Raises:

• ValueError: if the shape of image not supported.