tf.image.rgb_to_hsv
Stay organized with collections
Save and categorize content based on your preferences.
Converts one or more images from RGB to HSV.
tf.image.rgb_to_hsv(
images, name=None
)
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 hue, output[..., 1]
contains saturation, and
output[..., 2]
contains value. All HSV values are in [0,1]
. A hue of 0
corresponds to pure red, hue 1/3 is pure green, and 2/3 is pure blue.
Args |
images
|
A Tensor . Must be one of the following types: half , bfloat16 , float32 , float64 .
1-D or higher rank. RGB 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 .
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-10-01 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2020-10-01 UTC."],[],[]]