TensorFlow函数:tf.image.adjust_saturation

2018-05-21 11:11 更新

tf.image.adjust_saturation函数

tf.image.adjust_saturation(
    image,
    saturation_factor,
    name=None
)

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

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

调整RGB图像的饱和度.

这是一种方便的方法,可以将RGB图像转换为浮点表示形式,将其转换为HSV,向饱和通道添加偏移量,再转换回RGB,然后返回原始数据类型.如果多个调整链接在一起,建议尽量减少冗余转换的数量.

image是一个RGB图像.图像饱和度通过将图像转换为HSV,并通过 saturation_factor 和裁剪将饱和 (S) 通道相乘.然后图像转换回RGB.

参数:

  • image:RGB图像或图像,最后尺寸的大小必须为3.
  • saturation_factor:浮点型,因子乘以饱和度.
  • name:此操作的名称(可选).

返回值:

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

以上内容是否对您有帮助:
在线笔记
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