tf.image.grayscale_to_rgb()

tf.image.grayscale_to_rgb(images, name=None)

Converts one or more images from Grayscale to RGB.

Outputs a tensor of the same DType and rank as images. The size of the last dimension of the output is 3, containing the RGB value of the pixels.

Args:
  • images: The Grayscale tensor to convert. Last dimension must be size 1.
  • name: A name for the operation (optional).
Returns:

The converted grayscale image(s).

doc_TensorFlow
2016-10-14 13:08:08
Comments
Leave a Comment

Please login to continue.