codecamp

TensorFlow函数:tf.image.hsv_to_rgb

tf.image.hsv_to_rgb函数

tf.image.hsv_to_rgb(
    images,
    name=None
)

请参阅指南:图像操作>颜色空间之间的转换

将一个或多个图像从HSV转换为RGB.

输出与images张量具有相同形状的张量,其中包含像素的RGB值.如果images的值在区域[0,1]中,则输出具有很好的定义.

您还可以参阅有关rgb_to_hsvHSV编码的说明.

参数:

  • images:一个Tensor,必须是下列类型之一:half,bfloat16,float32,float64,1维或更高等级,HSV数据转换,最后一个维度的大小必须为3.
  • name:操作的名称(可选).

返回:

与images具有相同类型的Tensor.

TensorFlow函数:tf.image.grayscale_to_rgb
TensorFlow函数:tf.image.image_gradients
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定
目录

TensorFlow 函数介绍

TensorFlow 函数模块:tf

TensorFlow的image模块

TensorFlow使用之tf.io

TensorFlow使用之tf.keras

TensorFlow函数教程:tf.keras.applications

TensorFlow函数教程:tf.keras.backend

TensorFlow使用之tf.metrics

TensorFlow使用之tf.nn

TensorFlow使用之tf.python_io

TensorFlow 功能函数

关闭

MIP.setData({ 'pageTheme' : getCookie('pageTheme') || {'day':true, 'night':false}, 'pageFontSize' : getCookie('pageFontSize') || 20 }); MIP.watch('pageTheme', function(newValue){ setCookie('pageTheme', JSON.stringify(newValue)) }); MIP.watch('pageFontSize', function(newValue){ setCookie('pageFontSize', newValue) }); function setCookie(name, value){ var days = 1; var exp = new Date(); exp.setTime(exp.getTime() + days*24*60*60*1000); document.cookie = name + '=' + value + ';expires=' + exp.toUTCString(); } function getCookie(name){ var reg = new RegExp('(^| )' + name + '=([^;]*)(;|$)'); return document.cookie.match(reg) ? JSON.parse(document.cookie.match(reg)[2]) : null; }