tf.image.adjust_hue( image, delta, name=None )
Defined in tensorflow/python/ops/image_ops_impl.py
.
See the guide: Images > Image Adjustments
Adjust hue of an RGB image.
This is a convenience method that converts an RGB image to float representation, converts it to HSV, add an offset to the hue channel, converts back to RGB and then back to the original data type. If several adjustments are chained it is advisable to minimize the number of redundant conversions.
image
is an RGB image. The image hue is adjusted by converting the image to HSV and rotating the hue channel (H) by delta
. The image is then converted back to RGB.
delta
must be in the interval [-1, 1]
.
image
: RGB image or images. Size of the last dimension must be 3.delta
: float. How much to add to the hue channel.name
: A name for this operation (optional).Adjusted image(s), same shape and DType as image
.
© 2018 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/image/adjust_hue