tf.image.transpose_image(image)

tf.image.transpose_image(image)

See the guide: Images > Flipping, Rotating and Transposing

Transpose an image by swapping the first and second dimension.

See also transpose().

Args:

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

Returns:

A 3-D tensor of shape [width, height, channels]

Raises:

  • ValueError: if the shape of image not supported.

Defined in tensorflow/python/ops/image_ops_impl.py.