tfio.experimental.color.rgb_to_grayscale

Convert a RGB image to Grayscale (ITU-R).

Used in the notebooks

Used in the tutorials

input A 3-D ([H, W, 3]) or 4-D ([N, H, W, 3]) Tensor.
name A name for the operation (optional).

A 3-D ([H, W, 3]) or 4-D ([N, H, W, 3]) Tensor.