tf.image.rgb_to_hsv

tf.image.rgb_to_hsv

tf.image.rgb_to_hsv

rgb_to_hsv(
    images,
    name=None
)

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

See the guide: Images > Converting Between Colorspaces

Converts one or more images from RGB to HSV.

Outputs a tensor of the same shape as the images tensor, containing the HSV value of the pixels. The output is only well defined if the value in images are in [0,1].

output[..., 0] contains h