tensorflow::
#include <image_ops.h>
Converts one or more images from RGB to HSV.
Summary
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.
Usage Example:
blue_image = tf.stack([ ... tf.zeros([5,5]), ... tf.zeros([5,5]), ... tf.ones([5,5])], ... axis=-1) blue_hsv_image = tf.image.rgb_to_hsv(blue_image) blue_hsv_image[0,0].numpy() array([0.6666667, 1. , 1. ], dtype=float32)
Args:
- scope: A Scope object
- images: 1-D or higher rank. RGB data to convert. Last dimension must be size 3.
Returns:
- Output:- imagesconverted to HSV.
| Constructors and Destructors | |
|---|---|
| RGBToHSV(const ::tensorflow::Scope & scope, ::tensorflow::Input images) | 
| Public attributes | |
|---|---|
| operation | |
| output | |
| Public functions | |
|---|---|
| node() const  | ::tensorflow::Node * | 
| operator::tensorflow::Input() const  |  | 
| operator::tensorflow::Output() const  |  | 
Public attributes
operation
Operation operation
output
::tensorflow::Output output
Public functions
RGBToHSV
RGBToHSV( const ::tensorflow::Scope & scope, ::tensorflow::Input images )
node
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const