TensorFlow函数:tf.image.random_hue

2018-06-11 11:09 更新

tf.image.random_hue函数

tf.image.random_hue(
    image,
    max_delta,
    seed=None
)

定义在:tensorflow/python/ops/image_ops_impl.py.

请参阅指南:图像操作>图像调整

用随机因子调整RGB图像的色调.

相当于adjust_hue(),但是在区间[-max_delta, max_delta]使用delta随机选取的.

max_delta必须在间隔[0, 0.5]中.

参数:

  • image:RGB图像,最后维度的大小必须为3.
  • max_delta:浮点型,随机增量的最大值.
  • seed:特定于操作的seed,它将与图层seed一起使用,以确定将在此操作中使用的实际seed.

返回值:

调整后的图像,与image具有相同的形状和DType.

可能引发的异常:

  • ValueError:如果max_delta无效.
以上内容是否对您有帮助:
在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy