Spec-Zone.ru › TensorFlow

tf.image.hsv_to_rgb

Convert one or more images from HSV to RGB.

View aliases

Compat aliases for migration

See Migration guide for more details.

tf.compat.v1.image.hsv_to_rgb

tf.image.hsv_to_rgb(
    images: Annotated[Any, TV_HSVToRGB_T], name=None
) -> Annotated[Any, TV_HSVToRGB_T]

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

See rgb_to_hsv for a description of the HSV encoding.

Args
images A Tensor. Must be one of the following types: half, bfloat16, float32, float64. 1-D or higher rank. HSV data to convert. Last dimension must be size 3.
name A name for the operation (optional).
Returns
A Tensor. Has the same type as images.

© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/image/hsv_to_rgb

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API